X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fxforms%2FFormRef.h;h=9f85c6a734cebd2bf6d16474dd8b502ce0d7b464;hb=3e39bef2c13125023f3b72532d90575bbe307335;hp=f0548cfb66532f93831e676e0ac9dee715c3fd1a;hpb=9062ce972e562477eb64c294769747ebf386fa6c;p=lyx.git diff --git a/src/frontends/xforms/FormRef.h b/src/frontends/xforms/FormRef.h index f0548cfb66..9f85c6a734 100644 --- a/src/frontends/xforms/FormRef.h +++ b/src/frontends/xforms/FormRef.h @@ -1,12 +1,10 @@ // -*- C++ -*- -/* This file is part of - * ====================================================== +/** + * \file xforms/FormRef.h + * Copyright 2000-2001 the LyX Team + * Read the file COPYING * - * LyX, The Document Processor - * - * Copyright 2000 The LyX Team. - * - * ====================================================== + * \author Angus Leeming, a.leeming@ic.ac.uk */ #ifndef FORMREF_H @@ -16,76 +14,38 @@ #pragma interface #endif -#include "FormCommand.h" +#include "FormBase.h" + +class ControlRef; struct FD_form_ref; /** This class provides an XForms implementation of the FormRef Dialog. */ -class FormRef : public FormCommand { +class FormRef : public FormCB > { public: /// - FormRef(LyXView *, Dialogs *); - /// - ~FormRef(); -private: - /// - enum Type{ - /// - REF, - /// - PAGEREF, - /// - VREF, - /// - VPAGEREF, - /// - PRETTYREF - }; - /// - enum Goto{ - /// - GOREF, - /// - GOBACK, - /// - GOFIRST - }; + FormRef(ControlRef &); +private: + /// Set the Params variable for the Controller. + virtual void apply(); /// Build the dialog virtual void build(); - /// Filter the input - virtual void 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; - /// + void updateBrowser(std::vector const &) const; + + /// Fdesign generated method FD_form_ref * build_ref(); - /// - Type getType() const; - /// - string getName( Type type ) const; /// - Goto toggle; - /// - std::vector refs; - - /// Real GUI implementation. - FD_form_ref * dialog_; + bool at_ref_; + /// + std::vector refs_; }; -#endif +#endif // FORMREF_H