3 * \file FormThesaurus.h
4 * Copyright 2001 the LyX Team
5 * Read the file COPYING
10 #ifndef FORMTHESAURUS_H
11 #define FORMTHESAURUS_H
19 class ControlThesaurus;
20 struct FD_form_tabbed_thesaurus;
23 struct FD_form_adjective;
24 struct FD_form_adverb;
27 /** This class provides an XForms implementation of the Thesaurus dialog.
29 class FormThesaurus : public FormCB<ControlThesaurus, FormDB<FD_form_tabbed_thesaurus> > {
32 FormThesaurus(ControlThesaurus &);
36 virtual void apply() {}
40 virtual void update();
42 virtual void redraw();
44 /// set the replace word properly
45 void setReplace(const string & templ, const string & nstr);
47 /// update browser entries
48 void updateEntries(const string & str);
51 virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
53 /// Fdesign generated methods
54 FD_form_tabbed_thesaurus * build_tabbed_thesaurus();
55 FD_form_noun * build_noun();
56 FD_form_verb * build_verb();
57 FD_form_adjective * build_adjective();
58 FD_form_adverb * build_adverb();
59 FD_form_other * build_other();
61 /// Real GUI implementations of sub-forms
62 boost::scoped_ptr<FD_form_noun> noun_;
63 boost::scoped_ptr<FD_form_verb> verb_;
64 boost::scoped_ptr<FD_form_adjective> adjective_;
65 boost::scoped_ptr<FD_form_adverb> adverb_;
66 boost::scoped_ptr<FD_form_other> other_;
68 /// for double click handling
75 #endif // FORMTHESAURUS_H