Hi Carsten, On 10/16/06, Carsten Driesner <[EMAIL PROTECTED]> wrote:
Hi Kohei, The following example code adds menu items to a Writer application module persistently. You only have to adapt the code to use the Calc module and translate it to your target language. The example code adds a top-level popup menu to the Writer persistently.
[snip the code and other stuff] Thanks for the code. I just tested it to see how it works, and I see that it indeed adds a persistent top-level menu. Unfortunately that is not what I had in mind. What I'd like to have is a menu item that goes under Calc's top-level "Tools" menu just below the "Goal Seek..." entry. That's how it is integrated in the cws (and ooo-build) at the moment, and it seems "right" to put it where it is. It's much easier to show a screenshot than describing it verbally, so let me just post this link: http://wiki.services.openoffice.org/wiki/Image:ScSolverMenu.png (just added) As I understand it, it's not possible to insert such non-top-level menu item via UNO call...(or is it?) Would it be easy to extend UNO to support this? I'm beginning to think that patching the menubar.xml at build time may be the easiest solution that does what I want it to do... Kohei --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]