diff options
Diffstat (limited to 'oox/source/vml/vmltextbox.cxx')
-rw-r--r-- | oox/source/vml/vmltextbox.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/oox/source/vml/vmltextbox.cxx b/oox/source/vml/vmltextbox.cxx index f3c4102f3def..65b8f34dbdc1 100644 --- a/oox/source/vml/vmltextbox.cxx +++ b/oox/source/vml/vmltextbox.cxx @@ -21,7 +21,9 @@ #include <rtl/ustrbuf.hxx> #include <com/sun/star/awt/FontWeight.hpp> +#include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/text/XTextAppend.hpp> +#include <com/sun/star/text/WritingMode.hpp> namespace oox { namespace vml { @@ -88,6 +90,12 @@ void TextBox::convert(uno::Reference<drawing::XShape> xShape) const *pValues++ = *i; xTextAppend->appendTextPortion(aIt->maText, aPropSeq); } + + if ( maLayoutFlow == "vertical" ) + { + uno::Reference<beans::XPropertySet> xProperties(xShape, uno::UNO_QUERY); + xProperties->setPropertyValue( "TextWritingMode", uno::makeAny( text::WritingMode_TB_RL ) ); + } } } // namespace vml |