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
|
|
|
*
|
2002-09-05 14:10:50 +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
|
|
|
|
|
|
|
|
#include <utility>
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
2002-01-16 14:47:58 +00:00
|
|
|
#include "ControlDialog_impl.h"
|
2001-03-20 10:14:03 +00:00
|
|
|
#include "buffer.h" // Buffer::LogType
|
|
|
|
|
|
|
|
/**
|
|
|
|
* A controller for a read-only text browser.
|
|
|
|
*/
|
2002-01-16 14:47:58 +00:00
|
|
|
class ControlLog : public ControlDialogBD {
|
2001-03-20 10:14:03 +00:00
|
|
|
public:
|
|
|
|
///
|
|
|
|
ControlLog(LyXView &, Dialogs &);
|
|
|
|
///
|
|
|
|
std::pair<Buffer::LogType, string> const & logfile()
|
|
|
|
{ return logfile_; }
|
|
|
|
|
2001-03-23 17:09:34 +00:00
|
|
|
private:
|
2001-03-20 10:14:03 +00:00
|
|
|
///
|
|
|
|
virtual void apply() {}
|
2001-03-22 11:24:36 +00:00
|
|
|
/// set the params before show or update
|
|
|
|
virtual void setParams();
|
|
|
|
/// clean-up on hide.
|
|
|
|
virtual void clearParams();
|
2001-03-20 10:14:03 +00:00
|
|
|
|
|
|
|
std::pair<Buffer::LogType, string> logfile_;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CONTROLLOG_H
|