Kaydet (Commit) 7e62c8c9 authored tarafından Ashod Nakashian's avatar Ashod Nakashian Kaydeden (comit) Miklos Vajna

LOK: fire SET_PART event when Impress page is changed

Change-Id: Iebddffbdc66397b1f2937ed7320f7800c8bab4cc
Reviewed-on: https://gerrit.libreoffice.org/26301Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
üst 58959a94
...@@ -81,6 +81,7 @@ ...@@ -81,6 +81,7 @@
#include <sfx2/request.hxx> #include <sfx2/request.hxx>
#include <comphelper/lok.hxx> #include <comphelper/lok.hxx>
#include <LibreOfficeKit/LibreOfficeKitEnums.h>
using namespace com::sun::star; using namespace com::sun::star;
...@@ -924,6 +925,10 @@ bool DrawViewShell::SwitchPage(sal_uInt16 nSelectedPage) ...@@ -924,6 +925,10 @@ bool DrawViewShell::SwitchPage(sal_uInt16 nSelectedPage)
// never at a masterpage) // never at a masterpage)
GetDoc()->SetSelected(mpActualPage, true); 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() ) ); rtl::Reference< sd::SlideShow > xSlideshow( SlideShow::GetSlideShow( GetDoc() ) );
if( !xSlideshow.is() || !xSlideshow->isRunning() || ( xSlideshow->getAnimationMode() != ANIMATIONMODE_SHOW ) ) if( !xSlideshow.is() || !xSlideshow->isRunning() || ( xSlideshow->getAnimationMode() != ANIMATIONMODE_SHOW ) )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment