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;
30 ControlLog::ControlLog(Dialog & parent)
31 : Dialog::Controller(parent),
36 bool ControlLog::initialiseParams(string const & data)
38 istringstream is(data);
42 string logtype, logfile;
43 lex >> logtype >> logfile;
45 // Parsing of the data failed.
48 if (logtype == "latex")
50 else if (logtype == "literate")
52 else if (logtype == "lyx2lyx")
54 else if (logtype == "vc")
64 void ControlLog::clearParams()
70 string const ControlLog::title() const
75 t = _("LyX: LaTeX Log");
78 t = _("LyX: Literate Programming Build Log");
81 t = _("LyX: lyx2lyx error Log");
84 t = _("Version Control Log");
91 void ControlLog::getContents(std::ostream & ss) const
93 std::ifstream in(logfile_.c_str());
107 ss << _("No LaTeX log file found.");
110 ss << _("No literate programming build log file found.");
113 ss << _("No lyx2lyx error log file found.");
116 ss << _("No version control log file found.");
121 } // namespace frontend