ooxml10: apply oox-pptx-import-fix-text-body-vert-2.diff from ooo-build

This commit is contained in:
Tor Lillqvist 2010-04-14 14:18:53 +03:00
parent 59352e4b6b
commit 5d73a75d48

View file

@ -118,13 +118,15 @@ TextBodyPropertiesContext::TextBodyPropertiesContext( ContextHandler& rParent,
bool bRtl = aAttribs.getBool( XML_rtl, false );
sal_Int32 tVert = mrTextBodyProp.moVert.get( XML_horz );
if( tVert == XML_vert || tVert == XML_eaVert || tVert == XML_vert270 || tVert == XML_mongolianVert ) {
mrTextBodyProp.maPropertyMap[ PROP_TextWritingMode ]
<<= ( bRtl ? WritingMode_RL_TB : WritingMode_LR_TB );
// workaround for TB_LR as using WritingMode2 doesn't work
if( !bAnchorCenter )
mrTextBodyProp.maPropertyMap[ PROP_TextHorizontalAdjust ] <<=
TextHorizontalAdjust_LEFT;
}
mrTextBodyProp.maPropertyMap[ PROP_TextWritingMode ]
<<= WritingMode_TB_RL;
// workaround for TB_LR as using WritingMode2 doesn't work
if( !bAnchorCenter )
mrTextBodyProp.maPropertyMap[ PROP_TextHorizontalAdjust ] <<=
TextHorizontalAdjust_LEFT;
} else
mrTextBodyProp.maPropertyMap[ PROP_TextWritingMode ]
<<= ( bRtl ? WritingMode_RL_TB : WritingMode_LR_TB );
}
// --------------------------------------------------------------------