summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2016-06-09 17:32:18 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-06-09 17:00:34 +0000
commit22367b58dbca65149ec9bc64d851be4d57759f6e (patch)
tree827f90471943bf97ced55d100036eb9d7087f860 /sw
parentffbd9647698738084c7a69fc72a2a7317109df7c (diff)
sw: implement per-view LOK_CALLBACK_SET_PART
Used when e.g. jumping from page 1 to page 2 in a document, and the page number widget should be updated in gtktiledviewer. Change-Id: If5359ffbfd215c71785ab51f8dcd18cc8bf017ee Reviewed-on: https://gerrit.libreoffice.org/26115 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/crsr/viscrs.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sw/source/core/crsr/viscrs.cxx b/sw/source/core/crsr/viscrs.cxx
index 03486c3abe19..8c9ee305b82c 100644
--- a/sw/source/core/crsr/viscrs.cxx
+++ b/sw/source/core/crsr/viscrs.cxx
@@ -189,7 +189,10 @@ void SwVisibleCursor::SetPosAndShow()
{
m_nPageLastTime = nPage;
OString aPayload = OString::number(nPage - 1);
- m_pCursorShell->libreOfficeKitCallback(LOK_CALLBACK_SET_PART, aPayload.getStr());
+ if (comphelper::LibreOfficeKit::isViewCallback())
+ m_pCursorShell->GetSfxViewShell()->libreOfficeKitViewCallback(LOK_CALLBACK_SET_PART, aPayload.getStr());
+ else
+ m_pCursorShell->libreOfficeKitCallback(LOK_CALLBACK_SET_PART, aPayload.getStr());
}
// notify about the cursor position & size