diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-01-08 09:01:28 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-01-08 09:01:45 +0100 |
commit | 0748a5f8298e2ea817e131234f5e99300ed7f9f7 (patch) | |
tree | 2a98be05537296374f0ec978f77722b5d7839524 /svx/source/xoutdev | |
parent | 9da59f23a0b100454bdc4c663db82a61f1d7ec30 (diff) |
Factor out XFillTransparenceItem::dumpAsXml() from sw
Change-Id: If8e7a8da9e0ce04dafd2354f31abc249058784a7
Diffstat (limited to 'svx/source/xoutdev')
-rw-r--r-- | svx/source/xoutdev/xattr2.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/svx/source/xoutdev/xattr2.cxx b/svx/source/xoutdev/xattr2.cxx index ac87203aa363..1daf63ab01a9 100644 --- a/svx/source/xoutdev/xattr2.cxx +++ b/svx/source/xoutdev/xattr2.cxx @@ -32,6 +32,8 @@ #include <vcl/svapp.hxx> #include <vcl/settings.hxx> +#include <libxml/xmlwriter.h> + TYPEINIT1_AUTOFACTORY(XLineTransparenceItem, SfxUInt16Item); XLineTransparenceItem::XLineTransparenceItem(sal_uInt16 nLineTransparence) : @@ -435,6 +437,14 @@ bool XFillTransparenceItem::GetPresentation } } +void XFillTransparenceItem::dumpAsXml(xmlTextWriterPtr pWriter) const +{ + xmlTextWriterStartElement(pWriter, BAD_CAST("xFillTransparenceItem")); + xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr())); + xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"), BAD_CAST(OString::number(GetValue()).getStr())); + xmlTextWriterEndElement(pWriter); +} + TYPEINIT1_AUTOFACTORY(XFormTextShadowTranspItem, SfxUInt16Item); XFormTextShadowTranspItem::XFormTextShadowTranspItem(sal_uInt16 nShdwTransparence) : |