]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlShowFile.h
Add a buffer_path arg to InsetGraphicsMailer's params2string, string2params.
[lyx.git] / src / frontends / controllers / ControlShowFile.h
index e9265fdf861cdd39e0997d7918e4590d5848bd20..1a971e4141e6bf000be7b418b8b3adeacf365790 100644 (file)
@@ -1,36 +1,39 @@
 // -*- 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 Voss
+ *
+ * Full author contact details are available in file CREDITS
  */
 #ifndef CONTROLSHOWFILE_H
 #define CONTROLSHOWFILE_H
 
-#ifdef __GNUG__
-#pragma interface
-#endif
-
-#include "ControlDialogs.h"
+#include "Dialog.h"
 
 /** 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(string const & data);
+       ///
+       virtual void clearParams();
+       ///
+       virtual void dispatchParams() {}
        ///
-       virtual void showFile(string const &);
+       virtual bool isBufferDependent() const { return false; }
        ///
        string getFileContents();
        ///
        string getFileName();
 
 private:
-       /// not needed.
-       virtual void apply() {}
        ///
        string filename_;
 };