+ wxRichTextParagraphStyleDefinition* indentedPara2 = new wxRichTextParagraphStyleDefinition(wxT("Red Bold Indented"));
+ wxRichTextAttr indentedAttr2;
+ indentedAttr2.SetFontFaceName(romanFont.GetFaceName());
+ indentedAttr2.SetFontSize(12);
+ indentedAttr2.SetFontWeight(wxBOLD);
+ indentedAttr2.SetTextColour(*wxRED);
+ indentedAttr2.SetFontSize(12);
+ indentedAttr2.SetLeftIndent(100, 0);
+ // We want to affect indentation, font and text colour
+ indentedAttr2.SetFlags(wxTEXT_ATTR_LEFT_INDENT|wxTEXT_ATTR_RIGHT_INDENT|wxTEXT_ATTR_FONT|wxTEXT_ATTR_TEXT_COLOUR);
+ indentedPara2->SetStyle(indentedAttr2);
+
+ m_styleSheet->AddParagraphStyle(indentedPara2);
+