sc/source/ui/view/tabcont.cxx | 5 +++++ 1 file changed, 5 insertions(+)
New commits: commit 0b2d974ede41ca77d18ec1469770045a18f1a4d1 Author: Ashod Nakashian <ashod.nakash...@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/26303 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Miklos Vajna <vmik...@collabora.co.uk> diff --git a/sc/source/ui/view/tabcont.cxx b/sc/source/ui/view/tabcont.cxx index 56ef3b6..f61e32a 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> ScTabControl::ScTabControl( vcl::Window* pParent, ScViewData* pData ) : TabBar(pParent, WB_3DLOOK | WB_MINSCROLL | WB_SCROLL | WB_RANGESELECT | WB_MULTISELECT | WB_DRAG) @@ -412,6 +413,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()); } } } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits