]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormThesaurus.h
Tiny clean-ups.
[lyx.git] / src / frontends / xforms / FormThesaurus.h
1 // -*- C++ -*-
2 /**
3  * \file FormThesaurus.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author John Levon
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef FORMTHESAURUS_H
13 #define FORMTHESAURUS_H
14
15 #include "FormDialogView.h"
16
17 class ControlThesaurus;
18 struct FD_thesaurus;
19
20 /** This class provides an XForms implementation of the Thesaurus dialog.
21  */
22 class FormThesaurus
23         : public FormController<ControlThesaurus, FormView<FD_thesaurus> > {
24 public:
25         ///
26         FormThesaurus(Dialog &);
27 private:
28         /// not needed.
29         virtual void apply() {}
30         /// Build the dialog
31         virtual void build();
32         /// update dialog
33         virtual void update();
34
35         /// set the replace word properly
36         void setReplace(std::string const & templ, std::string const & nstr);
37
38         /// update browser entries
39         void updateMeanings(std::string const & str);
40
41         /// Filter the inputs
42         virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
43
44         /// for double click handling
45         int clickline_;
46
47         /// current string
48         std::string str_;
49 };
50
51 #endif // FORMTHESAURUS_H