desktop/source/lib/init.cxx      |    3 ++-
 sfx2/source/control/unoctitm.cxx |    3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

New commits:
commit f3c956ae8825abab59e7dbc1e39da4f5d4a1658c
Author:     Pranam Lashkari <lpra...@collabora.com>
AuthorDate: Wed Jul 26 16:39:49 2023 +0700
Commit:     Pranam Lashkari <lpra...@collabora.com>
CommitDate: Wed Oct 18 22:54:06 2023 +0200

    LOK: send state of protected cells
    
    Change-Id: I432a3af50b6089faa80a28804d95d816af6cd278
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154936
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Szymon Kłos <szymon.k...@collabora.com>
    Reviewed-by: Pranam Lashkari <lpra...@collabora.com>

diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 5b50b0d8181c..d4b507004a9d 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -3846,7 +3846,8 @@ static void doc_iniUnoCommands ()
         OUString(".uno:InsertDropdownContentControl"),
         OUString(".uno:InsertPlainTextContentControl"),
         OUString(".uno:InsertPictureContentControl"),
-        OUString(".uno:DataFilterAutoFilter")
+        OUString(".uno:DataFilterAutoFilter"),
+        OUString(".uno:CellProtection")
     };
 
     util::URL aCommandURL;
diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx
index fad61699db90..73d2d88ddc1b 100644
--- a/sfx2/source/control/unoctitm.cxx
+++ b/sfx2/source/control/unoctitm.cxx
@@ -951,7 +951,8 @@ static void InterceptLOKStateChangeEvent(sal_uInt16 nSID, 
SfxViewFrame* pViewFra
         aEvent.FeatureURL.Path == "SpacePara1" ||
         aEvent.FeatureURL.Path == "SpacePara15" ||
         aEvent.FeatureURL.Path == "SpacePara2" ||
-        aEvent.FeatureURL.Path == "DataFilterAutoFilter")
+        aEvent.FeatureURL.Path == "DataFilterAutoFilter" ||
+        aEvent.FeatureURL.Path == "CellProtection")
     {
         bool bTemp = false;
         aEvent.State >>= bTemp;

Reply via email to