Julien Galand wrote:
Hi to all,
I have a menu on which some keyboard shortcuts have been set through
ui::XAcceleratorConfiguration.
When a shortcut is set with the same command URL of an existing menu
line, OO automatically displays the shortcut on the menu line (or
should; a bug prevents this, but will be fixed in a later OO version).
However, a drawback is that the protocol handler declared for these URLs
receives the same URL when the user clicks in the menu and when he
strokes the key shortcut.
Is there a way to distinguish both kind of events ?
I have tried to add arguments to the URL, such as :
vnd.MyCompany:command1 for the menu line,
vnd.MyCompany:command1?kind=0 for the shortcut,
...hoping that OO would still bind both in the displayed menu, but it is
not the case.
Does OO do this automatic binding by comparing strictly both URLs, or
does it allow some differences while still considering them equal ?
Or is there another way ? Thank you if you know any.
Hi Julien,
If OpenOffice.org executes a command, it doesn't distinguish between
different user interface elements. It even cannot determine which user
interface element has dispatched a command.
The implementations for images and shortcuts use the whole command URL
to bind an image/shortcut. This strict URL binding was added for
OpenOffice.org 2.0. We discussed it with some people and they needed
that kind of strict binding.
Think of commands like ".uno:Open?document=file:///x:/test.doc" where
you want to use a different image/shortcut than ".uno:Open".
Regards,
Carsten
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]