3 * See the file COPYING.
6 * \author Angus Leeming
8 * Full author contact details are available in file CREDITS
14 #pragma implementation
17 #include "ControlVCLog.h"
19 #include "ButtonControllerBase.h"
25 #include "support/lyxlib.h"
32 ControlVCLog::ControlVCLog(LyXView & lv, Dialogs & d)
33 : ControlDialogBD(lv, d)
37 string const ControlVCLog::getBufferFileName() const
39 return buffer()->fileName();
43 stringstream & ControlVCLog::getVCLogFile(stringstream & ss) const
45 string const name = buffer()->lyxvc.getLogFile();
47 std::ifstream in(name.c_str());
49 bool found = (in.get());
52 in.seekg(0, std::ios::beg); // rewind to the beginning
59 ss << _("No version control log file found.") << endl;