Version 5.4.3.2, tag libreoffice-5.4.3.2
[LibreOffice.git] / include / vcl / debugevent.hxx
bloba4331adc4d87521851f386ff6b7e8b45736bbef4
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
8 */
10 #ifndef INCLUDED_VCL_DEBUGEVENT_HXX
11 #define INCLUDED_VCL_DEBUGEVENT_HXX
13 #if OSL_DEBUG_LEVEL > 0
15 #include <vcl/dllapi.h>
16 #include <vcl/timer.hxx>
17 #include <sal/types.h>
18 #include <vcl/window.hxx>
20 class VCL_DLLPUBLIC DebugEventInjector : private Timer {
21 sal_uInt32 mnEventsLeft;
22 DebugEventInjector( sal_uInt32 nMaxEvents );
24 static vcl::Window *ChooseWindow();
25 static void InjectTextEvent();
26 static void InjectMenuEvent();
27 static void InjectEvent();
28 static void InjectKeyNavEdit();
29 virtual void Invoke() override;
31 public:
32 static DebugEventInjector *getCreate();
35 #endif // OSL_DEBUG_LEVEL > 0
37 #endif // INCLUDED_VCL_DEBUGEVENT_HXX
39 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */