[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-5.0' - sd/source
Ashod Nakashian
ashod.nakashian at collabora.co.uk
Tue May 10 03:48:55 UTC 2016
sd/source/ui/view/drviews1.cxx | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit 920aec35b4485e1128a1859151d3eca530eacff4
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
Date: Mon May 9 23:23:00 2016 -0400
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 at gmail.com>
Tested-by: Ashod Nakashian <ashnakash at gmail.com>
diff --git a/sd/source/ui/view/drviews1.cxx b/sd/source/ui/view/drviews1.cxx
index 6270438..27fe8d6 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 ) )
{
More information about the Libreoffice-commits
mailing list