]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlError.C
Work around for g++ 2.95's broken string::clear()
[lyx.git] / src / frontends / controllers / ControlError.C
index 412c6e66919c658ff02403a2fc6d7a045fcdd0de..4466d618061f4e1508dd609ec96c4a662412c5ec 100644 (file)
@@ -1,41 +1,33 @@
-/* This file is part of
- * ======================================================
- *
- *           LyX, The Document Processor
- *
- *           Copyright 2001 The LyX Team.
+/**
+ * \file ControlError.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- * ======================================================
+ * \author Angus Leeming
  *
- * \file ControlError.C
- * \author Angus Leeming <a.leeming@ic.ac.uk>
+ * Full author contact details are available in file CREDITS
  */
 
 #include <config.h>
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
-
 #include "ControlError.h"
-#include "ViewBase.h"
-#include "ButtonControllerBase.h"
-#include "Dialogs.h"
-#include "buffer.h"
-#include "insets/inseterror.h"
 
-#include "frontends/LyXView.h"
 
-#include <boost/bind.hpp>
+ControlError::ControlError(Dialog & parent)
+       : Dialog::Controller(parent)
+{}
+
 
-ControlError::ControlError(LyXView & lv, Dialogs & d)
-       : ControlInset<InsetError, string>(lv, d)
+void ControlError::initialiseParams(string const & data)
 {
-       d_.showError = boost::bind(&ControlError::showInset, this, _1);
+       params_ = data;
 }
 
 
-string const ControlError::getParams(InsetError const & inset)
+void ControlError::clearParams()
 {
-       return inset.getContents();
+       // g++ 2.95.3 doesn't like this although it should be ok
+       //params_.clear();
+       params_ = string();
 }
+