2 * \file ControlThesaurus.C
3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
8 * Full author contact details are available in file CREDITS.
13 #include "ControlThesaurus.h"
16 #include "funcrequest.h"
21 ControlThesaurus::ControlThesaurus(Dialog & parent)
22 : Dialog::Controller(parent)
26 bool ControlThesaurus::initialiseParams(string const & data)
33 void ControlThesaurus::clearParams()
39 void ControlThesaurus::replace(string const & newstr)
41 /* FIXME: this is not suitable ! We need to have a "lock"
42 * on a particular charpos in a paragraph that is broken on
46 lyx::find::replace2string(oldstr_, newstr,
47 true, // case sensitive
51 kernel().dispatch(FuncRequest(LFUN_WORD_REPLACE, data));
55 Thesaurus::Meanings const & ControlThesaurus::getMeanings(string const & str)
58 meanings_ = thesaurus.lookup(str);