]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlShowFile.C
Really dull and boring header shit
[lyx.git] / src / frontends / controllers / ControlShowFile.C
1 /**
2  * \file ControlShowFile.C
3  * See the file COPYING.
4  *
5  * \author Herbert Voss 
6  *
7  * Full author contact details are available in file CREDITS
8  */
9
10 #include <config.h>
11
12 #ifdef __GNUG__
13 #pragma implementation
14 #endif
15
16 #include "ControlShowFile.h"
17
18 #include "support/filetools.h" // FileSearch
19
20
21 ControlShowFile::ControlShowFile(LyXView & lv, Dialogs & d)
22         : ControlDialogBI(lv, d)
23 {}
24
25
26 void ControlShowFile::showFile(string const & file)
27 {
28         filename_ = file;
29         show();
30 }
31
32
33 string ControlShowFile::getFileContents()
34 {
35         return GetFileContents(filename_);
36 }
37
38
39 string ControlShowFile::getFileName()
40 {
41         return OnlyFilename(filename_);
42 }