diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2018-11-22 04:30:48 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2018-11-26 02:26:41 +0100 |
commit | 9e04fac561efd6bbfd6e43b0499b5542c0b4f526 (patch) | |
tree | 7832273e2ace02449e3a1e6380b8bcb50e64d185 /svl | |
parent | 91aba7ca4f0f8d0b08802b65bfd62fbf3532315f (diff) |
add dumpAsXml methods to more pool items
Change-Id: Ia33ac2dfa23bdc4e2990e6d028d1bae7fedfe4f5
Reviewed-on: https://gerrit.libreoffice.org/63853
Tested-by: Jenkins
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/items/intitem.cxx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/svl/source/items/intitem.cxx b/svl/source/items/intitem.cxx index 37d07926e2bf..8e8ce37ea335 100644 --- a/svl/source/items/intitem.cxx +++ b/svl/source/items/intitem.cxx @@ -138,6 +138,14 @@ SfxPoolItem* SfxInt32Item::CreateDefault() return new SfxInt32Item(); }; +void SfxInt32Item::dumpAsXml(xmlTextWriterPtr pWriter) const +{ + xmlTextWriterStartElement(pWriter, BAD_CAST("SfxInt32Item")); + 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 SfxUInt32Item @@ -147,6 +155,14 @@ SfxPoolItem* SfxUInt32Item::CreateDefault() return new SfxUInt32Item(); }; +void SfxUInt32Item::dumpAsXml(xmlTextWriterPtr pWriter) const +{ + xmlTextWriterStartElement(pWriter, BAD_CAST("SfxUInt32Item")); + xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr())); + xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"), BAD_CAST(OString::number(GetValue()).getStr())); + xmlTextWriterEndElement(pWriter); +} + SfxMetricItem::SfxMetricItem(sal_uInt16 which, sal_uInt32 nValue): SfxInt32Item(which, nValue) |