X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fxforms%2FFormRef.h;h=ca2023011444e8a60229b5d956943f54f564a5b7;hb=eba67bc3120dc301bf193c3f3b570f51f00a4654;hp=e74c9259a3f5d18c0bb79df78bec164639eefef8;hpb=f4d7b803f354552a8f9c8aaf28086c2e3b7d7d90;p=lyx.git diff --git a/src/frontends/xforms/FormRef.h b/src/frontends/xforms/FormRef.h index e74c9259a3..ca20230114 100644 --- a/src/frontends/xforms/FormRef.h +++ b/src/frontends/xforms/FormRef.h @@ -16,54 +16,63 @@ #pragma interface #endif -#include "FormCommand.h" +#include "FormInset.h" struct FD_form_ref; /** This class provides an XForms implementation of the FormRef Dialog. */ class FormRef : public FormCommand { public: - /**@name Constructors and Destructors */ - //@{ /// FormRef(LyXView *, Dialogs *); /// ~FormRef(); - //@} - private: /// - enum Type{ REF=0, PAGEREF, VREF, VPAGEREF, PRETTYREF }; + enum Type { + /// + REF, + /// + PAGEREF, + /// + VREF, + /// + VPAGEREF, + /// + PRETTYREF + }; /// - enum Goto{ GOREF=0, GOBACK, GOFIRST }; + enum Goto { + /// + GOREF, + /// + GOBACK, + /// + GOFIRST + }; + + /// 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; + 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; + string const getName(Type type) const; /// Goto toggle;