Kaydet (Commit) 76bf4dae authored tarafından Miklos Vajna's avatar Miklos Vajna

RTF shape import: fix default horizontal/vertical orient relation

Change-Id: Icf324d2762f292c7f5f2ec9502f58c4961b28512
üst 50b57163
......@@ -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";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment