summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2014-12-17 09:07:10 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-12-17 09:07:38 +0100
commit53421edf6c821d9a74c32c2fd8d5eb15fb5e5fd3 (patch)
tree58f475e2b0d50088c701b709c105b4d3f507f9a8 /editeng
parent4e1e9eb2fb08fcddf076051501c875ce0766964b (diff)
Factor out SvxBrushItem::dumpAsXml() from sw
Change-Id: I5421cf5a7d1a2ff4db81d028f44a490c234b9ccf
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/items/frmitems.cxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/editeng/source/items/frmitems.cxx b/editeng/source/items/frmitems.cxx
index e4b6e0c6be97..784326db6345 100644
--- a/editeng/source/items/frmitems.cxx
+++ b/editeng/source/items/frmitems.cxx
@@ -81,6 +81,7 @@
#include <editeng/unoprnms.hxx>
#include <editeng/memberids.hrc>
#include <editeng/editerr.hxx>
+#include <libxml/xmlwriter.h>
using namespace ::editeng;
using namespace ::com::sun::star;
@@ -4102,6 +4103,19 @@ void SvxBrushItem::ApplyGraphicTransparency_Impl()
}
}
+void SvxBrushItem::dumpAsXml(xmlTextWriterPtr pWriter) const
+{
+ xmlTextWriterStartElement(pWriter, BAD_CAST("svxBrushItem"));
+ xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr()));
+ xmlTextWriterWriteAttribute(pWriter, BAD_CAST("color"), BAD_CAST(aColor.AsRGBHexString().toUtf8().getStr()));
+ xmlTextWriterWriteAttribute(pWriter, BAD_CAST("shadingValue"), BAD_CAST(OString::number(nShadingValue).getStr()));
+ xmlTextWriterWriteAttribute(pWriter, BAD_CAST("link"), BAD_CAST(maStrLink.toUtf8().getStr()));
+ xmlTextWriterWriteAttribute(pWriter, BAD_CAST("filter"), BAD_CAST(maStrFilter.toUtf8().getStr()));
+ xmlTextWriterWriteAttribute(pWriter, BAD_CAST("graphicPos"), BAD_CAST(OString::number(eGraphicPos).getStr()));
+ xmlTextWriterWriteAttribute(pWriter, BAD_CAST("loadAgain"), BAD_CAST(OString::boolean(bLoadAgain).getStr()));
+ xmlTextWriterEndElement(pWriter);
+}
+
// class SvxFrameDirectionItem ----------------------------------------------
SvxFrameDirectionItem::SvxFrameDirectionItem( SvxFrameDirection nValue ,