summaryrefslogtreecommitdiff
path: root/writerfilter
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2013-04-11 15:20:11 +0200
committerMiklos Vajna <vmiklos@suse.cz>2013-04-11 15:22:50 +0200
commit76bf4dae2f992e013b0cbbfa7dbe5cc692fa9f83 (patch)
treefcfbc9ec76b30f38679440fc8e89b4b6577ec171 /writerfilter
parent50b57163b1c0ccaa1ab68e1d73f29c861462f0fd (diff)
RTF shape import: fix default horizontal/vertical orient relation
Change-Id: Icf324d2762f292c7f5f2ec9502f58c4961b28512
Diffstat (limited to 'writerfilter')
-rw-r--r--writerfilter/source/rtftok/rtfsdrimport.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/writerfilter/source/rtftok/rtfsdrimport.cxx b/writerfilter/source/rtftok/rtfsdrimport.cxx
index 9fbd3c21df78..90b8b9e28509 100644
--- a/writerfilter/source/rtftok/rtfsdrimport.cxx
+++ b/writerfilter/source/rtftok/rtfsdrimport.cxx
@@ -34,6 +34,7 @@
#include <com/sun/star/drawing/EnhancedCustomShapeParameterPair.hpp>
#include <com/sun/star/drawing/EnhancedCustomShapeSegmentCommand.hpp>
#include <com/sun/star/text/HoriOrientation.hpp>
+#include <com/sun/star/text/RelOrientation.hpp>
#include <com/sun/star/text/SizeType.hpp>
#include <com/sun/star/text/VertOrientation.hpp>
#include <com/sun/star/text/WrapTextMode.hpp>
@@ -83,9 +84,15 @@ std::vector<beans::PropertyValue> RTFSdrImport::getTextFrameDefaults(bool bNew)
aPropertyValue.Name = "HoriOrient";
aPropertyValue.Value <<= text::HoriOrientation::NONE;
aRet.push_back(aPropertyValue);
+ aPropertyValue.Name = "HoriOrientRelation";
+ aPropertyValue.Value <<= text::RelOrientation::FRAME;
+ aRet.push_back(aPropertyValue);
aPropertyValue.Name = "VertOrient";
aPropertyValue.Value <<= text::VertOrientation::NONE;
aRet.push_back(aPropertyValue);
+ aPropertyValue.Name = "VertOrientRelation";
+ aPropertyValue.Value <<= text::RelOrientation::FRAME;
+ aRet.push_back(aPropertyValue);
if (!bNew)
{
aPropertyValue.Name = "BackColorTransparency";