LOK: send state of protected cells

Change-Id: I432a3af50b6089faa80a28804d95d816af6cd278
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154936
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Reviewed-by: Pranam Lashkari <lpranam@collabora.com>
(cherry picked from commit 5f13751cefd725cb2a38e66c9484046e6141c6c2)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158150
Tested-by: Jenkins
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 6d9697d..416265d 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -3842,7 +3842,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 89e94ca..1f3f37f 100644
--- a/sfx2/source/control/unoctitm.cxx
+++ b/sfx2/source/control/unoctitm.cxx
@@ -935,7 +935,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;