]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormThesaurus.h
Introduce LFUN_PRINT.
[lyx.git] / src / frontends / xforms / FormThesaurus.h
index 99923dcad5afdcc2c666f4a309c0887dde1dfbdb..7b0ab9c6240dd7c7890b311353c0f09db36b96e4 100644 (file)
@@ -1,36 +1,29 @@
 // -*- C++ -*-
 /**
  * \file FormThesaurus.h
- * Copyright 2001 the LyX Team
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
  * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS.
  */
 
 #ifndef FORMTHESAURUS_H
 #define FORMTHESAURUS_H
 
-#ifdef __GNUG__
-#pragma interface
-#endif
-
-#include "FormBase.h"
+#include "FormDialogView.h"
 
 class ControlThesaurus;
-struct FD_form_thesaurus;
-struct FD_form_noun;
-struct FD_form_verb;
-struct FD_form_adjective;
-struct FD_form_adverb;
-struct FD_form_other;
+struct FD_thesaurus;
 
 /** This class provides an XForms implementation of the Thesaurus dialog.
  */
-class FormThesaurus : public FormCB<ControlThesaurus, FormDB<FD_form_thesaurus> > {
+class FormThesaurus
+       : public FormController<ControlThesaurus, FormView<FD_thesaurus> > {
 public:
        ///
-       FormThesaurus(ControlThesaurus &);
+       FormThesaurus(Dialog &);
 private:
        /// not needed.
        virtual void apply() {}
@@ -39,23 +32,20 @@ private:
        /// update dialog
        virtual void update();
 
-       /// dialog build
-       FD_form_thesaurus * build_thesaurus();
-
        /// set the replace word properly
-       void setReplace(const string & templ, const string & nstr);
+       void setReplace(std::string const & templ, std::string const & nstr);
 
        /// update browser entries
-       void updateMeanings(const string & str);
+       void updateMeanings(std::string const & str);
 
        /// Filter the inputs
        virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
+
        /// for double click handling
        int clickline_;
 
        /// current string
-       string str_;
+       std::string str_;
 };
 
 #endif // FORMTHESAURUS_H