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