4 * Copyright 2001 the LyX Team
5 * Read the file COPYING
7 * \author Angus Leeming
14 #include <boost/smart_ptr.hpp>
16 #include "FormInset.h"
23 struct FD_form_bibtex;
26 * For bibtex database setting
28 class FormBibtex : public FormCommand {
31 FormBibtex(LyXView *, Dialogs *);
33 /// Pointer to the actual instantiation of the ButtonController.
34 virtual xformsBC & bc();
35 /// Connect signals etc. Set form's max size.
36 virtual void connect();
39 /// Update dialog before showing it
40 virtual void update();
42 virtual bool input(FL_OBJECT *, long);
43 /// Apply from dialog (modify or create inset)
45 /// Pointer to the actual instantiation of the xforms form
46 virtual FL_FORM * form() const;
48 FD_form_bibtex * build_bibtex();
49 /// Real GUI implementation.
50 boost::scoped_ptr<FD_form_bibtex> dialog_;
51 /// The ButtonController
52 ButtonController<OkCancelReadOnlyPolicy, xformsBC> bc_;
57 xformsBC & FormBibtex::bc()
61 #endif // FORMBIBTEX_H