]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormThesaurus.h
dont use pragma impementation and interface anymore
[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
16 #include "FormBase.h"
17
18 class ControlThesaurus;
19 struct FD_thesaurus;
20
21 /** This class provides an XForms implementation of the Thesaurus dialog.
22  */
23 class FormThesaurus : public FormCB<ControlThesaurus, FormDB<FD_thesaurus> > {
24 public:
25         ///
26         FormThesaurus();
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(string const & templ, string const & nstr);
37
38         /// update browser entries
39         void updateMeanings(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         string str_;
49 };
50
51 #endif // FORMTHESAURUS_H