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"
22 using std::istringstream;
29 ControlLog::ControlLog(Dialog & parent)
30 : Dialog::Controller(parent),
35 bool ControlLog::initialiseParams(string const & data)
37 istringstream is(data);
41 string logtype, logfile;
42 lex >> logtype >> logfile;
44 // Parsing of the data failed.
47 if (logtype == "latex")
49 else if (logtype == "literate")
51 else if (logtype == "lyx2lyx")
53 else if (logtype == "vc")
63 void ControlLog::clearParams()
69 string const ControlLog::title() const
74 t = _("LyX: LaTeX Log");
77 t = _("LyX: Literate Programming Build Log");
80 t = _("LyX: lyx2lyx error Log");
83 t = _("Version Control Log");
90 void ControlLog::getContents(std::ostream & ss) const
92 std::ifstream in(logfile_.c_str());
106 ss << _("No LaTeX log file found.");
109 ss << _("No literate programming build log file found.");
112 ss << _("No lyx2lyx error log file found.");
115 ss << _("No version control log file found.");
120 } // namespace frontend