summaryrefslogtreecommitdiff
path: root/sd/source/filter/cgm
diff options
context:
space:
mode:
authorArmin Le Grand <Armin.Le.Grand@Sun.COM>2010-02-09 11:33:08 +0100
committerArmin Le Grand <Armin.Le.Grand@Sun.COM>2010-02-09 11:33:08 +0100
commit86cabb65ec6a4ff1252376219c734541e7eca1bd (patch)
treef873418d31ead9e891661af7002660f23904da1e /sd/source/filter/cgm
parentc89b3d923e6bd28546ed2d4a444b6f6ed297d826 (diff)
aw079 #i99386# finer granular changes for MPBGO removal
Diffstat (limited to 'sd/source/filter/cgm')
-rw-r--r--sd/source/filter/cgm/sdcgmfilter.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/sd/source/filter/cgm/sdcgmfilter.cxx b/sd/source/filter/cgm/sdcgmfilter.cxx
index 68719b132bb7..3fed48ac1857 100644
--- a/sd/source/filter/cgm/sdcgmfilter.cxx
+++ b/sd/source/filter/cgm/sdcgmfilter.cxx
@@ -114,6 +114,17 @@ sal_Bool SdCGMFilter::Import()
if( ( nRetValue &~0xff000000 ) != 0xffffff ) // maybe the backgroundcolor is already white
{ // so we must not set a master page
mrDocument.StopWorkStartupDelay();
+#ifdef NEWPBG
+ SdPage* pSdPage = mrDocument.GetMasterSdPage(0, PK_STANDARD);
+
+ if(pSdPage)
+ {
+ // set PageFill to given color
+ const Color aColor((BYTE)(nRetValue >> 16), (BYTE)(nRetValue >> 8), (BYTE)(nRetValue >> 16));
+ pSdPage->getSdrPageProperties().PutItem(XFillColorItem(String(), aColor));
+ pSdPage->getSdrPageProperties().PutItem(XFillStyleItem(XFILL_SOLID));
+ }
+#else
SdrObject* pObj = mrDocument.GetMasterSdPage(0, PK_STANDARD)->GetPresObj(PRESOBJ_BACKGROUND);
if( pObj )
@@ -125,6 +136,7 @@ sal_Bool SdCGMFilter::Import()
aSet.Put( XFillStyleItem( XFILL_SOLID ) );
pObj->SetMergedItemSetAndBroadcast( aSet );
}
+#endif
}
}
}