ViewShellImplementation.cxx (7a32b0c8) | ViewShellImplementation.cxx (3091fa8a) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 39 unchanged lines hidden (view full) --- 48#include "DrawViewShell.hxx" 49#include "ViewShellHint.hxx" 50#include "SidebarPanelId.hxx" 51#include "framework/FrameworkHelper.hxx" 52 53#include <sfx2/bindings.hxx> 54#include <sfx2/dispatch.hxx> 55#include <sfx2/request.hxx> | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 39 unchanged lines hidden (view full) --- 48#include "DrawViewShell.hxx" 49#include "ViewShellHint.hxx" 50#include "SidebarPanelId.hxx" 51#include "framework/FrameworkHelper.hxx" 52 53#include <sfx2/bindings.hxx> 54#include <sfx2/dispatch.hxx> 55#include <sfx2/request.hxx> |
56#include <sfx2/sidebar/Sidebar.hxx> |
|
56#include <svl/aeitem.hxx> 57#include <svx/imapdlg.hxx> 58#include <vcl/msgbox.hxx> 59#include <basic/sbstar.hxx> 60#include "undo/undoobjects.hxx" 61 62#include <com/sun/star/drawing/framework/XControllerManager.hpp> 63 --- 78 unchanged lines hidden (view full) --- 142 /* 143 SFX_REQUEST_ARG (rRequest, pNewAutoLayout, SfxUInt32Item, ID_VAL_WHATLAYOUT, sal_False); 144 eNewAutoLayout = (AutoLayout) pNewAutoLayout->GetValue 145 (); 146 */ 147 } 148 149 // Make the layout menu visible in the tool pane. | 57#include <svl/aeitem.hxx> 58#include <svx/imapdlg.hxx> 59#include <vcl/msgbox.hxx> 60#include <basic/sbstar.hxx> 61#include "undo/undoobjects.hxx" 62 63#include <com/sun/star/drawing/framework/XControllerManager.hpp> 64 --- 78 unchanged lines hidden (view full) --- 143 /* 144 SFX_REQUEST_ARG (rRequest, pNewAutoLayout, SfxUInt32Item, ID_VAL_WHATLAYOUT, sal_False); 145 eNewAutoLayout = (AutoLayout) pNewAutoLayout->GetValue 146 (); 147 */ 148 } 149 150 // Make the layout menu visible in the tool pane. |
150 SfxBoolItem aMakeToolPaneVisible (ID_VAL_ISVISIBLE, sal_True); 151 SfxUInt32Item aPanelId (ID_VAL_PANEL_INDEX, sidebar::PID_LAYOUT); 152 SfxViewFrame* pFrame = mrViewShell.GetViewFrame(); 153 if (pFrame!=NULL && pFrame->GetDispatcher()!=NULL) 154 { 155 pFrame->GetDispatcher()->Execute ( 156 SID_SHOW_TOOL_PANEL, 157 SFX_CALLMODE_ASYNCHRON | SFX_CALLMODE_RECORD, 158 &aMakeToolPaneVisible, 159 &aPanelId, 160 NULL); 161 } 162 else 163 { 164 DBG_ASSERT(pFrame!=NULL && pFrame->GetDispatcher()!=NULL, 165 "ViewShell::Implementation::ProcessModifyPageSlot(): can not get dispatcher"); 166 } 167 168 // We have activated a non-modal control in the task pane. 169 // Because it does not return anything we can not do anything 170 // more right now and have to exit here. | 151 sfx2::sidebar::Sidebar::ShowPanel( 152 rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ImpressLayoutsPanel")), 153 mrViewShell.GetViewFrame()->GetFrame().GetFrameInterface()); |
171 break; 172 } 173 else if (pArgs->Count() == 4) 174 { 175 SFX_REQUEST_ARG (rRequest, pNewName, SfxStringItem, ID_VAL_PAGENAME, sal_False); 176 SFX_REQUEST_ARG (rRequest, pNewAutoLayout, SfxUInt32Item, ID_VAL_WHATLAYOUT, sal_False); 177 SFX_REQUEST_ARG (rRequest, pBVisible, SfxBoolItem, ID_VAL_ISPAGEBACK, sal_False); 178 SFX_REQUEST_ARG (rRequest, pBObjsVisible, SfxBoolItem, ID_VAL_ISPAGEOBJ, sal_False); --- 266 unchanged lines hidden --- | 154 break; 155 } 156 else if (pArgs->Count() == 4) 157 { 158 SFX_REQUEST_ARG (rRequest, pNewName, SfxStringItem, ID_VAL_PAGENAME, sal_False); 159 SFX_REQUEST_ARG (rRequest, pNewAutoLayout, SfxUInt32Item, ID_VAL_WHATLAYOUT, sal_False); 160 SFX_REQUEST_ARG (rRequest, pBVisible, SfxBoolItem, ID_VAL_ISPAGEBACK, sal_False); 161 SFX_REQUEST_ARG (rRequest, pBObjsVisible, SfxBoolItem, ID_VAL_ISPAGEOBJ, sal_False); --- 266 unchanged lines hidden --- |