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 /editeng/source | |
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 'editeng/source')
-rw-r--r-- | editeng/source/items/textitem.cxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/editeng/source/items/textitem.cxx b/editeng/source/items/textitem.cxx index b3912754cbe4..483e83f657f7 100644 --- a/editeng/source/items/textitem.cxx +++ b/editeng/source/items/textitem.cxx @@ -28,6 +28,7 @@ #include <sal/log.hxx> #include <osl/diagnose.h> #include <unotools/fontdefs.hxx> +#include <unotools/intlwrapper.hxx> #include <vcl/outdev.hxx> #include <vcl/unohelp.hxx> #include <editeng/eeitem.hxx> @@ -1745,6 +1746,18 @@ bool SvxColorItem::GetPresentation return true; } +void SvxColorItem::dumpAsXml(xmlTextWriterPtr pWriter) const +{ + xmlTextWriterStartElement(pWriter, BAD_CAST("SvxColorItem")); + xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr())); + OUString aStr; + IntlWrapper aIntlWrapper(SvtSysLocale().GetUILanguageTag()); + GetPresentation( SfxItemPresentation::Complete, MapUnit::Map100thMM, MapUnit::Map100thMM, aStr, aIntlWrapper); + xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"), BAD_CAST(OUStringToOString(aStr, RTL_TEXTENCODING_UTF8).getStr())); + xmlTextWriterEndElement(pWriter); +} + + void SvxColorItem::SetValue( const Color& rNewCol ) { |