summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2022-07-27 14:32:59 +0200
committerMiklos Vajna <vmiklos@collabora.com>2022-07-27 16:27:15 +0200
commitdb4ac0542a33ba2ff4e64717ca1eb6de563f1a8c (patch)
tree091adce1aaab115d33ddd1caba890ab652f7515d
parent9d777ef254330bb3d6af06e62ba602fe17824db9 (diff)
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 <vmiklos@collabora.com> Tested-by: Jenkins
-rw-r--r--desktop/source/lib/init.cxx1
-rw-r--r--sfx2/source/control/unoctitm.cxx1
2 files changed, 2 insertions, 0 deletions
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"));