summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2014-05-08 17:03:08 +0100
committerMichael Meeks <michael.meeks@collabora.com>2014-05-22 09:48:17 +0100
commit4ea70f09e964fd39b46941313493a11e131e21e1 (patch)
treef52c01fe157d91d708f43ad65808a0f29a2e9ddf /include
parentc39bf522eed16b5e53e3f955579692906579fc47 (diff)
Initial cut at some infinite monkeys work.
Change-Id: I71c7fe027262305893d8eabee94a726f4aa909d6
Diffstat (limited to 'include')
-rw-r--r--include/vcl/debugevent.hxx36
-rw-r--r--include/vcl/window.hxx3
2 files changed, 39 insertions, 0 deletions
diff --git a/include/vcl/debugevent.hxx b/include/vcl/debugevent.hxx
new file mode 100644
index 000000000000..ce3157055b68
--- /dev/null
+++ b/include/vcl/debugevent.hxx
@@ -0,0 +1,36 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#ifndef INCLUDED_VCL_DEBUGEVENT_HXX
+#define INCLUDED_VCL_DEBUGEVENT_HXX
+
+#include <vcl/dllapi.h>
+#include <vcl/timer.hxx>
+#include <sal/types.h>
+#include <vcl/window.hxx>
+
+class VCL_DLLPUBLIC DebugEventInjector : Timer {
+ sal_uInt32 mnEventsLeft;
+ DebugEventInjector( sal_uInt32 nMaxEvents );
+
+ Window *ChooseWindow();
+ void InjectKeyEvent();
+ void InjectMenuEvent();
+ void InjectMouseEvent();
+ void InjectEvent();
+ void InjectKeyNavEdit();
+ virtual void Timeout();
+
+ public:
+ static DebugEventInjector *getCreate();
+};
+
+#endif // INCLUDED_VCL_DEBUGEVENT_HXX
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/vcl/window.hxx b/include/vcl/window.hxx
index c9f8390b7626..4576bdbc2dac 100644
--- a/include/vcl/window.hxx
+++ b/include/vcl/window.hxx
@@ -1029,6 +1029,9 @@ public:
void SetData( void* pNewData );
void* GetData() const;
+ /// Add all children to @rAllChildren recursively.
+ SAL_DLLPRIVATE void CollectChildren(::std::vector<Window *>& rAllChildren );
+
void ShowFocus( const Rectangle& rRect );
void HideFocus();