-/* 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();
}
+