Extract SwNumRuleTbl::dumpAsXml() from docnode
Change-Id: I39cbff3fbd21c6d0640a0fa1298c5df720525405
This commit is contained in:
@@ -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: */
|
||||
|
@@ -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 );
|
||||
|
Reference in New Issue
Block a user