From 9648f81f98d07cd4aef8611a50a77f11fb7ba86e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hubert=20Figui=C3=A8re?= Date: Thu, 25 Apr 2024 14:01:11 -0400 Subject: [PATCH] cool#8066: calc: enable .uno:ToggleSheetGrid MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Hubert Figuière Change-Id: Ibe5bca4d0622c4015030a21d4ecccd41d5e9f483 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166529 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- desktop/source/lib/init.cxx | 3 ++- sfx2/source/control/unoctitm.cxx | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index f13bc1f48e26..f06151be6cfa 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -3847,7 +3847,8 @@ static void doc_iniUnoCommands () u".uno:InsertPictureContentControl"_ustr, u".uno:DataFilterAutoFilter"_ustr, u".uno:CellProtection"_ustr, - u".uno:MoveKeepInsertMode"_ustr + u".uno:MoveKeepInsertMode"_ustr, + u".uno:ToggleSheetGrid"_ustr, }; util::URL aCommandURL; diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx index 0691a6bad444..c6250e27d170 100644 --- a/sfx2/source/control/unoctitm.cxx +++ b/sfx2/source/control/unoctitm.cxx @@ -940,7 +940,8 @@ static void InterceptLOKStateChangeEvent(sal_uInt16 nSID, SfxViewFrame* pViewFra aEvent.FeatureURL.Path == "SpacePara15" || aEvent.FeatureURL.Path == "SpacePara2" || aEvent.FeatureURL.Path == "DataFilterAutoFilter" || - aEvent.FeatureURL.Path == "CellProtection") + aEvent.FeatureURL.Path == "CellProtection" || + aEvent.FeatureURL.Path == "ToggleSheetGrid") { bool bTemp = false; aEvent.State >>= bTemp;