Page 1 of 1

List of Commands, properties and Methods

Posted: Wed Jan 28, 2009 6:54 am
by Ant
I'm coding in the dark.
Where can I find a resource that lists commands, methods & properties?

I've searched oOO help and the internet but can find nothing.

I'm trying to code ooBase in Basic

Re: List of Commands, properties and Methods

Posted: Wed Jan 28, 2009 7:30 am
by FJCC
I don't work with Base, but I can point you to some basic documentation. The official reference for the API is at http://api.openoffice.org/. Click on the IDL reference link under Developer's Guide on the left. The Developers Guide, listed under "Browse API related Documentation Online" is full of information, though the examples are mostly in JAVA.
I found both of these took some getting used to.

Andrew Pitonyak has written very useful documents for Macros. He has a web page that includes a document dedicated to database access. I think the link is
http://www.pitonyak.org/database/AndrewBase.odt

The XRay tool is indispensable for writing macros. It tells you the properties, methods, and services for any object and will bring up the API reference if you down load the SDK. It is at this link: http://ooomacros.org/dev.php#101416

I hope that can get you started. For specific questions, the people on this forum are very helpful.

Re: List of Commands, properties and Methods

Posted: Sat Feb 07, 2009 9:06 am
by sqykly
Also, most (all?) Uno objects have the properties "dbg_properties" and "dbg_methods", which return a list of properties/methods as a string. There's another property that lists supported interfaces, but if you're using Basic, you probably won't need it. If you can't find the objects to begin with, you can get almost all of them with createUnoService(servicename) for objects that are not subordinates of other objects or through thisComponent and its subordinates. If you don't know what services you're looking for in the first place, the Basic programmer's guide on the API wiki is a decent start, and the IDL reference knows almost everything.

Re: List of Commands, properties and Methods

Posted: Thu Jan 23, 2020 10:02 pm
by jkjambsj
FJCC wrote:The XRay tool is indispensable for writing macros. It tells you the properties, methods, and services for any object and will bring up the API reference if you down load the SDK. It is at this link: http://ooomacros.org/dev.php#101416
Hello - is there an updated link please for the XRay tool please? I can't find anything remotely appropriate on that page.

Thanks

Re: List of Commands, properties and Methods

Posted: Thu Jan 23, 2020 10:06 pm
by RoryOF