summaryrefslogtreecommitdiff
path: root/sd/source/ui
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2005-04-27 07:55:29 +0000
committerOliver Bolte <obo@openoffice.org>2005-04-27 07:55:29 +0000
commit186dcfb0e2d39c16965c545d26bd427500668438 (patch)
tree10119f0e8303bc6aba17e169f45d414777e72408 /sd/source/ui
parentf9abe5e10c7201f4861b7da48361ca6822ae8dcf (diff)
INTEGRATION: CWS impress48 (1.15.4); FILE MERGED
2005/04/21 12:10:16 af 1.15.4.1: #120092# Added support for SID_ASSIGN_LAYOUT.
Diffstat (limited to 'sd/source/ui')
-rw-r--r--sd/source/ui/slidesorter/controller/SlsSlotManager.cxx18
1 files changed, 16 insertions, 2 deletions
diff --git a/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx b/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx
index 22fb354e4a0c..d5fcc91bf865 100644
--- a/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx
+++ b/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: SlsSlotManager.cxx,v $
*
- * $Revision: 1.15 $
+ * $Revision: 1.16 $
*
- * last change: $Author: obo $ $Date: 2005-04-12 16:57:39 $
+ * last change: $Author: obo $ $Date: 2005-04-27 08:55:29 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -91,6 +91,7 @@
#include "DrawDocShell.hxx"
#include "PaneManager.hxx"
#include "ViewShellBase.hxx"
+#include "ViewShellImplementation.hxx"
#include "sdattr.hxx"
#include "PresentationViewShell.hxx"
#include "TaskPaneViewShell.hxx"
@@ -307,6 +308,19 @@ void SlotManager::FuTemporary (SfxRequest& rRequest)
rRequest.Done ();
break;
+ case SID_ASSIGN_LAYOUT:
+ {
+ SFX_REQUEST_ARG (rRequest, pWhatPage, SfxUInt32Item, ID_VAL_WHATPAGE, FALSE);
+ SFX_REQUEST_ARG (rRequest, pWhatLayout, SfxUInt32Item, ID_VAL_WHATLAYOUT, FALSE);
+ mrController.GetViewShell().mpImpl->AssignLayout(
+ pDocument->GetSdPage((USHORT)pWhatPage->GetValue(),
+ mrController.GetModel().GetPageType()),
+ (AutoLayout)pWhatLayout->GetValue());
+ rShell.Cancel();
+ rRequest.Done ();
+ }
+ break;
+
default:
break;
}