summaryrefslogtreecommitdiff
path: root/sd/source/ui/slidesorter/controller/SlsClipboard.cxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2005-04-12 15:56:40 +0000
committerOliver Bolte <obo@openoffice.org>2005-04-12 15:56:40 +0000
commit35142365eb337db1e47f443b8bbb7a1228ff87bd (patch)
treee83b8bfb2dda77cdfb318efb62ad408579e07291 /sd/source/ui/slidesorter/controller/SlsClipboard.cxx
parentdf1b22f8424763a3b3b16626d2b60e8f31300f1e (diff)
INTEGRATION: CWS impress44 (1.11.10); FILE MERGED
2005/04/05 08:57:18 af 1.11.10.1: #i46672# Handling SID_DELETE differently from SID_CUT.
Diffstat (limited to 'sd/source/ui/slidesorter/controller/SlsClipboard.cxx')
-rw-r--r--sd/source/ui/slidesorter/controller/SlsClipboard.cxx23
1 files changed, 19 insertions, 4 deletions
diff --git a/sd/source/ui/slidesorter/controller/SlsClipboard.cxx b/sd/source/ui/slidesorter/controller/SlsClipboard.cxx
index 5b2084c17a2c..899661d8e36b 100644
--- a/sd/source/ui/slidesorter/controller/SlsClipboard.cxx
+++ b/sd/source/ui/slidesorter/controller/SlsClipboard.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: SlsClipboard.cxx,v $
*
- * $Revision: 1.11 $
+ * $Revision: 1.12 $
*
- * last change: $Author: vg $ $Date: 2005-03-23 14:11:38 $
+ * last change: $Author: obo $ $Date: 2005-04-12 16:56:40 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -134,7 +134,6 @@ void Clipboard::HandleSlotCall (SfxRequest& rRequest)
switch (rRequest.GetSlot())
{
case SID_CUT:
- case SID_DELETE:
if (pCurrentFunction != NULL)
pCurrentFunction->DoCut();
else
@@ -163,6 +162,11 @@ void Clipboard::HandleSlotCall (SfxRequest& rRequest)
mrController.GetView().LockRedraw (FALSE);
rRequest.Done();
break;
+
+ case SID_DELETE:
+ DoDelete();
+ rRequest.Done();
+ break;
}
}
@@ -173,7 +177,18 @@ void Clipboard::DoCut (::Window* pWindow)
{
if (mrController.GetModel().GetPageCount() > 1)
{
- DoCopy (pWindow);
+ DoCopy(pWindow);
+ DoDelete(pWindow);
+ }
+}
+
+
+
+
+void Clipboard::DoDelete (::Window* pWindow)
+{
+ if (mrController.GetModel().GetPageCount() > 1)
+ {
mrController.DeleteSelectedPages();
}
}