mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
.
This commit is contained in:
@ -115,14 +115,37 @@ namespace PPTX
|
|||||||
{
|
{
|
||||||
Paragrs.clear();
|
Paragrs.clear();
|
||||||
|
|
||||||
m_name = node.GetName();
|
m_name = node.GetName();
|
||||||
|
|
||||||
bodyPr = node.ReadNode(L"a:bodyPr");
|
std::vector<XmlUtils::CXmlNode> oNodes;
|
||||||
lstStyle = node.ReadNode(L"a:lstStyle");
|
if (node.GetNodes(_T("*"), oNodes))
|
||||||
sp3d = node.ReadNode(L"a:sp3d");
|
{
|
||||||
|
size_t count = oNodes.size();
|
||||||
|
for (size_t i = 0; i < count; ++i)
|
||||||
|
{
|
||||||
|
XmlUtils::CXmlNode& oNode = oNodes[i];
|
||||||
|
|
||||||
XmlMacroLoadArray(node, L"a:p", Paragrs, Paragraph);
|
std::wstring strName = XmlUtils::GetNameNoNS(oNode.GetName());
|
||||||
|
|
||||||
|
if (L"bodyPr" == strName)
|
||||||
|
{
|
||||||
|
bodyPr = oNode;
|
||||||
|
}
|
||||||
|
else if (L"lstStyle" == strName)
|
||||||
|
{
|
||||||
|
lstStyle = oNode;
|
||||||
|
}
|
||||||
|
else if (L"sp3d" == strName)
|
||||||
|
{
|
||||||
|
sp3d = oNode;
|
||||||
|
}
|
||||||
|
else if (L"p" == strName)
|
||||||
|
{
|
||||||
|
Paragrs.emplace_back();
|
||||||
|
Paragrs.back().fromXML(oNode);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
FillParentPointersForChilds();
|
FillParentPointersForChilds();
|
||||||
}
|
}
|
||||||
std::wstring TxBody::toXML() const
|
std::wstring TxBody::toXML() const
|
||||||
|
|||||||
Reference in New Issue
Block a user