https://bugs.documentfoundation.org/show_bug.cgi?id=98803

--- Comment #9 from Maxim Monastirsky <[email protected]> ---
(In reply to ThierryT from comment #8)
> I
> understand that with this method, you can intercept the command before its
> execution (that means you "disabled" it).
No. Interception means that the entity (i.e. the object implementing the
XDispatch interface) that will be used for handling the specific command will
be something yours, not the built-in one. Resolving the right object to handle
some command is indeed useful before execution, but it's not the only use of
it. XDispatch implementing object is also responsible for broadcasting the
state of the command to its listeners, mostly UI elements like toolbar buttons
or menu items. Such listeners, in turn, once get the updated state, usually
represent it in some way. So e.g. if they get "disabled" state, they usually
will grey out the associated UI element.

> If the Item menu is GREYED (like in the other menus in LO)
... and guess how "other menus in LO" grey out their items? Right. They use the
same dispatch framework mechanism I described above.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to