X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/efba2b89f15ba8757a722fc56c67f434cf960482..c2754d29034199bc158fc079f91c7bca15d40037:/src/html/m_pre.cpp diff --git a/src/html/m_pre.cpp b/src/html/m_pre.cpp index 8f0e7bb2ea..5e3a4ae9da 100644 --- a/src/html/m_pre.cpp +++ b/src/html/m_pre.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: mod_pre.cpp +// Name: m_pre.cpp // Purpose: wxHtml module for
 ... 
tag (code citation) // Author: Vaclav Slavik // RCS-ID: $Id$ @@ -11,15 +11,16 @@ #pragma implementation #endif -#include +#include "wx/wxprec.h" +#include "wx/defs.h" #if wxUSE_HTML #ifdef __BORDLANDC__ #pragma hdrstop #endif #ifndef WXPRECOMP -#include +#include "wx/wx.h" #endif @@ -27,9 +28,9 @@ #include "wx/html/m_templ.h" #include "wx/html/htmlcell.h" -#include +#include "wx/tokenzr.h" -FORCE_LINK_ME(mod_pre) +FORCE_LINK_ME(m_pre) //----------------------------------------------------------------------------- @@ -69,13 +70,14 @@ wxHtmlPRECell::wxHtmlPRECell(const wxString& s, wxDC& dc) : wxHtmlCell() while (tokenizer.HasMoreTokens()) { if (i % 10 == 0) m_Text = (wxString**) realloc(m_Text, sizeof(wxString*) * (i + 10)); tmp = tokenizer.NextToken(); - tmp.Replace(" ", " ", TRUE); - tmp.Replace(""", "\"", TRUE); - tmp.Replace("<", "<", TRUE); - tmp.Replace(">", ">", TRUE); - tmp.Replace("&", "&", TRUE); - tmp.Replace("\t", " ", TRUE); - tmp.Replace("\r", "", TRUE); + tmp.Replace(wxT("©"), wxT("(c)"), TRUE); + tmp.Replace(wxT(" "), wxT(" "), TRUE); + tmp.Replace(wxT("""), wxT("\""), TRUE); + tmp.Replace(wxT("<"), wxT("<"), TRUE); + tmp.Replace(wxT(">"), wxT(">"), TRUE); + tmp.Replace(wxT("&"), wxT("&"), TRUE); + tmp.Replace(wxT("\t"), wxT(" "), TRUE); + tmp.Replace(wxT("\r"), wxT(""), TRUE); m_Text[i++] = new wxString(tmp); dc.GetTextExtent(tmp, &x, &z, &z); @@ -131,7 +133,7 @@ TAG_HANDLER_BEGIN(PRE, "PRE") m_WParser -> SetFontBold(FALSE); m_WParser -> SetFontItalic(FALSE); m_WParser -> SetFontFixed(TRUE); - m_WParser -> SetFontSize(0); + m_WParser -> SetFontSize(3); c -> InsertCell(new wxHtmlFontCell(m_WParser -> CreateCurrentFont())); {