diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-11-12 16:56:45 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-11-12 16:56:45 +0100 |
commit | 1ba9d7fd2a7a3e2b4f52ed0f5efdf7df867b9db3 (patch) | |
tree | f438c6aa734296e0c75d2408a820ca126a18526d /sw/source/core/view | |
parent | 49f453755b72654ba454acc321210e8b040df714 (diff) |
sw lok: forward key events to annotation window if necessary
And to allow proper reaction by the annotation windows, inform them when
a LOK callback is registered.
With this, it's possible to modify the contents of annotations via LOK.
Change-Id: I4489941512197880940e20cbaeb0b47a7a6f26fc
Diffstat (limited to 'sw/source/core/view')
-rw-r--r-- | sw/source/core/view/viewsh.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/source/core/view/viewsh.cxx b/sw/source/core/view/viewsh.cxx index c682566691fb..226b12325174 100644 --- a/sw/source/core/view/viewsh.cxx +++ b/sw/source/core/view/viewsh.cxx @@ -119,6 +119,8 @@ void SwViewShell::ToggleHeaderFooterEdit() void SwViewShell::registerLibreOfficeKitCallback(LibreOfficeKitCallback pCallback, void* pData) { getIDocumentDrawModelAccess().GetDrawModel()->registerLibreOfficeKitCallback(pCallback, pData); + if (SwPostItMgr* pPostItMgr = GetPostItMgr()) + pPostItMgr->registerLibreOfficeKitCallback(pCallback, pData); } void SwViewShell::libreOfficeKitCallback(int nType, const char* pPayload) const |