summaryrefslogtreecommitdiff
path: root/include/vcl/IDialogRenderable.hxx
diff options
context:
space:
mode:
authorPranav Kant <pranavk@collabora.co.uk>2017-11-14 18:45:02 +0530
committerpranavk <pranavk@collabora.co.uk>2017-11-15 13:46:16 +0100
commit43540adb76f764522344c5d66ebc63f7cb0f9c1c (patch)
tree23545b82a08ae2a17ee7b2f42aa9652391b7a5ea /include/vcl/IDialogRenderable.hxx
parenta088f9e729084f950ee58afb8f80e64d4d134144 (diff)
lokdialog: Expose cursor visible status
Change the notifyDialog API a bit. Use a std::vector to keep track of each payload item that needs to be fed to the resulting JSON. Change-Id: If3229a88d2df5368e14290a0e80ebe6206780639 Reviewed-on: https://gerrit.libreoffice.org/44722 Reviewed-by: pranavk <pranavk@collabora.co.uk> Tested-by: pranavk <pranavk@collabora.co.uk>
Diffstat (limited to 'include/vcl/IDialogRenderable.hxx')
-rw-r--r--include/vcl/IDialogRenderable.hxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/vcl/IDialogRenderable.hxx b/include/vcl/IDialogRenderable.hxx
index 87630d5c2f1d..4137e960edb9 100644
--- a/include/vcl/IDialogRenderable.hxx
+++ b/include/vcl/IDialogRenderable.hxx
@@ -21,6 +21,8 @@
namespace vcl
{
+typedef std::pair<const OString, const OString> LOKPayloadItem;
+
typedef OUString DialogID;
class VCL_DLLPUBLIC IDialogRenderable
@@ -45,7 +47,9 @@ public:
int nCount, int nButtons, int nModifier) = 0;
// Callbacks
- virtual void notifyDialog(const DialogID& rDialogID, const OUString& rAction, const tools::Rectangle* rRect) = 0;
+ virtual void notifyDialog(const DialogID& rDialogID,
+ const OUString& rAction,
+ const std::vector<LOKPayloadItem>& rPayload = std::vector<LOKPayloadItem>()) = 0;
virtual void notifyDialogChild(const DialogID& rDialogID, const OUString& rAction, const Point& rPos) = 0;
};