* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
- * \author Herbert Voss
+ * \author Herbert Voß
*
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
*/
#include <config.h>
-#ifdef __GNUG__
-#pragma implementation
-#endif
-
#include "ControlShowFile.h"
+#include "support/filetools.h"
+
+using std::string;
+
+namespace lyx {
-#include "support/filetools.h" // FileSearch
+using support::GetFileContents;
+using support::OnlyFilename;
+namespace frontend {
-ControlShowFile::ControlShowFile(LyXView & lv, Dialogs & d)
- : ControlDialogBI(lv, d)
+
+ControlShowFile::ControlShowFile(Dialog & parent)
+ : Dialog::Controller(parent)
{}
-void ControlShowFile::showFile(string const & file)
+bool ControlShowFile::initialiseParams(string const & data)
{
- filename_ = file;
- show();
+ filename_ = data;
+ return true;
+}
+
+
+void ControlShowFile::clearParams()
+{
+ filename_.erase();
}
{
return OnlyFilename(filename_);
}
+
+} // namespace frontend
+} // namespace lyx