3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
7 * \author Angus Leeming
9 * Full author contact details are available in file CREDITS
15 #pragma implementation
18 #include "ControlVCLog.h"
20 #include "ButtonControllerBase.h"
26 #include "support/lyxlib.h"
33 ControlVCLog::ControlVCLog(LyXView & lv, Dialogs & d)
34 : ControlDialogBD(lv, d)
38 string const ControlVCLog::getBufferFileName() const
40 return buffer()->fileName();
44 stringstream & ControlVCLog::getVCLogFile(stringstream & ss) const
46 string const name = buffer()->lyxvc.getLogFile();
48 std::ifstream in(name.c_str());
50 bool found = (in.get());
53 in.seekg(0, std::ios::beg); // rewind to the beginning
60 ss << _("No version control log file found.") << endl;