]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormPreamble.C
Tiny clean-ups.
[lyx.git] / src / frontends / xforms / FormPreamble.C
index 4502a919b207b01eb3fc40263156041947b10f8c..ff1fb401f51d58406aa0a224882f8a40fc9a501a 100644 (file)
@@ -5,27 +5,25 @@
  *
  * \author Edwin Leuven
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
 #include <config.h>
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
-
-#include "xformsBC.h"
-#include "ControlPreamble.h"
 #include "FormPreamble.h"
+#include "ControlPreamble.h"
 #include "forms/form_preamble.h"
+
 #include "xforms_helpers.h"
+#include "xformsBC.h"
+
+#include "lyx_forms.h"
 
-#include FORMS_H_LOCATION
 
 typedef FormCB<ControlPreamble, FormDB<FD_preamble> > base_class;
 
 FormPreamble::FormPreamble()
-       : base_class(_("LaTeX preamble"))
+       : base_class(_("LaTeX Preamble"))
 {}
 
 
@@ -34,9 +32,9 @@ void FormPreamble::build()
        dialog_.reset(build_preamble(this));
 
        // Manage the ok, apply and cancel/close buttons
-       bc().setOK(dialog_->button_ok);
-       bc().setApply(dialog_->button_apply);
-       bc().setCancel(dialog_->button_close);
+       bcview().setOK(dialog_->button_ok);
+       bcview().setApply(dialog_->button_apply);
+       bcview().setCancel(dialog_->button_close);
 
        // trigger an input event for cut&paste with middle mouse button.
        setPrehandler(dialog_->input_preamble);