LibreOffice Module vcl (master)  1
debugevent.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
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  */
9 
10 #ifndef INCLUDED_VCL_DEBUGEVENT_HXX
11 #define INCLUDED_VCL_DEBUGEVENT_HXX
12 
13 #include <vcl/dllapi.h>
14 #include <vcl/timer.hxx>
15 #include <sal/types.h>
16 
17 namespace vcl { class Window; }
18 
19 class DebugEventInjector final : private Timer {
20  sal_uInt32 mnEventsLeft;
21  DebugEventInjector( sal_uInt32 nMaxEvents );
22 
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;
29 
30  public:
31  static DebugEventInjector *getCreate();
32 };
33 
34 #endif // INCLUDED_VCL_DEBUGEVENT_HXX
35 
36 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void Invoke() override
Calls the maInvokeHandler with the parameter this.
Definition: debugevent.cxx:246
static void InjectKeyNavEdit()
Definition: debugevent.cxx:186
sal_uInt32 mnEventsLeft
Definition: debugevent.hxx:20
DebugEventInjector(sal_uInt32 nMaxEvents)
Definition: debugevent.cxx:21
static void InjectMenuEvent()
Definition: debugevent.cxx:73
static void InjectTextEvent()
Definition: debugevent.cxx:122
static void InjectEvent()
Definition: debugevent.cxx:169
static vcl::Window * ChooseWindow()
Definition: debugevent.cxx:34
Definition: timer.hxx:26
static DebugEventInjector * getCreate()
Definition: debugevent.cxx:259