]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlShowFile.C
include sys/time.h
[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
14 #include "ControlShowFile.h"
15
16 #include "support/filetools.h" // FileSearch
17
18
19 ControlShowFile::ControlShowFile(LyXView & lv, Dialogs & d)
20         : ControlDialogBI(lv, d)
21 {}
22
23
24 void ControlShowFile::showFile(string const & file)
25 {
26         filename_ = file;
27         show();
28 }
29
30
31 string ControlShowFile::getFileContents()
32 {
33         return GetFileContents(filename_);
34 }
35
36
37 string ControlShowFile::getFileName()
38 {
39         return OnlyFilename(filename_);
40 }