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"
22 /** A controller for Thesaurus dialogs.
24 class ControlThesaurus : public Dialog::Controller {
27 ControlThesaurus(Dialog &);
29 virtual bool initialiseParams(std::string const & data);
31 virtual void clearParams();
33 virtual void dispatchParams() {}
35 virtual bool isBufferDependent() const { return true; }
37 /// replace the particular string
38 void replace(std::string const & newstr);
41 Thesaurus::Meanings const & getMeanings(std::string const & str);
44 std::string const & text() const { return oldstr_; }
47 /// last string looked up
50 /// entries for last string
51 Thesaurus::Meanings meanings_;
57 virtual void apply() {}
60 } // namespace frontend
63 #endif // CONTROLTHESAURUS_H