hmm... Tried a test. Copied the menubar.xml file from the shared directory into the user menubar directory for dbapp and added the menu items. Yes it does indeed add the menu to only the dbapp window now. Then did the same for the dbquery config information - I now have what I wanted, on my machine at least.
The question becomes then, do I have to write my own install routine to duplicate the steps when the addon is distributed. For that I will ask on the extensions project's mailing list. I am just a tad hesitant to go mucking around with the users configuration settings, outside of using a well documented API. Thanks much, Cor; Drew On 10/1/06, Cor Nouws <[EMAIL PROTECTED]> wrote:
Hi Frank, Andrew, Frank Schönheit - Sun Microsystems Germany wrote: > Hi Andrew, > >>I have generated an apparently correct XCU file for use with an Addon zip >>file. Package manger understands it and successfully adds the basic library >>into the OOo configuration, it also successfully - well, almost, adds the >>menu items for calling the appropriate procedure in this library. My problem >>is that the menu ends up on every document type window in OOo. That is not a >>showstopper, as the routine catches when it is not a Base document and >>displays an appropriate message. But it is wrong. > > As Marc already said, you can't limit this to one doc type only. Are you sure? I made an extra menu in Writer. And that is only visible in Writer. Not in any of the other modules. I didn't take the trouble yet to find out how to include the menubar.xml-file in the pkg. I only used the pakage for the macro-library. But the menubar.xml comes from \user\ config\soffice.cfg\modules\swriter\menubar If I put it in that folder on another PC, it just works. So I would expect, that if Andrew's xml file can be placed in user\config\soffice.cfg\modules\dbapp\menubar, that that sould do the trick? (I've not seen Marc's rely, so maybe missed somehing?) Greetings, Cor -- Cor Nouws Arnhem - Netherlands www.nouenoff.nl --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
