]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlThesaurus.h
Add a buffer_path arg to InsetGraphicsMailer's params2string, string2params.
[lyx.git] / src / frontends / controllers / ControlThesaurus.h
index 9cd6aacffda02e350f531eacad467d8a70805d64..4b9b585a1168875ff69ab01576371e77b743b7f1 100644 (file)
@@ -1,46 +1,45 @@
 // -*- C++ -*-
 /**
  * \file ControlThesaurus.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 CONTROLTHESAURUS_H
 #define CONTROLTHESAURUS_H
 
-#ifdef __GNUG__
-#pragma interface
-#endif
-
-#include <vector>
-
-#include "LString.h"
+#include "Dialog.h"
 #include "Thesaurus.h"
-#include "ControlDialog_impl.h"
+#include <vector>
 
 /** A controller for Thesaurus dialogs.
  */
-class ControlThesaurus : public ControlDialogBD {
+class ControlThesaurus : public Dialog::Controller {
 public:
        ///
-       ControlThesaurus(LyXView &, Dialogs &);
+       ControlThesaurus(Dialog &);
+       ///
+       virtual bool initialiseParams(string const & data);
+       ///
+       virtual void clearParams();
+       ///
+       virtual void dispatchParams() {}
+       ///
+       virtual bool isBufferDependent() const { return true; }
+
        /// replace the particular string
        void replace(string const & newstr);
 
-       /// show dialog
-       virtual void showEntry(string const & str);
-
        /// get meanings
        Thesaurus::Meanings const & getMeanings(string const & str);
+
        /// the text
-       string const & text() {
-               return oldstr_;
-       }
+       string const & text() const { return oldstr_; }
 
 private:
        /// last string looked up