2 * \file ControlSearch.C
3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
6 * \author Angus Leeming
8 * Full author contact details are available in file CREDITS.
13 #include "ControlSearch.h"
15 #include "funcrequest.h"
18 #include "frontends/LyXView.h"
23 /* The ControlSeach class is now in a fit state to derive from
26 ControlSearch::ControlSearch(LyXView & lv, Dialogs & d)
27 : ControlDialogBD(lv, d)
31 void ControlSearch::find(string const & search,
32 bool casesensitive, bool matchword, bool forward)
35 lyx::find::find2string(search,
36 casesensitive, matchword, forward);
37 lv_.dispatch(FuncRequest(LFUN_WORD_FIND, data));
41 void ControlSearch::replace(string const & search, string const & replace,
42 bool casesensitive, bool matchword, bool forward, bool all)
45 lyx::find::replace2string(search, replace,
46 casesensitive, matchword, all, forward);
47 lv_.dispatch(FuncRequest(LFUN_WORD_REPLACE, data));