On 15.04.2011 09:43, Carsten Driesner wrote:
On 15.04.2011 09:24, Bernard Marcelly wrote:
Hi Laurent,
Disable Commands works with mnemonic commands, but not with slot id.
I sent a dispatch with url "slot:26269" and it is still accepted. I
suppose that in your case Calc still sends a slot id.
Note that your macro should read : "do you want to ENABLE ..." ;-)
Hi Laurent,
Bernard is totally right. The dispatch framework uses command-URLs to
check for disabled commands. Slot-commands are still supported for
execution but deprecated. I wasn't aware that the calc application still
use slot IDs for some of their special UI elements. Please write an
issue for this and set myself as the owner (cd). It makes sense to
enhance the framework code to support slot-commands, too.
Best Regards
Carsten
I assume that the problem is not that Calc uses SlotIds, they will be
converted internally before the call is passed to the dispatch framework.
Most probably the command can't be intercepted because it is executed
through the SfxDispatcher and not through the SfxBindings. The latter
forwards calls to the dispatch framework while the former is the
implementation provider for the dispatch provider that is called by the
dispatch framework.
Regards,
Mathias
--
Mathias Bauer (mba) - Project Lead OpenOffice.org Writer
OpenOffice.org Engineering at Oracle: http://blogs.sun.com/GullFOSS
Please don't reply to "nospamfor...@gmx.de".
I use it for the OOo lists and only rarely read other mails sent to it.
--
-----------------------------------------------------------------
To unsubscribe send email to dev-unsubscr...@framework.openoffice.org
For additional commands send email to sy...@framework.openoffice.org
with Subject: help