summaryrefslogtreecommitdiff
path: root/writerfilter
diff options
context:
space:
mode:
authorPavel Kysilka <goldenfish@linuxsoft.cz>2012-06-25 21:05:13 +0200
committerMiklos Vajna <vmiklos@suse.cz>2012-07-02 09:55:27 +0200
commit0ee9dc2f85dba7938cc5ebbfd11be8f337703484 (patch)
tree337580203836128f64e4ddfd9bedca274bf2ddcc /writerfilter
parent35210310d4519736b98873b7970715630a9bc11f (diff)
implement shape rotation
Change-Id: Ib7c76768e302556a88ae6d87770c57f31ea8d36b
Diffstat (limited to 'writerfilter')
-rw-r--r--writerfilter/source/rtftok/rtfsdrimport.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/writerfilter/source/rtftok/rtfsdrimport.cxx b/writerfilter/source/rtftok/rtfsdrimport.cxx
index 156e52569472..e6daa4570ec6 100644
--- a/writerfilter/source/rtftok/rtfsdrimport.cxx
+++ b/writerfilter/source/rtftok/rtfsdrimport.cxx
@@ -155,6 +155,11 @@ void RTFSdrImport::resolve(RTFShape& rShape)
aAny <<= uno::makeAny(sal_uInt32(opacity));
xPropertySet->setPropertyValue("FillTransparence", aAny);
}
+ else if (i->first == "rotation" && xPropertySet.is())
+ {
+ aAny <<= i->second.toInt32()*100/65536;
+ xPropertySet->setPropertyValue("RotateAngle", aAny);
+ }
else if ( i->first == "pVerticies" )
{
uno::Sequence<drawing::EnhancedCustomShapeParameterPair> aCoordinates;