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 --- sw/inc/unotxdoc.hxx | 2 +- sw/source/uibase/uno/unotxdoc.cxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'sw') diff --git a/sw/inc/unotxdoc.hxx b/sw/inc/unotxdoc.hxx index 2d5161e2f2e0..894a12714946 100644 --- a/sw/inc/unotxdoc.hxx +++ b/sw/inc/unotxdoc.hxx @@ -414,7 +414,7 @@ public: */ virtual void registerCallback(LibreOfficeKitCallback pCallback, void* pData) SAL_OVERRIDE; /// @see vcl::ITiledRenderable::postMouseEvent(). - virtual void postMouseEvent(int nType, int nX, int nY) SAL_OVERRIDE; + virtual void postMouseEvent(int nType, int nX, int nY, int nCount) SAL_OVERRIDE; void Invalidate(); void Reactivate(SwDocShell* pNewDocShell); diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx index e0de39b3564c..70abbac57cbf 100644 --- a/sw/source/uibase/uno/unotxdoc.cxx +++ b/sw/source/uibase/uno/unotxdoc.cxx @@ -3173,12 +3173,12 @@ void SwXTextDocument::registerCallback(LibreOfficeKitCallback pCallback, void* p pViewShell->registerLibreOfficeKitCallback(pCallback, pData); } -void SwXTextDocument::postMouseEvent(int nType, int nX, int nY) +void SwXTextDocument::postMouseEvent(int nType, int nX, int nY, int nCount) { SolarMutexGuard aGuard; SwEditWin& rEditWin = pDocShell->GetView()->GetEditWin(); - MouseEvent aEvent(Point(nX, nY), 1, MouseEventModifiers::SIMPLECLICK, MOUSE_LEFT); + MouseEvent aEvent(Point(nX, nY), nCount, MouseEventModifiers::SIMPLECLICK, MOUSE_LEFT); switch (nType) { -- cgit