summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2019-06-13 23:17:34 +0200
committerMiklos Vajna <vmiklos@collabora.com>2019-07-05 10:01:58 +0200
commit13f45ca57a3c78e6d7840991597c664a3557c4a4 (patch)
tree55c1e1ee8c14a03a1e867136f63b1e7a70c5b87c /oox
parent87e6ade8573171f7c861abb78d847f9e52ab47d8 (diff)
sw btlr writing mode: fix tbrl import from VML
Wanted to do btlr, but even tbrl (e.g. Japanese text) is not working, so let's do that first. Change-Id: I62cb95754ce473ecf1de2d34460e50db94e64806 Reviewed-on: https://gerrit.libreoffice.org/73991 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com> (cherry picked from commit 31b44f010557c43d8b02cc3be590ed1629bf1ca5)
Diffstat (limited to 'oox')
-rw-r--r--oox/source/vml/vmlshape.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/oox/source/vml/vmlshape.cxx b/oox/source/vml/vmlshape.cxx
index b70edfc9102b..a6df38fe3c98 100644
--- a/oox/source/vml/vmlshape.cxx
+++ b/oox/source/vml/vmlshape.cxx
@@ -51,6 +51,7 @@
#include <com/sun/star/text/GraphicCrop.hpp>
#include <com/sun/star/security/DocumentDigitalSignatures.hpp>
#include <com/sun/star/security/XDocumentDigitalSignatures.hpp>
+#include <com/sun/star/text/WritingMode2.hpp>
#include <rtl/math.hxx>
#include <rtl/ustrbuf.hxx>
#include <sal/log.hxx>
@@ -724,6 +725,13 @@ Reference< XShape > SimpleShape::implConvertAndInsert( const Reference< XShapes
PropertySet( xShape ).setAnyProperty( PROP_RightBorderDistance, makeAny( sal_Int32( getTextBox()->borderDistanceRight )));
PropertySet( xShape ).setAnyProperty( PROP_BottomBorderDistance, makeAny( sal_Int32( getTextBox()->borderDistanceBottom )));
}
+
+ if (getTextBox()->maLayoutFlow == "vertical" && maTypeModel.maLayoutFlowAlt.isEmpty())
+ {
+ PropertySet(xShape).setAnyProperty(PROP_WritingMode,
+ uno::makeAny(text::WritingMode2::TB_RL));
+ }
+
if (!maTypeModel.maLayoutFlowAlt.isEmpty())
{
// Can't handle this property here, as the frame is not attached yet: pass it to writerfilter.