2 * \file ControlShowFile.C
3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
8 * Full author contact details are available in file CREDITS.
13 #include "ControlShowFile.h"
14 #include "support/filetools.h"
20 using support::onlyFilename;
25 ControlShowFile::ControlShowFile(Dialog & parent)
26 : Dialog::Controller(parent)
30 bool ControlShowFile::initialiseParams(string const & data)
37 void ControlShowFile::clearParams()
43 string ControlShowFile::getFileContents()
45 return support::getFileContents(filename_);
49 string ControlShowFile::getFileName()
51 return onlyFilename(filename_);
54 } // namespace frontend