]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlLog.h
Add a buffer_path arg to InsetGraphicsMailer's params2string, string2params.
[lyx.git] / src / frontends / controllers / ControlLog.h
index 1fe9af514cf36e9a7214f0614296e770f88d8fec..e1bbbf8cef15b0c572f830c8778b90c9fa543e6b 100644 (file)
@@ -1,7 +1,8 @@
 // -*- 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_;
 };