X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fxforms%2FFormRef.h;h=cd00ae9bd99e6bc9bf86b9b31aaa900a734b517a;hb=37e82a546392d43f787826b85481a11f2a27af15;hp=b175dd8f5800c397e612d5f7eb8e413d83f7adb8;hpb=20b05ef8c1e3d73175427405cbc2bb5d3c6d7e90;p=lyx.git diff --git a/src/frontends/xforms/FormRef.h b/src/frontends/xforms/FormRef.h index b175dd8f58..cd00ae9bd9 100644 --- a/src/frontends/xforms/FormRef.h +++ b/src/frontends/xforms/FormRef.h @@ -1,91 +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 -#ifdef __GNUG__ -#pragma interface -#endif +#include "FormDialogView.h" + +namespace lyx { +namespace frontend { -#include "FormCommand.h" -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(); + FormRef(Dialog &); private: - /// - enum Type{ - /// - REF, - /// - PAGEREF, - /// - VREF, - /// - VPAGEREF, - /// - PRETTYREF - }; - /// - enum Goto{ - /// - GOREF, - /// - GOBACK, - /// - GOFIRST - }; - + /// Set the Params variable for the Controller. + virtual void apply(); /// Build the dialog virtual void build(); - /// Filter the input - virtual bool input( 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(); - /// delete derived class variables from hide() - virtual void clearStore(); - /// Pointer to the actual instantiation of the xform's form - virtual FL_FORM * const form() const; /// - void updateBrowser( std::vector ) const; - /// - void showBrowser() const; - /// - void hideBrowser() const; - /// - void setSize( int, int, int ) const; - /// - FD_form_ref * build_ref(); - /// - Type getType() const; - /// - string getName( Type type ) const; + void updateBrowser(std::vector const &) const; /// - Goto toggle; - /// - std::vector refs; + void switch_go_button(); - /// Real GUI implementation. - FD_form_ref * dialog_; + /// + bool at_ref_; + /// + std::vector refs_; }; -#endif +} // namespace frontend +} // namespace lyx + +#endif // FORMREF_H