[Libreoffice-bugs] [Bug 127009] New: "Selection" property is empty when selecting a slide in Slides pane
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Sun Aug 18 13:37:59 UTC 2019
https://bugs.documentfoundation.org/show_bug.cgi?id=127009
Bug ID: 127009
Summary: "Selection" property is empty when selecting a slide
in Slides pane
Product: LibreOffice
Version: 6.2.5.2 release
Hardware: All
OS: Linux (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: sdk
Assignee: libreoffice-bugs at lists.freedesktop.org
Reporter: hi-angel at yandex.ru
Created attachment 153473
--> https://bugs.documentfoundation.org/attachment.cgi?id=153473&action=edit
Connect to LO server, and print `CurrentComponent.CurrentSelection`
I need to programmatically focus a slide in Slides pane, so I could copy the
slide. However, it seems like selection of the slide does not influence the
Selection property.
# Steps to reproduce
1. Run `soffice --impress
--accept="socket,host=localhost,port=2002;urp;StarOffice.ServiceManager"`, and
dismiss "Select a Template" window.
2. There should be a pane titled "Slides" on the left with a single slide.
Click it. (note, how Edit → Copy menu was grayed out before, and became
available afterwards, which means you succeeded in selecting the slide)
3. Execute attached `test.py` script, which prints the currently selected
object.
## Expected
Something different from `None`
## Actual
It prints:
None
# Additional information
For background see also:
https://ask.libreoffice.org/en/question/205218/uno-how-to-focus-a-slide/
https://ask.libreoffice.org/en/question/204747/uno-copy-a-slide-between-2-impress-documents/
--
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/20190818/575b0e33/attachment-0001.html>
More information about the Libreoffice-bugs
mailing list