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

New commits:
commit b8626e85a799fd0807749cab9e712652240f13cd
Author:     Pranam Lashkari <lpra...@collabora.com>
AuthorDate: Mon Jun 6 19:30:35 2022 +0530
Commit:     Gökay ŞATIR <gokaysa...@collabora.com>
CommitDate: Wed Jun 8 11:08:29 2022 +0200

    LOK: send state of Protect, UnsetCellsReadOnly
    
    Signed-off-by: Pranam Lashkari <lpra...@collabora.com>
    Change-Id: I92675ed0033088233fb442138b39a3c8d663c614
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135454
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Gökay ŞATIR <gokaysa...@collabora.com>

diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 3a72be64a139..63ad2bbad39c 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -3174,6 +3174,8 @@ static void doc_iniUnoCommands ()
         OUString(".uno:GroupSparklines"),
         OUString(".uno:UngroupSparklines"),
         OUString(".uno:FormatSparklineMenu"),
+        OUString(".uno:Protect"),
+        OUString(".uno:UnsetCellsReadOnly")
     };
 
     util::URL aCommandURL;
diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx
index 0681abcc61c3..358bab6c2220 100644
--- a/sfx2/source/control/unoctitm.cxx
+++ b/sfx2/source/control/unoctitm.cxx
@@ -1118,7 +1118,9 @@ static void InterceptLOKStateChangeEvent(sal_uInt16 nSID, 
SfxViewFrame* pViewFra
              aEvent.FeatureURL.Path == "UngroupSparklines" ||
              aEvent.FeatureURL.Path == "FormatSparklineMenu" ||
              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