Apologies for this rooky questions : I am still a bit confused in working with BASIC and LO API. I was used in the past to develop with OSF/DCE and all its inticacies.
As stated here [Handling UNO Objects - Apache OpenOffice Wiki]
In Java and C++, it is necessary to obtain a reference to each interface before calling one of its methods. In Basic, every method of every supported interface can be called directly at the object without querying for the appropriate interface in advance. The ‘.
’ operator is used:
Additionally, Apache OpenOffice Basic interprets pairs of get and set methods at UNO objects as Basic object properties if they follow this pattern:
- SomeType getSomeProperty()*
- void setSomeProperty(SomeType aValue)*
My working paradigm is to use MRI / Xray to scan properties, methods, service etc. and, by looking at the various classes, trying to access the item (property or method). This works most of the time. My question however is the following:
- Are all relevant properties and methods available in BASIC ?
- If yes, where can I find a reference of the various BASIC modules/services to call ? e.g. if I ha this piece of code:
oDoc = ThisComponent
oForm = oDoc.Drawpage.Forms
Which classes am I precisely using ? Does a list of BASIC UNO service exist ?
Thanks.