Julien Galand wrote:
Le 2 nov. 06, à 10:31, Carsten Driesner a écrit :
I was able to reproduce your problem and found the root cause. Could
you please write me an issue for this problem. The problem is related
to the fact that the popup menu doesn't need to retrieve labels,
therefore an internal flag is not set. The shortcut retrieval is bound
to this flag, which is obviously a bug. Thanks for your script and
help to track down this issue.
Hi Carsten,
Thank you for your investigation.
As it is the first time I write an issue, please check the following:
Hi Julien,
http://www.openoffice.org/issues/show_bug.cgi?id=71154
Your issue looks good. I will fix it for OOo 2.2 as we now have code
freeze for OOo 2.1 (only show stoppers are allowed).
I guess there is no simple workaround, otherwise you would have
mentioned it...
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?
Regards,
Carsten
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]