git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74179
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
if (attr.HasAlignment() && attr.GetAlignment() == wxTEXT_ALIGNMENT_CENTRE)
isCentred = true;
if (attr.HasAlignment() && attr.GetAlignment() == wxTEXT_ALIGNMENT_CENTRE)
isCentred = true;
+ str << wxT("<html><head></head>");
+ str << wxT("<body");
+ if (attr.GetBackgroundColour().Ok())
+ str << wxT(" bgcolor=\"#") << ColourToHexString(attr.GetBackgroundColour()) << wxT("\"");
+ str << wxT(">");
+
if (isCentred)
str << wxT("<center>");
if (isCentred)
str << wxT("<center>");
+ str << wxT("<table");
+ if (attr.GetBackgroundColour().Ok())
+ str << wxT(" bgcolor=\"#") << ColourToHexString(attr.GetBackgroundColour()) << wxT("\"");
- str << wxT("<table><tr>");
if (attr.GetLeftIndent() > 0)
{
if (attr.GetLeftIndent() > 0)
{
if (attr.GetTextColour().IsOk())
str << wxT(" color=\"#") << ColourToHexString(attr.GetTextColour()) << wxT("\"");
if (attr.GetTextColour().IsOk())
str << wxT(" color=\"#") << ColourToHexString(attr.GetTextColour()) << wxT("\"");
+ if (attr.GetBackgroundColour().Ok())
+ str << wxT(" bgcolor=\"#") << ColourToHexString(attr.GetBackgroundColour()) << wxT("\"");
+
str << wxT(">");
bool hasBold = false;
str << wxT(">");
bool hasBold = false;
if (isCentred)
str << wxT("</center>");
if (isCentred)
str << wxT("</center>");
+ str << wxT("</body></html>");