3 * \file xforms/FormCitation.h
4 * Copyright 2000-2002 the LyX Team
5 * Read the file COPYING
7 * \author Angus Leeming, a.leeming@ic.ac.uk
10 #ifndef FORMCITATION_H
11 #define FORMCITATION_H
20 /** This class provides an XForms implementation of the Citation Dialog.
22 class ControlCitation;
23 struct FD_form_citation;
25 class FormCitation : public FormCB<ControlCitation, FormDB<FD_form_citation> > {
28 FormCitation(ControlCitation &);
39 /// Set the Params variable for the Controller.
45 /// Update dialog before/whilst showing it.
46 virtual void update();
47 /// Filter the inputs on callback from xforms
48 virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
50 /// Fdesign generated method
51 FD_form_citation * build_citation();
53 /// search for a citation
54 void findBiblio(biblio::Direction const dir);
57 void updateBrowser(FL_OBJECT *, std::vector<string> const &) const;
59 void setBibButtons(State) const;
61 void setCiteButtons(State) const;
64 std::vector<string> citekeys;
66 std::vector<string> bibkeys;
69 #endif // FORMCITATION_H