diff options
Diffstat (limited to 'svl/source/items/intitem.cxx')
-rw-r--r-- | svl/source/items/intitem.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/svl/source/items/intitem.cxx b/svl/source/items/intitem.cxx index f71c72e4bf9b..a9405d7daf5a 100644 --- a/svl/source/items/intitem.cxx +++ b/svl/source/items/intitem.cxx @@ -24,6 +24,7 @@ #include <tools/bigint.hxx> #include <tools/stream.hxx> #include <svl/metitem.hxx> +#include <libxml/xmlwriter.h> // class SfxByteItem @@ -141,6 +142,13 @@ SfxFieldUnit SfxInt16Item::GetUnit() const TYPEINIT1_AUTOFACTORY(SfxUInt16Item, CntUInt16Item); +void SfxUInt16Item::dumpAsXml(xmlTextWriterPtr pWriter) const +{ + xmlTextWriterStartElement(pWriter, BAD_CAST("sfxUInt16Item")); + xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr())); + xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"), BAD_CAST(OString::number(GetValue()).getStr())); + xmlTextWriterEndElement(pWriter); +} // class SfxInt32Item |