1*5b190011SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*5b190011SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*5b190011SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*5b190011SAndrew Rist * distributed with this work for additional information 6*5b190011SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*5b190011SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*5b190011SAndrew Rist * "License"); you may not use this file except in compliance 9*5b190011SAndrew Rist * with the License. You may obtain a copy of the License at 10*5b190011SAndrew Rist * 11*5b190011SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*5b190011SAndrew Rist * 13*5b190011SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*5b190011SAndrew Rist * software distributed under the License is distributed on an 15*5b190011SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*5b190011SAndrew Rist * KIND, either express or implied. See the License for the 17*5b190011SAndrew Rist * specific language governing permissions and limitations 18*5b190011SAndrew Rist * under the License. 19*5b190011SAndrew Rist * 20*5b190011SAndrew Rist *************************************************************/ 21*5b190011SAndrew Rist 22*5b190011SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove 25cdf0e10cSrcweir #include "precompiled_sd.hxx" 26cdf0e10cSrcweir 27cdf0e10cSrcweir #include "DrawViewShell.hxx" 28cdf0e10cSrcweir #include <vcl/metaact.hxx> 29cdf0e10cSrcweir #include <sfx2/request.hxx> 30cdf0e10cSrcweir #include <sfx2/dispatch.hxx> 31cdf0e10cSrcweir #include <vcl/msgbox.hxx> 32cdf0e10cSrcweir #include <sfx2/viewfrm.hxx> 33cdf0e10cSrcweir #include <svx/svdograf.hxx> 34cdf0e10cSrcweir #ifndef _SVXIDS_HXX 35cdf0e10cSrcweir #include <svx/svxids.hrc> 36cdf0e10cSrcweir #endif 37cdf0e10cSrcweir #ifndef _FONTWORK_HXX 38cdf0e10cSrcweir #include <svx/fontwork.hxx> 39cdf0e10cSrcweir #endif 40cdf0e10cSrcweir #ifndef _BMPMASK_HXX 41cdf0e10cSrcweir #include <svx/bmpmask.hxx> 42cdf0e10cSrcweir #endif 43cdf0e10cSrcweir #ifndef _SVX_GALBRWS_HXX 44cdf0e10cSrcweir #include <svx/galbrws.hxx> 45cdf0e10cSrcweir #endif 46cdf0e10cSrcweir #ifndef _IMAPDLG_HXX 47cdf0e10cSrcweir #include <svx/imapdlg.hxx> 48cdf0e10cSrcweir #endif 49cdf0e10cSrcweir #include <svx/xftsfit.hxx> 50cdf0e10cSrcweir #include <svx/colrctrl.hxx> 51cdf0e10cSrcweir #include <svx/f3dchild.hxx> 52cdf0e10cSrcweir #include "optsitem.hxx" 53cdf0e10cSrcweir #include <svx/extrusionbar.hxx> 54cdf0e10cSrcweir #include <svx/fontworkbar.hxx> 55cdf0e10cSrcweir #include <svx/tbxcustomshapes.hxx> 56cdf0e10cSrcweir #ifndef _AVMEDIA_MEDIAPLAYER_HXX 57cdf0e10cSrcweir #include <avmedia/mediaplayer.hxx> 58cdf0e10cSrcweir #endif 59cdf0e10cSrcweir 60cdf0e10cSrcweir #include "app.hrc" 61cdf0e10cSrcweir #include "strings.hrc" 62cdf0e10cSrcweir #include "glob.hrc" 63cdf0e10cSrcweir 64cdf0e10cSrcweir #include "app.hxx" 65cdf0e10cSrcweir #include "animobjs.hxx" 66cdf0e10cSrcweir #include "AnimationChildWindow.hxx" 67cdf0e10cSrcweir #include "NavigatorChildWindow.hxx" 68cdf0e10cSrcweir #include "LayerDialogChildWindow.hxx" 69cdf0e10cSrcweir #include "sdresid.hxx" 70cdf0e10cSrcweir #include "fupoor.hxx" 71cdf0e10cSrcweir #include "fusldlg.hxx" 72cdf0e10cSrcweir #include "drawdoc.hxx" 73cdf0e10cSrcweir #include "fuexpand.hxx" 74cdf0e10cSrcweir #include "fusumry.hxx" 75cdf0e10cSrcweir #include "fucushow.hxx" 76cdf0e10cSrcweir #include "drawview.hxx" 77cdf0e10cSrcweir #include "FrameView.hxx" 78cdf0e10cSrcweir #include "Window.hxx" 79cdf0e10cSrcweir #include "DrawDocShell.hxx" 80cdf0e10cSrcweir #include "framework/FrameworkHelper.hxx" 81cdf0e10cSrcweir 82cdf0e10cSrcweir namespace sd { 83cdf0e10cSrcweir 84cdf0e10cSrcweir /************************************************************************* 85cdf0e10cSrcweir |* 86cdf0e10cSrcweir |* SfxRequests fuer FontWork bearbeiten 87cdf0e10cSrcweir |* 88cdf0e10cSrcweir \************************************************************************/ 89cdf0e10cSrcweir 90cdf0e10cSrcweir void DrawViewShell::ExecFormText(SfxRequest& rReq) 91cdf0e10cSrcweir { 92cdf0e10cSrcweir // waehrend einer Diashow wird nichts ausgefuehrt! 93cdf0e10cSrcweir if(HasCurrentFunction(SID_PRESENTATION)) 94cdf0e10cSrcweir return; 95cdf0e10cSrcweir 96cdf0e10cSrcweir CheckLineTo (rReq); 97cdf0e10cSrcweir 98cdf0e10cSrcweir const SdrMarkList& rMarkList = mpDrawView->GetMarkedObjectList(); 99cdf0e10cSrcweir 100cdf0e10cSrcweir if ( rMarkList.GetMarkCount() == 1 && rReq.GetArgs() && 101cdf0e10cSrcweir mpDrawView && !mpDrawView->IsPresObjSelected() ) 102cdf0e10cSrcweir { 103cdf0e10cSrcweir const SfxItemSet& rSet = *rReq.GetArgs(); 104cdf0e10cSrcweir const SfxPoolItem* pItem; 105cdf0e10cSrcweir 106cdf0e10cSrcweir if ( mpDrawView->IsTextEdit() ) 107cdf0e10cSrcweir mpDrawView->SdrEndTextEdit(); 108cdf0e10cSrcweir 109cdf0e10cSrcweir if ( rSet.GetItemState(XATTR_FORMTXTSTDFORM, sal_True, &pItem) == 110cdf0e10cSrcweir SFX_ITEM_SET && 111cdf0e10cSrcweir ((const XFormTextStdFormItem*) pItem)->GetValue() != XFTFORM_NONE ) 112cdf0e10cSrcweir { 113cdf0e10cSrcweir 114cdf0e10cSrcweir sal_uInt16 nId = SvxFontWorkChildWindow::GetChildWindowId(); 115cdf0e10cSrcweir 116cdf0e10cSrcweir SvxFontWorkDialog* pDlg = (SvxFontWorkDialog*)GetViewFrame()-> 117cdf0e10cSrcweir GetChildWindow(nId)->GetWindow(); 118cdf0e10cSrcweir 119cdf0e10cSrcweir pDlg->CreateStdFormObj(*mpDrawView, *mpDrawView->GetSdrPageView(), 120cdf0e10cSrcweir rSet, *rMarkList.GetMark(0)->GetMarkedSdrObj(), 121cdf0e10cSrcweir ((const XFormTextStdFormItem*) pItem)-> 122cdf0e10cSrcweir GetValue()); 123cdf0e10cSrcweir 124cdf0e10cSrcweir if(HasCurrentFunction(SID_BEZIER_EDIT)) 125cdf0e10cSrcweir { // ggf. die richtige Editfunktion aktivieren 126cdf0e10cSrcweir GetViewFrame()->GetDispatcher()->Execute(SID_SWITCH_POINTEDIT, 127cdf0e10cSrcweir SFX_CALLMODE_ASYNCHRON | SFX_CALLMODE_RECORD); 128cdf0e10cSrcweir } 129cdf0e10cSrcweir } 130cdf0e10cSrcweir else 131cdf0e10cSrcweir mpDrawView->SetAttributes(rSet); 132cdf0e10cSrcweir } 133cdf0e10cSrcweir } 134cdf0e10cSrcweir 135cdf0e10cSrcweir /************************************************************************* 136cdf0e10cSrcweir |* 137cdf0e10cSrcweir |* Statuswerte fuer FontWork zurueckgeben 138cdf0e10cSrcweir |* 139cdf0e10cSrcweir \************************************************************************/ 140cdf0e10cSrcweir 141cdf0e10cSrcweir void DrawViewShell::GetFormTextState(SfxItemSet& rSet) 142cdf0e10cSrcweir { 143cdf0e10cSrcweir const SdrMarkList& rMarkList = mpDrawView->GetMarkedObjectList(); 144cdf0e10cSrcweir const SdrObject* pObj = NULL; 145cdf0e10cSrcweir SvxFontWorkDialog* pDlg = NULL; 146cdf0e10cSrcweir 147cdf0e10cSrcweir sal_uInt16 nId = SvxFontWorkChildWindow::GetChildWindowId(); 148cdf0e10cSrcweir 149cdf0e10cSrcweir if ( GetViewFrame()->HasChildWindow(nId) ) 150cdf0e10cSrcweir pDlg = (SvxFontWorkDialog*)(GetViewFrame()->GetChildWindow(nId)->GetWindow()); 151cdf0e10cSrcweir 152cdf0e10cSrcweir if ( rMarkList.GetMarkCount() == 1 ) 153cdf0e10cSrcweir pObj = rMarkList.GetMark(0)->GetMarkedSdrObj(); 154cdf0e10cSrcweir 155cdf0e10cSrcweir if ( pObj == NULL || !pObj->ISA(SdrTextObj) || 156cdf0e10cSrcweir !((SdrTextObj*) pObj)->HasText() ) 157cdf0e10cSrcweir { 158cdf0e10cSrcweir // automatisches Auf/Zuklappen des FontWork-Dialog; erstmal deaktiviert 159cdf0e10cSrcweir // if ( pDlg ) 160cdf0e10cSrcweir // pDlg->SetActive(sal_False); 161cdf0e10cSrcweir 162cdf0e10cSrcweir rSet.DisableItem(XATTR_FORMTXTSTYLE); 163cdf0e10cSrcweir rSet.DisableItem(XATTR_FORMTXTADJUST); 164cdf0e10cSrcweir rSet.DisableItem(XATTR_FORMTXTDISTANCE); 165cdf0e10cSrcweir rSet.DisableItem(XATTR_FORMTXTSTART); 166cdf0e10cSrcweir rSet.DisableItem(XATTR_FORMTXTMIRROR); 167cdf0e10cSrcweir rSet.DisableItem(XATTR_FORMTXTSTDFORM); 168cdf0e10cSrcweir rSet.DisableItem(XATTR_FORMTXTHIDEFORM); 169cdf0e10cSrcweir rSet.DisableItem(XATTR_FORMTXTOUTLINE); 170cdf0e10cSrcweir rSet.DisableItem(XATTR_FORMTXTSHADOW); 171cdf0e10cSrcweir rSet.DisableItem(XATTR_FORMTXTSHDWCOLOR); 172cdf0e10cSrcweir rSet.DisableItem(XATTR_FORMTXTSHDWXVAL); 173cdf0e10cSrcweir rSet.DisableItem(XATTR_FORMTXTSHDWYVAL); 174cdf0e10cSrcweir } 175cdf0e10cSrcweir else 176cdf0e10cSrcweir { 177cdf0e10cSrcweir if ( pDlg ) 178cdf0e10cSrcweir { 179cdf0e10cSrcweir // pDlg->SetActive(); 180cdf0e10cSrcweir pDlg->SetColorTable(GetDoc()->GetColorTable()); 181cdf0e10cSrcweir } 182cdf0e10cSrcweir 183cdf0e10cSrcweir SfxItemSet aSet( GetDoc()->GetPool() ); 184cdf0e10cSrcweir mpDrawView->GetAttributes( aSet ); 185cdf0e10cSrcweir rSet.Set( aSet ); 186cdf0e10cSrcweir } 187cdf0e10cSrcweir } 188cdf0e10cSrcweir 189cdf0e10cSrcweir /************************************************************************* 190cdf0e10cSrcweir |* 191cdf0e10cSrcweir |* SfxRequests fuer Animator bearbeiten 192cdf0e10cSrcweir |* 193cdf0e10cSrcweir \************************************************************************/ 194cdf0e10cSrcweir 195cdf0e10cSrcweir void DrawViewShell::ExecAnimationWin( SfxRequest& rReq ) 196cdf0e10cSrcweir { 197cdf0e10cSrcweir // waehrend einer Diashow wird nichts ausgefuehrt! 198cdf0e10cSrcweir if (HasCurrentFunction(SID_PRESENTATION)) 199cdf0e10cSrcweir return; 200cdf0e10cSrcweir 201cdf0e10cSrcweir CheckLineTo (rReq); 202cdf0e10cSrcweir 203cdf0e10cSrcweir sal_uInt16 nSId = rReq.GetSlot(); 204cdf0e10cSrcweir 205cdf0e10cSrcweir switch( nSId ) 206cdf0e10cSrcweir { 207cdf0e10cSrcweir case SID_ANIMATOR_INIT: 208cdf0e10cSrcweir case SID_ANIMATOR_ADD: 209cdf0e10cSrcweir case SID_ANIMATOR_CREATE: 210cdf0e10cSrcweir { 211cdf0e10cSrcweir AnimationWindow* pAnimWin; 212cdf0e10cSrcweir sal_uInt16 nId = AnimationChildWindow::GetChildWindowId(); 213cdf0e10cSrcweir //((const SfxUInt16Item&)(rReq.GetArgs()->Get(nSId))).GetValue(); 214cdf0e10cSrcweir 215cdf0e10cSrcweir pAnimWin = static_cast<AnimationWindow*>( 216cdf0e10cSrcweir GetViewFrame()->GetChildWindow(nId)->GetWindow()); 217cdf0e10cSrcweir 218cdf0e10cSrcweir if ( pAnimWin ) 219cdf0e10cSrcweir { 220cdf0e10cSrcweir if( nSId == SID_ANIMATOR_ADD ) 221cdf0e10cSrcweir pAnimWin->AddObj( *mpDrawView ); 222cdf0e10cSrcweir else if( nSId == SID_ANIMATOR_CREATE ) 223cdf0e10cSrcweir pAnimWin->CreateAnimObj( *mpDrawView ); 224cdf0e10cSrcweir } 225cdf0e10cSrcweir } 226cdf0e10cSrcweir break; 227cdf0e10cSrcweir 228cdf0e10cSrcweir default: 229cdf0e10cSrcweir break; 230cdf0e10cSrcweir } 231cdf0e10cSrcweir } 232cdf0e10cSrcweir 233cdf0e10cSrcweir /************************************************************************* 234cdf0e10cSrcweir |* 235cdf0e10cSrcweir |* Statuswerte fuer Animator zurueckgeben 236cdf0e10cSrcweir |* 237cdf0e10cSrcweir |* nValue == 0 -> Kein Button 238cdf0e10cSrcweir |* nValue == 1 -> Button 'uebernehmen' 239cdf0e10cSrcweir |* nValue == 2 -> Button 'einzeln uebernehmen' 240cdf0e10cSrcweir |* nValue == 3 -> Buttons 'uebernehmen' und 'einzeln uebernehmen' 241cdf0e10cSrcweir |* 242cdf0e10cSrcweir \************************************************************************/ 243cdf0e10cSrcweir 244cdf0e10cSrcweir void DrawViewShell::GetAnimationWinState( SfxItemSet& rSet ) 245cdf0e10cSrcweir { 246cdf0e10cSrcweir // Hier koennten Buttons etc. disabled werden 247cdf0e10cSrcweir sal_uInt16 nValue; 248cdf0e10cSrcweir 249cdf0e10cSrcweir const SdrMarkList& rMarkList = mpDrawView->GetMarkedObjectList(); 250cdf0e10cSrcweir sal_uLong nMarkCount = rMarkList.GetMarkCount(); 251cdf0e10cSrcweir 252cdf0e10cSrcweir if( nMarkCount == 0 ) 253cdf0e10cSrcweir nValue = 0; 254cdf0e10cSrcweir else if( nMarkCount > 1 ) 255cdf0e10cSrcweir nValue = 3; 256cdf0e10cSrcweir else // 1 Objekt 257cdf0e10cSrcweir { 258cdf0e10cSrcweir const SdrObject* pObj = rMarkList.GetMark( 0 )->GetMarkedSdrObj(); 259cdf0e10cSrcweir sal_uInt32 nInv = pObj->GetObjInventor(); 260cdf0e10cSrcweir sal_uInt16 nId = pObj->GetObjIdentifier(); 261cdf0e10cSrcweir // 1 selektiertes Gruppenobjekt 262cdf0e10cSrcweir if( nInv == SdrInventor && nId == OBJ_GRUP ) 263cdf0e10cSrcweir nValue = 3; 264cdf0e10cSrcweir else if( nInv == SdrInventor && nId == OBJ_GRAF ) // Anim. GIF ? 265cdf0e10cSrcweir { 266cdf0e10cSrcweir sal_uInt16 nCount = 0; 267cdf0e10cSrcweir 268cdf0e10cSrcweir if( ( (SdrGrafObj*) pObj )->IsAnimated() ) 269cdf0e10cSrcweir nCount = ( (SdrGrafObj*) pObj )->GetGraphic().GetAnimation().Count(); 270cdf0e10cSrcweir if( nCount > 0 ) 271cdf0e10cSrcweir nValue = 2; 272cdf0e10cSrcweir else 273cdf0e10cSrcweir nValue = 1; 274cdf0e10cSrcweir } 275cdf0e10cSrcweir else 276cdf0e10cSrcweir nValue = 1; 277cdf0e10cSrcweir } 278cdf0e10cSrcweir rSet.Put( SfxUInt16Item( SID_ANIMATOR_STATE, nValue ) ); 279cdf0e10cSrcweir } 280cdf0e10cSrcweir 281cdf0e10cSrcweir /************************************************************************* 282cdf0e10cSrcweir |* 283cdf0e10cSrcweir |* Statuswerte fuer SfxChildWindows setzen 284cdf0e10cSrcweir |* 285cdf0e10cSrcweir \************************************************************************/ 286cdf0e10cSrcweir 287cdf0e10cSrcweir void DrawViewShell::SetChildWindowState( SfxItemSet& rSet ) 288cdf0e10cSrcweir { 289cdf0e10cSrcweir // Stati der SfxChild-Windows (Animator, Fontwork etc.) 290cdf0e10cSrcweir if( SFX_ITEM_AVAILABLE == rSet.GetItemState( SID_FONTWORK ) ) 291cdf0e10cSrcweir { 292cdf0e10cSrcweir sal_uInt16 nId = SvxFontWorkChildWindow::GetChildWindowId(); 293cdf0e10cSrcweir rSet.Put(SfxBoolItem(SID_FONTWORK, GetViewFrame()->HasChildWindow(nId))); 294cdf0e10cSrcweir } 295cdf0e10cSrcweir if( SFX_ITEM_AVAILABLE == rSet.GetItemState( SID_COLOR_CONTROL ) ) 296cdf0e10cSrcweir { 297cdf0e10cSrcweir sal_uInt16 nId = SvxColorChildWindow::GetChildWindowId(); 298cdf0e10cSrcweir rSet.Put(SfxBoolItem(SID_COLOR_CONTROL, GetViewFrame()->HasChildWindow(nId))); 299cdf0e10cSrcweir } 300cdf0e10cSrcweir if( SFX_ITEM_AVAILABLE == rSet.GetItemState( SID_ANIMATION_OBJECTS ) ) 301cdf0e10cSrcweir { 302cdf0e10cSrcweir sal_uInt16 nId = AnimationChildWindow::GetChildWindowId(); 303cdf0e10cSrcweir rSet.Put( SfxBoolItem( SID_ANIMATION_OBJECTS, GetViewFrame()->HasChildWindow( nId ) ) ); 304cdf0e10cSrcweir } 305cdf0e10cSrcweir if( SFX_ITEM_AVAILABLE == rSet.GetItemState( SID_NAVIGATOR ) ) 306cdf0e10cSrcweir { 307cdf0e10cSrcweir sal_uInt16 nId = SID_NAVIGATOR; 308cdf0e10cSrcweir rSet.Put( SfxBoolItem( SID_NAVIGATOR, GetViewFrame()->HasChildWindow( nId ) ) ); 309cdf0e10cSrcweir } 310cdf0e10cSrcweir if( SFX_ITEM_AVAILABLE == rSet.GetItemState( SID_BMPMASK ) ) 311cdf0e10cSrcweir { 312cdf0e10cSrcweir sal_uInt16 nId = SvxBmpMaskChildWindow::GetChildWindowId(); 313cdf0e10cSrcweir rSet.Put( SfxBoolItem( SID_BMPMASK, GetViewFrame()->HasChildWindow( nId ) ) ); 314cdf0e10cSrcweir } 315cdf0e10cSrcweir if( SFX_ITEM_AVAILABLE == rSet.GetItemState( SID_GALLERY ) ) 316cdf0e10cSrcweir { 317cdf0e10cSrcweir sal_uInt16 nId = GalleryChildWindow::GetChildWindowId(); 318cdf0e10cSrcweir rSet.Put( SfxBoolItem( SID_GALLERY, GetViewFrame()->HasChildWindow( nId ) ) ); 319cdf0e10cSrcweir } 320cdf0e10cSrcweir if( SFX_ITEM_AVAILABLE == rSet.GetItemState( SID_IMAP ) ) 321cdf0e10cSrcweir { 322cdf0e10cSrcweir sal_uInt16 nId = SvxIMapDlgChildWindow::GetChildWindowId(); 323cdf0e10cSrcweir rSet.Put( SfxBoolItem( SID_IMAP, GetViewFrame()->HasChildWindow( nId ) ) ); 324cdf0e10cSrcweir } 325cdf0e10cSrcweir if( SFX_ITEM_AVAILABLE == rSet.GetItemState( SID_LAYER_DIALOG_WIN ) ) 326cdf0e10cSrcweir { 327cdf0e10cSrcweir sal_uInt16 nId = LayerDialogChildWindow::GetChildWindowId(); 328cdf0e10cSrcweir rSet.Put( SfxBoolItem( SID_LAYER_DIALOG_WIN, GetViewFrame()->HasChildWindow( nId ) ) ); 329cdf0e10cSrcweir } 330cdf0e10cSrcweir if( SFX_ITEM_AVAILABLE == rSet.GetItemState( SID_3D_WIN ) ) 331cdf0e10cSrcweir { 332cdf0e10cSrcweir sal_uInt16 nId = Svx3DChildWindow::GetChildWindowId(); 333cdf0e10cSrcweir rSet.Put( SfxBoolItem( SID_3D_WIN, GetViewFrame()->HasChildWindow( nId ) ) ); 334cdf0e10cSrcweir } 335cdf0e10cSrcweir if( SFX_ITEM_AVAILABLE == rSet.GetItemState( SID_AVMEDIA_PLAYER ) ) 336cdf0e10cSrcweir { 337cdf0e10cSrcweir sal_uInt16 nId = ::avmedia::MediaPlayer::GetChildWindowId(); 338cdf0e10cSrcweir rSet.Put( SfxBoolItem( SID_AVMEDIA_PLAYER, GetViewFrame()->HasChildWindow( nId ) ) ); 339cdf0e10cSrcweir } 340cdf0e10cSrcweir } 341cdf0e10cSrcweir 342cdf0e10cSrcweir 343cdf0e10cSrcweir /************************************************************************* 344cdf0e10cSrcweir |* 345cdf0e10cSrcweir |* SfxRequests fuer Pipette bearbeiten 346cdf0e10cSrcweir |* 347cdf0e10cSrcweir \************************************************************************/ 348cdf0e10cSrcweir 349cdf0e10cSrcweir void DrawViewShell::ExecBmpMask( SfxRequest& rReq ) 350cdf0e10cSrcweir { 351cdf0e10cSrcweir // waehrend einer Diashow wird nichts ausgefuehrt! 352cdf0e10cSrcweir if (HasCurrentFunction(SID_PRESENTATION)) 353cdf0e10cSrcweir return; 354cdf0e10cSrcweir 355cdf0e10cSrcweir switch ( rReq.GetSlot() ) 356cdf0e10cSrcweir { 357cdf0e10cSrcweir case ( SID_BMPMASK_PIPETTE ) : 358cdf0e10cSrcweir { 359cdf0e10cSrcweir mbPipette = ( (const SfxBoolItem&) ( rReq.GetArgs()-> 360cdf0e10cSrcweir Get( SID_BMPMASK_PIPETTE ) ) ).GetValue(); 361cdf0e10cSrcweir } 362cdf0e10cSrcweir break; 363cdf0e10cSrcweir 364cdf0e10cSrcweir case ( SID_BMPMASK_EXEC ) : 365cdf0e10cSrcweir { 366cdf0e10cSrcweir SdrGrafObj* pObj = 0; 367cdf0e10cSrcweir if( mpDrawView && mpDrawView->GetMarkedObjectList().GetMarkCount() ) 368cdf0e10cSrcweir pObj = dynamic_cast< SdrGrafObj* >( mpDrawView->GetMarkedObjectList().GetMark(0)->GetMarkedSdrObj() ); 369cdf0e10cSrcweir 370cdf0e10cSrcweir if ( pObj && !mpDrawView->IsTextEdit() ) 371cdf0e10cSrcweir { 372cdf0e10cSrcweir SdrGrafObj* pNewObj = (SdrGrafObj*) pObj->Clone(); 373cdf0e10cSrcweir sal_Bool bCont = sal_True; 374cdf0e10cSrcweir 375cdf0e10cSrcweir if( pNewObj->IsLinkedGraphic() ) 376cdf0e10cSrcweir { 377cdf0e10cSrcweir QueryBox aQBox( (Window*) GetActiveWindow(), WB_YES_NO | WB_DEF_YES, 378cdf0e10cSrcweir String( SdResId( STR_RELEASE_GRAPHICLINK ) ) ); 379cdf0e10cSrcweir 380cdf0e10cSrcweir if( RET_YES == aQBox.Execute() ) 381cdf0e10cSrcweir pNewObj->ReleaseGraphicLink(); 382cdf0e10cSrcweir else 383cdf0e10cSrcweir { 384cdf0e10cSrcweir delete pNewObj; 385cdf0e10cSrcweir bCont = sal_False; 386cdf0e10cSrcweir } 387cdf0e10cSrcweir } 388cdf0e10cSrcweir 389cdf0e10cSrcweir if( bCont ) 390cdf0e10cSrcweir { 391cdf0e10cSrcweir const Graphic& rOldGraphic = pNewObj->GetGraphic(); 392cdf0e10cSrcweir const Graphic aNewGraphic( ( (SvxBmpMask*) GetViewFrame()->GetChildWindow( 393cdf0e10cSrcweir SvxBmpMaskChildWindow::GetChildWindowId() )->GetWindow() )-> 394cdf0e10cSrcweir Mask( rOldGraphic ) ); 395cdf0e10cSrcweir 396cdf0e10cSrcweir if( aNewGraphic != rOldGraphic ) 397cdf0e10cSrcweir { 398cdf0e10cSrcweir SdrPageView* pPV = mpDrawView->GetSdrPageView(); 399cdf0e10cSrcweir 400cdf0e10cSrcweir pNewObj->SetEmptyPresObj( sal_False ); 401cdf0e10cSrcweir pNewObj->SetGraphic( ( (SvxBmpMask*) GetViewFrame()->GetChildWindow( 402cdf0e10cSrcweir SvxBmpMaskChildWindow::GetChildWindowId() )->GetWindow() )-> 403cdf0e10cSrcweir Mask( pNewObj->GetGraphic() ) ); 404cdf0e10cSrcweir 405cdf0e10cSrcweir String aStr( mpDrawView->GetDescriptionOfMarkedObjects() ); 406cdf0e10cSrcweir aStr += (sal_Unicode)( ' ' ), aStr += String( SdResId( STR_EYEDROPPER ) ); 407cdf0e10cSrcweir 408cdf0e10cSrcweir mpDrawView->BegUndo( aStr ); 409cdf0e10cSrcweir mpDrawView->ReplaceObjectAtView( pObj, *pPV, pNewObj ); 410cdf0e10cSrcweir mpDrawView->EndUndo(); 411cdf0e10cSrcweir } 412cdf0e10cSrcweir } 413cdf0e10cSrcweir } 414cdf0e10cSrcweir } 415cdf0e10cSrcweir break; 416cdf0e10cSrcweir 417cdf0e10cSrcweir default: 418cdf0e10cSrcweir break; 419cdf0e10cSrcweir } 420cdf0e10cSrcweir } 421cdf0e10cSrcweir 422cdf0e10cSrcweir /************************************************************************* 423cdf0e10cSrcweir |* 424cdf0e10cSrcweir |* 425cdf0e10cSrcweir |* 426cdf0e10cSrcweir \************************************************************************/ 427cdf0e10cSrcweir 428cdf0e10cSrcweir void DrawViewShell::GetBmpMaskState( SfxItemSet& rSet ) 429cdf0e10cSrcweir { 430cdf0e10cSrcweir const SdrMarkList& rMarkList = mpDrawView->GetMarkedObjectList(); 431cdf0e10cSrcweir const SdrObject* pObj = NULL; 432cdf0e10cSrcweir sal_uInt16 nId = SvxBmpMaskChildWindow::GetChildWindowId(); 433cdf0e10cSrcweir SvxBmpMask* pDlg = NULL; 434cdf0e10cSrcweir sal_Bool bEnable = sal_False; 435cdf0e10cSrcweir 436cdf0e10cSrcweir if ( GetViewFrame()->HasChildWindow( nId ) ) 437cdf0e10cSrcweir { 438cdf0e10cSrcweir pDlg = (SvxBmpMask*) ( GetViewFrame()->GetChildWindow( nId )->GetWindow() ); 439cdf0e10cSrcweir 440cdf0e10cSrcweir if ( pDlg->NeedsColorTable() ) 441cdf0e10cSrcweir pDlg->SetColorTable( GetDoc()->GetColorTable() ); 442cdf0e10cSrcweir } 443cdf0e10cSrcweir 444cdf0e10cSrcweir if ( rMarkList.GetMarkCount() == 1 ) 445cdf0e10cSrcweir pObj = rMarkList.GetMark(0)->GetMarkedSdrObj(); 446cdf0e10cSrcweir 447cdf0e10cSrcweir // valid graphic object? 448cdf0e10cSrcweir if( pObj && pObj->ISA( SdrGrafObj ) && 449cdf0e10cSrcweir !( ((SdrGrafObj*) pObj)->IsEPS() || ((SdrGrafObj*) pObj)->IsRenderGraphic() ) && 450cdf0e10cSrcweir !mpDrawView->IsTextEdit() ) 451cdf0e10cSrcweir { 452cdf0e10cSrcweir bEnable = sal_True; 453cdf0e10cSrcweir } 454cdf0e10cSrcweir 455cdf0e10cSrcweir // put value 456cdf0e10cSrcweir rSet.Put( SfxBoolItem( SID_BMPMASK_EXEC, bEnable ) ); 457cdf0e10cSrcweir } 458cdf0e10cSrcweir 459cdf0e10cSrcweir /************************************************************************* 460cdf0e10cSrcweir |* 461cdf0e10cSrcweir |* SfxRequests fuer temporaere Funktionen 462cdf0e10cSrcweir |* 463cdf0e10cSrcweir \************************************************************************/ 464cdf0e10cSrcweir 465cdf0e10cSrcweir void DrawViewShell::FuTemp04(SfxRequest& rReq) 466cdf0e10cSrcweir { 467cdf0e10cSrcweir sal_uInt16 nSId = rReq.GetSlot(); 468cdf0e10cSrcweir switch( nSId ) 469cdf0e10cSrcweir { 470cdf0e10cSrcweir case SID_FONTWORK: 471cdf0e10cSrcweir { 472cdf0e10cSrcweir if ( rReq.GetArgs() ) 473cdf0e10cSrcweir { 474cdf0e10cSrcweir GetViewFrame()->SetChildWindow(SvxFontWorkChildWindow::GetChildWindowId(), 475cdf0e10cSrcweir ((const SfxBoolItem&) (rReq.GetArgs()-> 476cdf0e10cSrcweir Get(SID_FONTWORK))).GetValue()); 477cdf0e10cSrcweir } 478cdf0e10cSrcweir else 479cdf0e10cSrcweir { 480cdf0e10cSrcweir GetViewFrame()->ToggleChildWindow( SvxFontWorkChildWindow::GetChildWindowId() ); 481cdf0e10cSrcweir } 482cdf0e10cSrcweir 483cdf0e10cSrcweir GetViewFrame()->GetBindings().Invalidate(SID_FONTWORK); 484cdf0e10cSrcweir Cancel(); 485cdf0e10cSrcweir rReq.Ignore (); 486cdf0e10cSrcweir } 487cdf0e10cSrcweir break; 488cdf0e10cSrcweir 489cdf0e10cSrcweir case SID_COLOR_CONTROL: 490cdf0e10cSrcweir { 491cdf0e10cSrcweir if ( rReq.GetArgs() ) 492cdf0e10cSrcweir GetViewFrame()->SetChildWindow(SvxColorChildWindow::GetChildWindowId(), 493cdf0e10cSrcweir ((const SfxBoolItem&) (rReq.GetArgs()-> 494cdf0e10cSrcweir Get(SID_COLOR_CONTROL))).GetValue()); 495cdf0e10cSrcweir else 496cdf0e10cSrcweir GetViewFrame()->ToggleChildWindow(SvxColorChildWindow::GetChildWindowId() ); 497cdf0e10cSrcweir 498cdf0e10cSrcweir GetViewFrame()->GetBindings().Invalidate(SID_COLOR_CONTROL); 499cdf0e10cSrcweir Cancel(); 500cdf0e10cSrcweir rReq.Ignore (); 501cdf0e10cSrcweir } 502cdf0e10cSrcweir break; 503cdf0e10cSrcweir 504cdf0e10cSrcweir case SID_EXTRUSION_TOOGLE: 505cdf0e10cSrcweir case SID_EXTRUSION_TILT_DOWN: 506cdf0e10cSrcweir case SID_EXTRUSION_TILT_UP: 507cdf0e10cSrcweir case SID_EXTRUSION_TILT_LEFT: 508cdf0e10cSrcweir case SID_EXTRUSION_TILT_RIGHT: 509cdf0e10cSrcweir case SID_EXTRUSION_3D_COLOR: 510cdf0e10cSrcweir case SID_EXTRUSION_DEPTH: 511cdf0e10cSrcweir case SID_EXTRUSION_DIRECTION: 512cdf0e10cSrcweir case SID_EXTRUSION_PROJECTION: 513cdf0e10cSrcweir case SID_EXTRUSION_LIGHTING_DIRECTION: 514cdf0e10cSrcweir case SID_EXTRUSION_LIGHTING_INTENSITY: 515cdf0e10cSrcweir case SID_EXTRUSION_SURFACE: 516cdf0e10cSrcweir case SID_EXTRUSION_DEPTH_FLOATER: 517cdf0e10cSrcweir case SID_EXTRUSION_DIRECTION_FLOATER: 518cdf0e10cSrcweir case SID_EXTRUSION_LIGHTING_FLOATER: 519cdf0e10cSrcweir case SID_EXTRUSION_SURFACE_FLOATER: 520cdf0e10cSrcweir case SID_EXTRUSION_DEPTH_DIALOG: 521cdf0e10cSrcweir svx::ExtrusionBar::execute( mpDrawView, rReq, GetViewFrame()->GetBindings() ); 522cdf0e10cSrcweir Cancel(); 523cdf0e10cSrcweir rReq.Ignore (); 524cdf0e10cSrcweir break; 525cdf0e10cSrcweir 526cdf0e10cSrcweir case SID_FONTWORK_SHAPE: 527cdf0e10cSrcweir case SID_FONTWORK_SHAPE_TYPE: 528cdf0e10cSrcweir case SID_FONTWORK_ALIGNMENT: 529cdf0e10cSrcweir case SID_FONTWORK_SAME_LETTER_HEIGHTS: 530cdf0e10cSrcweir case SID_FONTWORK_CHARACTER_SPACING: 531cdf0e10cSrcweir case SID_FONTWORK_KERN_CHARACTER_PAIRS: 532cdf0e10cSrcweir case SID_FONTWORK_GALLERY_FLOATER: 533cdf0e10cSrcweir case SID_FONTWORK_CHARACTER_SPACING_FLOATER: 534cdf0e10cSrcweir case SID_FONTWORK_ALIGNMENT_FLOATER: 535cdf0e10cSrcweir case SID_FONTWORK_CHARACTER_SPACING_DIALOG: 536cdf0e10cSrcweir svx::FontworkBar::execute( mpDrawView, rReq, GetViewFrame()->GetBindings() ); 537cdf0e10cSrcweir Cancel(); 538cdf0e10cSrcweir rReq.Ignore (); 539cdf0e10cSrcweir break; 540cdf0e10cSrcweir 541cdf0e10cSrcweir case SID_BMPMASK: 542cdf0e10cSrcweir { 543cdf0e10cSrcweir GetViewFrame()->ToggleChildWindow( SvxBmpMaskChildWindow::GetChildWindowId() ); 544cdf0e10cSrcweir GetViewFrame()->GetBindings().Invalidate( SID_BMPMASK ); 545cdf0e10cSrcweir 546cdf0e10cSrcweir Cancel(); 547cdf0e10cSrcweir rReq.Ignore (); 548cdf0e10cSrcweir } 549cdf0e10cSrcweir break; 550cdf0e10cSrcweir 551cdf0e10cSrcweir case SID_GALLERY: 552cdf0e10cSrcweir { 553cdf0e10cSrcweir GetViewFrame()->ToggleChildWindow( GalleryChildWindow::GetChildWindowId() ); 554cdf0e10cSrcweir GetViewFrame()->GetBindings().Invalidate( SID_GALLERY ); 555cdf0e10cSrcweir 556cdf0e10cSrcweir Cancel(); 557cdf0e10cSrcweir rReq.Ignore (); 558cdf0e10cSrcweir } 559cdf0e10cSrcweir break; 560cdf0e10cSrcweir 561cdf0e10cSrcweir case SID_NAVIGATOR: 562cdf0e10cSrcweir { 563cdf0e10cSrcweir if ( rReq.GetArgs() ) 564cdf0e10cSrcweir GetViewFrame()->SetChildWindow(SID_NAVIGATOR, 565cdf0e10cSrcweir ((const SfxBoolItem&) (rReq.GetArgs()-> 566cdf0e10cSrcweir Get(SID_NAVIGATOR))).GetValue()); 567cdf0e10cSrcweir else 568cdf0e10cSrcweir GetViewFrame()->ToggleChildWindow( SID_NAVIGATOR ); 569cdf0e10cSrcweir 570cdf0e10cSrcweir GetViewFrame()->GetBindings().Invalidate(SID_NAVIGATOR); 571cdf0e10cSrcweir Cancel(); 572cdf0e10cSrcweir rReq.Ignore (); 573cdf0e10cSrcweir } 574cdf0e10cSrcweir break; 575cdf0e10cSrcweir 576cdf0e10cSrcweir case SID_ANIMATION_OBJECTS: 577cdf0e10cSrcweir { 578cdf0e10cSrcweir if ( rReq.GetArgs() ) 579cdf0e10cSrcweir GetViewFrame()->SetChildWindow( 580cdf0e10cSrcweir AnimationChildWindow::GetChildWindowId(), 581cdf0e10cSrcweir ((const SfxBoolItem&) (rReq.GetArgs()-> 582cdf0e10cSrcweir Get(SID_ANIMATION_OBJECTS))).GetValue()); 583cdf0e10cSrcweir else 584cdf0e10cSrcweir GetViewFrame()->ToggleChildWindow( 585cdf0e10cSrcweir AnimationChildWindow::GetChildWindowId() ); 586cdf0e10cSrcweir 587cdf0e10cSrcweir GetViewFrame()->GetBindings().Invalidate(SID_ANIMATION_OBJECTS); 588cdf0e10cSrcweir Cancel(); 589cdf0e10cSrcweir rReq.Ignore (); 590cdf0e10cSrcweir } 591cdf0e10cSrcweir break; 592cdf0e10cSrcweir 593cdf0e10cSrcweir case SID_CUSTOM_ANIMATION_PANEL: 594cdf0e10cSrcweir { 595cdf0e10cSrcweir // Make the slide transition panel visible (expand it) in the 596cdf0e10cSrcweir // tool pane. 597cdf0e10cSrcweir framework::FrameworkHelper::Instance(GetViewShellBase())->RequestTaskPanel( 598cdf0e10cSrcweir framework::FrameworkHelper::msCustomAnimationTaskPanelURL); 599cdf0e10cSrcweir 600cdf0e10cSrcweir Cancel(); 601cdf0e10cSrcweir rReq.Done (); 602cdf0e10cSrcweir } 603cdf0e10cSrcweir break; 604cdf0e10cSrcweir 605cdf0e10cSrcweir case SID_SLIDE_TRANSITIONS_PANEL: 606cdf0e10cSrcweir { 607cdf0e10cSrcweir // Make the slide transition panel visible (expand it) in the 608cdf0e10cSrcweir // tool pane. 609cdf0e10cSrcweir framework::FrameworkHelper::Instance(GetViewShellBase())->RequestTaskPanel( 610cdf0e10cSrcweir framework::FrameworkHelper::msSlideTransitionTaskPanelURL); 611cdf0e10cSrcweir 612cdf0e10cSrcweir Cancel(); 613cdf0e10cSrcweir rReq.Done (); 614cdf0e10cSrcweir } 615cdf0e10cSrcweir break; 616cdf0e10cSrcweir 617cdf0e10cSrcweir case SID_3D_WIN: 618cdf0e10cSrcweir { 619cdf0e10cSrcweir if ( rReq.GetArgs() ) 620cdf0e10cSrcweir GetViewFrame()->SetChildWindow( Svx3DChildWindow::GetChildWindowId(), 621cdf0e10cSrcweir ((const SfxBoolItem&) (rReq.GetArgs()-> 622cdf0e10cSrcweir Get( SID_3D_WIN ))).GetValue()); 623cdf0e10cSrcweir else 624cdf0e10cSrcweir GetViewFrame()->ToggleChildWindow( Svx3DChildWindow::GetChildWindowId() ); 625cdf0e10cSrcweir 626cdf0e10cSrcweir GetViewFrame()->GetBindings().Invalidate( SID_3D_WIN ); 627cdf0e10cSrcweir Cancel(); 628cdf0e10cSrcweir rReq.Ignore (); 629cdf0e10cSrcweir } 630cdf0e10cSrcweir break; 631cdf0e10cSrcweir 632cdf0e10cSrcweir case SID_CONVERT_TO_3D_LATHE_FAST: 633cdf0e10cSrcweir { 634cdf0e10cSrcweir // Der Aufruf ist ausreichend. Die Initialisierung per Start3DCreation und CreateMirrorPolygons 635cdf0e10cSrcweir // ist nicht mehr noetig, falls der Parameter sal_True uebergeben wird. Dann wird sofort und 636cdf0e10cSrcweir // ohne Benutzereingriff ein gekippter Rotationskoerper mit einer Achse links neben dem 637cdf0e10cSrcweir // Umschliessenden Rechteck der slektierten Objekte gezeichnet. 638cdf0e10cSrcweir mpDrawView->SdrEndTextEdit(); 639cdf0e10cSrcweir if(GetActiveWindow()) 640cdf0e10cSrcweir GetActiveWindow()->EnterWait(); 641cdf0e10cSrcweir mpDrawView->End3DCreation(sal_True); 642cdf0e10cSrcweir Cancel(); 643cdf0e10cSrcweir rReq.Ignore(); 644cdf0e10cSrcweir if(GetActiveWindow()) 645cdf0e10cSrcweir GetActiveWindow()->LeaveWait(); 646cdf0e10cSrcweir } 647cdf0e10cSrcweir break; 648cdf0e10cSrcweir 649cdf0e10cSrcweir case SID_PRESENTATION_DLG: 650cdf0e10cSrcweir { 651cdf0e10cSrcweir SetCurrentFunction( FuSlideShowDlg::Create( this, GetActiveWindow(), mpDrawView, GetDoc(), rReq ) ); 652cdf0e10cSrcweir Cancel(); 653cdf0e10cSrcweir } 654cdf0e10cSrcweir break; 655cdf0e10cSrcweir 656cdf0e10cSrcweir case SID_CUSTOMSHOW_DLG: 657cdf0e10cSrcweir { 658cdf0e10cSrcweir SetCurrentFunction( FuCustomShowDlg::Create( this, GetActiveWindow(), mpDrawView, GetDoc(), rReq ) ); 659cdf0e10cSrcweir Cancel(); 660cdf0e10cSrcweir } 661cdf0e10cSrcweir break; 662cdf0e10cSrcweir 663cdf0e10cSrcweir case SID_EXPAND_PAGE: 664cdf0e10cSrcweir { 665cdf0e10cSrcweir SetCurrentFunction( FuExpandPage::Create( this, GetActiveWindow(), mpDrawView, GetDoc(), rReq ) ); 666cdf0e10cSrcweir Cancel(); 667cdf0e10cSrcweir } 668cdf0e10cSrcweir break; 669cdf0e10cSrcweir 670cdf0e10cSrcweir case SID_SUMMARY_PAGE: 671cdf0e10cSrcweir { 672cdf0e10cSrcweir mpDrawView->SdrEndTextEdit(); 673cdf0e10cSrcweir SetCurrentFunction( FuSummaryPage::Create( this, GetActiveWindow(), mpDrawView, GetDoc(), rReq ) ); 674cdf0e10cSrcweir Cancel(); 675cdf0e10cSrcweir } 676cdf0e10cSrcweir break; 677cdf0e10cSrcweir 678cdf0e10cSrcweir case SID_AVMEDIA_PLAYER: 679cdf0e10cSrcweir { 680cdf0e10cSrcweir GetViewFrame()->ToggleChildWindow( ::avmedia::MediaPlayer::GetChildWindowId() ); 681cdf0e10cSrcweir GetViewFrame()->GetBindings().Invalidate( SID_AVMEDIA_PLAYER ); 682cdf0e10cSrcweir Cancel(); 683cdf0e10cSrcweir rReq.Ignore (); 684cdf0e10cSrcweir } 685cdf0e10cSrcweir break; 686cdf0e10cSrcweir 687cdf0e10cSrcweir case SID_LAYER_DIALOG_WIN: 688cdf0e10cSrcweir { 689cdf0e10cSrcweir if ( rReq.GetArgs() ) 690cdf0e10cSrcweir { 691cdf0e10cSrcweir GetViewFrame()->SetChildWindow( 692cdf0e10cSrcweir LayerDialogChildWindow::GetChildWindowId(), 693cdf0e10cSrcweir ((const SfxBoolItem&) (rReq.GetArgs()-> 694cdf0e10cSrcweir Get(SID_LAYER_DIALOG_WIN))).GetValue()); 695cdf0e10cSrcweir } 696cdf0e10cSrcweir else 697cdf0e10cSrcweir { 698cdf0e10cSrcweir GetViewFrame()->ToggleChildWindow( 699cdf0e10cSrcweir LayerDialogChildWindow::GetChildWindowId()); 700cdf0e10cSrcweir } 701cdf0e10cSrcweir 702cdf0e10cSrcweir GetViewFrame()->GetBindings().Invalidate(SID_LAYER_DIALOG_WIN); 703cdf0e10cSrcweir Cancel(); 704cdf0e10cSrcweir rReq.Ignore (); 705cdf0e10cSrcweir } 706cdf0e10cSrcweir break; 707cdf0e10cSrcweir 708cdf0e10cSrcweir case SID_DISPLAY_MASTER_BACKGROUND: 709cdf0e10cSrcweir case SID_DISPLAY_MASTER_OBJECTS: 710cdf0e10cSrcweir { 711cdf0e10cSrcweir // Determine current page and toggle visibility of layers 712cdf0e10cSrcweir // associated with master page background or master page shapes. 713cdf0e10cSrcweir SdPage* pPage = GetActualPage(); 714cdf0e10cSrcweir if (pPage != NULL 715cdf0e10cSrcweir && GetDoc() != NULL) 716cdf0e10cSrcweir { 717cdf0e10cSrcweir SetOfByte aVisibleLayers = pPage->TRG_GetMasterPageVisibleLayers(); 718cdf0e10cSrcweir SdrLayerAdmin& rLayerAdmin = GetDoc()->GetLayerAdmin(); 719cdf0e10cSrcweir sal_uInt8 aLayerId; 720cdf0e10cSrcweir if (nSId == SID_DISPLAY_MASTER_BACKGROUND) 721cdf0e10cSrcweir aLayerId = rLayerAdmin.GetLayerID(String(SdResId(STR_LAYER_BCKGRND)), sal_False); 722cdf0e10cSrcweir else 723cdf0e10cSrcweir aLayerId = rLayerAdmin.GetLayerID(String(SdResId(STR_LAYER_BCKGRNDOBJ)), sal_False); 724cdf0e10cSrcweir aVisibleLayers.Set(aLayerId, !aVisibleLayers.IsSet(aLayerId)); 725cdf0e10cSrcweir pPage->TRG_SetMasterPageVisibleLayers(aVisibleLayers); 726cdf0e10cSrcweir } 727cdf0e10cSrcweir Cancel(); 728cdf0e10cSrcweir rReq.Ignore (); 729cdf0e10cSrcweir } 730cdf0e10cSrcweir break; 731cdf0e10cSrcweir 732cdf0e10cSrcweir default: 733cdf0e10cSrcweir { 734cdf0e10cSrcweir DBG_ASSERT( 0, "Slot ohne Funktion" ); 735cdf0e10cSrcweir Cancel(); 736cdf0e10cSrcweir rReq.Ignore (); 737cdf0e10cSrcweir } 738cdf0e10cSrcweir break; 739cdf0e10cSrcweir } 740cdf0e10cSrcweir } 741cdf0e10cSrcweir 742cdf0e10cSrcweir } // end of namespace sd 743