X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fxforms%2FFormRef.h;h=85c8146cf15293b4dab238f6442cd5f6345162ec;hb=9f29ab3aa5fb11baca9bc28dc3710076cb3a2645;hp=f0548cfb66532f93831e676e0ac9dee715c3fd1a;hpb=9062ce972e562477eb64c294769747ebf386fa6c;p=lyx.git diff --git a/src/frontends/xforms/FormRef.h b/src/frontends/xforms/FormRef.h index f0548cfb66..85c8146cf1 100644 --- a/src/frontends/xforms/FormRef.h +++ b/src/frontends/xforms/FormRef.h @@ -12,11 +12,14 @@ #ifndef FORMREF_H #define FORMREF_H +#include + #ifdef __GNUG__ #pragma interface #endif -#include "FormCommand.h" +#include "FormInset.h" + struct FD_form_ref; /** This class provides an XForms implementation of the FormRef Dialog. @@ -25,67 +28,43 @@ class FormRef : public FormCommand { public: /// FormRef(LyXView *, Dialogs *); - /// - ~FormRef(); private: - /// - enum Type{ - /// - REF, - /// - PAGEREF, - /// - VREF, - /// - VPAGEREF, - /// - PRETTYREF - }; - /// - enum Goto{ - /// - GOREF, - /// - GOBACK, - /// - GOFIRST - }; + /// Pointer to the actual instantiation of the ButtonController. + virtual xformsBC & bc(); + /// Disconnect signals. Also perform any necessary housekeeping. + virtual void disconnect(); /// Build the dialog virtual void build(); /// Filter the input - virtual void input( long ); + virtual bool 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; + /// Pointer to the actual instantiation of the xforms form + virtual FL_FORM * 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; /// FD_form_ref * build_ref(); - /// - Type getType() const; - /// - string getName( Type type ) const; /// - Goto toggle; + bool at_ref; /// std::vector refs; /// Real GUI implementation. - FD_form_ref * dialog_; + boost::scoped_ptr dialog_; + /// The ButtonController + ButtonController bc_; }; + +inline +xformsBC & FormRef::bc() +{ + return bc_; +} #endif