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:03:25 +0200 |
commit | b70369eab6da25b6f7b8a0d4383aa41a80dab67f (patch) | |
tree | b4bbd4fd08e3b476fbbf5637289281d71bc2e11c | |
parent | bnc#779630 initial DOCX import of w:sdt's w:date (diff) | |
download | core-b70369eab6da25b6f7b8a0d4383aa41a80dab67f.tar.gz core-b70369eab6da25b6f7b8a0d4383aa41a80dab67f.zip |
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
-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 1a3530db9449..4db116432bd8 100644 --- a/oox/source/vml/vmldrawing.cxx +++ b/oox/source/vml/vmldrawing.cxx @@ -34,6 +34,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/oustringostreaminserter.hxx> #include "oox/core/xmlfilterbase.hxx" @@ -236,6 +237,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( Size( rShapeRect.Width, rShapeRect.Height ) ); } |