summaryrefslogtreecommitdiff
path: root/sd/source/ui/slidesorter/controller/SlsClipboard.cxx
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2005-12-14 16:20:20 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2005-12-14 16:20:20 +0000
commitd5fa0e7467d36bb377bd55b465d4a0bea4d2aca2 (patch)
tree2c266b3804355a13f9b37b7c046f02dc3f8a65af /sd/source/ui/slidesorter/controller/SlsClipboard.cxx
parentb4a5a699367c673f410845a63a7944b90a0bf889 (diff)
INTEGRATION: CWS impressfunctions (1.15.28); FILE MERGED
2005/11/28 17:56:09 cl 1.15.28.2: RESYNC: (1.15-1.16); FILE MERGED 2005/10/28 11:00:51 cl 1.15.28.1: #125341# reworked FuPoor classes to use refcounting
Diffstat (limited to 'sd/source/ui/slidesorter/controller/SlsClipboard.cxx')
-rw-r--r--sd/source/ui/slidesorter/controller/SlsClipboard.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/sd/source/ui/slidesorter/controller/SlsClipboard.cxx b/sd/source/ui/slidesorter/controller/SlsClipboard.cxx
index 63d542c26417..e939e2405fb9 100644
--- a/sd/source/ui/slidesorter/controller/SlsClipboard.cxx
+++ b/sd/source/ui/slidesorter/controller/SlsClipboard.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: SlsClipboard.cxx,v $
*
- * $Revision: 1.16 $
+ * $Revision: 1.17 $
*
- * last change: $Author: rt $ $Date: 2005-10-19 12:25:42 $
+ * last change: $Author: rt $ $Date: 2005-12-14 17:20:20 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -108,20 +108,20 @@ Clipboard::~Clipboard (void)
*/
void Clipboard::HandleSlotCall (SfxRequest& rRequest)
{
- FuPoor* pCurrentFunction = mrController.GetViewShell().GetActualFunction();
+ FunctionReference xFunc( mrController.GetViewShell().GetCurrentFunction() );
switch (rRequest.GetSlot())
{
case SID_CUT:
- if (pCurrentFunction != NULL)
- pCurrentFunction->DoCut();
+ if(xFunc.is())
+ xFunc->DoCut();
else
DoCut();
rRequest.Done();
break;
case SID_COPY:
- if (pCurrentFunction != NULL)
- pCurrentFunction->DoCopy();
+ if(xFunc.is())
+ xFunc->DoCopy();
else
DoCopy();
rRequest.Done();
@@ -134,8 +134,8 @@ void Clipboard::HandleSlotCall (SfxRequest& rRequest)
if (mrController.GetModel().GetEditMode() != EM_MASTERPAGE)
{
mrController.GetView().LockRedraw (TRUE);
- if (pCurrentFunction != NULL)
- pCurrentFunction->DoPaste();
+ if(xFunc.is())
+ xFunc->DoPaste();
else
DoPaste();
mrController.MakeSelectionVisible();