X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fxforms%2FFormPreamble.h;h=335a1746951b189a69742e5bbe8a0a4b5a9c8b8e;hb=37e82a546392d43f787826b85481a11f2a27af15;hp=7f54cffd24eb3bcd2a02a9741e3bfae4ef20ba79;hpb=9c36dd0f40f2e2e90fce8b2f33519a5d99d9be8b;p=lyx.git diff --git a/src/frontends/xforms/FormPreamble.h b/src/frontends/xforms/FormPreamble.h index 7f54cffd24..335a174695 100644 --- a/src/frontends/xforms/FormPreamble.h +++ b/src/frontends/xforms/FormPreamble.h @@ -1,60 +1,42 @@ // -*- C++ -*- /** * \file FormPreamble.h - * Copyright 2001 The LyX Team. - * See the file COPYING. + * This file is part of LyX, the document processor. + * Licence details can be found in the file COPYING. * - * \author Edwin Leuven, leuven@fee.uva.nl + * \author Edwin Leuven + * + * Full author contact details are available in file CREDITS. */ #ifndef FORMPREAMBLE_H #define FORMPREAMBLE_H -#include -#include "FormBaseDeprecated.h" -#include "xformsBC.h" +#include "FormDialogView.h" -#ifdef __GNUG__ -#pragma interface -#endif +namespace lyx { +namespace frontend { -struct FD_form_preamble; +class ControlPreamble; +struct FD_preamble; -/** This class provides an XForms implementation of the FormPreamble Dialog. +/** This class provides an XForms implementation of the Preamble Dialog. */ -class FormPreamble : public FormBaseBD { +class FormPreamble + : public FormController > { public: /// - FormPreamble(LyXView *, Dialogs *); + FormPreamble(Dialog &); private: - /// Pointer to the actual instantiation of the ButtonController. - virtual xformsBC & bc(); - - /// Filter the inputs - // virtual bool input(FL_OBJECT *, long); - - /// Build the popup - virtual void build(); - /// Apply from popup + /// Apply from dialog virtual void apply(); - /// Update the popup. + /// Build the dialog + virtual void build(); + /// Update the dialog virtual void update(); - /// - virtual FL_FORM * form() const; - - /// Typedefinitions from the fdesign produced Header file - FD_form_preamble * build_preamble(); - - /// Real GUI implementation. - boost::scoped_ptr dialog_; - /// The ButtonController - ButtonController bc_; }; +} // namespace frontend +} // namespace lyx -inline -xformsBC & FormPreamble::bc() -{ - return bc_; -} -#endif +#endif // FORMPREAMBLE_H