diff options
author | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2013-02-21 17:34:16 +0100 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2013-02-21 17:45:19 +0100 |
commit | 3d46b39491af97ba360fb92182501e6b399f4f56 (patch) | |
tree | 872d8a5ef947857e55a8e9331fa7888fcdc105ef /oox/source/vml/vmltextboxcontext.cxx | |
parent | 38302b308559b8e34916a07ea3a160085c596c2e (diff) |
n#779642: Import vertical layout mode from VML elements.
Diffstat (limited to 'oox/source/vml/vmltextboxcontext.cxx')
-rw-r--r-- | oox/source/vml/vmltextboxcontext.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/oox/source/vml/vmltextboxcontext.cxx b/oox/source/vml/vmltextboxcontext.cxx index 9d1c4eee1508..ca124bcb4d18 100644 --- a/oox/source/vml/vmltextboxcontext.cxx +++ b/oox/source/vml/vmltextboxcontext.cxx @@ -178,6 +178,17 @@ TextBoxContext::TextBoxContext( ContextHandler2Helper& rParent, TextBox& rTextBo value.isEmpty() ? "0.05in" : value, 0, false, false ); rTextBox.borderDistanceSet = true; } + + OUString sStyle = rAttribs.getString( XML_style, OUString() ); + sal_Int32 nIndex = 0; + while( nIndex >= 0 ) + { + OUString aName, aValue; + if( ConversionHelper::separatePair( aName, aValue, sStyle.getToken( 0, ';', nIndex ), ':' ) ) + { + if( aName == "layout-flow" ) rTextBox.maLayoutFlow = aValue; + } + } } ContextHandlerRef TextBoxContext::onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) |