2 * \file ControlShowFile.C
3 * Copyright 2001 The LyX Team.
4 * See the file COPYING.
6 * \author Herbert Voss <voss@perce.de>
13 #pragma implementation
17 #include "ButtonControllerBase.h"
18 #include "ControlShowFile.h"
20 #include "frontends/LyXView.h"
21 #include "BufferView.h"
23 #include "support/filetools.h" // FileSearch
25 ControlShowFile::ControlShowFile(LyXView & lv, Dialogs & d)
26 : ControlDialogBI(lv, d)
28 d_.showFile.connect(SigC::slot(this, &ControlShowFile::showFile));
31 void ControlShowFile::showFile(string const & file)
37 string ControlShowFile::getFileContents()
39 return GetFileContents(filename_);
42 string ControlShowFile::getFileName()
44 return OnlyFilename(filename_);