| 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 | #pragma once |
| 11 | |
| 12 | #include <vcl/timer.hxx> |
| 13 | #include <sal/types.h> |
| 14 | |
| 15 | namespace vcl { class Window; } |
| 16 | |
| 17 | class DebugEventInjector final : private Timer { |
| 18 | sal_uInt32 mnEventsLeft; |
| 19 | DebugEventInjector( sal_uInt32 nMaxEvents ); |
| 20 | |
| 21 | static vcl::Window *ChooseWindow(); |
| 22 | static void InjectTextEvent(); |
| 23 | static void InjectMenuEvent(); |
| 24 | static void InjectEvent(); |
| 25 | static void InjectKeyNavEdit(); |
| 26 | virtual void Invoke() override; |
| 27 | |
| 28 | public: |
| 29 | static DebugEventInjector *getCreate(); |
| 30 | }; |
| 31 | |
| 32 | /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |