diff options
author | Artur Dorda <artur.dorda+libo@gmail.com> | 2012-07-04 18:30:48 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-07-12 03:10:19 +0200 |
commit | 4b4ca8030285bd66526ff5bb2b6ea5a75a6c6bc7 (patch) | |
tree | dfe0de3f3b91f24473c2ce028e5dd99fb77d6a7b /drawinglayer/source | |
parent | 7cb81fc2ebccbf607bf0d08d65f74bb43a83d1ea (diff) |
Added dumping of StretchX & StretchY properties
Change-Id: Iddd10cb3baffbb3f40bd6af15e48bcfb7ea8317e
Diffstat (limited to 'drawinglayer/source')
-rw-r--r-- | drawinglayer/source/dumper/EnhancedShapeDumper.cxx | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/drawinglayer/source/dumper/EnhancedShapeDumper.cxx b/drawinglayer/source/dumper/EnhancedShapeDumper.cxx index dbb7f5653264..a461c47190e7 100644 --- a/drawinglayer/source/dumper/EnhancedShapeDumper.cxx +++ b/drawinglayer/source/dumper/EnhancedShapeDumper.cxx @@ -829,6 +829,18 @@ void EnhancedShapeDumper::dumpEnhancedCustomShapePathService(uno::Reference< bea if(anotherAny >>= aSegments) dumpSegmentsAsElement(aSegments); } + { + uno::Any anotherAny = xPropSet->getPropertyValue("StretchX"); + sal_Int32 aStretchX; + if(anotherAny >>= aStretchX) + dumpStretchXAsAttribute(aStretchX); + } + { + uno::Any anotherAny = xPropSet->getPropertyValue("StretchY"); + sal_Int32 aStretchY; + if(anotherAny >>= aStretchY) + dumpStretchYAsAttribute(aStretchY); + } } void EnhancedShapeDumper::dumpCoordinatesAsElement(uno::Sequence< drawing::EnhancedCustomShapeParameterPair > aCoordinates) @@ -860,4 +872,14 @@ void EnhancedShapeDumper::dumpSegmentsAsElement(uno::Sequence< drawing::Enhanced xmlTextWriterEndElement( xmlWriter ); } +void EnhancedShapeDumper::dumpStretchXAsAttribute(sal_Int32 aStretchX) +{ + xmlTextWriterWriteFormatAttribute(xmlWriter, BAD_CAST("stretchX"), "%" SAL_PRIdINT32, aStretchX); +} + +void EnhancedShapeDumper::dumpStretchYAsAttribute(sal_Int32 aStretchY) +{ + xmlTextWriterWriteFormatAttribute(xmlWriter, BAD_CAST("stretchY"), "%" SAL_PRIdINT32, aStretchY); +} + |