Typo fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44361 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -161,7 +161,7 @@ bool wxRichTextXMLHandler::ImportXML(wxRichTextBuffer* buffer, wxXmlNode* node)
|
|||||||
}
|
}
|
||||||
textChild = textChild->GetNext();
|
textChild = textChild->GetNext();
|
||||||
}
|
}
|
||||||
|
|
||||||
wxString actualText;
|
wxString actualText;
|
||||||
actualText << (wxChar) wxAtoi(text);
|
actualText << (wxChar) wxAtoi(text);
|
||||||
|
|
||||||
@@ -221,15 +221,15 @@ bool wxRichTextXMLHandler::ImportXML(wxRichTextBuffer* buffer, wxXmlNode* node)
|
|||||||
wxString sheetDescription = node->GetPropVal(wxT("description"), wxEmptyString);
|
wxString sheetDescription = node->GetPropVal(wxT("description"), wxEmptyString);
|
||||||
sheet->SetName(sheetName);
|
sheet->SetName(sheetName);
|
||||||
sheet->SetDescription(sheetDescription);
|
sheet->SetDescription(sheetDescription);
|
||||||
|
|
||||||
wxXmlNode* child = node->GetChildren();
|
wxXmlNode* child = node->GetChildren();
|
||||||
while (child)
|
while (child)
|
||||||
{
|
{
|
||||||
ImportStyleDefinition(sheet, child);
|
ImportStyleDefinition(sheet, child);
|
||||||
|
|
||||||
child = child->GetNext();
|
child = child->GetNext();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Notify that styles have changed. If this is vetoed by the app,
|
// Notify that styles have changed. If this is vetoed by the app,
|
||||||
// the new sheet will be deleted. If it is not vetoed, the
|
// the new sheet will be deleted. If it is not vetoed, the
|
||||||
// old sheet will be deleted and replaced with the new one.
|
// old sheet will be deleted and replaced with the new one.
|
||||||
@@ -253,13 +253,13 @@ bool wxRichTextXMLHandler::ImportXML(wxRichTextBuffer* buffer, wxXmlNode* node)
|
|||||||
|
|
||||||
bool wxRichTextXMLHandler::ImportStyleDefinition(wxRichTextStyleSheet* sheet, wxXmlNode* node)
|
bool wxRichTextXMLHandler::ImportStyleDefinition(wxRichTextStyleSheet* sheet, wxXmlNode* node)
|
||||||
{
|
{
|
||||||
wxString styleType = node->GetName();
|
wxString styleType = node->GetName();
|
||||||
wxString styleName = node->GetPropVal(wxT("name"), wxEmptyString);
|
wxString styleName = node->GetPropVal(wxT("name"), wxEmptyString);
|
||||||
wxString baseStyleName = node->GetPropVal(wxT("basestyle"), wxEmptyString);
|
wxString baseStyleName = node->GetPropVal(wxT("basestyle"), wxEmptyString);
|
||||||
|
|
||||||
if (styleName.IsEmpty())
|
if (styleName.IsEmpty())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (styleType == wxT("characterstyle"))
|
if (styleType == wxT("characterstyle"))
|
||||||
{
|
{
|
||||||
wxRichTextCharacterStyleDefinition* def = new wxRichTextCharacterStyleDefinition(styleName);
|
wxRichTextCharacterStyleDefinition* def = new wxRichTextCharacterStyleDefinition(styleName);
|
||||||
@@ -276,7 +276,7 @@ bool wxRichTextXMLHandler::ImportStyleDefinition(wxRichTextStyleSheet* sheet, wx
|
|||||||
}
|
}
|
||||||
child = child->GetNext();
|
child = child->GetNext();
|
||||||
}
|
}
|
||||||
|
|
||||||
sheet->AddCharacterStyle(def);
|
sheet->AddCharacterStyle(def);
|
||||||
}
|
}
|
||||||
else if (styleType == wxT("paragraphstyle"))
|
else if (styleType == wxT("paragraphstyle"))
|
||||||
@@ -319,7 +319,7 @@ bool wxRichTextXMLHandler::ImportStyleDefinition(wxRichTextStyleSheet* sheet, wx
|
|||||||
|
|
||||||
wxString styleLevel = child->GetPropVal(wxT("level"), wxEmptyString);
|
wxString styleLevel = child->GetPropVal(wxT("level"), wxEmptyString);
|
||||||
if (styleLevel.IsEmpty())
|
if (styleLevel.IsEmpty())
|
||||||
{
|
{
|
||||||
def->SetStyle(attr);
|
def->SetStyle(attr);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -336,7 +336,7 @@ bool wxRichTextXMLHandler::ImportStyleDefinition(wxRichTextStyleSheet* sheet, wx
|
|||||||
|
|
||||||
sheet->AddListStyle(def);
|
sheet->AddListStyle(def);
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -612,7 +612,7 @@ bool wxRichTextXMLHandler::DoSaveFile(wxRichTextBuffer *buffer, wxOutputStream&
|
|||||||
|
|
||||||
|
|
||||||
bool success = ExportXML(stream, convMem, convFile, *buffer, level);
|
bool success = ExportXML(stream, convMem, convFile, *buffer, level);
|
||||||
|
|
||||||
OutputString(stream, wxT("\n</richtext>") , NULL, NULL);
|
OutputString(stream, wxT("\n</richtext>") , NULL, NULL);
|
||||||
OutputString(stream, wxT("\n"), NULL, NULL);
|
OutputString(stream, wxT("\n"), NULL, NULL);
|
||||||
|
|
||||||
@@ -636,15 +636,15 @@ bool wxRichTextXMLHandler::ExportXML(wxOutputStream& stream, wxMBConv* convMem,
|
|||||||
objectName = wxT("image");
|
objectName = wxT("image");
|
||||||
else
|
else
|
||||||
objectName = wxT("object");
|
objectName = wxT("object");
|
||||||
|
|
||||||
bool terminateTag = true;
|
bool terminateTag = true;
|
||||||
|
|
||||||
if (obj.IsKindOf(CLASSINFO(wxRichTextPlainText)))
|
if (obj.IsKindOf(CLASSINFO(wxRichTextPlainText)))
|
||||||
{
|
{
|
||||||
wxRichTextPlainText& textObj = (wxRichTextPlainText&) obj;
|
wxRichTextPlainText& textObj = (wxRichTextPlainText&) obj;
|
||||||
|
|
||||||
wxString style = CreateStyle(obj.GetAttributes(), false);
|
wxString style = CreateStyle(obj.GetAttributes(), false);
|
||||||
|
|
||||||
int i;
|
int i;
|
||||||
int last = 0;
|
int last = 0;
|
||||||
const wxString& text = textObj.GetText();
|
const wxString& text = textObj.GetText();
|
||||||
@@ -672,22 +672,22 @@ bool wxRichTextXMLHandler::ExportXML(wxOutputStream& stream, wxMBConv* convMem,
|
|||||||
OutputStringEnt(stream, fragment, convMem, convFile);
|
OutputStringEnt(stream, fragment, convMem, convFile);
|
||||||
|
|
||||||
OutputString(stream, wxT("</text>"), convMem, convFile);
|
OutputString(stream, wxT("</text>"), convMem, convFile);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Output this character as a number in a separate tag, because XML can't cope
|
// Output this character as a number in a separate tag, because XML can't cope
|
||||||
// with entities below 32 except for 9, 10 and 13
|
// with entities below 32 except for 9, 10 and 13
|
||||||
last = i + 1;
|
last = i + 1;
|
||||||
OutputIndentation(stream, indent);
|
OutputIndentation(stream, indent);
|
||||||
OutputString(stream, wxT("<symbol"), convMem, convFile);
|
OutputString(stream, wxT("<symbol"), convMem, convFile);
|
||||||
|
|
||||||
OutputString(stream, style + wxT(">"), convMem, convFile);
|
OutputString(stream, style + wxT(">"), convMem, convFile);
|
||||||
OutputString(stream, wxString::Format(wxT("%d"), c), convMem, convFile);
|
OutputString(stream, wxString::Format(wxT("%d"), c), convMem, convFile);
|
||||||
|
|
||||||
OutputString(stream, wxT("</symbol>"), convMem, convFile);
|
OutputString(stream, wxT("</symbol>"), convMem, convFile);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
wxString fragment;
|
wxString fragment;
|
||||||
if (last == 0)
|
if (last == 0)
|
||||||
fragment = text;
|
fragment = text;
|
||||||
@@ -749,7 +749,7 @@ bool wxRichTextXMLHandler::ExportXML(wxOutputStream& stream, wxMBConv* convMem,
|
|||||||
isPara = true;
|
isPara = true;
|
||||||
|
|
||||||
wxString style = CreateStyle(obj.GetAttributes(), isPara);
|
wxString style = CreateStyle(obj.GetAttributes(), isPara);
|
||||||
|
|
||||||
if (objectName == wxT("paragraphlayout") && ((wxRichTextParagraphLayoutBox&) obj).GetPartialParagraph())
|
if (objectName == wxT("paragraphlayout") && ((wxRichTextParagraphLayoutBox&) obj).GetPartialParagraph())
|
||||||
style << wxT(" partialparagraph=\"true\"");
|
style << wxT(" partialparagraph=\"true\"");
|
||||||
|
|
||||||
@@ -775,32 +775,32 @@ bool wxRichTextXMLHandler::ExportXML(wxOutputStream& stream, wxMBConv* convMem,
|
|||||||
|
|
||||||
bool wxRichTextXMLHandler::ExportStyleDefinition(wxOutputStream& stream, wxMBConv* convMem, wxMBConv* convFile, wxRichTextStyleDefinition* def, int level)
|
bool wxRichTextXMLHandler::ExportStyleDefinition(wxOutputStream& stream, wxMBConv* convMem, wxMBConv* convFile, wxRichTextStyleDefinition* def, int level)
|
||||||
{
|
{
|
||||||
wxRichTextCharacterStyleDefinition* charDef = wxDynamicCast(def, wxRichTextCharacterStyleDefinition);
|
wxRichTextCharacterStyleDefinition* charDef = wxDynamicCast(def, wxRichTextCharacterStyleDefinition);
|
||||||
wxRichTextParagraphStyleDefinition* paraDef = wxDynamicCast(def, wxRichTextParagraphStyleDefinition);
|
wxRichTextParagraphStyleDefinition* paraDef = wxDynamicCast(def, wxRichTextParagraphStyleDefinition);
|
||||||
wxRichTextListStyleDefinition* listDef = wxDynamicCast(def, wxRichTextListStyleDefinition);
|
wxRichTextListStyleDefinition* listDef = wxDynamicCast(def, wxRichTextListStyleDefinition);
|
||||||
|
|
||||||
wxString baseStyle = def->GetBaseStyle();
|
wxString baseStyle = def->GetBaseStyle();
|
||||||
wxString baseStyleProp;
|
wxString baseStyleProp;
|
||||||
if (!baseStyle.IsEmpty())
|
if (!baseStyle.IsEmpty())
|
||||||
baseStyleProp = wxT(" basestyle=\"") + baseStyle + wxT("\"");
|
baseStyleProp = wxT(" basestyle=\"") + baseStyle + wxT("\"");
|
||||||
|
|
||||||
wxString descr = def->GetDescription();
|
wxString descr = def->GetDescription();
|
||||||
wxString descrProp;
|
wxString descrProp;
|
||||||
if (!descr.IsEmpty())
|
if (!descr.IsEmpty())
|
||||||
descrProp = wxT(" description=\"") + descr + wxT("\"");
|
descrProp = wxT(" description=\"") + descr + wxT("\"");
|
||||||
|
|
||||||
if (charDef)
|
if (charDef)
|
||||||
{
|
{
|
||||||
OutputIndentation(stream, level);
|
OutputIndentation(stream, level);
|
||||||
OutputString(stream, wxT("<characterstyle") + baseStyleProp + descrProp + wxT(">"), convMem, convFile);
|
OutputString(stream, wxT("<characterstyle") + baseStyleProp + descrProp + wxT(">"), convMem, convFile);
|
||||||
|
|
||||||
level ++;
|
level ++;
|
||||||
|
|
||||||
wxString style = CreateStyle(def->GetStyle(), false);
|
wxString style = CreateStyle(def->GetStyle(), false);
|
||||||
|
|
||||||
OutputIndentation(stream, level);
|
OutputIndentation(stream, level);
|
||||||
OutputString(stream, wxT("<style ") + style + wxT(">"), convMem, convFile);
|
OutputString(stream, wxT("<style ") + style + wxT(">"), convMem, convFile);
|
||||||
|
|
||||||
OutputIndentation(stream, level);
|
OutputIndentation(stream, level);
|
||||||
OutputString(stream, wxT("</style>"), convMem, convFile);
|
OutputString(stream, wxT("</style>"), convMem, convFile);
|
||||||
|
|
||||||
@@ -812,19 +812,19 @@ bool wxRichTextXMLHandler::ExportStyleDefinition(wxOutputStream& stream, wxMBCon
|
|||||||
else if (listDef)
|
else if (listDef)
|
||||||
{
|
{
|
||||||
OutputIndentation(stream, level);
|
OutputIndentation(stream, level);
|
||||||
|
|
||||||
if (!listDef->GetNextStyle().IsEmpty())
|
if (!listDef->GetNextStyle().IsEmpty())
|
||||||
baseStyleProp << wxT(" basestyle=\"") << listDef->GetNextStyle() << wxT("\"");
|
baseStyleProp << wxT(" basestyle=\"") << listDef->GetNextStyle() << wxT("\"");
|
||||||
|
|
||||||
OutputString(stream, wxT("<liststyle") + baseStyleProp + descrProp + wxT(">"), convMem, convFile);
|
OutputString(stream, wxT("<liststyle") + baseStyleProp + descrProp + wxT(">"), convMem, convFile);
|
||||||
|
|
||||||
level ++;
|
level ++;
|
||||||
|
|
||||||
wxString style = CreateStyle(def->GetStyle(), false);
|
wxString style = CreateStyle(def->GetStyle(), false);
|
||||||
|
|
||||||
OutputIndentation(stream, level);
|
OutputIndentation(stream, level);
|
||||||
OutputString(stream, wxT("<style ") + style + wxT(">"), convMem, convFile);
|
OutputString(stream, wxT("<style ") + style + wxT(">"), convMem, convFile);
|
||||||
|
|
||||||
OutputIndentation(stream, level);
|
OutputIndentation(stream, level);
|
||||||
OutputString(stream, wxT("</style>"), convMem, convFile);
|
OutputString(stream, wxT("</style>"), convMem, convFile);
|
||||||
|
|
||||||
@@ -839,7 +839,7 @@ bool wxRichTextXMLHandler::ExportStyleDefinition(wxOutputStream& stream, wxMBCon
|
|||||||
|
|
||||||
OutputIndentation(stream, level);
|
OutputIndentation(stream, level);
|
||||||
OutputString(stream, wxT("<style ") + levelStr + style + wxT(">"), convMem, convFile);
|
OutputString(stream, wxT("<style ") + levelStr + style + wxT(">"), convMem, convFile);
|
||||||
|
|
||||||
OutputIndentation(stream, level);
|
OutputIndentation(stream, level);
|
||||||
OutputString(stream, wxT("</style>"), convMem, convFile);
|
OutputString(stream, wxT("</style>"), convMem, convFile);
|
||||||
}
|
}
|
||||||
@@ -853,22 +853,22 @@ bool wxRichTextXMLHandler::ExportStyleDefinition(wxOutputStream& stream, wxMBCon
|
|||||||
else if (paraDef)
|
else if (paraDef)
|
||||||
{
|
{
|
||||||
OutputIndentation(stream, level);
|
OutputIndentation(stream, level);
|
||||||
|
|
||||||
if (!listDef->GetNextStyle().IsEmpty())
|
if (!paraDef->GetNextStyle().IsEmpty())
|
||||||
baseStyleProp << wxT(" basestyle=\"") << listDef->GetNextStyle() << wxT("\"");
|
baseStyleProp << wxT(" basestyle=\"") << paraDef->GetNextStyle() << wxT("\"");
|
||||||
|
|
||||||
OutputString(stream, wxT("<paragraphstyle") + baseStyleProp + descrProp + wxT(">"), convMem, convFile);
|
OutputString(stream, wxT("<paragraphstyle") + baseStyleProp + descrProp + wxT(">"), convMem, convFile);
|
||||||
|
|
||||||
level ++;
|
level ++;
|
||||||
|
|
||||||
wxString style = CreateStyle(def->GetStyle(), false);
|
wxString style = CreateStyle(def->GetStyle(), false);
|
||||||
|
|
||||||
OutputIndentation(stream, level);
|
OutputIndentation(stream, level);
|
||||||
OutputString(stream, wxT("<style ") + style + wxT(">"), convMem, convFile);
|
OutputString(stream, wxT("<style ") + style + wxT(">"), convMem, convFile);
|
||||||
|
|
||||||
OutputIndentation(stream, level);
|
OutputIndentation(stream, level);
|
||||||
OutputString(stream, wxT("</style>"), convMem, convFile);
|
OutputString(stream, wxT("</style>"), convMem, convFile);
|
||||||
|
|
||||||
level --;
|
level --;
|
||||||
|
|
||||||
OutputIndentation(stream, level);
|
OutputIndentation(stream, level);
|
||||||
@@ -895,7 +895,7 @@ wxString wxRichTextXMLHandler::CreateStyle(const wxTextAttrEx& attr, bool isPara
|
|||||||
{
|
{
|
||||||
if (attr.HasFontSize())
|
if (attr.HasFontSize())
|
||||||
str << wxT(" fontsize=\"") << attr.GetFont().GetPointSize() << wxT("\"");
|
str << wxT(" fontsize=\"") << attr.GetFont().GetPointSize() << wxT("\"");
|
||||||
|
|
||||||
//if (attr.HasFontFamily())
|
//if (attr.HasFontFamily())
|
||||||
// str << wxT(" fontfamily=\"") << attr.GetFont().GetFamily() << wxT("\"");
|
// str << wxT(" fontfamily=\"") << attr.GetFont().GetFamily() << wxT("\"");
|
||||||
|
|
||||||
@@ -963,7 +963,7 @@ wxString wxRichTextXMLHandler::CreateStyle(const wxTextAttrEx& attr, bool isPara
|
|||||||
str << wxT(" bulletsymbol=\"") << (int) (attr.GetBulletText()[0]) << wxT("\"");
|
str << wxT(" bulletsymbol=\"") << (int) (attr.GetBulletText()[0]) << wxT("\"");
|
||||||
else
|
else
|
||||||
str << wxT(" bullettext=\"") << attr.GetBulletText() << wxT("\"");
|
str << wxT(" bullettext=\"") << attr.GetBulletText() << wxT("\"");
|
||||||
|
|
||||||
str << wxT(" bulletfont=\"") << attr.GetBulletFont() << wxT("\"");
|
str << wxT(" bulletfont=\"") << attr.GetBulletFont() << wxT("\"");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -972,13 +972,13 @@ wxString wxRichTextXMLHandler::CreateStyle(const wxTextAttrEx& attr, bool isPara
|
|||||||
|
|
||||||
if (attr.HasURL())
|
if (attr.HasURL())
|
||||||
str << wxT(" url=\"") << attr.GetURL() << wxT("\"");
|
str << wxT(" url=\"") << attr.GetURL() << wxT("\"");
|
||||||
|
|
||||||
if (!attr.GetParagraphStyleName().empty())
|
if (!attr.GetParagraphStyleName().empty())
|
||||||
str << wxT(" parstyle=\"") << wxString(attr.GetParagraphStyleName()) << wxT("\"");
|
str << wxT(" parstyle=\"") << wxString(attr.GetParagraphStyleName()) << wxT("\"");
|
||||||
|
|
||||||
if (!attr.GetListStyleName().empty())
|
if (!attr.GetListStyleName().empty())
|
||||||
str << wxT(" liststyle=\"") << wxString(attr.GetListStyleName()) << wxT("\"");
|
str << wxT(" liststyle=\"") << wxString(attr.GetListStyleName()) << wxT("\"");
|
||||||
|
|
||||||
if (attr.HasTabs())
|
if (attr.HasTabs())
|
||||||
{
|
{
|
||||||
str << wxT(" tabs=\"");
|
str << wxT(" tabs=\"");
|
||||||
@@ -989,9 +989,9 @@ wxString wxRichTextXMLHandler::CreateStyle(const wxTextAttrEx& attr, bool isPara
|
|||||||
str << wxT(",");
|
str << wxT(",");
|
||||||
str << attr.GetTabs()[i];
|
str << attr.GetTabs()[i];
|
||||||
}
|
}
|
||||||
str << wxT("\"");
|
str << wxT("\"");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (attr.HasPageBreak())
|
if (attr.HasPageBreak())
|
||||||
{
|
{
|
||||||
str << wxT(" pagebreak=\"1\"");
|
str << wxT(" pagebreak=\"1\"");
|
||||||
@@ -1014,7 +1014,7 @@ bool wxRichTextXMLHandler::GetStyle(wxTextAttrEx& attr, wxXmlNode* node, bool is
|
|||||||
int fontWeight = wxNORMAL;
|
int fontWeight = wxNORMAL;
|
||||||
int fontStyle = wxNORMAL;
|
int fontStyle = wxNORMAL;
|
||||||
bool fontUnderlined = false;
|
bool fontUnderlined = false;
|
||||||
|
|
||||||
int fontFlags = 0;
|
int fontFlags = 0;
|
||||||
|
|
||||||
fontFacename = node->GetPropVal(wxT("fontface"), wxEmptyString);
|
fontFacename = node->GetPropVal(wxT("fontface"), wxEmptyString);
|
||||||
@@ -1053,15 +1053,15 @@ bool wxRichTextXMLHandler::GetStyle(wxTextAttrEx& attr, wxXmlNode* node, bool is
|
|||||||
fontUnderlined = wxAtoi(value) != 0;
|
fontUnderlined = wxAtoi(value) != 0;
|
||||||
fontFlags |= wxTEXT_ATTR_FONT_UNDERLINE;
|
fontFlags |= wxTEXT_ATTR_FONT_UNDERLINE;
|
||||||
}
|
}
|
||||||
|
|
||||||
attr.SetFlags(fontFlags);
|
attr.SetFlags(fontFlags);
|
||||||
|
|
||||||
if (attr.HasFlag(wxTEXT_ATTR_FONT))
|
if (attr.HasFlag(wxTEXT_ATTR_FONT))
|
||||||
attr.SetFont(* wxTheFontList->FindOrCreateFont(fontSize, fontFamily, fontStyle, fontWeight, fontUnderlined, fontFacename));
|
attr.SetFont(* wxTheFontList->FindOrCreateFont(fontSize, fontFamily, fontStyle, fontWeight, fontUnderlined, fontFacename));
|
||||||
|
|
||||||
// Restore correct font flags
|
// Restore correct font flags
|
||||||
attr.SetFlags(fontFlags);
|
attr.SetFlags(fontFlags);
|
||||||
|
|
||||||
value = node->GetPropVal(wxT("textcolor"), wxEmptyString);
|
value = node->GetPropVal(wxT("textcolor"), wxEmptyString);
|
||||||
if (!value.empty())
|
if (!value.empty())
|
||||||
{
|
{
|
||||||
@@ -1106,7 +1106,7 @@ bool wxRichTextXMLHandler::GetStyle(wxTextAttrEx& attr, wxXmlNode* node, bool is
|
|||||||
int leftSubIndent = 0;
|
int leftSubIndent = 0;
|
||||||
int leftIndent = 0;
|
int leftIndent = 0;
|
||||||
bool hasLeftIndent = false;
|
bool hasLeftIndent = false;
|
||||||
|
|
||||||
value = node->GetPropVal(wxT("leftindent"), wxEmptyString);
|
value = node->GetPropVal(wxT("leftindent"), wxEmptyString);
|
||||||
if (!value.empty())
|
if (!value.empty())
|
||||||
{
|
{
|
||||||
@@ -1176,11 +1176,11 @@ bool wxRichTextXMLHandler::GetStyle(wxTextAttrEx& attr, wxXmlNode* node, bool is
|
|||||||
value = node->GetPropVal(wxT("parstyle"), wxEmptyString);
|
value = node->GetPropVal(wxT("parstyle"), wxEmptyString);
|
||||||
if (!value.empty())
|
if (!value.empty())
|
||||||
attr.SetParagraphStyleName(value);
|
attr.SetParagraphStyleName(value);
|
||||||
|
|
||||||
value = node->GetPropVal(wxT("liststyle"), wxEmptyString);
|
value = node->GetPropVal(wxT("liststyle"), wxEmptyString);
|
||||||
if (!value.empty())
|
if (!value.empty())
|
||||||
attr.SetListStyleName(value);
|
attr.SetListStyleName(value);
|
||||||
|
|
||||||
value = node->GetPropVal(wxT("tabs"), wxEmptyString);
|
value = node->GetPropVal(wxT("tabs"), wxEmptyString);
|
||||||
if (!value.empty())
|
if (!value.empty())
|
||||||
{
|
{
|
||||||
@@ -1193,7 +1193,7 @@ bool wxRichTextXMLHandler::GetStyle(wxTextAttrEx& attr, wxXmlNode* node, bool is
|
|||||||
}
|
}
|
||||||
attr.SetTabs(tabs);
|
attr.SetTabs(tabs);
|
||||||
}
|
}
|
||||||
|
|
||||||
value = node->GetPropVal(wxT("pagebreak"), wxEmptyString);
|
value = node->GetPropVal(wxT("pagebreak"), wxEmptyString);
|
||||||
if (!value.IsEmpty())
|
if (!value.IsEmpty())
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user