summaryrefslogtreecommitdiff
path: root/svx/source/unodraw
diff options
context:
space:
mode:
authorChristian Lippka <cl@openoffice.org>2002-09-25 08:45:03 +0000
committerChristian Lippka <cl@openoffice.org>2002-09-25 08:45:03 +0000
commit5fce71aa606c165fd516a8a5316914a64f122813 (patch)
treed6e8f672fcc4fcc69b6f7e36a61ef7252781d293 /svx/source/unodraw
parent2521b26ca1eba42eb518cbe3eda502c6bc820ee2 (diff)
#103668# added translucent property
Diffstat (limited to 'svx/source/unodraw')
-rw-r--r--svx/source/unodraw/UnoGraphicExporter.cxx30
1 files changed, 27 insertions, 3 deletions
diff --git a/svx/source/unodraw/UnoGraphicExporter.cxx b/svx/source/unodraw/UnoGraphicExporter.cxx
index 809886dfb26c..619a66430417 100644
--- a/svx/source/unodraw/UnoGraphicExporter.cxx
+++ b/svx/source/unodraw/UnoGraphicExporter.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: UnoGraphicExporter.cxx,v $
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
- * last change: $Author: sj $ $Date: 2002-07-16 11:42:57 $
+ * last change: $Author: cl $ $Date: 2002-09-25 09:45:03 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -424,6 +424,8 @@ sal_Bool SAL_CALL GraphicExporter::filter( const Sequence< PropertyValue >& aDes
// get the arguments from the descriptor
+ sal_Bool bTranslucent = sal_False; /* pFilter->GetExportFormatShortName( nFilter ).ToLowerAscii().EqualsAscii( "gif" ); */
+
OUString aFilterName, aMediaType;
URL aURL;
@@ -462,7 +464,30 @@ sal_Bool SAL_CALL GraphicExporter::filter( const Sequence< PropertyValue >& aDes
else if ( pValues->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "FilterData" ) ) )
{
pValues->Value >>= aFilterData;
+
+ sal_Int32 nArgs = aFilterData.getLength();
+ const PropertyValue* pValues = aFilterData.getConstArray();
+ while( nArgs-- )
+ {
+ if( pValues->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "Translucent" ) ) )
+ {
+ pValues->Value >>= bTranslucent;
+ }
+ else if( pValues->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "Width" ) ) )
+ {
+ pValues->Value >>= nWidth;
+ }
+ else if( pValues->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "Height" ) ) )
+ {
+ pValues->Value >>= nHeight;
+ }
+ else if( pValues->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "ExportOnlyBackground" ) ) )
+ {
+ pValues->Value >>= bExportOnlyBackground;
+ }
+ }
}
+
pValues++;
}
}
@@ -477,7 +502,6 @@ sal_Bool SAL_CALL GraphicExporter::filter( const Sequence< PropertyValue >& aDes
? pFilter->GetExportFormatNumberForMediaType( aMediaType )
: pFilter->GetExportFormatNumberForShortName( aFilterName );
sal_Bool bVectorType = !pFilter->IsExportPixelFormat( nFilter );
- sal_Bool bTranslucent = pFilter->GetExportFormatShortName( nFilter ).ToLowerAscii().EqualsAscii( "gif" );
std::vector< SdrObject* > aShapes;