2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 2000 The LyX Team.
9 * ======================================================
12 #ifndef FORMCITATION_H
13 #define FORMCITATION_H
19 #include "FormCommand.h"
20 struct FD_form_citation;
22 /** This class provides an XForms implementation of the FormCitation Dialog.
24 class FormCitation : public FormCommand {
26 /**@name Constructors and Destructors */
29 FormCitation(LyXView *, Dialogs *);
49 virtual void input( long );
50 /// Update dialog before showing it
51 virtual void update();
52 /// Apply from dialog (modify or create inset)
54 /// delete derived class variables from hide()
55 virtual void clearStore();
56 /// Pointer to the actual instantiation of the xform's form
57 virtual FL_FORM * const form() const;
60 void updateBrowser( FL_OBJECT *, std::vector<string> const & ) const;
62 void setBibButtons( State ) const;
64 void setCiteButtons( State ) const;
66 void setSize( int, bool ) const;
68 FD_form_citation * build_citation();
70 /// Real GUI implementation.
71 FD_form_citation * dialog_;
73 std::vector<string> citekeys;
75 std::vector<string> bibkeys;
77 std::vector<string> bibkeysInfo;