summaryrefslogtreecommitdiff
path: root/oox/source/drawingml
diff options
context:
space:
mode:
authorJürgen Schmidt <jsc@apache.org>2012-06-08 11:31:34 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-05-11 15:09:36 +0100
commitc6238797733a607054e84f6620ae479ae77c7d82 (patch)
tree4272c87b9c32dcf3a13bbba990c97a4e4e9a1859 /oox/source/drawingml
parent16e6841fcd99c7ca6e9a3cbd82d17af81b362c32 (diff)
Resolves: #i119889# .pptx table vertical text direction
Set property to cell object if the cell has vertical property. And fix in svx module by setting cell's vertical property. Patch By: companycy Found By: Shan Zu Review By: jsc (cherry picked from commit bb8bf7bde59c22776199e791b8cfcbf07992de8e) Conflicts: oox/source/drawingml/table/tablecell.cxx Change-Id: I58bb1548617c4c1e231280a405d6071ea8813039
Diffstat (limited to 'oox/source/drawingml')
-rw-r--r--oox/source/drawingml/table/tablecell.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/oox/source/drawingml/table/tablecell.cxx b/oox/source/drawingml/table/tablecell.cxx
index 3bca437f6e30..c3c4f49ec718 100644
--- a/oox/source/drawingml/table/tablecell.cxx
+++ b/oox/source/drawingml/table/tablecell.cxx
@@ -32,6 +32,7 @@
#include <com/sun/star/drawing/TextVerticalAdjust.hpp>
#include <com/sun/star/drawing/TextHorizontalAdjust.hpp>
#include <com/sun/star/text/XText.hpp>
+#include <com/sun/star/text/WritingMode.hpp>
using namespace ::oox::core;
using namespace ::com::sun::star;
@@ -351,6 +352,11 @@ void TableCell::pushToXCell( const ::oox::core::XmlFilterBase& rFilterBase, ::oo
aFillProperties.pushToPropMap( aPropMap, rFilterBase.getGraphicHelper() );
PropertySet( xPropSet ).setProperties( aPropMap );
+ if ( getVertToken() == XML_eaVert )
+ {
+ xPropSet->setPropertyValue("TextWritingMode", Any(com::sun::star::text::WritingMode_TB_RL));
+ }
+
getTextBody()->insertAt( rFilterBase, xText, xAt, aTextStyleProps, pMasterTextListStyle );
}