diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2013-04-11 15:20:11 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2013-04-11 15:22:50 +0200 |
commit | 76bf4dae2f992e013b0cbbfa7dbe5cc692fa9f83 (patch) | |
tree | fcfbc9ec76b30f38679440fc8e89b4b6577ec171 /writerfilter | |
parent | restore missing mnemonics of writer print options page (diff) | |
download | core-76bf4dae2f992e013b0cbbfa7dbe5cc692fa9f83.tar.gz core-76bf4dae2f992e013b0cbbfa7dbe5cc692fa9f83.zip |
RTF shape import: fix default horizontal/vertical orient relation
Change-Id: Icf324d2762f292c7f5f2ec9502f58c4961b28512
Diffstat (limited to 'writerfilter')
-rw-r--r-- | writerfilter/source/rtftok/rtfsdrimport.cxx | 7 |
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"; |