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
17namespace vcl { class Window; }
18
19class 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:
32};
33
34#endif // INCLUDED_VCL_DEBUGEVENT_HXX
35
36/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
DebugEventInjector(sal_uInt32 nMaxEvents)
Definition: debugevent.cxx:22
static void InjectTextEvent()
Definition: debugevent.cxx:121
sal_uInt32 mnEventsLeft
Definition: debugevent.hxx:20
virtual void Invoke() override
Calls the maInvokeHandler with the parameter this.
Definition: debugevent.cxx:245
static void InjectMenuEvent()
Definition: debugevent.cxx:72
static void InjectKeyNavEdit()
Definition: debugevent.cxx:185
static vcl::Window * ChooseWindow()
Definition: debugevent.cxx:35
static void InjectEvent()
Definition: debugevent.cxx:168
static DebugEventInjector * getCreate()
Definition: debugevent.cxx:258
Definition: timer.hxx:27