]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlShowFile.C
Add a buffer_path arg to InsetGraphicsMailer's params2string, string2params.
[lyx.git] / src / frontends / controllers / ControlShowFile.C
1 /**
2  * \file ControlShowFile.C
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author Herbert Voss
7  *
8  * Full author contact details are available in file CREDITS
9  */
10
11 #include <config.h>
12
13 #include "ControlShowFile.h"
14 #include "support/filetools.h"
15
16 using namespace lyx::support;
17
18
19 ControlShowFile::ControlShowFile(Dialog & parent)
20         : Dialog::Controller(parent)
21 {}
22
23
24 bool ControlShowFile::initialiseParams(string const & data)
25 {
26         filename_ = data;
27         return true;
28 }
29
30
31 void ControlShowFile::clearParams()
32 {
33         filename_.erase();
34 }
35
36
37 string ControlShowFile::getFileContents()
38 {
39         return GetFileContents(filename_);
40 }
41
42
43 string ControlShowFile::getFileName()
44 {
45         return OnlyFilename(filename_);
46 }