createUnoService

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
AWT_Lyle
Posts: 2
Joined: Wed Sep 03, 2008 12:04 am

createUnoService

Post by AWT_Lyle »

I've been using Excel VBA and am migrating to OO Calc. I ran the record macro to save a workbook and the code included the following:

[document = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")]

Where would look to get to know what functions are available such as "createUnoService" and methods such as ("com.sun.star.frame.DispatchHelper").
Where would I go to learn what "ThisComponent.CurrentController.Frame" is or when to use it?

Lyle
OOo 2.4.X on Ms Windows XP
User avatar
ccornell
Volunteer
Posts: 611
Joined: Sun Oct 07, 2007 7:21 am

Re: createUnoService

Post by ccornell »

There are a few online resources available to you:
The Developer's Guide at: http://wiki.services.openoffice.org/wik ... n/DevGuide
The BASIC Guide at http://wiki.services.openoffice.org/wik ... ASIC_Guide
and the IDL Reference at: http://api.openoffice.org/docs/common/r ... le-ix.html (the IDL Reference is linked from both the Developer's Guide and the BASIC Guide)

For some introductory info on createUnoService, you can start here: http://wiki.services.openoffice.org/wik ... _Guide/UNO

For something like com.sun.star.frame.DispatchHelper, you can find some info here: http://api.openoffice.org/docs/common/r ... elper.html
Post Reply