summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2016-05-09 23:38:59 -0400
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-06-15 14:29:03 +0000
commit0b2d974ede41ca77d18ec1469770045a18f1a4d1 (patch)
treedaab71040030106e6a5f25536355db22720684a5
parentb6e7ddcc7e6eec4957c1c069d0c22eb1dbb3bb28 (diff)
LOK: fire SET_PART event when Calc page is changed
Change-Id: I9a2ed653bcb6afe803b781fc686c02f817d84e75 Reviewed-on: https://gerrit.libreoffice.org/26303 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
-rw-r--r--sc/source/ui/view/tabcont.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sc/source/ui/view/tabcont.cxx b/sc/source/ui/view/tabcont.cxx
index 56ef3b602b26..f61e32a80228 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());
}
}
}