X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fcontrollers%2FControlLog.h;h=7c76010951bdce89da432ffac19470f3b6b589a5;hb=534095ce9e82d0b0f875540f7306ff218df3b5aa;hp=464c992da053ab66a49de08beb4078442d669eba;hpb=1eb8155fa0d2253d9504a8d660cb3d666c1224f6;p=lyx.git diff --git a/src/frontends/controllers/ControlLog.h b/src/frontends/controllers/ControlLog.h index 464c992da0..7c76010951 100644 --- a/src/frontends/controllers/ControlLog.h +++ b/src/frontends/controllers/ControlLog.h @@ -7,41 +7,56 @@ * \author John Levon * \author Angus Leeming * - * Full author contact details are available in file CREDITS + * Full author contact details are available in file CREDITS. */ #ifndef CONTROLLOG_H #define CONTROLLOG_H -#include +#include "Dialog.h" -#ifdef __GNUG__ -#pragma interface -#endif +#include "support/filename.h" -#include "ControlDialog_impl.h" -#include "buffer.h" // Buffer::LogType +namespace lyx { +namespace frontend { /** * A controller for a read-only text browser. */ -class ControlLog : public ControlDialogBD { +class ControlLog : public Dialog::Controller { public: /// - ControlLog(LyXView &, Dialogs &); + ControlLog(Dialog &); + /** \param data should contain " " + * where is one of "latex", "literate", "lyx2lyx", "vc". + */ + virtual bool initialiseParams(std::string const & data); /// - std::pair const & logfile() - { return logfile_; } - -private: - /// - virtual void apply() {} - /// set the params before show or update - virtual void setParams(); - /// clean-up on hide. virtual void clearParams(); + /// + virtual void dispatchParams() {} + /// + virtual bool isBufferDependent() const { return true; } + + /// 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; - std::pair logfile_; +private: + /// Recognized log file-types + enum LOGTYPE { + LatexLog, + LiterateLog, + Lyx2lyxLog, + VCLog + }; + + LOGTYPE type_; + support::FileName logfile_; }; +} // namespace frontend +} // namespace lyx + #endif // CONTROLLOG_H