diff options
author | Jan Holesovsky <kendy@collabora.com> | 2019-06-03 12:50:01 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2019-06-12 10:10:51 +0200 |
commit | 2b66842e21b11b8e363b3493f2462d4dc07f9dd3 (patch) | |
tree | 30c1fdc26eb6d2fba7bfd8be505ac9f6984e2860 | |
parent | 5a695a1d1fce56dbf31516fdcfb27d1969b35da6 (diff) |
lok: Fix status of InsertPage, DeletePage and DuplicatePage.
Status true / false means checked, status enabled / disabled means the
visibility (enablement) of the uno command.
Change-Id: Ib2671984f59ffd5e6f1823a65ea42b33bdfe67d6
Reviewed-on: https://gerrit.libreoffice.org/73384
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
(cherry picked from commit 0a8eefb55a2cd473bb7f07f19e23051d3e3a22c1)
Reviewed-on: https://gerrit.libreoffice.org/73864
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
-rw-r--r-- | sfx2/source/control/unoctitm.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx index 357fd4be74a2..7390a3328fa3 100644 --- a/sfx2/source/control/unoctitm.cxx +++ b/sfx2/source/control/unoctitm.cxx @@ -1078,6 +1078,9 @@ static void InterceptLOKStateChangeEvent(const SfxViewFrame* pViewFrame, const c aEvent.FeatureURL.Path == "InsertColumnsBefore" || aEvent.FeatureURL.Path == "InsertColumnsAfter" || aEvent.FeatureURL.Path == "InsertSymbol" || + aEvent.FeatureURL.Path == "InsertPage" || + aEvent.FeatureURL.Path == "DeletePage" || + aEvent.FeatureURL.Path == "DuplicatePage" || aEvent.FeatureURL.Path == "DeleteRows" || aEvent.FeatureURL.Path == "DeleteColumns" || aEvent.FeatureURL.Path == "DeleteTable" || @@ -1102,12 +1105,6 @@ static void InterceptLOKStateChangeEvent(const SfxViewFrame* pViewFrame, const c { aBuffer.append(aEvent.IsEnabled ? OUString("enabled") : OUString("disabled")); } - else if (aEvent.FeatureURL.Path == "InsertPage" || - aEvent.FeatureURL.Path == "DeletePage" || - aEvent.FeatureURL.Path == "DuplicatePage") - { - aBuffer.append(OUString::boolean(aEvent.IsEnabled)); - } else if (aEvent.FeatureURL.Path == "AssignLayout" || aEvent.FeatureURL.Path == "StatusSelectionMode" || aEvent.FeatureURL.Path == "Signature" || |