summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2020-06-16 08:38:04 +0200
committerSzymon Kłos <szymon.klos@collabora.com>2020-06-29 15:15:08 +0200
commita40cb25a21d6d36ca227c77c5e58c102660bdd65 (patch)
tree4286ecf36d5ae8826b8eeb30fc0900887f22825f /vcl/source
parent4e9b03d04f740a0cbafa22a4f3cedfae7f37a994 (diff)
jsdialog: click action for drawing area
Change-Id: I2434bec675559a97e5d251c6d6a958464b6db034 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96853 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Szymon Kłos <szymon.klos@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97395 Tested-by: Jenkins
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/app/salvtables.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx
index 6a299156b404..391f2a6dc40a 100644
--- a/vcl/source/app/salvtables.cxx
+++ b/vcl/source/app/salvtables.cxx
@@ -5760,6 +5760,13 @@ SalInstanceDrawingArea::~SalInstanceDrawingArea()
OutputDevice& SalInstanceDrawingArea::get_ref_device() { return *m_xDrawingArea; }
+void SalInstanceDrawingArea::click(Point pos)
+{
+ MouseEvent aEvent(pos);
+ m_xDrawingArea->MouseButtonDown(aEvent);
+ m_xDrawingArea->MouseButtonUp(aEvent);
+}
+
IMPL_LINK(SalInstanceDrawingArea, PaintHdl, target_and_area, aPayload, void)
{
m_aDrawHdl.Call(aPayload);