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