]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormThesaurus.h
Introduce LFUN_PRINT.
[lyx.git] / src / frontends / xforms / FormThesaurus.h
index 803085acdaecf19bd6aaedc25567ed9b4829185f..7b0ab9c6240dd7c7890b311353c0f09db36b96e4 100644 (file)
@@ -1,31 +1,29 @@
 // -*- C++ -*-
 /**
  * \file FormThesaurus.h
- * 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
+ * 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_thesaurus;
 
 /** This class provides an XForms implementation of the Thesaurus dialog.
  */
-class FormThesaurus : public FormCB<ControlThesaurus, FormDB<FD_thesaurus> > {
+class FormThesaurus
+       : public FormController<ControlThesaurus, FormView<FD_thesaurus> > {
 public:
        ///
-       FormThesaurus();
+       FormThesaurus(Dialog &);
 private:
        /// not needed.
        virtual void apply() {}
@@ -35,10 +33,10 @@ private:
        virtual void update();
 
        /// set the replace word properly
-       void setReplace(string const & templ, string const & nstr);
+       void setReplace(std::string const & templ, std::string const & nstr);
 
        /// update browser entries
-       void updateMeanings(string const & str);
+       void updateMeanings(std::string const & str);
 
        /// Filter the inputs
        virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
@@ -47,7 +45,7 @@ private:
        int clickline_;
 
        /// current string
-       string str_;
+       std::string str_;
 };
 
 #endif // FORMTHESAURUS_H