Created attachment 152768 [details] print types of CurrentController and CurrentController.ActiveSheet I'm trying to figure out from docs how to get a sheet by name, and it turns out there's documentation missing. At the very least, if you go here https://api.libreoffice.org/docs/idl/ref/interfacecom_1_1sun_1_1star_1_1frame_1_1XController.html You'll find out that there's no "ActiveSheet" field. However if you do: 1. Run office as soffice --calc --accept="socket,host=localhost,port=2002;urp;StarOffice.ServiceManager" 2. Execute the attached script You'll find out that XController actually does have the field.
get/setActiveSheet() methods from com::sun::star::sheet::XSpreadsheetView belong to service "SpreadsheetView": https://api.libreoffice.org/docs/idl/ref/servicecom_1_1sun_1_1star_1_1sheet_1_1SpreadsheetView.html#a25ce2a7ea898c267c0e90ba8ea5c43b3
(In reply to Oliver Brinzing from comment #1) > get/setActiveSheet() methods from com::sun::star::sheet::XSpreadsheetView > belong to service "SpreadsheetView": > > https://api.libreoffice.org/docs/idl/ref/ > servicecom_1_1sun_1_1star_1_1sheet_1_1SpreadsheetView. > html#a25ce2a7ea898c267c0e90ba8ea5c43b3 Thank, I think I see. So, currently provided by an object functions are determined by services it implements (the "supportedServices=" string when printing the object in python).