summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2013-04-29 16:10:00 +0200
committerLuboš Luňák <l.lunak@suse.cz>2013-05-02 18:39:43 +0200
commit0a76bb5cd69c103c58cf013298941826bf51747c (patch)
tree2147e264243581450c7acc72e3ad549311cdc080 /oox
parent3c978c09ccee2de634169c5b6e8801ee03f04d21 (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')
-rw-r--r--oox/source/vml/vmldrawing.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/oox/source/vml/vmldrawing.cxx b/oox/source/vml/vmldrawing.cxx
index 1406ebea48d5..4fd2e0e2ef27 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"
@@ -227,6 +228,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 ) );
}