diff options
author | Mihai Varga <mihai.varga@collabora.com> | 2015-10-04 19:40:13 +0300 |
---|---|---|
committer | Mihai Varga <mihai.mv13@gmail.com> | 2015-10-05 15:02:36 +0300 |
commit | c90c08a65c480a1012182979d5e9218f17a2ba2e (patch) | |
tree | ac2e2ca3d07c6ac7c356fd8e503924fe4184d4d8 /include/LibreOfficeKit | |
parent | 0326352470aee1a774bb5aa314c4f3625c1372b3 (diff) |
LOK: added the button type and key modifier to postMouseEvent()
To get a better functionality we need to know the button type (left,
right, middle). We also need the key modifier (ctrl, alt, shift) for
actions such as ctrl+click (to open a link) or shift+click to select
Change-Id: Iaccb93b276f8a6870dd41cc5132dbb85d2bbf71b
Diffstat (limited to 'include/LibreOfficeKit')
-rw-r--r-- | include/LibreOfficeKit/LibreOfficeKit.h | 4 | ||||
-rw-r--r-- | include/LibreOfficeKit/LibreOfficeKit.hxx | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/include/LibreOfficeKit/LibreOfficeKit.h b/include/LibreOfficeKit/LibreOfficeKit.h index d83dd49f32b5..83dcc9803d8a 100644 --- a/include/LibreOfficeKit/LibreOfficeKit.h +++ b/include/LibreOfficeKit/LibreOfficeKit.h @@ -137,7 +137,9 @@ struct _LibreOfficeKitDocumentClass int nType, int nX, int nY, - int nCount); + int nCount, + int nButtons, + int nModifier); /// @see lok::Document::postUnoCommand void (*postUnoCommand) (LibreOfficeKitDocument* pThis, diff --git a/include/LibreOfficeKit/LibreOfficeKit.hxx b/include/LibreOfficeKit/LibreOfficeKit.hxx index acdfa27531e7..72231ad6af1c 100644 --- a/include/LibreOfficeKit/LibreOfficeKit.hxx +++ b/include/LibreOfficeKit/LibreOfficeKit.hxx @@ -192,9 +192,9 @@ public: * @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, int nCount) + inline void postMouseEvent(int nType, int nX, int nY, int nCount, int nButtons, int nModifier) { - mpDoc->pClass->postMouseEvent(mpDoc, nType, nX, nY, nCount); + mpDoc->pClass->postMouseEvent(mpDoc, nType, nX, nY, nCount, nButtons, nModifier); } /** |