diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-06-16 21:37:46 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-06-17 15:55:53 +0200 |
commit | 9da14cf5461a1883718da9f92e03dd0dd6e28efd (patch) | |
tree | f57295105f18be0fe953cc6cae6efe82e81dcb83 /include/svx/srchdlg.hxx | |
parent | f9383f75af46efbb319110921158dcd6b5e91913 (diff) |
tdf#133807 re-present search dialog after a short timeout
Change-Id: Icc6016b3a9e3f25fd4c9e065e9f2d9570ad040c4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96524
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/svx/srchdlg.hxx')
-rw-r--r-- | include/svx/srchdlg.hxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/svx/srchdlg.hxx b/include/svx/srchdlg.hxx index 6b45e838dcf9..8982e4d37a2b 100644 --- a/include/svx/srchdlg.hxx +++ b/include/svx/srchdlg.hxx @@ -25,6 +25,7 @@ #include <svl/srchdefs.hxx> #include <svl/srchitem.hxx> #include <svx/svxdllapi.h> +#include <vcl/timer.hxx> #include <memory> #include <vector> @@ -132,8 +133,12 @@ public: void SetSearchLabel(const OUString& rStr); + // bring this window back to the foreground + void Present(); + private: SfxBindings& rBindings; + Timer m_aPresentIdle; bool bWriter; bool bSearch; bool bFormat; @@ -255,6 +260,8 @@ private: SVX_DLLPRIVATE bool IsOtherOptionsExpanded() const; SVX_DLLPRIVATE short executeSubDialog(VclAbstractDialog * dialog); + + DECL_DLLPRIVATE_LINK(PresentTimeoutHdl_Impl, Timer*, void); }; #endif |