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