diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-01-09 02:02:25 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-06-18 17:01:23 +0200 |
commit | d5acf9d60b02e3056a989b37820bc1b35c331be3 (patch) | |
tree | a6db7571f66e51c33f19830ee451ee20da6231d1 /include/vcl/uitest | |
parent | d96bd57cccda438906fbe38e8ad5985320966323 (diff) |
uitest: add method to get top level window that has current focus
This might be a modal dialog (mpLastExecuteDlg) or a modeless dialog/the
toplevel window (mpFirstFrame).
This window should be used with get_child to find the correct window in
the current scope.
Change-Id: I0a1e63d0aa19c782069ba5876549f274dabb109b
Diffstat (limited to 'include/vcl/uitest')
-rw-r--r-- | include/vcl/uitest/uitest.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/vcl/uitest/uitest.hxx b/include/vcl/uitest/uitest.hxx index 1d0385e0bf74..38966a060483 100644 --- a/include/vcl/uitest/uitest.hxx +++ b/include/vcl/uitest/uitest.hxx @@ -11,11 +11,17 @@ #include <vcl/dllapi.h> +#include <memory> + +class UIObject; + class UITEST_DLLPUBLIC UITest { public: void executeCommand(const OUString& rCommand); + + std::unique_ptr<UIObject> getFocusTopWindow(); }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |