diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-02-08 11:46:35 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-02-08 12:14:34 +0100 |
commit | b42d7e4f5d496da81e7e86f437ee275729201907 (patch) | |
tree | 6136d989f02926561c43321f798b5a35afbbad01 /svl | |
parent | 61f3f968f3c59608a17b3410630352ab0f70b4a5 (diff) |
Extract SfxItemSet::dumpAsXml() from sw
Change-Id: I30cb1a3c99ad5116cc2d014a7bbb1048fe8cb9f8
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/items/itemset.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/svl/source/items/itemset.cxx b/svl/source/items/itemset.cxx index 22105afd4e66..c69cbb48baca 100644 --- a/svl/source/items/itemset.cxx +++ b/svl/source/items/itemset.cxx @@ -21,6 +21,7 @@ #include <string.h> #include <cstdarg> +#include <libxml/xmlwriter.h> #include <svl/itemset.hxx> #include <svl/itempool.hxx> @@ -1920,4 +1921,13 @@ OString SfxItemSet::stringify() const static_cast<char const *>(aStream.GetData()), aStream.GetEndOfData()); } +void SfxItemSet::dumpAsXml(xmlTextWriterPtr pWriter) const +{ + xmlTextWriterStartElement(pWriter, BAD_CAST("sfxItemSet")); + SfxItemIter aIter(*this); + for (const SfxPoolItem* pItem = aIter.FirstItem(); pItem; pItem = aIter.NextItem()) + pItem->dumpAsXml(pWriter); + xmlTextWriterEndElement(pWriter); +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |