diff options
author | Artur Dorda <artur.dorda+libo@gmail.com> | 2012-06-05 02:05:32 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-07-12 03:10:00 +0200 |
commit | 9cd748dc55cceb6a44d1fa8de1b00897233151e5 (patch) | |
tree | f785f2e06647aa8b27b552d49a23bceb9b510939 /drawinglayer | |
parent | 73f620f431131a8aa920c3ac2c18a92ef25aac3e (diff) |
Way of dumping properties corrected
Change-Id: I48e269547f4ee06c5cc7ea2407997a70c6d21044
Diffstat (limited to 'drawinglayer')
-rw-r--r-- | drawinglayer/source/dumper/XShapeDumper.cxx | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/drawinglayer/source/dumper/XShapeDumper.cxx b/drawinglayer/source/dumper/XShapeDumper.cxx index 6a3b8d9a3a04..5844c0e0c9af 100644 --- a/drawinglayer/source/dumper/XShapeDumper.cxx +++ b/drawinglayer/source/dumper/XShapeDumper.cxx @@ -143,20 +143,20 @@ namespace { uno::Reference< drawing::XShapes > xShapes(xShape, uno::UNO_QUERY_THROW); dumpXShapes(xShapes, xmlWriter); } - else if(xServiceInfo->supportsService("com.sun.star.drawing.FillStyle")) + else if(xServiceInfo->supportsService("com.sun.star.drawing.FillProperties")) { - uno::Any anotherAny = xPropSet->getPropertyValue("FillStyle"); - drawing::FillStyle eFillStyle; - if( anotherAny >>= eFillStyle) + { + uno::Any anotherAny = xPropSet->getPropertyValue("FillStyle"); + drawing::FillStyle eFillStyle; + if(anotherAny >>= eFillStyle) dumpFillStyleAsAttribute(eFillStyle, xmlWriter); - } - else if(xServiceInfo->supportsService("com.sun.star.util.Color")) - { - uno::Any anotherAny = xPropSet->getPropertyValue("FillColor"); - sal_Int32 aColor; - if(anotherAny >>= aColor) + } + { - dumpFillColorAsAttribute(aColor, xmlWriter); + uno::Any anotherAny = xPropSet->getPropertyValue("FillColor"); + sal_Int32 aColor; + if(anotherAny >>= aColor) + dumpFillColorAsAttribute(aColor, xmlWriter); } } |