diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-02-15 13:34:11 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-02-15 18:31:27 +0100 |
commit | f858994c989091e3d4d5f9ea9169802583be2fe9 (patch) | |
tree | 1e625537c620801dd97ad38169a3d777aabebda4 | |
parent | 836481e35999c3722f1c4fdef8c86c8c098a2492 (diff) |
Extract SwTxtFmtColls::dumpAsXml() from docnode
Change-Id: Ie5d2865aeca0292044eaed72b8ea6c5e5316a3cb
-rw-r--r-- | sw/source/core/doc/fmtcol.cxx | 8 | ||||
-rw-r--r-- | sw/source/core/docnode/nodedump.cxx | 12 |
2 files changed, 8 insertions, 12 deletions
diff --git a/sw/source/core/doc/fmtcol.cxx b/sw/source/core/doc/fmtcol.cxx index 8f6af9c8181f..5124ec43f8f9 100644 --- a/sw/source/core/doc/fmtcol.cxx +++ b/sw/source/core/doc/fmtcol.cxx @@ -472,6 +472,14 @@ void SwTxtFmtColl::dumpAsXml(xmlTextWriterPtr pWriter) const xmlTextWriterEndElement(pWriter); } +void SwTxtFmtColls::dumpAsXml(xmlTextWriterPtr pWriter) const +{ + xmlTextWriterStartElement(pWriter, BAD_CAST("swTxtFmtColls")); + for (size_t i = 0; i < size(); ++i) + GetFmt(i)->dumpAsXml(pWriter); + xmlTextWriterEndElement(pWriter); +} + //FEATURE::CONDCOLL SwCollCondition::SwCollCondition( SwTxtFmtColl* pColl, sal_uLong nMasterCond, diff --git a/sw/source/core/docnode/nodedump.cxx b/sw/source/core/docnode/nodedump.cxx index e2910b094e8b..bd2438d42ecd 100644 --- a/sw/source/core/docnode/nodedump.cxx +++ b/sw/source/core/docnode/nodedump.cxx @@ -301,18 +301,6 @@ void SwSectionFmts::dumpAsXml(xmlTextWriterPtr w) const } } -void SwTxtFmtColls::dumpAsXml(xmlTextWriterPtr w) const -{ - WriterHelper writer(w); - if (size()) - { - writer.startElement("swtxtfmtcolls"); - for (size_t i = 0; i < size(); ++i) - GetFmt(i)->dumpAsXml(w); - writer.endElement(); - } -} - void SwTxtNode::dumpAsXml( xmlTextWriterPtr w ) const { WriterHelper writer( w ); |