#include "wx/window.h"
#include "wx/scrolwin.h"
#include "wx/config.h"
+#include "wx/stopwatch.h"
#include "wx/html/winpars.h"
#include "wx/html/htmlcell.h"
#include "wx/filesys.h"
// it is NOT address/filename of HTML document. If you want to
// specify document location, use LoadPage() istead
// Return value : false if an error occurred, true otherwise
- bool SetPage(const wxString& source);
+ virtual bool SetPage(const wxString& source);
// Append to current page
bool AppendToPage(const wxString& source);
#endif // wxUSE_STATUSBAR
// Sets fonts to be used when displaying HTML page.
- void SetFonts(wxString normal_face, wxString fixed_face,
+ void SetFonts(const wxString& normal_face, const wxString& fixed_face,
const int *sizes = NULL);
// Sets font sizes to be relative to the given size or the system
wxString ToText();
#endif // wxUSE_CLIPBOARD
+ virtual void OnInternalIdle();
+
protected:
void Init();
void OnMouseLeave(wxMouseEvent& event);
#endif // wxUSE_CLIPBOARD
- virtual void OnInternalIdle();
-
// Returns new filter (will be stored into m_DefaultFilter variable)
virtual wxHtmlFilter *GetDefaultFilter() {return new wxHtmlFilterPlainText;}
void StopAutoScrolling();
#endif // wxUSE_CLIPBOARD
-protected:
wxString DoSelectionToText(wxHtmlSelection *sel);
+private:
+ // implementation of SetPage()
+ bool DoSetPage(const wxString& source);
+
+protected:
// This is pointer to the first cell in parsed data. (Note: the first cell
// is usually top one = all other cells are sub-cells of this one)
wxHtmlContainerCell *m_Cell;
#if wxUSE_CLIPBOARD
// time of the last doubleclick event, used to detect tripleclicks
// (tripleclicks are used to select whole line):
- wxLongLong m_lastDoubleClick;
+ wxMilliClock_t m_lastDoubleClick;
// helper class to automatically scroll the window if the user is selecting
// text and the mouse leaves wxHtmlWindow: