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;
45 logfile = lex.getString();
48 // Parsing of the data failed.
51 if (logtype == "latex")
53 else if (logtype == "literate")
55 else if (logtype == "lyx2lyx")
57 else if (logtype == "vc")
67 void ControlLog::clearParams()
73 string const ControlLog::title() const
78 t = lyx::to_utf8(_("LaTeX Log"));
81 t = lyx::to_utf8(_("Literate Programming Build Log"));
84 t = lyx::to_utf8(_("lyx2lyx Error Log"));
87 t = lyx::to_utf8(_("Version Control Log"));
94 void ControlLog::getContents(std::ostream & ss) const
96 std::ifstream in(logfile_.c_str());
110 ss << lyx::to_utf8(_("No LaTeX log file found."));
113 ss << lyx::to_utf8(_("No literate programming build log file found."));
116 ss << lyx::to_utf8(_("No lyx2lyx error log file found."));
119 ss << lyx::to_utf8(_("No version control log file found."));
124 } // namespace frontend