X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9b64e79868d4d32c3541bbd049d3f9f94c8edbfe..954269e6dd95053309fffbce1b61692512c70056:/src/html/m_fonts.cpp diff --git a/src/html/m_fonts.cpp b/src/html/m_fonts.cpp index 2919a029b4..afc454bc80 100644 --- a/src/html/m_fonts.cpp +++ b/src/html/m_fonts.cpp @@ -11,7 +11,7 @@ #pragma implementation #endif -#include +#include "wx/wxprec.h" #include "wx/defs.h" #if wxUSE_HTML @@ -21,7 +21,7 @@ #endif #ifndef WXPRECOMP -#include +#include "wx/wx.h" #endif #include "wx/html/forcelnk.h" @@ -37,19 +37,19 @@ TAG_HANDLER_BEGIN(FONT, "FONT") wxColour oldclr = m_WParser -> GetActualColor(); int oldsize = m_WParser -> GetFontSize(); - if (tag.HasParam("COLOR")) { + if (tag.HasParam(wxT("COLOR"))) { unsigned long tmp = 0; wxColour clr; - if (tag.ScanParam("COLOR", "#%lX", &tmp) == 1) { + if (tag.ScanParam(wxT("COLOR"), wxT("#%lX"), &tmp) == 1) { clr = wxColour((tmp & 0xFF0000) >> 16 , (tmp & 0x00FF00) >> 8, (tmp & 0x0000FF)); m_WParser -> SetActualColor(clr); m_WParser -> GetContainer() -> InsertCell(new wxHtmlColourCell(clr)); } } - if (tag.HasParam("SIZE")) { + if (tag.HasParam(wxT("SIZE"))) { long tmp = 0; - if (tag.ScanParam("SIZE", "%li", &tmp) == 1) { + if (tag.ScanParam(wxT("SIZE"), wxT("%li"), &tmp) == 1) { m_WParser -> SetFontSize(oldsize+tmp); m_WParser -> GetContainer() -> InsertCell(new wxHtmlFontCell(m_WParser -> CreateCurrentFont())); } @@ -154,7 +154,7 @@ TAG_HANDLER_BEGIN(Hx, "H1,H2,H3,H4,H5,H6") c -> SetAlign(tag); c -> InsertCell(new wxHtmlFontCell(m_WParser -> CreateCurrentFont())); - c -> SetIndent(m_WParser -> GetCharHeight(), HTML_INDENT_TOP); + c -> SetIndent(m_WParser -> GetCharHeight(), wxHTML_INDENT_TOP); m_WParser -> SetAlign(c -> GetAlignHor()); ParseInner(tag); @@ -170,7 +170,7 @@ TAG_HANDLER_BEGIN(Hx, "H1,H2,H3,H4,H5,H6") m_WParser -> CloseContainer(); m_WParser -> OpenContainer(); c = m_WParser -> GetContainer(); - c -> SetIndent(m_WParser -> GetCharHeight(), HTML_INDENT_TOP); + c -> SetIndent(m_WParser -> GetCharHeight(), wxHTML_INDENT_TOP); return TRUE; }