sfx2/source/control/unoctitm.cxx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-)
New commits: commit 905b69713c4b4a790f95ad825b79327b995b04b7 Author: Jan Holesovsky <ke...@collabora.com> AuthorDate: Mon Jun 3 12:50:01 2019 +0200 Commit: Aron Budea <aron.bu...@collabora.com> CommitDate: Thu Oct 3 17:30:23 2019 +0200 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.k...@collabora.com> Tested-by: Szymon Kłos <szymon.k...@collabora.com> (cherry picked from commit 0a8eefb55a2cd473bb7f07f19e23051d3e3a22c1) Reviewed-on: https://gerrit.libreoffice.org/73865 Tested-by: Jenkins Reviewed-by: Andras Timar <andras.ti...@collabora.com> (cherry picked from commit 3db9a5838cb83a06e4538f2be90e17d1091b0199) Reviewed-on: https://gerrit.libreoffice.org/80145 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Aron Budea <aron.bu...@collabora.com> diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx index fdc52138f8a9..c308a15bb53d 100644 --- a/sfx2/source/control/unoctitm.cxx +++ b/sfx2/source/control/unoctitm.cxx @@ -1064,6 +1064,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" || @@ -1088,12 +1091,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" || _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits