Commit ccb47b0b authored by ElenaSubbotina's avatar ElenaSubbotina

.

parent 8aefacd4
......@@ -98,14 +98,19 @@ namespace PPTX
{
public:
WritingElement_AdditionConstructors(RunProperties)
PPTX_LOGIC_BASE2(RunProperties)
RunProperties()
{
m_name = L"a:rPr";
}
virtual OOX::EElementType getType () const
{
return OOX::et_a_rPr;
}
virtual void fromXML(XmlUtils::CXmlLiteReader& oReader)
{
m_name = oReader.GetName();
ReadAttributes( oReader );
if ( oReader.IsEmptyNode() )
......@@ -114,34 +119,34 @@ namespace PPTX
int nParentDepth = oReader.GetDepth();
while( oReader.ReadNextSiblingNode( nParentDepth ) )
{
std::wstring sName = oReader.GetName();
std::wstring sName = XmlUtils::GetNameNoNS(oReader.GetName());
if (L"a:blipFill" == sName ||
L"a:gradFill" == sName ||
L"a:grpFill" == sName ||
L"a:noFill" == sName ||
L"a:pattFill" == sName ||
L"a:solidFill" == sName )
if (L"blipFill" == sName ||
L"gradFill" == sName ||
L"grpFill" == sName ||
L"noFill" == sName ||
L"pattFill" == sName ||
L"solidFill" == sName )
{
Fill.fromXML(oReader);
}
else if ( _T("a:ln") == sName )
else if ( _T("ln") == sName )
ln = oReader;
else if ( _T("a:cs") == sName )
else if ( _T("cs") == sName )
cs = oReader;
else if ( _T("a:ea") == sName )
else if ( _T("ea") == sName )
ea = oReader;
else if ( _T("a:latin") == sName )
else if ( _T("latin") == sName )
latin = oReader;
else if ( _T("a:sym") == sName )
else if ( _T("sym") == sName )
sym = oReader;
else if ( _T("a:hlinkClick") == sName )
else if ( _T("hlinkClick") == sName )
hlinkClick = oReader;
else if ( _T("a:rtl") == sName )
else if ( _T("rtl") == sName )
rtl = oReader;
else if ( L"a:effectDag" == sName ||
L"a:effectLst" == sName ||
L"a:extLst" == sName )
else if ( L"effectDag" == sName ||
L"effectLst" == sName ||
L"extLst" == sName )
{
EffectList.fromXML(oReader);
}
......
......@@ -45,7 +45,11 @@ namespace PPTX
{
public:
WritingElement_AdditionConstructors(TextListStyle)
PPTX_LOGIC_BASE2(TextListStyle)
TextListStyle()
{
m_name = L"a:lstStyle";
}
virtual void fromXML(XmlUtils::CXmlNode& node)
{
......@@ -104,9 +108,6 @@ namespace PPTX
}
virtual std::wstring toXML() const
{
if (m_name.empty())
m_name = L"a:lstStyle";
XmlUtils::CNodeValue oValue;
oValue.WriteNullable(/*defPPr*/ levels[9]);
oValue.WriteNullable(/*lvl1pPr*/ levels[0]);
......
......@@ -53,8 +53,11 @@ namespace PPTX
{
public:
WritingElement_AdditionConstructors(TextParagraphPr)
PPTX_LOGIC_BASE2(TextParagraphPr)
TextParagraphPr()
{
m_name = L"a:pPr";
}
TextParagraphPr& operator=(const TextParagraphPr& oSrc)
{
parentFile = oSrc.parentFile;
......@@ -92,6 +95,7 @@ namespace PPTX
virtual void fromXML(XmlUtils::CXmlLiteReader& oReader)
{
m_name = oReader.GetName();
ReadAttributes( oReader );
if ( oReader.IsEmptyNode() )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment