/**
* \file QPreamble.C
- * Copyright 2001 the LyX Team
- * 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 <moz@compsoc.man.ac.uk>
+ * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS
*/
#include <config.h>
-#include <fstream>
#ifdef __GNUG__
#pragma implementation
#endif
-#include <qmultilineedit.h>
-#include <qpushbutton.h>
-
-#include "QPreambleDialog.h"
-#include "QPreamble.h"
-#include "Qt2BC.h"
#include "gettext.h"
-
-#include "QtLyXView.h"
+#include "LyXView.h"
#include "ControlPreamble.h"
+#include "QPreamble.h"
+#include "QPreambleDialog.h"
+#include "Qt2BC.h"
+
+#include <qmultilineedit.h>
+#include <qpushbutton.h>
+
typedef Qt2CB<ControlPreamble, Qt2DB<QPreambleDialog> > base_class;
-QPreamble::QPreamble(ControlPreamble & c)
- : base_class(c, _("LaTeX Preamble"))
+
+QPreamble::QPreamble()
+ : base_class(_("LaTeX Preamble"))
{
}
void QPreamble::apply()
{
- controller().params() = dialog_->preambleLE->text().latin1();
+ controller().params(dialog_->preambleLE->text().latin1());
}