Jorge Marques Pelizzoni wrote:
> Hi, all!
>
> I'd like to write a macro setting some of OOo's options (Menu Tools->Options)
> programatically. Can this be done?
>
> So far, by means of recording a macro, I've just got to:
>
> dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
> dispatcher.executeDispatch(document, ".uno:OptionsTreeDialog", "", 0,
> Array())
>
> which displays the options dialog. I guess using the right command URLs might
> do
> it, but I cannot find this sort of info in the docs.
That will not lead to any results. You have to use the configuration
API. You can find out more about it in the Developers Guide and maybe in
other sources. Additionally you must find out the "configuration path
name" of the setting you want to change.
Best regards,
Mathias
--
Mathias Bauer - OpenOffice.org Application Framework Project Lead
Please reply to the list only, [EMAIL PROTECTED] is a spam sink.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]