Added a box style definition name to the box attribute.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70233 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1162,6 +1162,9 @@ wxString wxRichTextXMLHandler::AddAttributes(const wxRichTextAttr& attr, bool is
|
||||
if (!attr.GetListStyleName().empty())
|
||||
AddAttribute(str, wxT("liststyle"), AttributeToXML(attr.GetListStyleName()));
|
||||
|
||||
if (!attr.GetTextBoxAttr().GetBoxStyleName().empty())
|
||||
AddAttribute(str, wxT("boxstyle"), AttributeToXML(attr.GetTextBoxAttr().GetBoxStyleName()));
|
||||
|
||||
if (attr.HasTabs())
|
||||
{
|
||||
wxString strTabs;
|
||||
@@ -1451,6 +1454,9 @@ bool wxRichTextXMLHandler::AddAttributes(wxXmlNode* node, wxRichTextAttr& attr,
|
||||
if (!attr.GetListStyleName().empty())
|
||||
node->AddAttribute(wxT("liststyle"), attr.GetListStyleName());
|
||||
|
||||
if (!attr.GetTextBoxAttr().GetBoxStyleName().empty())
|
||||
node->AddAttribute(wxT("boxstyle"), attr.GetTextBoxAttr().GetBoxStyleName());
|
||||
|
||||
if (attr.HasTabs())
|
||||
{
|
||||
wxString tabs;
|
||||
@@ -1804,6 +1810,13 @@ bool wxRichTextXMLHandler::ImportStyle(wxRichTextAttr& attr, wxXmlNode* node, bo
|
||||
attr.SetListStyleName(value);
|
||||
}
|
||||
}
|
||||
else if (name == wxT("boxstyle"))
|
||||
{
|
||||
if (!value.empty())
|
||||
{
|
||||
attr.GetTextBoxAttr().SetBoxStyleName(value);
|
||||
}
|
||||
}
|
||||
else if (name == wxT("tabs"))
|
||||
{
|
||||
if (!value.empty())
|
||||
|
Reference in New Issue
Block a user