Some documentation enhancements for wxRichTextCtrl
Comment fixes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43240 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -917,6 +917,10 @@ wxString wxRichTextXMLHandler::CreateStyle(const wxTextAttrEx& attr, bool isPara
|
||||
str << wxT(" texteffects=\"");
|
||||
str << attr.GetTextEffects();
|
||||
str << wxT("\"");
|
||||
|
||||
str << wxT(" texteffectflags=\"");
|
||||
str << attr.GetTextEffectFlags();
|
||||
str << wxT("\"");
|
||||
}
|
||||
|
||||
if (!attr.GetCharacterStyleName().empty())
|
||||
@@ -1082,6 +1086,12 @@ bool wxRichTextXMLHandler::GetStyle(wxTextAttrEx& attr, wxXmlNode* node, bool is
|
||||
attr.SetTextEffects(wxAtoi(value));
|
||||
}
|
||||
|
||||
value = node->GetPropVal(wxT("texteffectflags"), wxEmptyString);
|
||||
if (!value.IsEmpty())
|
||||
{
|
||||
attr.SetTextEffectFlags(wxAtoi(value));
|
||||
}
|
||||
|
||||
// Set paragraph attributes
|
||||
if (isPara)
|
||||
{
|
||||
|
Reference in New Issue
Block a user