diff options
author | Oliver Bolte <obo@openoffice.org> | 2005-09-05 13:56:39 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2005-09-05 13:56:39 +0000 |
commit | d6173910d2ade44c2acc81ede25407e5c1d9af6e (patch) | |
tree | 48a666c5bfd438812cfba2b3668f60d3937b79a9 /xmloff | |
parent | e3a76d096055c586e07c3f250bdf9b84fa984cdd (diff) |
INTEGRATION: CWS impress67 (1.12.62); FILE MERGED
2005/08/29 07:29:51 cl 1.12.62.1: #i42959# fixed svg:stroke-opacity attribute
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/transform/StyleOOoTContext.cxx | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/xmloff/source/transform/StyleOOoTContext.cxx b/xmloff/source/transform/StyleOOoTContext.cxx index 94caf459eec8..90b55f6f05b3 100644 --- a/xmloff/source/transform/StyleOOoTContext.cxx +++ b/xmloff/source/transform/StyleOOoTContext.cxx @@ -2,9 +2,9 @@ * * $RCSfile: StyleOOoTContext.cxx,v $ * - * $Revision: 1.12 $ + * $Revision: 1.13 $ * - * last change: $Author: rt $ $Date: 2005-05-18 09:45:40 $ + * last change: $Author: obo $ $Date: 2005-09-05 14:56:39 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1002,6 +1002,24 @@ void XMLPropertiesOOoTContext_Impl::StartElement( pContext->AddAttribute( sAttrName, aAttrValue ); } break; + case XML_ATACTION_OPACITY_FIX: + { + sal_Int32 nValue; + if( sAttrValue.indexOf( sal_Unicode('%') ) != -1 ) + { + SvXMLUnitConverter::convertPercent( nValue, sAttrValue ); + } + else + { + nValue = sal_Int32( sAttrValue.toDouble() * 100.0 ); + } + nValue = 100 - nValue; + + rtl::OUStringBuffer aOut; + SvXMLUnitConverter::convertPercent( aOut, nValue ); + pContext->AddAttribute( sAttrName, aOut.makeStringAndClear() ); + } + break; default: OSL_ENSURE( !this, "unknown action" ); break; |