summaryrefslogtreecommitdiff
path: root/include/vcl/IDialogRenderable.hxx
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2017-05-26 22:55:31 +0200
committerPranav Kant <pranavk@collabora.co.uk>2017-10-02 10:54:05 +0530
commite81338c4e66a3f1193ed338ebab8c436a830db6b (patch)
tree3c2e613de983441385f95abe86434b7e68854d2e /include/vcl/IDialogRenderable.hxx
parentd663eabbebad69dd64e5d9b05c60375304b28573 (diff)
Add IDialogRenderable interface for rendering of dialogs
Change-Id: I1d85729a1ac1a99d33ea2bde1b50ccf4c05ca9a9
Diffstat (limited to 'include/vcl/IDialogRenderable.hxx')
-rw-r--r--include/vcl/IDialogRenderable.hxx44
1 files changed, 44 insertions, 0 deletions
diff --git a/include/vcl/IDialogRenderable.hxx b/include/vcl/IDialogRenderable.hxx
new file mode 100644
index 000000000000..18694092c2fa
--- /dev/null
+++ b/include/vcl/IDialogRenderable.hxx
@@ -0,0 +1,44 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ */
+
+#ifndef INCLUDED_VCL_IDIALOGRENDERABLE_HXX
+#define INCLUDED_VCL_IDIALOGRENDERABLE_HXX
+
+#include <tools/gen.hxx>
+#include <vcl/pointr.hxx>
+#include <vcl/virdev.hxx>
+
+namespace vcl
+{
+
+typedef sal_Int32 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 postDialogMouseEvent(DialogID rDialogID, int nType,
+ int nCharCode, int nKeyCode) = 0;
+
+ virtual void postDialogKeyEvent(DialogID rDialogID, int nType, int nX, int nY,
+ int nCount, int nButtons, int nModifier) = 0;
+};
+
+} // namespace vcl
+
+#endif // INCLUDED_VCL_IDIALOGRENDERABLE_HXX
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */