summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Lippka <cl@openoffice.org>2010-09-22 17:52:19 +0200
committerChristian Lippka <cl@openoffice.org>2010-09-22 17:52:19 +0200
commit4301e7117ecd4cce62483cd17b81c1ebdacce072 (patch)
treee0d3ee666b0295b4e46b0c470b7e427b27c07e91
parentd8cba2db6ae4a6a073621215515aec6f0c4fc606 (diff)
impressdefaults1: #i112004# toggle rotation mode
-rwxr-xr-x[-rw-r--r--]sd/source/ui/func/fusel.cxx3
-rwxr-xr-xsd/source/ui/view/drviewse.cxx10
2 files changed, 13 insertions, 0 deletions
diff --git a/sd/source/ui/func/fusel.cxx b/sd/source/ui/func/fusel.cxx
index 2ddf6a5fb885..332f9971c611 100644..100755
--- 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)