summaryrefslogtreecommitdiff
path: root/xmloff/source/transform/StyleOASISTContext.cxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2005-09-05 13:56:22 +0000
committerOliver Bolte <obo@openoffice.org>2005-09-05 13:56:22 +0000
commite3a76d096055c586e07c3f250bdf9b84fa984cdd (patch)
tree2f588b5eb9c317e9d4fab5715aa7493ce4318379 /xmloff/source/transform/StyleOASISTContext.cxx
parentebc1443b6fe0f817ca3f6c48a1fd72212afe1fcd (diff)
INTEGRATION: CWS impress67 (1.10.64); FILE MERGED
2005/08/29 07:29:50 cl 1.10.64.1: #i42959# fixed svg:stroke-opacity attribute
Diffstat (limited to 'xmloff/source/transform/StyleOASISTContext.cxx')
-rw-r--r--xmloff/source/transform/StyleOASISTContext.cxx22
1 files changed, 20 insertions, 2 deletions
diff --git a/xmloff/source/transform/StyleOASISTContext.cxx b/xmloff/source/transform/StyleOASISTContext.cxx
index 3370aaba1b5a..c024815fe61b 100644
--- a/xmloff/source/transform/StyleOASISTContext.cxx
+++ b/xmloff/source/transform/StyleOASISTContext.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: StyleOASISTContext.cxx,v $
*
- * $Revision: 1.10 $
+ * $Revision: 1.11 $
*
- * last change: $Author: rt $ $Date: 2005-05-18 09:45:24 $
+ * last change: $Author: obo $ $Date: 2005-09-05 14:56:22 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -609,6 +609,24 @@ void XMLPropertiesTContext_Impl::StartElement(
pAttrList->AddAttribute( rAttrName, OUString::valueOf( fValue ) );
}
break;
+ case XML_ATACTION_OPACITY_FIX:
+ {
+ sal_Int32 nValue;
+ if( rAttrValue.indexOf( sal_Unicode('%') ) != -1 )
+ {
+ SvXMLUnitConverter::convertPercent( nValue, rAttrValue );
+ }
+ else
+ {
+ nValue = sal_Int32( rAttrValue.toDouble() * 100.0 );
+ }
+ nValue = 100 - nValue;
+
+ rtl::OUStringBuffer aOut;
+ SvXMLUnitConverter::convertPercent( aOut, nValue );
+ pAttrList->AddAttribute( rAttrName, aOut.makeStringAndClear() );
+ }
+ break;
default:
OSL_ENSURE( !this, "unknown action" );
break;