summaryrefslogtreecommitdiff
path: root/svx/source/xoutdev
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-01-11 09:50:59 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-01-11 13:54:25 +0100
commit1aaa596af060c1427caf20b0d7fddfc955047f82 (patch)
tree82a475b330dcfbb593107fe89e638baf65691ba1 /svx/source/xoutdev
parent34870f1882c60f94e67555db09519b01706dae41 (diff)
Factor out XFillBmpStretchItem::dumpAsXml() from sw
Change-Id: I7890755f754ee21d2e6db84f169b52bf4737f524
Diffstat (limited to 'svx/source/xoutdev')
-rw-r--r--svx/source/xoutdev/xattr2.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/svx/source/xoutdev/xattr2.cxx b/svx/source/xoutdev/xattr2.cxx
index 29f5ff7eb30f..0308d87b35e4 100644
--- a/svx/source/xoutdev/xattr2.cxx
+++ b/svx/source/xoutdev/xattr2.cxx
@@ -820,6 +820,14 @@ bool XFillBmpStretchItem::GetPresentation
return true;
}
+void XFillBmpStretchItem::dumpAsXml(xmlTextWriterPtr pWriter) const
+{
+ xmlTextWriterStartElement(pWriter, BAD_CAST("xFillBmpStretchItem"));
+ xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr()));
+ xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"), BAD_CAST(OString::boolean(GetValue()).getStr()));
+ xmlTextWriterEndElement(pWriter);
+}
+
// class XFillBmpTileOffPosXItem
TYPEINIT1_AUTOFACTORY( XFillBmpPosOffsetXItem, SfxUInt16Item );