2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 2000 The LyX Team.
9 * ======================================================
19 #include "FormCommand.h"
22 /** This class provides an XForms implementation of the FormRef Dialog.
24 class FormRef : public FormCommand {
26 /**@name Constructors and Destructors */
29 FormRef(LyXView *, Dialogs *);
36 enum Type{ REF=0, PAGEREF, VREF, VPAGEREF, PRETTYREF };
38 enum Goto{ GOREF=0, GOBACK, GOFIRST };
43 virtual void input( long );
44 /// Update dialog before showing it
45 virtual void update();
46 /// Not used but must be instantiated
48 /// delete derived class variables from hide()
49 virtual void clearStore();
50 /// Pointer to the actual instantiation of the xform's form
51 virtual FL_FORM * const form() const;
54 void updateBrowser( std::vector<string> ) const;
56 void showBrowser() const;
58 void hideBrowser() const;
60 void setSize( int, int, int ) const;
62 FD_form_ref * build_ref();
66 string getName( Type type ) const;
68 /// Real GUI implementation.
69 FD_form_ref * dialog_;
74 std::vector<string> refs;