From 50b66e4d3ef790b4228a3cc099346edf1838f2e7 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Mon, 12 Sep 2016 13:35:11 +0200 Subject: sw: emit LOK_CALLBACK_VIEW_CURSOR_VISIBLE as part of registerCallback() Have a graphic selection (and thus a hidden text cursor) in the first view, create a second view. The view text cursors should be hidden in the second view as well. Change-Id: Ic22db84aab62c8f43c2da3d4a19b56c993c9f012 Reviewed-on: https://gerrit.libreoffice.org/28836 Reviewed-by: Miklos Vajna Tested-by: Jenkins (cherry picked from commit ab6dcd326ad7bf8c47a820514440bf8ac5f0d5f3) --- sw/source/core/crsr/viscrs.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sw/source/core/crsr/viscrs.cxx') diff --git a/sw/source/core/crsr/viscrs.cxx b/sw/source/core/crsr/viscrs.cxx index b9e9d012109d..126df5fab78f 100644 --- a/sw/source/core/crsr/viscrs.cxx +++ b/sw/source/core/crsr/viscrs.cxx @@ -204,7 +204,10 @@ void SwVisibleCursor::_SetPosAndShow(SfxViewShell* pViewShell) if (pViewShell == m_pCursorShell->GetSfxViewShell()) pViewShell->libreOfficeKitViewCallback(LOK_CALLBACK_INVALIDATE_VISIBLE_CURSOR, sRect.getStr()); else + { SfxLokHelper::notifyOtherView(m_pCursorShell->GetSfxViewShell(), pViewShell, LOK_CALLBACK_INVALIDATE_VIEW_CURSOR, "rectangle", sRect); + SfxLokHelper::notifyOtherView(m_pCursorShell->GetSfxViewShell(), pViewShell, LOK_CALLBACK_VIEW_CURSOR_VISIBLE, "visible", OString::boolean(m_bIsVisible)); + } } else { -- cgit v1.2.3