2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 2000 The LyX Team.
9 * ======================================================
15 #include <boost/smart_ptr.hpp>
21 #include "FormInset.h"
25 /** This class provides an XForms implementation of the FormRef Dialog.
27 class FormRef : public FormCommand {
30 FormRef(LyXView *, Dialogs *);
32 /// Pointer to the actual instantiation of the ButtonController.
33 virtual xformsBC & bc();
34 /// Disconnect signals. Also perform any necessary housekeeping.
35 virtual void disconnect();
40 virtual bool input(FL_OBJECT *, long);
41 /// Update dialog before showing it
42 virtual void update();
43 /// Not used but must be instantiated
45 /// Pointer to the actual instantiation of the xforms form
46 virtual FL_FORM * form() const;
49 void updateBrowser(std::vector<string> const &) const;
51 FD_form_ref * build_ref();
56 std::vector<string> refs;
58 /// Real GUI implementation.
59 boost::scoped_ptr<FD_form_ref> dialog_;
60 /// The ButtonController
61 ButtonController<NoRepeatedApplyPolicy, xformsBC> bc_;
66 xformsBC & FormRef::bc()