diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-02-05 14:19:35 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-02-09 08:12:10 +0100 |
commit | 4b707104207e96d4e6666be7ad6e00ac4c6a10bc (patch) | |
tree | 759422d13e608218f242b313fc107ce973aad2e2 /include | |
parent | 768dea15b4c5c50367e40af45fc2265478ec154b (diff) |
lok::Document::postMouseEvent(): allow double-click
Change-Id: Idaddd28d906e7508d4d2c5aab916b06fbe021beb
Diffstat (limited to 'include')
-rw-r--r-- | include/LibreOfficeKit/LibreOfficeKit.h | 3 | ||||
-rw-r--r-- | include/LibreOfficeKit/LibreOfficeKit.hxx | 5 | ||||
-rw-r--r-- | include/LibreOfficeKit/LibreOfficeKitGtk.h | 4 | ||||
-rw-r--r-- | include/vcl/ITiledRenderable.hxx | 2 |
4 files changed, 10 insertions, 4 deletions
diff --git a/include/LibreOfficeKit/LibreOfficeKit.h b/include/LibreOfficeKit/LibreOfficeKit.h index e4852e4c4535..0ee2883b4027 100644 --- a/include/LibreOfficeKit/LibreOfficeKit.h +++ b/include/LibreOfficeKit/LibreOfficeKit.h @@ -175,7 +175,8 @@ struct _LibreOfficeKitDocumentClass void (*postMouseEvent)(LibreOfficeKitDocument* pThis, int nType, int nX, - int nY); + int nY, + int nCount); #endif // LOK_USE_UNSTABLE_API }; diff --git a/include/LibreOfficeKit/LibreOfficeKit.hxx b/include/LibreOfficeKit/LibreOfficeKit.hxx index 9891d4922fb5..8448fcd75204 100644 --- a/include/LibreOfficeKit/LibreOfficeKit.hxx +++ b/include/LibreOfficeKit/LibreOfficeKit.hxx @@ -111,10 +111,11 @@ public: * @param nType Event type, like down, move or up. * @param nX horizontal position in document coordinates * @param nY vertical position in document coordinates + * @param nCount number of clicks: 1 for single click, 2 for double click */ - inline void postMouseEvent(int nType, int nX, int nY) + inline void postMouseEvent(int nType, int nX, int nY, int nCount) { - mpDoc->pClass->postMouseEvent(mpDoc, nType, nX, nY); + mpDoc->pClass->postMouseEvent(mpDoc, nType, nX, nY, nCount); } #endif // LOK_USE_UNSTABLE_API }; diff --git a/include/LibreOfficeKit/LibreOfficeKitGtk.h b/include/LibreOfficeKit/LibreOfficeKitGtk.h index 7313215eb1b4..934d55acc748 100644 --- a/include/LibreOfficeKit/LibreOfficeKitGtk.h +++ b/include/LibreOfficeKit/LibreOfficeKitGtk.h @@ -46,6 +46,10 @@ struct _LOKDocView GdkRectangle m_aVisibleCursor; /// Cursor is visible or hidden (for blinking). gboolean m_bCursorVisible; + /// Time of the last button press. + guint32 m_nLastButtonPressTime; + /// Time of the last button release. + guint32 m_nLastButtonReleaseTime; }; struct _LOKDocViewClass diff --git a/include/vcl/ITiledRenderable.hxx b/include/vcl/ITiledRenderable.hxx index b231e98e61ff..9edd7a11aa9e 100644 --- a/include/vcl/ITiledRenderable.hxx +++ b/include/vcl/ITiledRenderable.hxx @@ -106,7 +106,7 @@ public: * * @see lok::Document::postMouseEvent(). */ - virtual void postMouseEvent(int /*nType*/, int /*nX*/, int /*nY*/) { } + virtual void postMouseEvent(int /*nType*/, int /*nX*/, int /*nY*/, int /*nCount*/) { } }; } // namespace vcl |