summaryrefslogtreecommitdiffstats
path: root/include/LibreOfficeKit
diff options
context:
space:
mode:
authorPranav Kant <pranavk@collabora.co.uk>2018-02-14 17:33:16 +0530
committerpranavk <pranavk@collabora.co.uk>2018-02-14 19:19:37 +0100
commit712540224d7c5c8cdb4a5214e2d7963a314c1928 (patch)
tree101386fc33b278d6ab307c665256a22b8beb439f /include/LibreOfficeKit
parentofz#6315 Heap-buffer-overflow (diff)
downloadcore-712540224d7c5c8cdb4a5214e2d7963a314c1928.tar.gz
core-712540224d7c5c8cdb4a5214e2d7963a314c1928.zip
lok IME: support dialogs as well
Change-Id: Ic78da45dadaa5a4e1ca78e20d04974108581121e Reviewed-on: https://gerrit.libreoffice.org/49714 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: pranavk <pranavk@collabora.co.uk>
Diffstat (limited to 'include/LibreOfficeKit')
-rw-r--r--include/LibreOfficeKit/LibreOfficeKit.h1
-rw-r--r--include/LibreOfficeKit/LibreOfficeKit.hxx6
2 files changed, 5 insertions, 2 deletions
diff --git a/include/LibreOfficeKit/LibreOfficeKit.h b/include/LibreOfficeKit/LibreOfficeKit.h
index ebc112fb7bd5..7492fcc7a561 100644
--- a/include/LibreOfficeKit/LibreOfficeKit.h
+++ b/include/LibreOfficeKit/LibreOfficeKit.h
@@ -302,6 +302,7 @@ struct _LibreOfficeKitDocumentClass
/// @see lok::Document::postExtTextInputEvent
void (*postExtTextInputEvent) (LibreOfficeKitDocument* pThis,
+ unsigned nWindowId,
int nType,
const char* pText);
diff --git a/include/LibreOfficeKit/LibreOfficeKit.hxx b/include/LibreOfficeKit/LibreOfficeKit.hxx
index 0983560898a4..55e29ebda1c8 100644
--- a/include/LibreOfficeKit/LibreOfficeKit.hxx
+++ b/include/LibreOfficeKit/LibreOfficeKit.hxx
@@ -540,12 +540,14 @@ public:
/**
* Post the text input from external input window, like IME
*
+ * @param nWindowId Specify the window id to post the input event to. If
+ * nWindow is 0, the event is posted into the document
* @param nType see LibreOfficeKitExtTextInputType
* @param pText Text for LOK_EXT_TEXTINPUT
*/
- void postExtTextInputEvent(int nType, const char* pText)
+ void postExtTextInputEvent(unsigned nWindowId, int nType, const char* pText)
{
- mpDoc->pClass->postExtTextInputEvent(mpDoc, nType, pText);
+ mpDoc->pClass->postExtTextInputEvent(mpDoc, nWindowId, nType, pText);
}
#endif // defined LOK_USE_UNSTABLE_API || defined LIBO_INTERNAL_ONLY