diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-05-26 16:58:36 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-05-27 11:01:17 +0200 |
commit | f9fcc569db6d55212f60ebc35416b7d0ec386ab8 (patch) | |
tree | e424556511ae7a9412e9b8a2f5c73808a03104d6 /sd | |
parent | 3333d3e01e8ae9142f2e9ead1eb862af163bd843 (diff) |
sd: fix LOK search result highlight when result is not on the current slide
By adding a new callback event, so clients can switch to the correct
slide.
Change-Id: I6c2388eb11ef97811cc644fe3a9d3866aa82fd75
(cherry picked from commit 67a37be9969d8b5a0bc8ae081bc1aba697ea6ba5)
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/view/drviews1.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sd/source/ui/view/drviews1.cxx b/sd/source/ui/view/drviews1.cxx index 9aa19dabd03c..74a77c44b564 100644 --- a/sd/source/ui/view/drviews1.cxx +++ b/sd/source/ui/view/drviews1.cxx @@ -81,6 +81,7 @@ #include <sfx2/request.hxx> #include <boost/bind.hpp> +#include <LibreOfficeKit/LibreOfficeKitEnums.h> using namespace com::sun::star; @@ -1098,6 +1099,11 @@ bool DrawViewShell::SwitchPage(sal_uInt16 nSelectedPage) mpDrawView->AdjustMarkHdl(); } + if (bOK) + { + OString aPayload = OString::number(nSelectedPage); + GetDoc()->libreOfficeKitCallback(LOK_CALLBACK_SET_PART, aPayload.getStr()); + } return bOK; } |