Extract SwNumRuleTbl::dumpAsXml() from docnode

Change-Id: I39cbff3fbd21c6d0640a0fa1298c5df720525405
This commit is contained in:
Miklos Vajna
2015-02-06 22:55:54 +01:00
parent 675e1fe198
commit f58b9f56f6
2 changed files with 8 additions and 12 deletions

View File

@@ -1441,4 +1441,12 @@ namespace numfunc
}
}
void SwNumRuleTbl::dumpAsXml(xmlTextWriterPtr pWriter) const
{
xmlTextWriterStartElement(pWriter, BAD_CAST("swNumRuleTbl"));
for (SwNumRule* pNumRule : *this)
pNumRule->dumpAsXml(pWriter);
xmlTextWriterEndElement(pWriter);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@@ -373,18 +373,6 @@ void SwTxtFmtColls::dumpAsXml(xmlTextWriterPtr w) const
}
}
void SwNumRuleTbl::dumpAsXml(xmlTextWriterPtr w) const
{
if (!empty())
{
WriterHelper writer(w);
writer.startElement("swnumruletbl");
for (size_t i = 0; i < size(); ++i)
operator[](i)->dumpAsXml(w);
writer.endElement();
}
}
void SwTxtNode::dumpAsXml( xmlTextWriterPtr w ) const
{
WriterHelper writer( w );