Bug 123496 - Make .uno:GoToCell respect selection mode
Summary: Make .uno:GoToCell respect selection mode
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: sdk (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Cell-Selection
  Show dependency treegraph
 
Reported: 2019-02-16 09:48 UTC by Buovjaga
Modified: 2019-03-21 14:17 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Buovjaga 2019-02-16 09:48:54 UTC
Would be nice, if .uno:GoToCell behaved like moving with arrow keys in Extended or Adding selection modes.
In Extended, it would extend the selection.
In Adding, it would not lose the existing selection (and only move the focus rectangle to the target cell).

With this functionality, a perfect workaround macro for bug 123490 could be created.

Example of a simple GoToCell macro:

sub GoingToCell
dim document   as object
dim dispatcher as object
document   = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
dim args1(0) as new com.sun.star.beans.PropertyValue
args1(0).Name = "ToPoint"
args1(0).Value = "$F$17"
dispatcher.executeDispatch(document, ".uno:GoToCell", "", 0, args1())
end sub
Comment 1 Buovjaga 2019-02-17 08:02:32 UTC
(In reply to Buovjaga from comment #0)
> With this functionality, a perfect workaround macro for bug 123490 could be
> created.

Now I realised a perfect macro solution is Shift-down-arrow + Shift-up-arrow!
Comment 2 Xisco Faulí 2019-03-21 14:17:31 UTC
Moving to NEW