]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormThesaurus.h
xforms clean-up, described in detail in my mail of 31 May. See
[lyx.git] / src / frontends / xforms / FormThesaurus.h
1 // -*- C++ -*-
2 /**
3  * \file FormThesaurus.h
4  * Copyright 2001 the LyX Team
5  * Read the file COPYING
6  *
7  * \author John Levon, moz@compsoc.man.ac.uk
8  */
9
10 #ifndef FORMTHESAURUS_H
11 #define FORMTHESAURUS_H
12
13 #ifdef __GNUG__
14 #pragma interface
15 #endif
16
17 #include "FormBase.h"
18
19 class ControlThesaurus;
20 struct FD_thesaurus;
21
22 /** This class provides an XForms implementation of the Thesaurus dialog.
23  */
24 class FormThesaurus : public FormCB<ControlThesaurus, FormDB<FD_thesaurus> > {
25 public:
26         ///
27         FormThesaurus(ControlThesaurus &);
28
29 private:
30         /// not needed.
31         virtual void apply() {}
32         /// Build the dialog
33         virtual void build();
34         /// update dialog
35         virtual void update();
36
37         /// set the replace word properly
38         void setReplace(string const & templ, string const & nstr);
39
40         /// update browser entries
41         void updateMeanings(string const & str);
42
43         /// Filter the inputs
44         virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
45
46         /// for double click handling
47         int clickline_;
48
49         /// current string
50         string str_;
51 };
52
53 #endif // FORMTHESAURUS_H