summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2016-05-09 23:23:00 -0400
committerAshod Nakashian <ashnakash@gmail.com>2016-05-10 03:48:30 +0000
commit920aec35b4485e1128a1859151d3eca530eacff4 (patch)
treeba576e041050408c2306ea6ad164026fb9761d62
parentcd4fd1b556da7b76928ff0577220333941fda25d (diff)
LOK: fire SET_PART event when Impress page is changed
Change-Id: Iebddffbdc66397b1f2937ed7320f7800c8bab4cc Reviewed-on: https://gerrit.libreoffice.org/24817 Reviewed-by: Ashod Nakashian <ashnakash@gmail.com> Tested-by: Ashod Nakashian <ashnakash@gmail.com>
-rw-r--r--sd/source/ui/view/drviews1.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sd/source/ui/view/drviews1.cxx b/sd/source/ui/view/drviews1.cxx
index 627043876cd8..27fe8d67e8cb 100644
--- a/sd/source/ui/view/drviews1.cxx
+++ b/sd/source/ui/view/drviews1.cxx
@@ -82,6 +82,7 @@
#include <sfx2/request.hxx>
#include <boost/bind.hpp>
#include <comphelper/lok.hxx>
+#include <LibreOfficeKit/LibreOfficeKitEnums.h>
using namespace com::sun::star;
@@ -937,6 +938,10 @@ bool DrawViewShell::SwitchPage(sal_uInt16 nSelectedPage)
// never at a masterpage)
GetDoc()->SetSelected(mpActualPage, true);
+ // notify LibreOfficeKit about changed page
+ OString aPayload = OString::number(nSelectedPage);
+ GetDoc()->libreOfficeKitCallback(LOK_CALLBACK_SET_PART, aPayload.getStr());
+
rtl::Reference< sd::SlideShow > xSlideshow( SlideShow::GetSlideShow( GetDoc() ) );
if( !xSlideshow.is() || !xSlideshow->isRunning() || ( xSlideshow->getAnimationMode() != ANIMATIONMODE_SHOW ) )
{