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/dllapi.h>
14 #include <vcl/timer.hxx>
15 #include <sal/types.h>
17 namespace vcl
{ class Window
; }
19 class DebugEventInjector final
: private Timer
{
20 sal_uInt32 mnEventsLeft
;
21 DebugEventInjector( sal_uInt32 nMaxEvents
);
23 static vcl::Window
*ChooseWindow();
24 static void InjectTextEvent();
25 static void InjectMenuEvent();
26 static void InjectEvent();
27 static void InjectKeyNavEdit();
28 virtual void Invoke() override
;
31 static DebugEventInjector
*getCreate();
34 #endif // INCLUDED_VCL_DEBUGEVENT_HXX
36 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */