#pragma implementation
#endif
-#include <wx/wxprec.h>
+#include "wx/wxprec.h"
#include "wx/defs.h"
#if wxUSE_HTML
#endif
#ifndef WXPRECOMP
-#include <wx/wx.h>
+#include "wx/wx.h"
#endif
#include "wx/html/htmldefs.h"
// wxHtmlWinParser
//-----------------------------------------------------------------------------
-IMPLEMENT_DYNAMIC_CLASS(wxHtmlWinParser,wxHtmlParser)
wxList wxHtmlWinParser::m_Modules;
for (m = 0; m < 7; m++)
m_FontsTable[i][j][k][l][m] = NULL;
#ifdef __WXMSW__
- int default_sizes[7] = {7, 8, 10, 12, 16, 22, 30};
+ static int default_sizes[7] = {7, 8, 10, 12, 16, 22, 30};
#else
- int default_sizes[7] = {10, 12, 14, 16, 19, 24, 32};
+ static int default_sizes[7] = {10, 12, 14, 16, 19, 24, 32};
#endif
SetFonts("", wxSLANT, "", wxSLANT, default_sizes);
}
-void wxHtmlWinParser::SetFonts(wxString normal_face, int normal_italic_mode, wxString fixed_face, int fixed_italic_mode, int *sizes)
+void wxHtmlWinParser::SetFonts(wxString normal_face, int normal_italic_mode, wxString fixed_face, int fixed_italic_mode, const int *sizes)
{
for (int i = 0; i < 7; i++) m_FontsSizes[i] = sizes[i];
m_FontFaceFixed = fixed_face;
m_Link = "";
m_LinkColor.Set(0, 0, 0xFF);
m_ActualColor.Set(0, 0, 0);
- m_Align = HTML_ALIGN_LEFT;
+ m_Align = wxHTML_ALIGN_LEFT;
m_tmpLastWasSpace = FALSE;
OpenContainer();
CloseContainer();
OpenContainer();
- GetContainer() -> SetIndent(m_CharHeight, HTML_INDENT_TOP);
+ GetContainer() -> SetIndent(m_CharHeight, wxHTML_INDENT_TOP);
top = m_Container;
while (top -> GetParent()) top = top -> GetParent();
return top;
{
wxHtmlCell *c;
int i = 0, x, lng = strlen(txt);
- char temp[HTML_BUFLEN];
+ char temp[wxHTML_BUFLEN];
register char d;
int templen = 0;
void wxHtmlTagsModule::OnExit()
{
}
+#endif
-#endif
\ No newline at end of file