4 #ifndef __bbtkWxBrowser_h_INCLUDED__
5 #define __bbtkWxBrowser_h_INCLUDED__
8 //#include <wx/notebook.h>
9 #include <wx/html/htmlwin.h>
16 class WxHtmlWindow : public virtual wxHtmlWindow
19 WxHtmlWindow( wxWindow *parent, int id, WxBrowser* browser, wxSize size)
20 : wxHtmlWindow(parent, id,
24 _T("bbtk::WxBrowser")),
29 // wxHtmlOpeningStatus OnOpeningURL(wxHtmlURLType type,const wxString& url, wxString *redirect);
30 virtual void OnLinkClicked(const wxHtmlLinkInfo& link);
39 class WxBrowser : public wxPanel
42 WxBrowser ( wxWindow *parent, wxSize size );
44 bool GoTo(std::string&);
46 void OnBackButton(wxCommandEvent& );
47 void OnForwardButton(wxCommandEvent& );
48 void OnLinkClicked(wxHtmlLinkEvent& );
49 void OnURLEnter( wxCommandEvent&);
51 // void OnCell(wxHtmlCellEvent& );
53 void SetSize( wxSize );
56 WxHtmlWindow* mwxHtmlWindow;
58 wxButton* mwxBackButton;
59 wxButton* mwxForwardButton;
61 // any class wishing to process wxWidgets events must use this macro