]> git.lyx.org Git - features.git/blob - src/frontends/xforms/FormSearch.h
Edwins f&r GUII patch with a small fix.
[features.git] / src / frontends / xforms / 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 FORMSEARCH_H
10 #define FORMSEARCH_H
11
12 #include "FormBase.h"
13
14 struct FD_form_search;
15 class LyXView;
16 class Dialogs;
17
18 /** This class provides an XForms implementation of the FormSearch Dialog.
19  */
20 class FormSearch : public FormBaseBD {
21 public:
22    ///
23    FormSearch(LyXView *, Dialogs *);
24    ///
25    ~FormSearch();
26    
27 private:
28    /** Redraw the form (on receipt of a Signal indicating, for example,
29     *  that the xform colours have been re-mapped). 
30     */
31
32    /// Filter the inputs
33    virtual bool input(FL_OBJECT *, long);
34    
35    /// Build the popup
36    virtual void build();
37
38    /// Update the popup
39    virtual void update();
40
41    /// Searches occurance of string
42    /// if argument=true forward search otherwise backward search
43    void Find(bool const = true);
44    /// if argument=false replace once otherwise replace all
45    /// Replaces occurance of string
46    void Replace(bool const = false);
47    
48    ///
49    virtual FL_FORM * form() const;
50    
51    /// Typedefinitions from the fdesign produced Header file
52    FD_form_search  * build_search();
53    
54    /// Real GUI implementation.
55    FD_form_search  * dialog_;
56 };
57
58 #endif