summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-01-20 09:10:35 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-01-20 09:11:26 +0100
commit71edf281f38a3ee839a99393cb06316c7231f3d2 (patch)
treed0e21d5dfc391781ac20db2cfb23a7523377b266 /editeng
parentbe06f3433ff7a92eba2f35f2f9764131e874450c (diff)
Factor out SvxShadowItem::dumpAsXml() from sw
Change-Id: Id25a050a9840d83cff4b390faec7478f17336524
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/items/frmitems.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/editeng/source/items/frmitems.cxx b/editeng/source/items/frmitems.cxx
index 8b68df0ffe70..2c0adcc47017 100644
--- a/editeng/source/items/frmitems.cxx
+++ b/editeng/source/items/frmitems.cxx
@@ -1589,6 +1589,17 @@ void SvxShadowItem::SetEnumValue( sal_uInt16 nVal )
SetLocation( (const SvxShadowLocation)nVal );
}
+void SvxShadowItem::dumpAsXml(xmlTextWriterPtr pWriter) const
+{
+ xmlTextWriterStartElement(pWriter, BAD_CAST("svxShadowItem"));
+ xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr()));
+ xmlTextWriterWriteAttribute(pWriter, BAD_CAST("aShadowColor"), BAD_CAST(aShadowColor.AsRGBHexString().toUtf8().getStr()));
+ xmlTextWriterWriteAttribute(pWriter, BAD_CAST("nWidth"), BAD_CAST(OString::number(nWidth).getStr()));
+ xmlTextWriterWriteAttribute(pWriter, BAD_CAST("eLocation"), BAD_CAST(OString::number(eLocation).getStr()));
+ xmlTextWriterWriteAttribute(pWriter, BAD_CAST("presentation"), BAD_CAST(EE_RESSTR(RID_SVXITEMS_SHADOW_BEGIN + eLocation).toUtf8().getStr()));
+ xmlTextWriterEndElement(pWriter);
+}
+
// class SvxBoxItem ------------------------------------------------------
SvxBoxItem::SvxBoxItem( const SvxBoxItem& rCpy ) :