// borders (free space between text and window borders)
// defaults to 10 pixels.
- bool m_Scrollable;
- // TRUE if you can scroll the window.
- // If it is FALSE you can't scroll the window even if it's contents is larger
- // than window.
+ int m_Style;
private:
static wxList m_Filters;
// list of HTML filters
- static wxHtmlFilterPlainText m_DefaultFilter;
+ static wxHtmlFilter *m_DefaultFilter;
// this filter is used when no filter is able to read some file
HtmlHistoryArray m_History;
wxHtmlWindow() : wxScrolledWindow() {};
wxHtmlWindow(wxWindow *parent, wxWindowID id = -1,
const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
- const wxString& name = "htmlWindow", bool scrollable = TRUE);
+ long style = wxHW_SCROLLBAR_AUTO,
+ const wxString& name = "htmlWindow");
~wxHtmlWindow();
bool SetPage(const wxString& source);
virtual void OnLinkClicked(const wxString& link);
// called when users clicked on hypertext link. Default behavior is to
// call LoadPage(loc)
+
+ static void CleanUpStatics();
+ // cleans static variables
protected:
bool ScrollToAnchor(const wxString& anchor);
void OnMouseEvent(wxMouseEvent& event);
void OnIdle(wxIdleEvent& event);
void OnKeyDown(wxKeyEvent& event);
+
+ virtual wxHtmlFilter *GetDefaultFilter() {return new wxHtmlFilterPlainText;}
+ // returns new filter (will be stored into m_DefaultFilter variable)
DECLARE_EVENT_TABLE()
};