3 * \file ControlThesaurus.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
13 #ifndef CONTROLTHESAURUS_H
14 #define CONTROLTHESAURUS_H
17 #include "Thesaurus.h"
19 /** A controller for Thesaurus dialogs.
21 class ControlThesaurus : public Dialog::Controller {
24 ControlThesaurus(Dialog &);
26 virtual bool initialiseParams(std::string const & data);
28 virtual void clearParams();
30 virtual void dispatchParams() {}
32 virtual bool isBufferDependent() const { return true; }
34 /// replace the particular string
35 void replace(std::string const & newstr);
38 Thesaurus::Meanings const & getMeanings(std::string const & str);
41 std::string const & text() const { return oldstr_; }
44 /// last string looked up
47 /// entries for last string
48 Thesaurus::Meanings meanings_;
54 virtual void apply() {}
57 #endif // CONTROLTHESAURUS_H