[Libreoffice-bugs] [Bug 126416] New: CurrentController in LO Calc offers "ActiveSheet" but not "Sheets"

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Jul 15 22:54:14 UTC 2019


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

            Bug ID: 126416
           Summary: CurrentController in LO Calc offers "ActiveSheet" but
                    not "Sheets"
           Product: LibreOffice
           Version: 6.2.4.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: sdk
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: hi-angel at yandex.ru

Created attachment 152796
  --> https://bugs.documentfoundation.org/attachment.cgi?id=152796&action=edit
script to try accessing "Sheets" in CurrentController

If CurrentController offers ActiveSheet, why not to make it offer "Sheets"
property as well?

To me it doesn't make sense, and costed some hours of research until I blindly
listed methods in XComponent that's higher the stack, and found "Sheets" there.

# Steps to reproduce

1. Execute: soffice --calc
--accept="socket,host=localhost,port=2002;urp;StarOffice.ServiceManager"
2. Download the attachment (script to try accessing "Sheets" in
CurrentController).
3. In directory with the script run `python ./connect-to-lo.py`

# Expected

Script finishes without errors

# Actual

Script fails on accessing model.CurrentController.Sheets

-- 
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/20190715/f705998b/attachment.html>


More information about the Libreoffice-bugs mailing list