diff options
author | Pavel Kysilka <goldenfish@linuxsoft.cz> | 2012-06-25 20:58:55 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2012-07-02 09:55:27 +0200 |
commit | 35210310d4519736b98873b7970715630a9bc11f (patch) | |
tree | 64ed1ae853694ba7492175f339479903f90a4754 | |
parent | 46d7c921222cdcd253f159a1cdbd85ed749c2d26 (diff) |
implement fillOpacity
Change-Id: I71580bb77b6939c9294eaf5203431d32327d5efd
-rw-r--r-- | writerfilter/source/rtftok/rtfsdrimport.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/writerfilter/source/rtftok/rtfsdrimport.cxx b/writerfilter/source/rtftok/rtfsdrimport.cxx index ab4118ceb823..156e52569472 100644 --- a/writerfilter/source/rtftok/rtfsdrimport.cxx +++ b/writerfilter/source/rtftok/rtfsdrimport.cxx @@ -149,6 +149,12 @@ void RTFSdrImport::resolve(RTFShape& rShape) xPropertySet->setPropertyValue("LineStyle", aAny); } } + else if (i->first == "fillOpacity" && xPropertySet.is()) + { + int opacity = 100 - (i->second.toInt32())*100/65536; + aAny <<= uno::makeAny(sal_uInt32(opacity)); + xPropertySet->setPropertyValue("FillTransparence", aAny); + } else if ( i->first == "pVerticies" ) { uno::Sequence<drawing::EnhancedCustomShapeParameterPair> aCoordinates; |