Branch libreoffice-5-0-4
[LibreOffice.git] / include / vcl / debugevent.hxx
blob6dc3dbffc5ab891217c55c17a4a1e39ac4a1d66d
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 : 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() SAL_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: */