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