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 {
27 FormCitation(LyXView *, Dialogs *);
53 virtual void input( long );
54 /// Update dialog before showing it
55 virtual void update();
56 /// Apply from dialog (modify or create inset)
58 /// delete derived class variables from hide()
59 virtual void clearStore();
60 /// Pointer to the actual instantiation of the xform's form
61 virtual FL_FORM * const form() const;
64 void updateBrowser( FL_OBJECT *, std::vector<string> const & ) const;
66 void setBibButtons( State ) const;
68 void setCiteButtons( State ) const;
70 void setSize( int, bool ) const;
72 FD_form_citation * build_citation();
74 /// Real GUI implementation.
75 FD_form_citation * dialog_;
77 std::vector<string> citekeys;
79 std::vector<string> bibkeys;
81 std::vector<string> bibkeysInfo;