diff options
author | Artur Dorda <artur.dorda+libo@gmail.com> | 2012-06-16 01:52:24 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-07-12 03:10:13 +0200 |
commit | 89683e605855995450320c9751b4a6832a1baa58 (patch) | |
tree | 6766d4176cb832b4b51590bdc8f4d29d53b37465 /drawinglayer/source/dumper | |
parent | 3d766ba84cad3227d0ce62eaf44e8328479907e9 (diff) |
Added CustomShapeData property
Change-Id: I9b41a8b427098126224bff268bf0b9be9ec3e2ef
Diffstat (limited to 'drawinglayer/source/dumper')
-rw-r--r-- | drawinglayer/source/dumper/XShapeDumper.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drawinglayer/source/dumper/XShapeDumper.cxx b/drawinglayer/source/dumper/XShapeDumper.cxx index 63b8a793fdef..9eb524b9fa16 100644 --- a/drawinglayer/source/dumper/XShapeDumper.cxx +++ b/drawinglayer/source/dumper/XShapeDumper.cxx @@ -1002,6 +1002,12 @@ namespace { rtl::OUStringToOString(sCustomShapeEngine, RTL_TEXTENCODING_UTF8).getStr()); } + void XShapeDumper::dumpCustomShapeDataAsAttribute(rtl::OUString sCustomShapeData, xmlTextWriterPtr xmlWriter) + { + xmlTextWriterWriteFormatAttribute(xmlWriter, BAD_CAST("customShapeData"), "%s", + rtl::OUStringToOString(sCustomShapeData, RTL_TEXTENCODING_UTF8).getStr()); + } + // methods dumping whole services void XShapeDumper::dumpTextPropertiesService(uno::Reference< beans::XPropertySet > xPropSet, xmlTextWriterPtr xmlWriter) @@ -1548,6 +1554,12 @@ namespace { if(anotherAny >>= sCustomShapeEngine) dumpCustomShapeEngineAsAttribute(sCustomShapeEngine, xmlWriter); } + { + uno::Any anotherAny = xPropSet->getPropertyValue("CustomShapeData"); + rtl::OUString sCustomShapeData; + if(anotherAny >>= sCustomShapeData) + dumpCustomShapeDataAsAttribute(sCustomShapeData, xmlWriter); + } } void XShapeDumper::dumpXShape(uno::Reference< drawing::XShape > xShape, xmlTextWriterPtr xmlWriter) |