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"
21 ControlSearch::ControlSearch(Dialog & parent)
22 : Dialog::Controller(parent)
26 void ControlSearch::find(string const & search, bool casesensitive,
27 bool matchword, bool forward)
29 string const data = lyx::find::find2string(search, casesensitive,
31 kernel().dispatch(FuncRequest(LFUN_WORD_FIND, data));
35 void ControlSearch::replace(string const & search, string const & replace,
36 bool casesensitive, bool matchword,
37 bool forward, bool all)
40 lyx::find::replace2string(search, replace, casesensitive,
41 matchword, all, forward);
42 kernel().dispatch(FuncRequest(LFUN_WORD_REPLACE, data));