// -*- C++ -*- /* This file is part of * ====================================================== * * LyX, The Document Processor * * Copyright 2000 The LyX Team. * * ====================================================== * * \author Angus Leeming */ #ifndef FORMCITATION_H #define FORMCITATION_H #ifdef __GNUG__ #pragma interface #endif #include "FormBase.h" /** This class provides an XForms implementation of the Citation Dialog. */ class ControlCitation; struct FD_form_citation; class FormCitation : public FormCB > { public: /// FormCitation(ControlCitation &); // Functions accessible to the Controller. /// Set the Params variable for the Controller. virtual void apply(); /// Build the dialog. virtual void build(); /// Hide the dialog. virtual void hide(); /// Update dialog before/whilst showing it. virtual void update(); private: /// enum State { /// ON, /// OFF }; /// Filter the inputs on callback from xforms virtual ButtonPolicy::SMInput input(FL_OBJECT *, long); /// Type definition from the fdesign produced header file. FD_form_citation * build_citation(); /// void updateBrowser(FL_OBJECT *, std::vector const &) const; /// void setBibButtons(State) const; /// void setCiteButtons(State) const; /// void setSize(int, bool) const; /// std::vector citekeys; /// std::vector bibkeys; }; #endif // FORMCITATION_H