]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormThesaurus.h
get rid of broken_header.h and some unneeded tests
[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 namespace lyx {
18 namespace frontend {
19
20 class ControlThesaurus;
21 struct FD_thesaurus;
22
23 /** This class provides an XForms implementation of the Thesaurus dialog.
24  */
25 class FormThesaurus
26         : public FormController<ControlThesaurus, FormView<FD_thesaurus> > {
27 public:
28         ///
29         FormThesaurus(Dialog &);
30 private:
31         /// not needed.
32         virtual void apply() {}
33         /// Build the dialog
34         virtual void build();
35         /// update dialog
36         virtual void update();
37
38         /// set the replace word properly
39         void setReplace(std::string const & templ, std::string const & nstr);
40
41         /// update browser entries
42         void updateMeanings(std::string const & str);
43
44         /// Filter the inputs
45         virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
46
47         /// for double click handling
48         int clickline_;
49
50         /// current string
51         std::string str_;
52 };
53
54 } // namespace frontend
55 } // namespace lyx
56
57 #endif // FORMTHESAURUS_H