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

New commits:
commit db4ac0542a33ba2ff4e64717ca1eb6de563f1a8c
Author:     Miklos Vajna <[email protected]>
AuthorDate: Wed Jul 27 14:32:59 2022 +0200
Commit:     Miklos Vajna <[email protected]>
CommitDate: Wed Jul 27 16:27:15 2022 +0200

    sw content controls, plain text: send state changes to LOK
    
    This is similar to commit 373f655acbdad88ff5d76324f32650fe3a005e2e (Send
    state changes of content control UNO commands to LOK, 2022-07-22), but
    plain text was not a type at that point.
    
    Change-Id: Ia317c60411280c07e1e063ee4b23f12e0d9f6dd2
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137502
    Reviewed-by: Miklos Vajna <[email protected]>
    Tested-by: Jenkins

diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index b2e38b699e2e..029e8b72c667 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -3176,6 +3176,7 @@ static void doc_iniUnoCommands ()
         OUString(".uno:InsertContentControl"),
         OUString(".uno:InsertDateContentControl"),
         OUString(".uno:InsertDropdownContentControl"),
+        OUString(".uno:InsertPlainTextContentControl"),
         OUString(".uno:InsertPictureContentControl")
     };
 
diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx
index 516c10d6e2ed..f2046acaecfe 100644
--- a/sfx2/source/control/unoctitm.cxx
+++ b/sfx2/source/control/unoctitm.cxx
@@ -1122,6 +1122,7 @@ static void InterceptLOKStateChangeEvent(sal_uInt16 nSID, 
SfxViewFrame* pViewFra
              aEvent.FeatureURL.Path == "InsertContentControl" ||
              aEvent.FeatureURL.Path == "InsertDateContentControl" ||
              aEvent.FeatureURL.Path == "InsertDropdownContentControl" ||
+             aEvent.FeatureURL.Path == "InsertPlainTextContentControl" ||
              aEvent.FeatureURL.Path == "InsertPictureContentControl")
     {
         aBuffer.append(aEvent.IsEnabled ? std::u16string_view(u"enabled") : 
std::u16string_view(u"disabled"));

Reply via email to