4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Angus Leeming
9 * Full author contact details are available in file CREDITS
12 #ifndef FORMCITATION_H
13 #define FORMCITATION_H
16 #include "FormDialogView.h"
19 /** This class provides an XForms implementation of the Citation Dialog.
21 class ControlCitation;
25 : public FormController<ControlCitation, FormView<FD_citation> > {
28 FormCitation(Dialog &);
38 /// Set the Params variable for the Controller.
44 /// Update dialog before/whilst showing it.
45 virtual void update();
46 /// Filter the inputs on callback from xforms
47 virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
49 /// search for a citation
50 void findBiblio(biblio::Direction const dir);
53 void updateBrowser(FL_OBJECT *, std::vector<string> const &) const;
55 void setBibButtons(State) const;
57 void setCiteButtons(State) const;
59 /// used keys (left panel)
60 std::vector<string> citekeys;
61 /// available keys (right panel)
62 std::vector<string> bibkeys;
65 #endif // FORMCITATION_H