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 virtual void OnLinkClicked(const wxHtmlLinkInfo& link);
38 class WxBrowser : public wxPanel
41 WxBrowser ( wxWindow *parent, wxSize size );
43 bool GoTo(std::string&);
46 void OnBackButton(wxCommandEvent& );
47 void OnForwardButton(wxCommandEvent& );
48 void OnHomeButton(wxCommandEvent& );
49 void OnReloadButton(wxCommandEvent& );
50 void OnIncludeFileButton(wxCommandEvent& );
51 void OnLinkClicked(wxHtmlLinkEvent& );
52 void OnURLEnter( wxCommandEvent&);
54 // void OnCell(wxHtmlCellEvent& );
56 void SetSize( wxSize );
59 WxHtmlWindow* mwxHtmlWindow;
61 wxButton* mwxBackButton;
62 wxButton* mwxForwardButton;
63 wxButton* mwxHomeButton;
64 wxButton* mwxReloadButton;
65 wxButton* mwxIncludeFileButton;
67 // any class wishing to process wxWidgets events must use this macro