3 * Copyright 2001 The LyX Team.
4 * See the file COPYING.
12 #include <boost/smart_ptr.hpp>
18 #include "FormBaseDeprecated.h"
21 struct FD_form_search;
25 /** This class provides an XForms implementation of the FormSearch Dialog.
27 class FormSearch : public FormBaseBD {
30 FormSearch(LyXView *, Dialogs *);
33 /// Pointer to the actual instantiation of the ButtonController.
34 virtual xformsBC & bc();
37 virtual bool input(FL_OBJECT *, long);
43 virtual void update();
45 /// Searches occurance of string
46 /// if argument=true forward search otherwise backward search
47 void Find(bool const = true);
48 /// if argument=false replace once otherwise replace all
49 /// Replaces occurance of string
50 void Replace(bool const = false);
53 virtual FL_FORM * form() const;
55 /// Typedefinitions from the fdesign produced Header file
56 FD_form_search * build_search();
58 /// Real GUI implementation.
59 boost::scoped_ptr<FD_form_search> dialog_;
60 /// The ButtonController
61 ButtonController<NoRepeatedApplyReadOnlyPolicy, xformsBC> bc_;
66 xformsBC & FormSearch::bc()