2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 2000-2001 The LyX Team.
9 * ======================================================
11 * \file FormCitation.h
12 * \author Angus Leeming <a.leeming@ic.ac.uk>
15 #ifndef FORMCITATION_H
16 #define FORMCITATION_H
24 /** This class provides an XForms implementation of the Citation Dialog.
26 class ControlCitation;
27 struct FD_form_citation;
29 class FormCitation : public FormCB<ControlCitation, FormDB<FD_form_citation> > {
32 FormCitation(ControlCitation &);
43 /// Set the Params variable for the Controller.
49 /// Update dialog before/whilst showing it.
50 virtual void update();
51 /// Filter the inputs on callback from xforms
52 virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
54 /// Fdesign generated method
55 FD_form_citation * build_citation();
58 void updateBrowser(FL_OBJECT *, std::vector<string> const &) const;
60 void setBibButtons(State) const;
62 void setCiteButtons(State) const;
65 std::vector<string> citekeys;
67 std::vector<string> bibkeys;
70 #endif // FORMCITATION_H