From 4b707104207e96d4e6666be7ad6e00ac4c6a10bc Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Thu, 5 Feb 2015 14:19:35 +0100 Subject: lok::Document::postMouseEvent(): allow double-click Change-Id: Idaddd28d906e7508d4d2c5aab916b06fbe021beb --- desktop/source/lib/init.cxx | 7 ++++--- desktop/source/lib/lokandroid.cxx | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'desktop') diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 940f413a2c9b..644301969ca8 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -205,7 +205,8 @@ static void doc_registerCallback(LibreOfficeKitDocument* pThis, static void doc_postMouseEvent (LibreOfficeKitDocument* pThis, int nType, int nX, - int nY); + int nY, + int nCount); struct LibLODocument_Impl : public _LibreOfficeKitDocument { @@ -659,7 +660,7 @@ static void doc_registerCallback(LibreOfficeKitDocument* pThis, pDoc->registerCallback(pCallback, pData); } -static void doc_postMouseEvent(LibreOfficeKitDocument* pThis, int nType, int nX, int nY) +static void doc_postMouseEvent(LibreOfficeKitDocument* pThis, int nType, int nX, int nY, int nCount) { ITiledRenderable* pDoc = getTiledRenderable(pThis); if (!pDoc) @@ -668,7 +669,7 @@ static void doc_postMouseEvent(LibreOfficeKitDocument* pThis, int nType, int nX, return; } - pDoc->postMouseEvent(nType, nX, nY); + pDoc->postMouseEvent(nType, nX, nY, nCount); } diff --git a/desktop/source/lib/lokandroid.cxx b/desktop/source/lib/lokandroid.cxx index 9ea51078c30f..d253cfe37bcc 100644 --- a/desktop/source/lib/lokandroid.cxx +++ b/desktop/source/lib/lokandroid.cxx @@ -278,10 +278,10 @@ extern "C" SAL_JNI_EXPORT jint JNICALL Java_org_libreoffice_kit_Office_saveAs } extern "C" SAL_JNI_EXPORT void JNICALL Java_org_libreoffice_kit_Document_postMouseEvent - (JNIEnv* pEnv, jobject aObject, jint type, jint x, jint y) + (JNIEnv* pEnv, jobject aObject, jint type, jint x, jint y, jint count) { LibreOfficeKitDocument* pDocument = getHandle(pEnv, aObject); - pDocument->pClass->postMouseEvent(pDocument, type, x, y); + pDocument->pClass->postMouseEvent(pDocument, type, x, y, count); } /* DirectBufferAllocator */ -- cgit