]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlShowFile.h
fix crash due to invalidated iterator
[lyx.git] / src / frontends / controllers / ControlShowFile.h
index e9265fdf861cdd39e0997d7918e4590d5848bd20..b02b08fa42f03d09334ea19e2f9d735b2b9bb03c 100644 (file)
@@ -1,38 +1,47 @@
 // -*- C++ -*-
 /**
- * Copyright 2001 The LyX Team.
- * See the file COPYING.
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
  * \file ControlShowFile.h
- * \author Herbert Voss <voss@perce.de>
+ *
+ * \author Herbert Voß
+ *
+ * Full author contact details are available in file CREDITS.
  */
 #ifndef CONTROLSHOWFILE_H
 #define CONTROLSHOWFILE_H
 
-#ifdef __GNUG__
-#pragma interface
-#endif
+#include "Dialog.h"
 
-#include "ControlDialogs.h"
+namespace lyx {
+namespace frontend {
 
 /** A controller for the ShowFile dialog. */
 
-class ControlShowFile : public ControlDialog<ControlConnectBI> {
+class ControlShowFile : public Dialog::Controller {
 public:
        ///
-       ControlShowFile(LyXView &, Dialogs &);
+       ControlShowFile(Dialog &);
+       ///
+       virtual bool initialiseParams(std::string const & data);
        ///
-       virtual void showFile(string const &);
+       virtual void clearParams();
        ///
-       string getFileContents();
+       virtual void dispatchParams() {}
        ///
-       string getFileName();
+       virtual bool isBufferDependent() const { return false; }
+       ///
+       std::string getFileContents();
+       ///
+       std::string getFileName();
 
 private:
-       /// not needed.
-       virtual void apply() {}
        ///
-       string filename_;
+       std::string filename_;
 };
 
+} // namespace frontend
+} // namespace lyx
+
 #endif // CONTROLSHOWFILE_H