]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/FormSearch.h
implement getLabelList
[lyx.git] / src / frontends / qt2 / FormSearch.h
1 /** 
2  * \file FormSearch.h
3  * Copyright 2001 The LyX Team.
4  * See the file COPYING.
5  * 
6  * \author Edwin Leuven
7  */
8
9 #ifndef FORM_SEARCH_H
10 #define FORM_SEARCH_H
11
12 #include "DialogBase.h"
13 #include "LString.h"
14 #include "support/lstrings.h"
15
16 class LyXView;
17 class Dialogs;
18 class SearchDlgImpl;
19
20 class FormSearch : public DialogBase {
21 public:
22    ///
23    FormSearch(LyXView *, Dialogs *);
24    ///
25    ~FormSearch();
26    
27    /// Close connections.
28    void close();
29    /// find stuff (we need access to lv_).
30    void find(string const &, bool const &, bool const &, bool const &);
31    /// replace stuff (we need access to lv_).
32    void replace(string const &, string const &, 
33                 bool const &, bool const &, bool const &, bool const &);
34    
35    
36 private:
37         
38    /// Show the dialog.
39    void show();
40    /// Hide the dialog.
41    void hide();
42    /// Update the dialog.
43    void update(bool switched = false);
44         
45    /// Real GUI implementation.
46    SearchDlgImpl * dialog_;
47         
48    /// the LyXView we belong to.
49    LyXView * lv_;
50         
51    /** Which Dialogs do we belong to?
52     *  Used so we can get at the signals we have to connect to.
53     */
54    Dialogs * d_;
55         
56    /// Hide connection.
57    SigC::Connection h_;
58
59    /// Update connection.
60    SigC::Connection u_;
61    
62 };
63
64 #endif