diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2005-02-16 16:03:06 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2005-02-16 16:03:06 +0000 |
commit | 95b057efa9dc8d10aac593176f3bfda5fcd5ff4f (patch) | |
tree | bfe0ec853eb784db2159497373e08396bd99af83 | |
parent | 479d01883b468fe6a38afb8a306ad81cf46b1341 (diff) |
INTEGRATION: CWS impress33 (1.17.2); FILE MERGED
2005/02/04 15:52:33 af 1.17.2.1: #i41752# Added two slot ids SID_DISPLAY_MASTER_(BACKGROUND,OBJECTS).
-rw-r--r-- | sd/source/ui/view/drviews6.cxx | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/sd/source/ui/view/drviews6.cxx b/sd/source/ui/view/drviews6.cxx index d73b45d244d3..42ec1dda2700 100644 --- a/sd/source/ui/view/drviews6.cxx +++ b/sd/source/ui/view/drviews6.cxx @@ -2,9 +2,9 @@ * * $RCSfile: drviews6.cxx,v $ * - * $Revision: 1.17 $ + * $Revision: 1.18 $ * - * last change: $Author: rt $ $Date: 2005-01-27 14:20:57 $ + * last change: $Author: vg $ $Date: 2005-02-16 17:03:06 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -122,6 +122,7 @@ #include "app.hrc" #include "strings.hrc" +#include "glob.hrc" #include "app.hxx" #include "animobjs.hxx" @@ -862,6 +863,30 @@ void DrawViewShell::FuTemp04(SfxRequest& rReq) } break; + case SID_DISPLAY_MASTER_BACKGROUND: + case SID_DISPLAY_MASTER_OBJECTS: + { + // Determine current page and toggle visibility of layers + // associated with master page background or master page shapes. + SdPage* pPage = GetActualPage(); + if (pPage != NULL + && GetDoc() != NULL) + { + SetOfByte aVisibleLayers = pPage->TRG_GetMasterPageVisibleLayers(); + SdrLayerAdmin& rLayerAdmin = GetDoc()->GetLayerAdmin(); + BYTE aLayerId; + if (nSId == SID_DISPLAY_MASTER_BACKGROUND) + aLayerId = rLayerAdmin.GetLayerID(String(SdResId(STR_LAYER_BCKGRND)), FALSE); + else + aLayerId = rLayerAdmin.GetLayerID(String(SdResId(STR_LAYER_BCKGRNDOBJ)), FALSE); + aVisibleLayers.Set(aLayerId, !aVisibleLayers.IsSet(aLayerId)); + pPage->TRG_SetMasterPageVisibleLayers(aVisibleLayers); + } + Cancel(); + rReq.Ignore (); + } + break; + default: { DBG_ASSERT( 0, "Slot ohne Funktion" ); |