diff options
author | Niklas Nebel <nn@openoffice.org> | 2002-08-30 17:42:35 +0000 |
---|---|---|
committer | Niklas Nebel <nn@openoffice.org> | 2002-08-30 17:42:35 +0000 |
commit | 298575f26c9a3116d18645849b52f7a88d8eb6b2 (patch) | |
tree | aa227c57ada9a66ee48478e03b3fbbdcb3dedc38 /sc/source/ui/view/cellsh3.cxx | |
parent | 95b2a033c1fae093c182817ce2a618ee2778730a (diff) |
#74215# allow locked modifiers in column/row headers
Diffstat (limited to 'sc/source/ui/view/cellsh3.cxx')
-rw-r--r-- | sc/source/ui/view/cellsh3.cxx | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/sc/source/ui/view/cellsh3.cxx b/sc/source/ui/view/cellsh3.cxx index f93d61d79d93..7e377e6c6e53 100644 --- a/sc/source/ui/view/cellsh3.cxx +++ b/sc/source/ui/view/cellsh3.cxx @@ -2,9 +2,9 @@ * * $RCSfile: cellsh3.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: mba $ $Date: 2002-07-08 08:02:27 $ + * last change: $Author: nn $ $Date: 2002-08-30 18:42:35 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -165,10 +165,24 @@ void ScCellShell::Execute( SfxRequest& rReq ) } pTabViewShell->LockModifiers( nMode ); - rBindings.Invalidate( SID_STATUS_SELMODE ); + } + else + { + // no arguments (also executed by double click on the status bar controller): + // advance to next selection mode - rReq.Done(); + USHORT nModifiers = pTabViewShell->GetLockedModifiers(); + switch ( nModifiers ) + { + case KEY_SHIFT: nModifiers = KEY_MOD1; break; // EXT -> ADD + case KEY_MOD1: nModifiers = 0; break; // ADD -> STD + default: nModifiers = KEY_SHIFT; break; // STD -> EXT + } + pTabViewShell->LockModifiers( nModifiers ); } + + rBindings.Invalidate( SID_STATUS_SELMODE ); + rReq.Done(); break; // SID_STATUS_SELMODE_NORM wird nicht benutzt ??? |