2001-03-20 10:14:03 +00:00
|
|
|
// -*- C++ -*-
|
2002-09-05 14:10:50 +00:00
|
|
|
/**
|
|
|
|
* \file ControlLog.h
|
2002-09-05 15:14:23 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
2001-03-20 10:14:03 +00:00
|
|
|
*
|
2002-09-05 14:10:50 +00:00
|
|
|
* \author John Levon
|
|
|
|
* \author Angus Leeming
|
2001-03-20 10:14:03 +00:00
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
* Full author contact details are available in file CREDITS.
|
2001-03-20 10:14:03 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CONTROLLOG_H
|
|
|
|
#define CONTROLLOG_H
|
|
|
|
|
2003-03-25 18:13:46 +00:00
|
|
|
#include "Dialog.h"
|
2001-03-20 10:14:03 +00:00
|
|
|
#include "buffer.h" // Buffer::LogType
|
2003-03-25 18:13:46 +00:00
|
|
|
#include <utility>
|
2001-03-20 10:14:03 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* A controller for a read-only text browser.
|
|
|
|
*/
|
2003-03-25 18:13:46 +00:00
|
|
|
class ControlLog : public Dialog::Controller {
|
2001-03-20 10:14:03 +00:00
|
|
|
public:
|
|
|
|
///
|
2003-03-25 18:13:46 +00:00
|
|
|
ControlLog(Dialog &);
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
virtual bool initialiseParams(std::string const & data);
|
2001-03-20 10:14:03 +00:00
|
|
|
///
|
2003-03-25 18:13:46 +00:00
|
|
|
virtual void clearParams();
|
|
|
|
///
|
|
|
|
virtual void dispatchParams() {}
|
|
|
|
///
|
|
|
|
virtual bool isBufferDependent() const { return true; }
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
std::pair<Buffer::LogType, std::string> const & logfile() const {
|
2002-10-21 17:38:09 +00:00
|
|
|
return logfile_;
|
|
|
|
}
|
2001-03-23 17:09:34 +00:00
|
|
|
private:
|
2001-03-20 10:14:03 +00:00
|
|
|
|
2003-10-06 15:43:21 +00:00
|
|
|
std::pair<Buffer::LogType, std::string> logfile_;
|
2001-03-20 10:14:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CONTROLLOG_H
|