X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fxforms%2FFormRef.h;h=85c8146cf15293b4dab238f6442cd5f6345162ec;hb=9f29ab3aa5fb11baca9bc28dc3710076cb3a2645;hp=a77b4f4ebda75ab5bc84da4ecd94ca9f5572edfc;hpb=976b104ffee26b12d3379ad89f39443095b5496c;p=lyx.git diff --git a/src/frontends/xforms/FormRef.h b/src/frontends/xforms/FormRef.h index a77b4f4ebd..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 "FormInset.h" + struct FD_form_ref; /** This class provides an XForms implementation of the FormRef Dialog. @@ -25,20 +28,9 @@ class FormRef : public FormCommand { public: /// FormRef(LyXView *, Dialogs *); - /// - ~FormRef(); - /// private: - /// - 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(); @@ -50,7 +42,7 @@ private: virtual void update(); /// Not used but must be instantiated virtual void apply(); - /// Pointer to the actual instantiation of the xform's form + /// Pointer to the actual instantiation of the xforms form virtual FL_FORM * form() const; /// @@ -59,12 +51,20 @@ private: FD_form_ref * build_ref(); /// - 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