// Author: Vaclav Slavik
// RCS-ID: $Id$
// Copyright: (c) 1999 Vaclav Slavik
-// Licence: wxWidgets licence
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// Sets fonts to be used when displaying HTML page. (if size null then default sizes used).
void SetFonts(wxString normal_face, wxString fixed_face, const int *sizes = NULL);
+ // Sets font sizes to be relative to the given size or the system
+ // default size; use either specified or default font
+ void SetStandardFonts(int size = -1,
+ const wxString& normal_face = wxEmptyString,
+ const wxString& fixed_face = wxEmptyString);
+
// Adds tags module. see wxHtmlTagsModule for details.
static void AddModule(wxHtmlTagsModule *module);
wxHtmlContainerCell *m_Container;
// current container. See Open/CloseContainer for details.
- int m_FontBold, m_FontItalic, m_FontUnderlined, m_FontFixed; // this is not TRUE,FALSE but 1,0, we need it for indexing
+ int m_FontBold, m_FontItalic, m_FontUnderlined, m_FontFixed; // this is not true,false but 1,0, we need it for indexing
int m_FontSize; /* -2 to +4, 0 is default */
wxColour m_LinkColor;
wxColour m_ActualColor;
wxHtmlLinkInfo m_Link;
// actual hypertext link or empty string
bool m_UseLink;
- // TRUE if m_Link is not empty
+ // true if m_Link is not empty
long m_CharHeight, m_CharWidth;
// average height of normal-sized text
int m_Align;
#endif
wxHtmlWordCell *m_lastWordCell;
-
+
DECLARE_NO_COPY_CLASS(wxHtmlWinParser)
};
DECLARE_ABSTRACT_CLASS(wxHtmlWinTagHandler)
public:
- wxHtmlWinTagHandler() : wxHtmlTagHandler() {};
+ wxHtmlWinTagHandler() : wxHtmlTagHandler() {}
virtual void SetParser(wxHtmlParser *parser) {wxHtmlTagHandler::SetParser(parser); m_WParser = (wxHtmlWinParser*) parser;};
DECLARE_DYNAMIC_CLASS(wxHtmlTagsModule)
public:
- wxHtmlTagsModule() : wxModule() {};
+ wxHtmlTagsModule() : wxModule() {}
virtual bool OnInit();
virtual void OnExit();