diff options
author | Artur Dorda <artur.dorda+libo@gmail.com> | 2012-07-03 21:04:52 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-07-12 03:10:16 +0200 |
commit | 39becd1a50de51785de3428dc2a36aa257758081 (patch) | |
tree | c39c0f87d41172518c5aa11d53384d125469c99b /drawinglayer/source/dumper | |
parent | b83881ac5a8053cbbef98db6980f80d134ba792c (diff) |
Added properties Shininess & Skew
Change-Id: I8a78b918c94d769b71cc336f461318099db7b877
Diffstat (limited to 'drawinglayer/source/dumper')
-rw-r--r-- | drawinglayer/source/dumper/EnhancedShapeDumper.cxx | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/drawinglayer/source/dumper/EnhancedShapeDumper.cxx b/drawinglayer/source/dumper/EnhancedShapeDumper.cxx index dc92e425a43a..85c57876c857 100644 --- a/drawinglayer/source/dumper/EnhancedShapeDumper.cxx +++ b/drawinglayer/source/dumper/EnhancedShapeDumper.cxx @@ -134,6 +134,18 @@ void EnhancedShapeDumper::dumpEnhancedCustomShapeExtrusionService(uno::Reference if(anotherAny >>= aRotationCenter) dumpRotationCenterAsElement(aRotationCenter); } + { + uno::Any anotherAny = xPropSet->getPropertyValue("Shininess"); + double aShininess; + if(anotherAny >>= aShininess) + dumpShininessAsAttribute(aShininess); + } + { + uno::Any anotherAny = xPropSet->getPropertyValue("Skew"); + drawing::EnhancedCustomShapeParameterPair aSkew; + if(anotherAny >>= aSkew) + dumpSkewAsElement(aSkew); + } } void EnhancedShapeDumper::dumpExtrusionAsAttribute(sal_Bool bExtrusion) { @@ -291,4 +303,16 @@ void EnhancedShapeDumper::dumpRotationCenterAsElement(drawing::Direction3D aRota xmlTextWriterEndElement( xmlWriter ); } +void EnhancedShapeDumper::dumpShininessAsAttribute(double aShininess) +{ + xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("shininess"), "%f", aShininess); +} + +void EnhancedShapeDumper::dumpSkewAsElement(drawing::EnhancedCustomShapeParameterPair aSkew) +{ + xmlTextWriterStartElement(xmlWriter, BAD_CAST( "Skew" )); + dumpEnhancedCustomShapeParameterPair(aSkew); + xmlTextWriterEndElement( xmlWriter ); +} + |