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.
14 #include "ControlLog.h"
19 #include "support/std_sstream.h"
23 using std::istringstream;
28 ControlLog::ControlLog(Dialog & parent)
29 : Dialog::Controller(parent),
34 bool ControlLog::initialiseParams(string const & data)
36 istringstream is(data);
40 string logtype, logfile;
41 lex >> logtype >> logfile;
43 // Parsing of the data failed.
46 if (logtype == "latex")
48 else if (logtype == "literate")
50 else if (logtype == "lyx2lyx")
52 else if (logtype == "vc")
62 void ControlLog::clearParams()
68 string const ControlLog::title() const
73 t = _("LyX: LaTeX Log");
76 t = _("LyX: Literate Programming Build Log");
79 t = _("LyX: lyx2lyx error Log");
82 t = _("Version Control Log");
89 void ControlLog::getContents(std::ostream & ss) const
91 std::ifstream in(logfile_.c_str());
105 ss << _("No LaTeX log file found.");
108 ss << _("No literate programming build log file found.");
111 ss << _("No lyx2lyx error log file found.");
114 ss << _("No version control log file found.");