diff options
author | Noel Grandin <noel@peralex.com> | 2016-09-20 16:29:58 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-09-21 09:06:33 +0200 |
commit | 553f10c71a2cc92f5f5890e24948f5277e3d2758 (patch) | |
tree | 2040ea0241bc538f5372c5a9234e0cf523e00b9e /svl/source/items/cenumitm.cxx | |
parent | c33647429b179c024f0749be85c89f737a8b42db (diff) |
add dumpAsXml() to more pool items
Change-Id: I276109148bab8180ce2442f5ee69722357362453
Diffstat (limited to 'svl/source/items/cenumitm.cxx')
-rw-r--r-- | svl/source/items/cenumitm.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/svl/source/items/cenumitm.cxx b/svl/source/items/cenumitm.cxx index f17ce3c1eb55..183c7f1f967a 100644 --- a/svl/source/items/cenumitm.cxx +++ b/svl/source/items/cenumitm.cxx @@ -25,6 +25,7 @@ #include "whassert.hxx" #include <comphelper/extract.hxx> +#include <libxml/xmlwriter.h> // virtual @@ -175,6 +176,14 @@ bool SfxBoolItem::GetPresentation(SfxItemPresentation, return true; } +void SfxBoolItem::dumpAsXml(struct _xmlTextWriter* pWriter) const +{ + xmlTextWriterStartElement(pWriter, BAD_CAST("sfxBoolItem")); + xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr())); + xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"), BAD_CAST(GetValueTextByVal(m_bValue).toUtf8().getStr())); + xmlTextWriterEndElement(pWriter); +} + // virtual bool SfxBoolItem::QueryValue(css::uno::Any& rVal, sal_uInt8) const { |