diff options
author | Henry Castro <hcastro@collabora.com> | 2019-02-06 17:38:35 -0400 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2019-02-07 08:36:50 +0100 |
commit | 32555d9b5c9ef37276984eaa9d9b84007fd02038 (patch) | |
tree | 7714a1b57de426ff8b655221a7555df4bf9592a7 | |
parent | e9f87f7b8e33352b66d52b37c459a52a6737eb80 (diff) |
lok: intercept the UNO command ".uno:EditRegion"
Change-Id: I3a1072e6ededbd0322c4b1dcd0ef4b16ace219d1
Reviewed-on: https://gerrit.libreoffice.org/67478
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
-rw-r--r-- | desktop/source/lib/init.cxx | 3 | ||||
-rw-r--r-- | sfx2/source/control/unoctitm.cxx | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index be692a89ec96..dae96c2e62b6 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -1993,7 +1993,8 @@ static void doc_iniUnoCommands () OUString(".uno:InsertPageHeader"), OUString(".uno:InsertPageFooter"), OUString(".uno:OnlineAutoFormat"), - OUString(".uno:InsertSymbol") + OUString(".uno:InsertSymbol"), + OUString(".uno:EditRegion") }; util::URL aCommandURL; diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx index 76c2745b4ff6..c128bc5da518 100644 --- a/sfx2/source/control/unoctitm.cxx +++ b/sfx2/source/control/unoctitm.cxx @@ -1095,7 +1095,8 @@ static void InterceptLOKStateChangeEvent(const SfxViewFrame* pViewFrame, const c aEvent.FeatureURL.Path == "ParagraphDialog" || aEvent.FeatureURL.Path == "OutlineBullet" || aEvent.FeatureURL.Path == "InsertIndexesEntry" || - aEvent.FeatureURL.Path == "TransformDialog") + aEvent.FeatureURL.Path == "TransformDialog" || + aEvent.FeatureURL.Path == "EditRegion") { aBuffer.append(aEvent.IsEnabled ? OUString("enabled") : OUString("disabled")); |