diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2013-04-29 16:10:00 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2013-05-02 17:00:36 +0200 |
commit | f13f3b42eb113ead6fcffba39e8fcfb31808627d (patch) | |
tree | f3dccf1454c4e05ac24f39ff464f7ac17a8da7d8 /oox/source/vml/vmldrawing.cxx | |
parent | 7dfc4da808bb26d38090f8afb0d742adabe8cedf (diff) |
place ooxml shapes properly to paragraph area (part of bnc#816583)
style="position:absolute;left:0" is relative to paragraph area,
not paragraph text area (which is different if it's indented).
Change-Id: I12a1d2b8a68aa3fa9c65b3d469118b5334f83d7f
Diffstat (limited to 'oox/source/vml/vmldrawing.cxx')
-rw-r--r-- | oox/source/vml/vmldrawing.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/oox/source/vml/vmldrawing.cxx b/oox/source/vml/vmldrawing.cxx index 88282dd7870f..8a68bd744709 100644 --- a/oox/source/vml/vmldrawing.cxx +++ b/oox/source/vml/vmldrawing.cxx @@ -25,6 +25,7 @@ #include <com/sun/star/drawing/XShapes.hpp> #include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <com/sun/star/text/HoriOrientation.hpp> +#include <com/sun/star/text/RelOrientation.hpp> #include <com/sun/star/text/VertOrientation.hpp> #include <rtl/ustring.hxx> #include "oox/core/xmlfilterbase.hxx" @@ -228,6 +229,8 @@ Reference< XShape > Drawing::createAndInsertXShape( const OUString& rService, xPropSet->setPropertyValue( OUString::createFromAscii( "VertOrient" ), makeAny( VertOrientation::NONE ) ); xPropSet->setPropertyValue( OUString::createFromAscii( "HoriOrientPosition" ), makeAny( rShapeRect.X ) ); xPropSet->setPropertyValue( OUString::createFromAscii( "VertOrientPosition" ), makeAny( rShapeRect.Y ) ); + xPropSet->setPropertyValue( OUString::createFromAscii( "HoriOrientRelation" ), makeAny( RelOrientation::FRAME ) ); + xPropSet->setPropertyValue( OUString::createFromAscii( "VertOrientRelation" ), makeAny( RelOrientation::FRAME ) ); } xShape->setSize( awt::Size( rShapeRect.Width, rShapeRect.Height ) ); } |