summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-06-16 21:37:46 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-06-17 14:49:35 +0200
commit981b4e32933c9d3083f20bcb09ead4e4e2161768 (patch)
tree320eab378bc89df94dce14f4c128f9feba7383c1 /include
parent4366fdf8cb7b18bfc8f4665aa09f35e20467d3a5 (diff)
tdf#133807 re-present search dialog after a short timeout
Change-Id: Icc6016b3a9e3f25fd4c9e065e9f2d9570ad040c4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96500 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/svx/srchdlg.hxx7
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