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&);
45 void OnBackButton(wxCommandEvent& );
46 void OnForwardButton(wxCommandEvent& );
47 void OnLinkClicked(wxHtmlLinkEvent& );
48 void OnURLEnter( wxCommandEvent&);
50 // void OnCell(wxHtmlCellEvent& );
52 void SetSize( wxSize );
55 WxHtmlWindow* mwxHtmlWindow;
57 wxButton* mwxBackButton;
58 wxButton* mwxForwardButton;
60 // any class wishing to process wxWidgets events must use this macro