X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fcontrollers%2FControlLog.h;h=7c76010951bdce89da432ffac19470f3b6b589a5;hb=534095ce9e82d0b0f875540f7306ff218df3b5aa;hp=35c1a4ef56302550572874733869a37434741803;hpb=0be0fcfd5907d448cd51addf83ed7032719a0692;p=lyx.git diff --git a/src/frontends/controllers/ControlLog.h b/src/frontends/controllers/ControlLog.h index 35c1a4ef56..7c76010951 100644 --- a/src/frontends/controllers/ControlLog.h +++ b/src/frontends/controllers/ControlLog.h @@ -14,8 +14,11 @@ #define CONTROLLOG_H #include "Dialog.h" -#include "buffer.h" // Buffer::LogType -#include + +#include "support/filename.h" + +namespace lyx { +namespace frontend { /** * A controller for a read-only text browser. @@ -24,21 +27,36 @@ class ControlLog : public Dialog::Controller { public: /// ControlLog(Dialog &); - /// - virtual bool initialiseParams(string const & data); + /** \param data should contain " " + * where is one of "latex", "literate", "lyx2lyx", "vc". + */ + virtual bool initialiseParams(std::string const & data); /// virtual void clearParams(); /// virtual void dispatchParams() {} /// virtual bool isBufferDependent() const { return true; } - /// - std::pair const & logfile() const { - return logfile_; - } + + /// The title displayed by the dialog reflects the \c LOGTYPE + lyx::docstring const title() const; + /// put the log file into the ostream + void getContents(std::ostream & ss) const; + private: + /// Recognized log file-types + enum LOGTYPE { + LatexLog, + LiterateLog, + Lyx2lyxLog, + VCLog + }; - std::pair logfile_; + LOGTYPE type_; + support::FileName logfile_; }; +} // namespace frontend +} // namespace lyx + #endif // CONTROLLOG_H