]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt2/QPreamble.C
Some string(widget->text()) fixes. Weirdness
[lyx.git] / src / frontends / qt2 / QPreamble.C
index bbd66f62c72a1e0b5d61f7ef59349fe56c746032..a0ef5391029b0d23faab4b2213b807d7b53454eb 100644 (file)
@@ -1,13 +1,14 @@
 /**
  * \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
@@ -16,7 +17,7 @@
 #include "gettext.h"
 #include "LyXView.h"
 #include "ControlPreamble.h"
+
 #include "QPreamble.h"
 #include "QPreambleDialog.h"
 #include "Qt2BC.h"
@@ -26,8 +27,9 @@
 
 typedef Qt2CB<ControlPreamble, Qt2DB<QPreambleDialog> > base_class;
 
-QPreamble::QPreamble(ControlPreamble & c, Dialogs &)
-       : base_class(c, _("LaTeX Preamble"))
+
+QPreamble::QPreamble()
+       : base_class(_("LaTeX Preamble"))
 {
 }
 
@@ -50,5 +52,5 @@ void QPreamble::update_contents()
 
 void QPreamble::apply()
 {
-       controller().params() = dialog_->preambleLE->text().latin1();
+       controller().params(dialog_->preambleLE->text().latin1());
 }