diff options
author | Artur Dorda <artur.dorda+libo@gmail.com> | 2012-07-04 15:12:57 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-07-12 03:10:18 +0200 |
commit | 585c5e09b94d4b559383e8ffd105c4c5850b19db (patch) | |
tree | 87ade01e1a338a71dd5c012ee77bdda45da8aac4 /drawinglayer/source/dumper/EnhancedShapeDumper.cxx | |
parent | 3d15d7060c3490fbbee0c34ed54634ba7a34d456 (diff) |
Added auxiliary method for dumping EnhancedCustomShapeParameter
Change-Id: Icef3d19c36224f4afd1b1a08c08630e5d6522bf6
Diffstat (limited to 'drawinglayer/source/dumper/EnhancedShapeDumper.cxx')
-rw-r--r-- | drawinglayer/source/dumper/EnhancedShapeDumper.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drawinglayer/source/dumper/EnhancedShapeDumper.cxx b/drawinglayer/source/dumper/EnhancedShapeDumper.cxx index e3efe68c5ecd..3d2074714ed3 100644 --- a/drawinglayer/source/dumper/EnhancedShapeDumper.cxx +++ b/drawinglayer/source/dumper/EnhancedShapeDumper.cxx @@ -736,5 +736,17 @@ void EnhancedShapeDumper::dumpRefRAsAttribute(sal_Int32 aRefR) xmlTextWriterWriteFormatAttribute(xmlWriter, BAD_CAST("refR"), "%" SAL_PRIdINT32, aRefR); } +void EnhancedShapeDumper::dumpEnhancedCustomShapeParameter(drawing::EnhancedCustomShapeParameter aParameter) +{ + uno::Any aAny = aParameter.Value; + rtl::OUString sValue; + if(aAny >>= sValue) + { + xmlTextWriterWriteFormatAttribute(xmlWriter, BAD_CAST("value"), "%s", + rtl::OUStringToOString(sValue, RTL_TEXTENCODING_UTF8).getStr()); + } + sal_Int32 aType = aParameter.Type; + xmlTextWriterWriteFormatAttribute(xmlWriter, BAD_CAST("type"), "%" SAL_PRIdINT32, aType); +} |