From a6f171a3c4f58ea957071f614a3611a25f2e4eec Mon Sep 17 00:00:00 2001 From: PriyankaGaikwad Date: Mon, 20 Apr 2015 14:46:20 +0530 Subject: tdf#90673:FILESAVE:PPTX Paragraph text direction right-to-left is not exported MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Problem Description: After RT 'rtl' tag of are not exported XML Diff: Original : RT : Change-Id: I307bc748c73127c311cabd127bb98e43bd298271 Reviewed-on: https://gerrit.libreoffice.org/15428 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- oox/source/export/drawingml.cxx | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'oox') diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx index e8673d2d920f..7862bf8da1b8 100644 --- a/oox/source/export/drawingml.cxx +++ b/oox/source/export/drawingml.cxx @@ -57,6 +57,7 @@ #include #include #include +#include #include #include #include @@ -1778,6 +1779,16 @@ void DrawingML::WriteParagraphProperties( Reference< XTextContent > rParagraph ) if( GETAD( ParaLineSpacing ) ) bHasLinespacing = ( mAny >>= aLineSpacing ); + bool bRtl = false; + if( GETA( WritingMode ) ) + { + sal_Int16 nWritingMode; + if( ( mAny >>= nWritingMode ) && nWritingMode == text::WritingMode2::RL_TB ) + { + bRtl = true; + } + } + if( nLevel != -1 || nAlignment != style::ParagraphAdjust_LEFT || bHasLinespacing ) @@ -1786,6 +1797,7 @@ void DrawingML::WriteParagraphProperties( Reference< XTextContent > rParagraph ) XML_lvl, nLevel > 0 ? I32S( nLevel ) : NULL, XML_marL, NULL, XML_algn, GetAlignment( nAlignment ), + XML_rtl, bRtl ? BS(bRtl) : NULL, FSEND ); if( bHasLinespacing ) -- cgit