Hi Matthias,

> Menu commands are command strings that are handed over to the so called
> Dispatch Framework. You can place "internal" commands there and then
> some OOo code will be called or (if an "interceptor" is placed into OOo)
> also some "external" code. You can also place "external" commands there
> that can trigger code you provide in your component.
> 
> To make OOo call such "external" code you have to use commands with your
> own naming scheme and implement and install a so called "protocol
> handler" that handles commands using the scheme. All this is described
> in the Developers Guide in the chapters about Dispatching and Add-Ons.

Up to now I read a lot in the Dev-Guide. Please let me ask you some
further questions whether I understood the Dev-Guide right and my
concept is OK.

What I want to do after starting OO from a Java application:

1. adding a menu and toolbar item with the commandURL
"vnd.twc.oo.oocom:SaveACopy" (I did this already and the menu item is
grey - it is not known up to now).

2. after clicking on the menu item, I want start external code that pops
up a window with a selection menu. After selecting and clicking OK, the
selection is printed on System.out.println(). After closing OO the
command URL should be no more available for OO.

Solution possiblity for 2.:
As far as I read, using Jobs as described in 4.7.2 is not a good
solution, because I can't display a user interface from synchronous job.
A asynchronous job has problems with model interfaces so I shouldn't use it.

Solution possiblity for 2.:
Other solution is to use protocol handlers. But if I understood right, I
have to install them and they will be available after closing OO.
If there is no other solution, I have to check at startup whether the
commandURL is availible. If not, can I install a protocol handler during
runtime from my java application? (In this case I have to accept that
the commandURL will be available after closing OO.)

Are there other solutions?

Greetings, Tobias

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to