lyx_mirror/src/frontends/controllers/ControlSearch.C
André Pönitz 6c300f72a2 move everything into namespace lyx
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15422 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-21 00:16:43 +00:00

49 lines
1.1 KiB
C

/**
* \file ControlSearch.C
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
* \author Angus Leeming
*
* Full author contact details are available in file CREDITS.
*/
#include <config.h>
#include "ControlSearch.h"
#include "funcrequest.h"
#include "lyxfind.h"
using std::string;
namespace lyx {
namespace frontend {
ControlSearch::ControlSearch(Dialog & parent)
: Dialog::Controller(parent)
{}
void ControlSearch::find(string const & search, bool casesensitive,
bool matchword, bool forward)
{
string const data = find2string(search, casesensitive,
matchword, forward);
kernel().dispatch(FuncRequest(LFUN_WORD_FIND, data));
}
void ControlSearch::replace(string const & search, string const & replace,
bool casesensitive, bool matchword,
bool forward, bool all)
{
string const data =
replace2string(search, replace, casesensitive,
matchword, all, forward);
kernel().dispatch(FuncRequest(LFUN_WORD_REPLACE, data));
}
} // namespace frontend
} // namespace lyx