diff options
author | Rüdiger Timm <rt@openoffice.org> | 2005-05-18 08:45:24 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2005-05-18 08:45:24 +0000 |
commit | 37be004f7042973893ec042450c1831aaafbbc01 (patch) | |
tree | 6175ef42eae636fc8b133be4a7521552e99d3bfd /xmloff | |
parent | c7eb2916391bb92b0ac2d065d1c2e9f8ae945882 (diff) |
INTEGRATION: CWS swqbugfixes32 (1.9.104); FILE MERGED
2005/05/13 08:46:08 od 1.9.104.1: #i49139# - adapt attribute values for attribute <style::mirror> on
import/export of OpenOffice.org file format.
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/transform/StyleOASISTContext.cxx | 31 |
1 files changed, 28 insertions, 3 deletions
diff --git a/xmloff/source/transform/StyleOASISTContext.cxx b/xmloff/source/transform/StyleOASISTContext.cxx index 35375fc5e9a6..3370aaba1b5a 100644 --- a/xmloff/source/transform/StyleOASISTContext.cxx +++ b/xmloff/source/transform/StyleOASISTContext.cxx @@ -2,9 +2,9 @@ * * $RCSfile: StyleOASISTContext.cxx,v $ * - * $Revision: 1.9 $ + * $Revision: 1.10 $ * - * last change: $Author: rt $ $Date: 2005-01-27 11:12:05 $ + * last change: $Author: rt $ $Date: 2005-05-18 09:45:24 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -567,7 +567,32 @@ void XMLPropertiesTContext_Impl::StartElement( case XML_ATACTION_DRAW_MIRROR_OASIS: // renames style:mirror to draw:mirror and adapts values { // keep original for writer graphic objects - pAttrList->AddAttribute( rAttrName, rAttrValue ); + // --> OD 2005-05-12 #i49139# - adapts attribute values, + OUString aNewAttrValue; + SvXMLTokenEnumerator aTokenEnum( rAttrValue ); + OUString aToken; + while( aTokenEnum.getNextToken( aToken ) ) + { + if ( aNewAttrValue.getLength() > 0 ) + { + aNewAttrValue += rtl::OUString::createFromAscii( " " ); + } + + if ( IsXMLToken( aToken, XML_HORIZONTAL_ON_EVEN ) ) + { + aNewAttrValue += GetXMLToken( XML_HORIZONTAL_ON_LEFT_PAGES ); + } + else if ( IsXMLToken( aToken, XML_HORIZONTAL_ON_ODD ) ) + { + aNewAttrValue += GetXMLToken( XML_HORIZONTAL_ON_RIGHT_PAGES ); + } + else + { + aNewAttrValue += aToken; + } + } + pAttrList->AddAttribute( rAttrName, aNewAttrValue ); + // <-- // create old draw:mirror for drawing graphic objects OUString aAttrValue( GetXMLToken( IsXMLToken( rAttrValue, XML_HORIZONTAL ) ? XML_TRUE : XML_FALSE ) ); |