[Libreoffice-bugs] [Bug 61424] CONFIGURATION: Normal view not possible with custom short cut key

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Jun 16 21:43:17 UTC 2017


https://bugs.documentfoundation.org/show_bug.cgi?id=61424

--- Comment #21 from trashyankes at wp.pl ---
every thing work "fine", simply "normal view" action is bind to different thing
that button in menu.

Using macro recording I find that "view->normal" action call:

```
dispatcher.executeDispatch(document, ".uno:PageMode", "", 0, Array())
```

but button in menu call:

```
dispatcher.executeDispatch(document, ".uno:NormalMultiPaneGUI", "", 0, Array())
```

This give us one workaround, simply crate macro that call correct action for
you:

```
sub Main
rem ----------------------------------------------------------------------
rem define variables
dim document   as object
dim dispatcher as object
rem ----------------------------------------------------------------------
rem get access to the document
document   = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")

rem ----------------------------------------------------------------------
rem dispatcher.executeDispatch(document, ".uno:NotesMode", "", 0, Array())

rem ----------------------------------------------------------------------
dispatcher.executeDispatch(document, ".uno:NormalMultiPaneGUI", "", 0, Array())


end sub
```

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20170616/f243f1f4/attachment.html>


More information about the Libreoffice-bugs mailing list