X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fxforms%2FFormRef.h;h=cd00ae9bd99e6bc9bf86b9b31aaa900a734b517a;hb=37e82a546392d43f787826b85481a11f2a27af15;hp=c455414cf402a201d65dbae34a728d24e57566be;hpb=9c36dd0f40f2e2e90fce8b2f33519a5d99d9be8b;p=lyx.git diff --git a/src/frontends/xforms/FormRef.h b/src/frontends/xforms/FormRef.h index c455414cf4..cd00ae9bd9 100644 --- a/src/frontends/xforms/FormRef.h +++ b/src/frontends/xforms/FormRef.h @@ -1,71 +1,54 @@ // -*- C++ -*- -/* This file is part of - * ====================================================== +/** + * \file FormRef.h + * This file is part of LyX, the document processor. + * Licence details can be found in the file COPYING. * - * LyX, The Document Processor + * \author Angus Leeming * - * Copyright 2000 The LyX Team. - * - * ====================================================== + * Full author contact details are available in file CREDITS. */ #ifndef FORMREF_H #define FORMREF_H -#include - -#ifdef __GNUG__ -#pragma interface -#endif +#include "FormDialogView.h" -#include "FormInset.h" -#include "xformsBC.h" +namespace lyx { +namespace frontend { -struct FD_form_ref; +class ControlRef; +struct FD_ref; /** This class provides an XForms implementation of the FormRef Dialog. */ -class FormRef : public FormCommand { +class FormRef : public FormController > { public: /// - FormRef(LyXView *, Dialogs *); + FormRef(Dialog &); private: - /// Pointer to the actual instantiation of the ButtonController. - virtual xformsBC & bc(); - /// Disconnect signals. Also perform any necessary housekeeping. - virtual void disconnect(); - + /// Set the Params variable for the Controller. + virtual void apply(); /// Build the dialog virtual void build(); - /// Filter the input - virtual bool input(FL_OBJECT *, long); + /// Filter the inputs on callback from xforms + virtual ButtonPolicy::SMInput input(FL_OBJECT *, long); /// Update dialog before showing it virtual void update(); - /// Not used but must be instantiated - virtual void apply(); - /// Pointer to the actual instantiation of the xforms form - virtual FL_FORM * form() const; /// - void updateBrowser(std::vector const &) const; - /// - FD_form_ref * build_ref(); + void updateBrowser(std::vector const &) const; /// - bool at_ref; - /// - std::vector refs; + void switch_go_button(); - /// Real GUI implementation. - boost::scoped_ptr dialog_; - /// The ButtonController - ButtonController bc_; + /// + bool at_ref_; + /// + std::vector refs_; }; +} // namespace frontend +} // namespace lyx -inline -xformsBC & FormRef::bc() -{ - return bc_; -} -#endif +#endif // FORMREF_H