// -*- 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