summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/cellsh3.cxx
diff options
context:
space:
mode:
authorNiklas Nebel <nn@openoffice.org>2002-08-30 17:42:35 +0000
committerNiklas Nebel <nn@openoffice.org>2002-08-30 17:42:35 +0000
commit298575f26c9a3116d18645849b52f7a88d8eb6b2 (patch)
treeaa227c57ada9a66ee48478e03b3fbbdcb3dedc38 /sc/source/ui/view/cellsh3.cxx
parent95b2a033c1fae093c182817ce2a618ee2778730a (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.cxx22
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 ???