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"
20 /** A controller for Thesaurus dialogs.
22 class ControlThesaurus : public Dialog::Controller {
25 ControlThesaurus(Dialog &);
27 virtual bool initialiseParams(string const & data);
29 virtual void clearParams();
31 virtual void dispatchParams() {}
33 virtual bool isBufferDependent() const { return true; }
35 /// replace the particular string
36 void replace(string const & newstr);
39 Thesaurus::Meanings const & getMeanings(string const & str);
42 string const & text() const { return oldstr_; }
45 /// last string looked up
48 /// entries for last string
49 Thesaurus::Meanings meanings_;
55 virtual void apply() {}
58 #endif // CONTROLTHESAURUS_H