summaryrefslogtreecommitdiff
path: root/include/vcl/IDialogRenderable.hxx
diff options
context:
space:
mode:
authorPranav Kant <pranavk@collabora.co.uk>2017-07-28 18:05:20 +0530
committerPranav Kant <pranavk@collabora.co.uk>2017-10-02 10:54:52 +0530
commit0f58e974a7d6a88491a97ea3d0f30755ec330253 (patch)
tree8c3a15974009324443e042c5f6916cd435d93da5 /include/vcl/IDialogRenderable.hxx
parent1325fabbdd2e52169a7d1a1b9a6b9b59d908e8bb (diff)
lokdialog: Better dialog rendering API
After painting the dialog, also write width and height of the rendered dialog. The dialog is rendered always on the top left of the given canvas, so client can crop the canvas accordingly. Change-Id: If052058a6db8a85d4e28ec88cffcca05564b17f0
Diffstat (limited to 'include/vcl/IDialogRenderable.hxx')
-rw-r--r--include/vcl/IDialogRenderable.hxx17
1 files changed, 10 insertions, 7 deletions
diff --git a/include/vcl/IDialogRenderable.hxx b/include/vcl/IDialogRenderable.hxx
index 18694092c2fa..2621ec03947a 100644
--- a/include/vcl/IDialogRenderable.hxx
+++ b/include/vcl/IDialogRenderable.hxx
@@ -14,26 +14,29 @@
#include <tools/gen.hxx>
#include <vcl/pointr.hxx>
#include <vcl/virdev.hxx>
+#include <vcl/window.hxx>
+
+#include "IDialogRenderable.hxx"
+
+#include <map>
namespace vcl
{
-typedef sal_Int32 DialogID;
+typedef OUString DialogID;
class VCL_DLLPUBLIC IDialogRenderable
{
public:
virtual ~IDialogRenderable();
- virtual DialogID findDialog() = 0;
-
- virtual void paintDialog(DialogID rDialogID, VirtualDevice &rDevice,
- int nOutputWidth, int nOutputHeight) = 0;
+ virtual void paintDialog(const DialogID& rDialogID, VirtualDevice &rDevice,
+ int& nOutputWidth, int& nOutputHeight) = 0;
- virtual void postDialogMouseEvent(DialogID rDialogID, int nType,
+ virtual void postDialogMouseEvent(const DialogID& rDialogID, int nType,
int nCharCode, int nKeyCode) = 0;
- virtual void postDialogKeyEvent(DialogID rDialogID, int nType, int nX, int nY,
+ virtual void postDialogKeyEvent(const DialogID& rDialogID, int nType, int nX, int nY,
int nCount, int nButtons, int nModifier) = 0;
};