str << wxT("<table border=0 cellpadding=0 cellspacing=0><tr><td width=\"100%\">");
- str << wxString::Format(wxT("<font face=\"%s\" size=\"%i\" color=\"#%02X%02X%02X\" >"),
- currentParaStyle.GetFont().GetFaceName(), Pt_To_Size( currentParaStyle.GetFont().GetPointSize() ),
+ str << wxString::Format(wxT("<font face=\"%s\" size=\"%ld\" color=\"#%02X%02X%02X\" >"),
+ currentParaStyle.GetFont().GetFaceName().c_str(), Pt_To_Size( currentParaStyle.GetFont().GetPointSize() ),
currentParaStyle.GetTextColour().Red(), currentParaStyle.GetTextColour().Green(),
currentParaStyle.GetTextColour().Blue());
//Get the appropriate tag, an ol for numerical values, an ul for dot, square etc.
wxString tag;
TypeOfList(thisStyle, tag);
- str << wxString::Format(wxT("%s<li>"), tag);
+ str << tag << wxT("<li>");
}
}
else
//Get the appropriate tag, an ol for numerical values, an ul for dot, square etc.
wxString tag;
TypeOfList(thisStyle, tag);
- str << wxString::Format(wxT("%s<li>"), tag);
+ str << tag << wxT("<li>");
//Now we have a list, mark it.
m_list = true;
{
if( thisStyle.GetLeftSubIndent() < 0 )
{
- wxString symbolic_indent = SymbolicIndent(~thisStyle.GetLeftSubIndent());
- str << wxString::Format(wxT("%s"), symbolic_indent);
+ str << SymbolicIndent(~thisStyle.GetLeftSubIndent());
}
}
else
{
if( thisStyle.GetLeftSubIndent() < 0 )
{
- wxString symbolic_indent = SymbolicIndent(~thisStyle.GetLeftSubIndent());
- str << wxString::Format(wxT("%s"), symbolic_indent);
+ str << SymbolicIndent(~thisStyle.GetLeftSubIndent());
}
break;
}
//Is there any change on the font properties of the item
if( thisStyle.GetFont().GetFaceName() != currentStyle.GetFont().GetFaceName() )
- style += wxString::Format(wxT(" face=\"%s\""), thisStyle.GetFont().GetFaceName());
+ style += wxString::Format(wxT(" face=\"%s\""), thisStyle.GetFont().GetFaceName().c_str());
if( thisStyle.GetFont().GetPointSize() != currentStyle.GetFont().GetPointSize() )
- style += wxString::Format(wxT(" size=\"%i\""), Pt_To_Size(thisStyle.GetFont().GetPointSize()) );
+ style += wxString::Format(wxT(" size=\"%ld\""), Pt_To_Size(thisStyle.GetFont().GetPointSize()) );
if( thisStyle.GetTextColour() != currentStyle.GetTextColour() )
style += wxString::Format(wxT(" color=\"#%02X%02X%02X\""), thisStyle.GetTextColour().Red(),
thisStyle.GetTextColour().Green(), thisStyle.GetTextColour().Blue());
- if( style.size() ){str << wxString::Format(wxT("<font %s >"), style); m_font = true;}
+ if( style.size() )
+ {
+ str << wxString::Format(wxT("<font %s >"), style.c_str());
+ m_font = true;
+ }
if( thisStyle.GetFont().GetWeight() == wxBOLD )
str << wxT("<b>");
{
wxTextOutputStream str(stream);
wxString align = GetAlignment( thisStyle );
- str << wxString::Format(wxT("<p align=\"%s\">"), align);
+ str << wxString::Format(wxT("<p align=\"%s\">"), align.c_str());
}
}
str << wxT("<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr>");
wxString symbolic_indent = SymbolicIndent( (thisStyle.GetLeftIndent() + thisStyle.GetLeftSubIndent()) - m_indent );
- str << wxString::Format( wxT("<td>%s</td>"), symbolic_indent );
+ str << wxString::Format( wxT("<td>%s</td>"), symbolic_indent.c_str() );
str << wxT("<td width=\"100%\">");
if( thisStyle.GetLeftSubIndent() < 0 )
{
- symbolic_indent = SymbolicIndent(~thisStyle.GetLeftSubIndent());
- str << wxString::Format(wxT("%s"), symbolic_indent);
+ str << SymbolicIndent(~thisStyle.GetLeftSubIndent());
}
}
str << wxT("<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr>");
wxString symbolic_indent = SymbolicIndent( (thisStyle.GetLeftIndent() - m_indent) - 100);
- str << wxString::Format( wxT("<td>%s</td>"), symbolic_indent );
+ str << wxString::Format( wxT("<td>%s</td>"), symbolic_indent.c_str() );
str << wxT("<td width=\"100%\">");
}
return in;
}
-wxChar* wxRichTextHTMLHandler::GetMimeType(int imageType)
+const wxChar* wxRichTextHTMLHandler::GetMimeType(int imageType)
{
switch(imageType)
{
//otherwise encoder will fail
//hmmm.. Does wxT macro define a char as 16 bit value
//when compiling with UNICODE option?
- const static wxChar* enc64 = wxT("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/");
+ static const wxChar enc64[] = wxT("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/");
wxChar* output = new wxChar[4*((in_len+2)/3)+1];
wxChar* p = output;