[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-5.0' - sc/source

Ashod Nakashian ashod.nakashian at collabora.co.uk
Tue May 10 03:49:42 UTC 2016


 sc/source/ui/view/tabcont.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit e743e35560ff3956b6acf9c4517e9b8b1a616dc2
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
Date:   Mon May 9 23:38:59 2016 -0400

    LOK: fire SET_PART event when Calc page is changed
    
    Change-Id: I9a2ed653bcb6afe803b781fc686c02f817d84e75
    Reviewed-on: https://gerrit.libreoffice.org/24818
    Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>
    Tested-by: Ashod Nakashian <ashnakash at gmail.com>

diff --git a/sc/source/ui/view/tabcont.cxx b/sc/source/ui/view/tabcont.cxx
index b8eaf10..d4ea205 100644
--- a/sc/source/ui/view/tabcont.cxx
+++ b/sc/source/ui/view/tabcont.cxx
@@ -34,6 +34,7 @@
 #include "dragdata.hxx"
 #include "markdata.hxx"
 #include <gridwin.hxx>
+#include <LibreOfficeKit/LibreOfficeKitEnums.h>
 
 // STATIC DATA -----------------------------------------------------------
 
@@ -408,6 +409,10 @@ void ScTabControl::SwitchToPageId(sal_uInt16 nId)
             for (sal_uInt16 i=1; i<=nCount; i++)
                 SelectPage( i, i==nId );
             Select();
+
+            // notify LibreOfficeKit about changed page
+            OString aPayload = OString::number(nId - 1);
+            pViewData->GetDocument()->GetDrawLayer()->libreOfficeKitCallback(LOK_CALLBACK_SET_PART, aPayload.getStr());
         }
     }
 }


More information about the Libreoffice-commits mailing list