Le 3 nov. 06, à 15:55, Carsten Driesner a écrit :

There is a "simple" workaround, but I am not sure you can accept the drawback. You have to make sure that at least one entry in your sub-menu has no label set.

OpenOffice.org tries to find a label using the command URL. The *Commands.xcu files in <Office installation>/share/registry/data/org/openoffice/Office/UI define the labels language dependent for every UI command.

To ensure that the workaround works:

- You have to add a built-in UI command to your sub-menu (e.g. ".uno:Quit).

OR

- You have to add a GenericCommands.xcu file to your add-on, which defines the label for your command. Leave the label of your menu item empty.

I am not sure that this is acceptable for you?

Thanks for this last possible "solution". It is true that it has a drawback ! I guess that this workaround must be implemented in the first level of the menu and each of its submenu (as my menu has also submenus).

I think we will wait for OO 2.2.

Julien Galand

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

Reply via email to