2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 2000 The LyX Team.
9 * ======================================================
19 #include "FormInset.h"
22 /** This class provides an XForms implementation of the FormRef Dialog.
24 class FormRef : public FormCommand {
27 FormRef(LyXView *, Dialogs *);
54 /// Connect signals etc. Set form's max size.
55 virtual void connect();
56 /// Disconnect signals. Also perform any necessary housekeeping.
57 virtual void disconnect();
62 virtual bool input( FL_OBJECT *, long );
63 /// Update dialog before showing it
64 virtual void update(bool switched = false);
65 /// Not used but must be instantiated
67 /// Pointer to the actual instantiation of the xform's form
68 virtual FL_FORM * form() const;
71 void updateBrowser( std::vector<string> ) const;
73 void showBrowser() const;
75 void hideBrowser() const;
77 void setSize( int, int, int ) const;
79 FD_form_ref * build_ref();
83 string getName( Type type ) const;
88 std::vector<string> refs;
90 /// Real GUI implementation.
91 FD_form_ref * dialog_;