// -*- C++ -*-
/**
* \file ControlLog.h
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
* \author John Levon
* \author Angus Leeming
#ifndef CONTROLLOG_H
#define CONTROLLOG_H
-#include <utility>
-
-#ifdef __GNUG__
-#pragma interface
-#endif
-
-#include "ControlDialog_impl.h"
+#include "Dialog.h"
#include "buffer.h" // Buffer::LogType
+#include <utility>
/**
* A controller for a read-only text browser.
*/
-class ControlLog : public ControlDialogBD {
+class ControlLog : public Dialog::Controller {
public:
///
- ControlLog(LyXView &, Dialogs &);
+ ControlLog(Dialog &);
///
- std::pair<Buffer::LogType, string> const & logfile()
- { return logfile_; }
-
-private:
+ 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_;
};