4 #ifndef __bbtkWxBrowser_h_INCLUDED__
5 #define __bbtkWxBrowser_h_INCLUDED__
8 #include <wx/html/htmlwin.h>
15 class WxHtmlWindow : public virtual wxHtmlWindow
18 WxHtmlWindow( wxWindow *parent, int id, WxBrowser* browser, wxSize size)
19 : wxHtmlWindow(parent, id,
23 _T("bbtk::WxBrowser")),
28 // wxHtmlOpeningStatus OnOpeningURL(wxHtmlURLType type,const wxString& url, wxString *redirect);
29 //EED virtual void OnLinkClicked(const wxHtmlLinkInfo& link);
41 class WxBrowser : public wxPanel
44 WxBrowser ( wxWindow *parent, wxSize size );
46 bool GoTo(std::string&);
49 void OnBackButton(wxCommandEvent& );
50 void OnForwardButton(wxCommandEvent& );
51 void OnHomeButton(wxCommandEvent& );
52 void OnReloadButton(wxCommandEvent& );
53 void OnIncludeFileButton(wxCommandEvent& );
54 void OnLinkClicked(wxHtmlLinkEvent& );
55 void OnURLEnter( wxCommandEvent&);
57 // void OnCell(wxHtmlCellEvent& );
59 void SetSize( wxSize );
61 void SetWxConsole( WxConsole* c ) { mWxConsole = c; }
64 WxHtmlWindow* mwxHtmlWindow;
66 wxButton* mwxBackButton;
67 wxButton* mwxForwardButton;
68 wxButton* mwxHomeButton;
69 wxButton* mwxReloadButton;
70 wxButton* mwxIncludeFileButton;
72 WxConsole* mWxConsole;
74 // any class wishing to process wxWidgets events must use this macro