diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2020-08-03 12:15:17 +0200 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2020-08-11 10:33:41 +0200 |
commit | 48215f9e925c6dfda1c75f97c381ae5a724345d9 (patch) | |
tree | 20217aebc869beb80ee3d94b1d5e7249a6d45b4b | |
parent | 3239708375c81005d66627c09d1907848cd0cfda (diff) |
lok: state updates for commands in Writer
Change-Id: Id3d429ff4788abce03e9d7c5522655f362d6c249
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99996
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100458
Tested-by: Jenkins
-rw-r--r-- | desktop/source/lib/init.cxx | 20 | ||||
-rw-r--r-- | sfx2/source/control/unoctitm.cxx | 16 |
2 files changed, 35 insertions, 1 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index db6dc07262a0..db2a16179bfe 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -2801,7 +2801,25 @@ static void doc_iniUnoCommands () OUString(".uno:RejectTrackedChange"), OUString(".uno:FreezePanesColumn"), OUString(".uno:FreezePanesRow"), - OUString(".uno:ShowResolvedAnnotations") + OUString(".uno:ShowResolvedAnnotations"), + OUString(".uno:FreezePanesColumn"), + OUString(".uno:InsertBreak"), + OUString(".uno:InsertEndnote"), + OUString(".uno:InsertFootnote"), + OUString(".uno:InsertReferenceField"), + OUString(".uno:InsertBookmark"), + OUString(".uno:InsertAuthoritiesEntry"), + OUString(".uno:InsertMultiIndex"), + OUString(".uno:InsertField"), + OUString(".uno:InsertPageNumberField"), + OUString(".uno:InsertPageCountField"), + OUString(".uno:InsertDateField"), + OUString(".uno:InsertTitleField"), + OUString(".uno:InsertFieldCtrl"), + OUString(".uno:CharmapControl"), + OUString(".uno:EnterGroup"), + OUString(".uno:LeaveGroup"), + OUString(".uno:FreezePanesRow") }; util::URL aCommandURL; diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx index 125c243aa9c6..e66edd9313ea 100644 --- a/sfx2/source/control/unoctitm.cxx +++ b/sfx2/source/control/unoctitm.cxx @@ -1136,6 +1136,22 @@ static void InterceptLOKStateChangeEvent(sal_uInt16 nSID, SfxViewFrame* pViewFra aEvent.FeatureURL.Path == "FormatLine" || aEvent.FeatureURL.Path == "FormatColumns" || aEvent.FeatureURL.Path == "Watermark" || + aEvent.FeatureURL.Path == "InsertBreak" || + aEvent.FeatureURL.Path == "InsertEndnote" || + aEvent.FeatureURL.Path == "InsertFootnote" || + aEvent.FeatureURL.Path == "InsertReferenceField" || + aEvent.FeatureURL.Path == "InsertBookmark" || + aEvent.FeatureURL.Path == "InsertAuthoritiesEntry" || + aEvent.FeatureURL.Path == "InsertMultiIndex" || + aEvent.FeatureURL.Path == "InsertField" || + aEvent.FeatureURL.Path == "InsertPageNumberField" || + aEvent.FeatureURL.Path == "InsertPageCountField" || + aEvent.FeatureURL.Path == "InsertDateField" || + aEvent.FeatureURL.Path == "InsertTitleField" || + aEvent.FeatureURL.Path == "InsertFieldCtrl" || + aEvent.FeatureURL.Path == "CharmapControl" || + aEvent.FeatureURL.Path == "EnterGroup" || + aEvent.FeatureURL.Path == "LeaveGroup" || aEvent.FeatureURL.Path == "ResetAttributes") { aBuffer.append(aEvent.IsEnabled ? OUStringLiteral("enabled") : OUStringLiteral("disabled")); |