summaryrefslogtreecommitdiff
path: root/oox/source/ppt/slidepersist.cxx
diff options
context:
space:
mode:
authorsj <sj@openoffice.org>2010-09-29 16:18:54 +0200
committersj <sj@openoffice.org>2010-09-29 16:18:54 +0200
commit74686377ec36c4fbfa4b84063bfb13ae009e313c (patch)
tree174f6fb061e9fbd3fecb98796ed275de29db69d9 /oox/source/ppt/slidepersist.cxx
parent40e1e1a4b2c190ffd71e17d83fc9f00c81d7d5b1 (diff)
impress201: #i101074# fixed background import problem.. now supporting ColorRef based background colors
Diffstat (limited to 'oox/source/ppt/slidepersist.cxx')
-rw-r--r--oox/source/ppt/slidepersist.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/oox/source/ppt/slidepersist.cxx b/oox/source/ppt/slidepersist.cxx
index ce99ffc49f19..8555ba371b77 100644
--- a/oox/source/ppt/slidepersist.cxx
+++ b/oox/source/ppt/slidepersist.cxx
@@ -173,12 +173,17 @@ void SlidePersist::createBackground( const XmlFilterBase& rFilterBase )
{
try
{
+ sal_Int32 nPhClr = API_RGB_TRANSPARENT;
+ if ( maBackgroundColorRef.isUsed() )
+ nPhClr = maBackgroundColorRef.getColor( rFilterBase.getGraphicHelper() );
+
PropertyMap aPropMap;
static const rtl::OUString sBackground( RTL_CONSTASCII_USTRINGPARAM( "Background" ) );
uno::Reference< beans::XPropertySet > xPagePropSet( mxPage, uno::UNO_QUERY_THROW );
uno::Reference< beans::XPropertySet > xPropertySet( aPropMap.makePropertySet() );
PropertySet aPropSet( xPropertySet );
- mpBackgroundPropertiesPtr->pushToPropSet( aPropSet, rFilterBase.getModelObjectHelper(), rFilterBase.getGraphicHelper() );
+ mpBackgroundPropertiesPtr->pushToPropSet( aPropSet, rFilterBase.getModelObjectHelper(),
+ rFilterBase.getGraphicHelper(), oox::drawingml::FillProperties::DEFAULT_IDS, 0, nPhClr );
xPagePropSet->setPropertyValue( sBackground, Any( xPropertySet ) );
}
catch( Exception )