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 "FormInset.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 *);
50 /// Disconnect signals. Also perform any necessary housekeeping.
51 virtual void disconnect();
56 virtual bool input( FL_OBJECT *, long );
57 /// Update dialog before showing it
58 virtual void update(bool switched = false);
59 /// Apply from dialog (modify or create inset)
61 /// Pointer to the actual instantiation of the xform's form
62 virtual FL_FORM * form() const;
65 void updateBrowser( FL_OBJECT *, std::vector<string> const & ) const;
67 void setBibButtons( State ) const;
69 void setCiteButtons( State ) const;
71 void setSize( int, bool ) const;
73 FD_form_citation * build_citation();
75 /// Real GUI implementation.
76 FD_form_citation * dialog_;
78 std::vector<string> citekeys;
80 std::vector<string> bibkeys;
82 std::vector<string> bibkeysInfo;