diff options
Diffstat (limited to 'sd/source')
-rw-r--r-- | sd/source/filter/eppt/epptbase.hxx | 1 | ||||
-rw-r--r-- | sd/source/filter/eppt/pptx-epptbase.cxx | 4 | ||||
-rw-r--r-- | sd/source/filter/eppt/pptx-epptooxml.cxx | 5 |
3 files changed, 9 insertions, 1 deletions
diff --git a/sd/source/filter/eppt/epptbase.hxx b/sd/source/filter/eppt/epptbase.hxx index 9180464823dc..99d84cd5bd47 100644 --- a/sd/source/filter/eppt/epptbase.hxx +++ b/sd/source/filter/eppt/epptbase.hxx @@ -347,6 +347,7 @@ protected: OString mType; bool mbPresObj; bool mbEmptyPresObj; + bool mbIsBackgroundDark; sal_Int32 mnAngle; sal_uInt32 mnPages; ///< number of Slides ( w/o master pages & notes & handout ) diff --git a/sd/source/filter/eppt/pptx-epptbase.cxx b/sd/source/filter/eppt/pptx-epptbase.cxx index 45febb9bb83b..1d58016ab18d 100644 --- a/sd/source/filter/eppt/pptx-epptbase.cxx +++ b/sd/source/filter/eppt/pptx-epptbase.cxx @@ -133,6 +133,7 @@ PPTWriterBase::PPTWriterBase() , mbStatusIndicator(false) , mbPresObj(false) , mbEmptyPresObj(false) + , mbIsBackgroundDark(false) , mnAngle(0) , mnPages(0) , mnMasterPages(0) @@ -325,6 +326,9 @@ bool PPTWriterBase::GetPageByIndex( sal_uInt32 nIndex, PageType ePageType ) if ( !mXPagePropSet.is() ) break; + if (GetPropertyValue( aAny, mXPagePropSet, OUString("IsBackgroundDark") ) ) + aAny >>= mbIsBackgroundDark; + mXShapes = Reference< XShapes >( mXDrawPage, UNO_QUERY ); if ( !mXShapes.is() ) break; diff --git a/sd/source/filter/eppt/pptx-epptooxml.cxx b/sd/source/filter/eppt/pptx-epptooxml.cxx index ff020e054096..e30e7fade81b 100644 --- a/sd/source/filter/eppt/pptx-epptooxml.cxx +++ b/sd/source/filter/eppt/pptx-epptooxml.cxx @@ -412,7 +412,9 @@ void PowerPointExport::ImplWriteBackground( FSHelperPtr pFS, Reference< XPropert pFS->startElementNS( XML_p, XML_bg, FSEND ); pFS->startElementNS( XML_p, XML_bgPr, FSEND ); - PowerPointShapeExport( pFS, &maShapeMap, this ).WriteFill( rXPropSet ); + PowerPointShapeExport aDML( pFS, &maShapeMap, this ); + aDML.SetBackgroundDark(mbIsBackgroundDark); + aDML.WriteFill( rXPropSet ); pFS->endElementNS( XML_p, XML_bgPr ); pFS->endElementNS( XML_p, XML_bg ); @@ -1706,6 +1708,7 @@ void PowerPointExport::WriteShapeTree( FSHelperPtr pFS, PageType ePageType, bool PowerPointShapeExport aDML( pFS, &maShapeMap, this ); aDML.SetMaster( bMaster ); aDML.SetPageType( ePageType ); + aDML.SetBackgroundDark(mbIsBackgroundDark); sal_uInt32 nShapes; pFS->startElementNS( XML_p, XML_spTree, FSEND ); |