// -*- C++ -*-
-/* This file is part of
- * ======================================================
+/**
+ * \file xforms/FormCitation.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
- * LyX, The Document Processor
+ * \author Angus Leeming
*
- * Copyright 2000 The LyX Team.
- *
- * ======================================================
- *
- * Author: Angus Leeming <a.leeming@ic.ac.uk>
+ * Full author contact details are available in file CREDITS
*/
#ifndef FORMCITATION_H
#endif
#include "FormBase.h"
+#include "biblio.h"
/** This class provides an XForms implementation of the Citation Dialog.
*/
-#include "form_citation.h"
class ControlCitation;
+struct FD_citation;
-class FormCitation : public FormBase2<ControlCitation, FD_form_citation> {
+class FormCitation : public FormCB<ControlCitation, FormDB<FD_citation> > {
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();
-
+ FormCitation();
private:
///
enum State {
OFF
};
+ /// 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();
/// 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();
+ /// search for a citation
+ void findBiblio(biblio::Direction const dir);
///
void updateBrowser(FL_OBJECT *, std::vector<string> const &) const;
void setBibButtons(State) const;
///
void setCiteButtons(State) const;
- ///
- void setSize(int, bool) const;
///
std::vector<string> citekeys;