From 59c38539bcabf3a5c949745ff8f501ed7c98a528 Mon Sep 17 00:00:00 2001 From: "Matthew J. Francis" Date: Sat, 3 Oct 2015 04:31:48 +0800 Subject: Allow injection of keyboard and mouse events through UNO Change-Id: I3d139c6378f5274be1e7bfd88f72d1576c13243d Reviewed-on: https://gerrit.libreoffice.org/19321 Reviewed-by: Matthew Francis Tested-by: Matthew Francis --- offapi/UnoApi_offapi.mk | 1 + offapi/com/sun/star/awt/XToolkitRobot.idl | 40 +++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 offapi/com/sun/star/awt/XToolkitRobot.idl (limited to 'offapi') diff --git a/offapi/UnoApi_offapi.mk b/offapi/UnoApi_offapi.mk index 0ede4c2b41b4..c8880078ed6f 100644 --- a/offapi/UnoApi_offapi.mk +++ b/offapi/UnoApi_offapi.mk @@ -1889,6 +1889,7 @@ $(eval $(call gb_UnoApi_add_idlfiles,offapi,com/sun/star/awt,\ XToolkit \ XToolkit2 \ XToolkitExperimental \ + XToolkitRobot \ XTopWindow \ XTopWindow2 \ XTopWindowListener \ diff --git a/offapi/com/sun/star/awt/XToolkitRobot.idl b/offapi/com/sun/star/awt/XToolkitRobot.idl new file mode 100644 index 000000000000..a7b430dc8618 --- /dev/null +++ b/offapi/com/sun/star/awt/XToolkitRobot.idl @@ -0,0 +1,40 @@ +/* -*- 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 __com_sun_star_awt_XToolkitRobot_idl__ +#define __com_sun_star_awt_XToolkitRobot_idl__ + +#include +#include + +module com { module sun { module star { module awt { + +/** Allows injection of keyboard and mouse events + */ + +interface XToolkitRobot +{ + + void keyPress( [in] com::sun::star::awt::KeyEvent aKeyEvent ); + + void keyRelease( [in] com::sun::star::awt::KeyEvent aKeyEvent ); + + void mousePress( [in] com::sun::star::awt::MouseEvent aMouseEvent ); + + void mouseRelease( [in] com::sun::star::awt::MouseEvent aMouseEvent ); + + void mouseMove( [in] com::sun::star::awt::MouseEvent aMouseEvent ); + +}; + +}; }; }; }; + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit