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;
24 class FormCitation : public FormController<ControlCitation, FormView<FD_citation> > {
27 FormCitation(Dialog &);
37 /// Set the Params variable for the Controller.
43 /// Update dialog before/whilst showing it.
44 virtual void update();
45 /// Filter the inputs on callback from xforms
46 virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
48 /// search for a citation
49 void findBiblio(biblio::Direction const dir);
52 void updateBrowser(FL_OBJECT *, std::vector<string> const &) const;
54 void setBibButtons(State) const;
56 void setCiteButtons(State) const;
58 /// used keys (left panel)
59 std::vector<string> citekeys;
60 /// available keys (right panel)
61 std::vector<string> bibkeys;
64 #endif // FORMCITATION_H