Hi Carsten, >> Second solution: I can extend the CommandURL: >> -----%<----- >> menuItemProperties[0] = new PropertyValue(); >> menuItemProperties[0].Name = "CommandURL"; >> menuItemProperties[0].Value = ".Judas:PrintTrays?Printer:string=LJ1100"; >> -----%<----- >> Is this correct? But how can I access the values? > This is the way to go for your scenario. > > Your protocol handler implements the XDispatch interface. The > OpenOffice.org menu uses this interface to call your implementation. > > dispatch( const com::sun::star::util::URL aURL, Sequence< > beans::PropertyValue > aArgs ) > > As you can see the dispatch function has two arguments (aURL and aArgs). > The arguments inside your command URL are part of aURL. It's a structure > containing several members which describe parts of the URL. Your > arguments can be found inside aURL.Arguments. You have to parse the > string. For more information see the description of > com.sun.star.util.URL IDL file.
Thank you. Just a brief answer. I'll try it the next days, when I find any time. I'll answer you as soon as possible, to tell you if I got it working. Greetings, Tobias --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]