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

New commits:
commit e5a106f8b8de9936fce64d9056a81154c879527e
Author:     Pranam Lashkari <[email protected]>
AuthorDate: Mon Jun 6 19:30:35 2022 +0530
Commit:     Andras Timar <[email protected]>
CommitDate: Thu Jun 9 20:48:09 2022 +0200

    LOK: send state of Protect, UnsetCellsReadOnly
    
    Signed-off-by: Pranam Lashkari <[email protected]>
    Change-Id: I92675ed0033088233fb442138b39a3c8d663c614
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135454
    Tested-by: Jenkins CollaboraOffice <[email protected]>
    Reviewed-by: Gökay ŞATIR <[email protected]>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135500
    Tested-by: Andras Timar <[email protected]>
    Reviewed-by: Andras Timar <[email protected]>

diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 35bee204a24e..e99dace9c24e 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -3203,7 +3203,9 @@ static void doc_iniUnoCommands ()
         OUString(".uno:RunMacro"),
         OUString(".uno:SpacePara1"),
         OUString(".uno:SpacePara15"),
-        OUString(".uno:SpacePara2")
+        OUString(".uno:SpacePara2"),
+        OUString(".uno:Protect"),
+        OUString(".uno:UnsetCellsReadOnly")
     };
 
     util::URL aCommandURL;
diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx
index 025dace91506..aeffcc9ab2b4 100644
--- a/sfx2/source/control/unoctitm.cxx
+++ b/sfx2/source/control/unoctitm.cxx
@@ -1220,7 +1220,9 @@ static void InterceptLOKStateChangeEvent(sal_uInt16 nSID, 
SfxViewFrame* pViewFra
              aEvent.FeatureURL.Path == "DecrementIndent" ||
              aEvent.FeatureURL.Path == "EditHeaderAndFooter" ||
              aEvent.FeatureURL.Path == "NumberFormatDecDecimals" ||
-             aEvent.FeatureURL.Path == "NumberFormatIncDecimals")
+             aEvent.FeatureURL.Path == "NumberFormatIncDecimals" ||
+             aEvent.FeatureURL.Path == "Protect" ||
+             aEvent.FeatureURL.Path == "UnsetCellsReadOnly")
     {
         aBuffer.append(aEvent.IsEnabled ? std::u16string_view(u"enabled") : 
std::u16string_view(u"disabled"));
     }

Reply via email to