1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 #ifndef INCLUDED_VCL_DEBUGEVENT_HXX
11 #define INCLUDED_VCL_DEBUGEVENT_HXX
13 #include <vcl/timer.hxx>
14 #include <sal/types.h>
16 namespace vcl
{ class Window
; }
18 class DebugEventInjector final
: private Timer
{
19 sal_uInt32 mnEventsLeft
;
20 DebugEventInjector( sal_uInt32 nMaxEvents
);
22 static vcl::Window
*ChooseWindow();
23 static void InjectTextEvent();
24 static void InjectMenuEvent();
25 static void InjectEvent();
26 static void InjectKeyNavEdit();
27 virtual void Invoke() override
;
30 static DebugEventInjector
*getCreate();
33 #endif // INCLUDED_VCL_DEBUGEVENT_HXX
35 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */