diff options
author | Tamás Zolnai <tamas.zolnai@collabora.com> | 2018-04-19 12:10:52 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2018-04-20 18:49:53 +0200 |
commit | eded8ebec2961de705a0177b7422a4c8d2513ac8 (patch) | |
tree | b0040f13e3d0c7a30a8d8b2e338e821ea60637d1 /include | |
parent | 6008269b9bcc6e1d6de01a5205e4884a076ff4ee (diff) |
sw lok: Accept / reject change is always enabled in the context menu
Use conditional fastcall for allow executing these two uno commands
even if there is no tracked changes at the cursor position instead of
enable the menu slots unconditionally.
See also:
b6011f07254f8003929320ad842d8d09daca0e09
Change-Id: Iaf8a8082961cd174c038fc021d2c41fb7cb97bff
Reviewed-on: https://gerrit.libreoffice.org/53148
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
(cherry picked from commit 67919621cb0b95074c4401bdfced9d87b230cc2f)
Reviewed-on: https://gerrit.libreoffice.org/53180
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/sfx2/shell.hxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/sfx2/shell.hxx b/include/sfx2/shell.hxx index 41d65d3e134b..597e3cd56b4c 100644 --- a/include/sfx2/shell.hxx +++ b/include/sfx2/shell.hxx @@ -482,6 +482,14 @@ public: /** + This method determines whether we need to execute without checking + the disabled state of the slot. This is used for dynamic conditions + while you can use SfxSlotMode::FASTCALL for a specific slotid in general. + */ + virtual bool IsConditionalFastCall( const SfxRequest &rReq ); + + /** + This method controls the activation of SfxShell instance. First, by calling the virtual method <SfxShell::Activate(sal_Bool)> which gives the subclass the opportunity to respond to the event. |