]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormSearch.C
Change glob() API to accept a dir parameter.
[lyx.git] / src / frontends / xforms / FormSearch.C
index 261d895cf6143011997af7cf69b214fe05f94a8f..375dc0e21e6c97e5d880869269efa78410b50f0a 100644 (file)
 
 #include "lyx_forms.h"
 
-
 using std::string;
 
+namespace lyx {
+namespace frontend {
 
-typedef FormCB<ControlSearch, FormDB<FD_search> > base_class;
+typedef FormController<ControlSearch, FormView<FD_search> > base_class;
 
-FormSearch::FormSearch()
-       : base_class(_("Find and Replace"))
+FormSearch::FormSearch(Dialog & parent)
+       : base_class(parent, _("Find and Replace"))
 {}
 
 
@@ -85,9 +86,12 @@ ButtonPolicy::SMInput FormSearch::input(FL_OBJECT * ob, long)
                                     getString(dialog_->input_replace),
                                     fl_get_button(dialog_->check_casesensitive),
                                     fl_get_button(dialog_->check_matchword),
-                                    !fl_get_button(dialog_->check_searchbackwards),                                 
+                                    !fl_get_button(dialog_->check_searchbackwards),
                                     all);
        }
 
        return ButtonPolicy::SMI_VALID;
 }
+
+} // namespace frontend
+} // namespace lyx