summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorJürgen Schmidt <jsc@apache.org>2012-06-08 11:31:34 +0000
committerJürgen Schmidt <jsc@apache.org>2012-06-08 11:31:34 +0000
commitbb8bf7bde59c22776199e791b8cfcbf07992de8e (patch)
treed68f568bb9dd01044545adb6b0f598244f2df098 /oox
parent072ec8831233cfd5e72eebd5afda3e25ca49d80d (diff)
119889: Import .pptx file into OO3.4, the vertical text direction of the table will be lost.
fix: 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
Notes
Notes: merged as: c6238797733a607054e84f6620ae479ae77c7d82
Diffstat (limited to 'oox')
-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 f87ab2287bcc..25bc811567e4 100644
--- a/oox/source/drawingml/table/tablecell.cxx
+++ b/oox/source/drawingml/table/tablecell.cxx
@@ -36,6 +36,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 rtl::OUString;
using namespace ::oox::core;
@@ -356,6 +357,11 @@ void TableCell::pushToXCell( const ::oox::core::XmlFilterBase& rFilterBase, ::oo
// TODO: phClr?
aFillProperties.pushToPropMap( aPropMap, rFilterBase.getGraphicHelper() );
PropertySet( xPropSet ).setProperties( aPropMap );
+
+ if ( getVertToken() == XML_eaVert )
+ {
+ xPropSet->setPropertyValue(::rtl::OUString::createFromAscii( "TextWritingMode" ) , Any(com::sun::star::text::WritingMode_TB_RL) );
+ }
}
} } }