]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormThesaurus.h
sourcedoc-friendly files.
[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_form_thesaurus;
21 struct FD_form_noun;
22 struct FD_form_verb;
23 struct FD_form_adjective;
24 struct FD_form_adverb;
25 struct FD_form_other;
26
27 /** This class provides an XForms implementation of the Thesaurus dialog.
28  */
29 class FormThesaurus : public FormCB<ControlThesaurus, FormDB<FD_form_thesaurus> > {
30 public:
31         ///
32         FormThesaurus(ControlThesaurus &);
33  
34 private:
35         /// not needed.
36         virtual void apply() {}
37         /// Build the dialog
38         virtual void build();
39         /// update dialog
40         virtual void update();
41
42         /// dialog build
43         FD_form_thesaurus * build_thesaurus();
44
45         /// set the replace word properly
46         void setReplace(const string & templ, const string & nstr);
47
48         /// update browser entries
49         void updateMeanings(const string & str);
50
51         /// Filter the inputs
52         virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
53  
54         /// for double click handling
55         int clickline_;
56
57         /// current string
58         string str_;
59 };
60
61 #endif // FORMTHESAURUS_H