sw/source/core/doc/number.cxx | 8 ++++++++ sw/source/core/docnode/nodedump.cxx | 12 ------------ 2 files changed, 8 insertions(+), 12 deletions(-)
New commits: commit f58b9f56f6bd5866fc7235a9a638d8b309fc1a84 Author: Miklos Vajna <vmik...@collabora.co.uk> Date: Fri Feb 6 22:55:54 2015 +0100 Extract SwNumRuleTbl::dumpAsXml() from docnode Change-Id: I39cbff3fbd21c6d0640a0fa1298c5df720525405 diff --git a/sw/source/core/doc/number.cxx b/sw/source/core/doc/number.cxx index 163eda1..d072d80 100644 --- a/sw/source/core/doc/number.cxx +++ b/sw/source/core/doc/number.cxx @@ -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: */ diff --git a/sw/source/core/docnode/nodedump.cxx b/sw/source/core/docnode/nodedump.cxx index 64ea367..ec2eef0 100644 --- a/sw/source/core/docnode/nodedump.cxx +++ b/sw/source/core/docnode/nodedump.cxx @@ -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 ); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits