diff options
author | Jan Holesovsky <kendy@collabora.com> | 2018-11-06 11:20:27 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2018-11-07 11:10:37 +0100 |
commit | 4f605d49ba5a436730ceddaf739544b99c0812fe (patch) | |
tree | f8207291a3e6a4d166bc5802b669f40bc1695054 /svx | |
parent | 3fb90f6eab998d0fda07bd3f4a2ebf650e6b6a61 (diff) |
lok: Notify about the current editing context.
Change-Id: I47e67b680a6abdb66020b295f55ee6a73b7b5608
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/sidebar/ContextChangeEventMultiplexer.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/svx/source/sidebar/ContextChangeEventMultiplexer.cxx b/svx/source/sidebar/ContextChangeEventMultiplexer.cxx index 5591ee389200..c714627afdae 100644 --- a/svx/source/sidebar/ContextChangeEventMultiplexer.cxx +++ b/svx/source/sidebar/ContextChangeEventMultiplexer.cxx @@ -23,7 +23,9 @@ #include <com/sun/star/ui/XContextChangeEventMultiplexer.hpp> #include <com/sun/star/ui/ContextChangeEventMultiplexer.hpp> #include <com/sun/star/frame/ModuleManager.hpp> +#include <comphelper/lok.hxx> #include <comphelper/processfactory.hxx> +#include <sfx2/lokhelper.hxx> #include <sfx2/viewsh.hxx> #include <tools/diagnose_ex.h> @@ -37,6 +39,13 @@ void ContextChangeEventMultiplexer::NotifyContextChange ( { if (rxController.is() && rxController->getFrame().is()) { + // notify the LOK too + if (comphelper::LibreOfficeKit::isActive()) + { + if (SfxViewShell* pViewShell = SfxViewShell::Get(rxController)) + SfxLokHelper::notifyContextChange(pViewShell, GetModuleName(rxController->getFrame()), vcl::EnumContext::GetContextName(eContext)); + } + const css::ui::ContextChangeEventObject aEvent( rxController, GetModuleName(rxController->getFrame()), |