List of Commands, properties and Methods

Creating a macro - Writing a Script - Using the API

List of Commands, properties and Methods

Postby Ant » Wed Jan 28, 2009 6:54 am

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
OOo 3.0.X on Ms Windows XP + MS Windows Vista
User avatar
Ant
 
Posts: 21
Joined: Wed Oct 08, 2008 5:22 am

Re: List of Commands, properties and Methods

Postby FJCC » Wed Jan 28, 2009 7:30 am

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.
AOO 3.4 or 4.0 on MS Windows XP ( before 2013-08-03) or Windows 7
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
FJCC
Moderator
 
Posts: 3689
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: List of Commands, properties and Methods

Postby sqykly » Sat Feb 07, 2009 9:06 am

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.
OOo 3.0.X on Ms Windows XP
sqykly
 
Posts: 27
Joined: Mon Nov 24, 2008 8:28 am


Return to Macros and UNO API

Who is online

Users browsing this forum: No registered users and 5 guests