sw/inc/docary.hxx | 1 + sw/source/core/docnode/nodedump.cxx | 13 +++++++++++++ 2 files changed, 14 insertions(+)
New commits: commit 5c79177089cd4038276f63577affa7c86dcaab38 Author: Miklos Vajna <vmik...@collabora.co.uk> Date: Thu Oct 10 12:44:10 2013 +0200 sw: include SwNumRuleTbl in the doc model dump Change-Id: I385bce4562e4b94102b0758ca24853892b081ea1 diff --git a/sw/inc/docary.hxx b/sw/inc/docary.hxx index db4a419..44e1d4e 100644 --- a/sw/inc/docary.hxx +++ b/sw/inc/docary.hxx @@ -135,6 +135,7 @@ public: /// the destructor will free all objects still in the vector ~SwNumRuleTbl(); sal_uInt16 GetPos(const SwNumRule* pRule) const; + void dumpAsXml(xmlTextWriterPtr w); }; struct CompareSwRedlineTbl diff --git a/sw/source/core/docnode/nodedump.cxx b/sw/source/core/docnode/nodedump.cxx index 92da056..e974653 100644 --- a/sw/source/core/docnode/nodedump.cxx +++ b/sw/source/core/docnode/nodedump.cxx @@ -115,6 +115,7 @@ void SwDoc::dumpAsXml( xmlTextWriterPtr w ) mpFldTypes->dumpAsXml( writer ); mpTxtFmtCollTbl->dumpAsXml( writer ); mpCharFmtTbl->dumpAsXml( writer ); + mpNumRuleTbl->dumpAsXml( writer ); writer.endElement(); } @@ -343,6 +344,18 @@ void SwNumRule::dumpAsXml(xmlTextWriterPtr w) writer.endElement(); } +void SwNumRuleTbl::dumpAsXml(xmlTextWriterPtr w) +{ + 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 ) { WriterHelper writer( w ); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits