]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlThesaurus.h
Really dull and boring header shit
[lyx.git] / src / frontends / controllers / ControlThesaurus.h
1 // -*- C++ -*-
2 /**
3  * \file ControlThesaurus.h
4  * Read the file COPYING
5  *
6  * \author John Levon
7  *
8  * Full author contact details are available in file CREDITS
9  */
10
11
12 #ifndef CONTROLTHESAURUS_H
13 #define CONTROLTHESAURUS_H
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include <vector>
20
21 #include "LString.h"
22 #include "Thesaurus.h"
23 #include "ControlDialog_impl.h"
24
25 /** A controller for Thesaurus dialogs.
26  */
27 class ControlThesaurus : public ControlDialogBD {
28 public:
29         ///
30         ControlThesaurus(LyXView &, Dialogs &);
31
32         /// replace the particular string
33         void replace(string const & newstr);
34
35         /// show dialog
36         virtual void showEntry(string const & str);
37
38         /// get meanings
39         Thesaurus::Meanings const & getMeanings(string const & str);
40
41         /// the text
42         string const & text() {
43                 return oldstr_;
44         }
45
46 private:
47         /// last string looked up
48         string laststr_;
49
50         /// entries for last string
51         Thesaurus::Meanings meanings_;
52
53         /// original string
54         string oldstr_;
55
56         /// not needed.
57         virtual void apply() {}
58 };
59
60 #endif // CONTROLTHESAURUS_H