2 * \file ControlShowFile.cpp
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"
15 #include "support/filetools.h"
21 using support::FileName;
22 using support::onlyFilename;
27 ControlShowFile::ControlShowFile(Dialog & parent)
28 : Dialog::Controller(parent)
32 bool ControlShowFile::initialiseParams(string const & data)
34 filename_ = FileName(data);
39 void ControlShowFile::clearParams()
45 string ControlShowFile::getFileContents()
47 return support::getFileContents(filename_);
51 string ControlShowFile::getFileName()
53 return onlyFilename(filename_.absFilename());
56 } // namespace frontend