2001-03-20 10:14:03 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/* This file is part of
|
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
|
|
|
* Copyright 2001 The LyX Team.
|
|
|
|
*
|
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* \file ControlLog.h
|
|
|
|
* \author John Levon, moz@compsoc.man.ac.uk
|
|
|
|
* \author Angus Leeming <a.leeming@ic.ac.uk>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CONTROLLOG_H
|
|
|
|
#define CONTROLLOG_H
|
|
|
|
|
|
|
|
#include <utility>
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
2001-03-22 11:24:36 +00:00
|
|
|
#include "ControlDialogs.h"
|
2001-03-20 10:14:03 +00:00
|
|
|
#include "buffer.h" // Buffer::LogType
|
|
|
|
|
|
|
|
/**
|
|
|
|
* A controller for a read-only text browser.
|
|
|
|
*/
|
2001-03-22 11:24:36 +00:00
|
|
|
class ControlLog : public ControlDialog<ControlConnectBD> {
|
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
|