2001-03-20 10:14:03 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/* This file is part of
|
2002-03-21 21:21:28 +00:00
|
|
|
* ======================================================
|
2001-03-20 10:14:03 +00:00
|
|
|
*
|
|
|
|
* 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
|
|
|
|
|
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
|