3 * \file FormThesaurus.h
4 * Copyright 2001 the LyX Team
5 * Read the file COPYING
7 * \author John Levon, moz@compsoc.man.ac.uk
10 #ifndef FORMTHESAURUS_H
11 #define FORMTHESAURUS_H
19 class ControlThesaurus;
20 struct FD_form_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_thesaurus> > {
32 FormThesaurus(ControlThesaurus &);
36 virtual void apply() {}
40 virtual void update();
43 FD_form_thesaurus * build_thesaurus();
45 /// set the replace word properly
46 void setReplace(string const & templ, string const & nstr);
48 /// update browser entries
49 void updateMeanings(string const & str);
52 virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
54 /// for double click handling
61 #endif // FORMTHESAURUS_H