// -*- C++ -*-
-/* This file is part of
- * ======================================================
- *
- * LyX, The Document Processor
- *
- * Copyright 2001 The LyX Team.
+/**
+ * \file ControlLog.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
- * ======================================================
+ * \author John Levon
+ * \author Angus Leeming
*
- * \file ControlLog.h
- * \author John Levon, moz@compsoc.man.ac.uk
- * \author Angus Leeming <a.leeming@ic.ac.uk>
+ * Full author contact details are available in file CREDITS
*/
#ifndef CONTROLLOG_H
#define CONTROLLOG_H
-#include <utility>
-
-#ifdef __GNUG__
-#pragma interface
-#endif
-
-#include "ControlDialogs.h"
+#include "Dialog.h"
#include "buffer.h" // Buffer::LogType
+#include <utility>
/**
* A controller for a read-only text browser.
*/
-class ControlLog : public ControlDialog<ControlConnectBD> {
+class ControlLog : public Dialog::Controller {
public:
///
- ControlLog(LyXView &, Dialogs &);
+ ControlLog(Dialog &);
///
- std::pair<Buffer::LogType, string> const & logfile()
- { return logfile_; }
-
-protected:
+ virtual bool initialiseParams(string const & data);
///
- 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; }
+ ///
+ std::pair<Buffer::LogType, string> const & logfile() const {
+ return logfile_;
+ }
private:
+
std::pair<Buffer::LogType, string> logfile_;
};