From 4301e7117ecd4cce62483cd17b81c1ebdacce072 Mon Sep 17 00:00:00 2001 From: Christian Lippka Date: Wed, 22 Sep 2010 17:52:19 +0200 Subject: impressdefaults1: #i112004# toggle rotation mode --- sd/source/ui/func/fusel.cxx | 3 +++ sd/source/ui/view/drviewse.cxx | 10 ++++++++++ 2 files changed, 13 insertions(+) mode change 100644 => 100755 sd/source/ui/func/fusel.cxx diff --git a/sd/source/ui/func/fusel.cxx b/sd/source/ui/func/fusel.cxx old mode 100644 new mode 100755 index 2ddf6a5fb885..332f9971c611 --- a/sd/source/ui/func/fusel.cxx +++ b/sd/source/ui/func/fusel.cxx @@ -436,6 +436,9 @@ BOOL FuSelection::MouseButtonDown(const MouseEvent& rMEvt) mpView->BegMarkObj(aMDPos); } } + + if( bMarked && (nSlotId == SID_OBJECT_ROTATE) && !rMEvt.IsShift() ) + mpViewShell->GetViewFrame()->GetDispatcher()->Execute(SID_OBJECT_SELECT, SFX_CALLMODE_SYNCHRON); } } } diff --git a/sd/source/ui/view/drviewse.cxx b/sd/source/ui/view/drviewse.cxx index 6f6f49fdc93c..020f95b5af89 100755 --- a/sd/source/ui/view/drviewse.cxx +++ b/sd/source/ui/view/drviewse.cxx @@ -329,6 +329,16 @@ void DrawViewShell::FuPermanent(SfxRequest& rReq) { short nSlotId = rReq.GetSlot(); + if( nSlotId == SID_OBJECT_ROTATE ) + { + // togle rotation + if( nOldSId == nSlotId ) + { + nSlotId = SID_OBJECT_SELECT; + rReq.SetSlot( nSlotId ); + } + } + if (nSlotId == SID_OBJECT_CROOK_ROTATE || nSlotId == SID_OBJECT_CROOK_SLANT || nSlotId == SID_OBJECT_CROOK_STRETCH) -- cgit