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
15 #include "FormDialogView.h"
21 class ControlCitation;
24 /** This class provides an XForms implementation of the Citation Dialog.
27 : public FormController<ControlCitation, FormView<FD_citation> > {
30 FormCitation(Dialog &);
40 /// Set the Params variable for the Controller.
46 /// Update dialog before/whilst showing it.
47 virtual void update();
48 /// Filter the inputs on callback from xforms
49 virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
51 /// search for a citation
52 void findBiblio(biblio::Direction const dir);
55 void updateBrowser(FL_OBJECT *, std::vector<std::string> const &) const;
57 void setBibButtons(State) const;
59 void setCiteButtons(State) const;
61 /// used keys (left panel)
62 std::vector<std::string> citekeys;
63 /// available keys (right panel)
64 std::vector<std::string> bibkeys;
67 } // namespace frontend
70 #endif // FORMCITATION_H