]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlLog.C
Add a buffer_path arg to InsetGraphicsMailer's params2string, string2params.
[lyx.git] / src / frontends / controllers / ControlLog.C
index ff00b6cf5622b23a71b339ba86543cf92b876818..83adb29e6a1d23281db5b0a33ab060da7ed239f3 100644 (file)
@@ -1,66 +1,32 @@
-/* This file is part of
- * ====================================================== 
+/**
+ * \file ControlLog.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- *           LyX, The Document Processor
+ * \author John Levon
+ * \author Angus Leeming
  *
- *           Copyright 2001 The LyX Team.
- *
- * ======================================================
- *
- * \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
  */
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
-
 #include <config.h>
-#include "ButtonController.h"
-#include "ControlLog.h"
-#include "LyXView.h"
-#include "Dialogs.h"
-#include "lyxrc.h"
-#include "ViewBase.h"
 
-using std::make_pair;
-using SigC::slot;
-
-ControlLog::ControlLog(LyXView & lv, Dialogs & d)
-       : ControlConnectBD(lv, d)
-{
-       d_.showLogFile.connect(slot(this, &ControlLog::show));
-}
-
-
-void ControlLog::show()
-{
-       if (!lv_.view()->available())
-               return;
+#include "ControlLog.h"
 
-       logfile_ = lv_.view()->buffer()->getLogName();
 
-       bc().readOnly(isReadonly());
-       view().show();
-}
+ControlLog::ControlLog(Dialog & parent)
+       : Dialog::Controller(parent)
+{}
 
 
-void ControlLog::update()
+bool ControlLog::initialiseParams(string const &)
 {
-       if (!lv_.view()->available())
-               return;
-
-       logfile_ = lv_.view()->buffer()->getLogName();
-       
-       bc().readOnly(isReadonly());
-       view().update();
+       logfile_ = kernel().buffer()->getLogName();
+       return true;
 }
 
 
-void ControlLog::hide()
+void ControlLog::clearParams()
 {
        logfile_.second.erase();
-       disconnect();
-       view().hide();
 }