2 /* This file is part of*
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1995 Matthias Ettrich
8 * Copyright 1995-2000 The LyX Team.
10 * ====================================================== */
19 #include "insetcommand.h"
25 /** Used to insert citations
27 class InsetCitation: public InsetCommand {
43 InsetCitation() : InsetCommand("cite") {}
46 InsetCitation(string const & key, string const & note = string());
50 Inset * Clone() const {
51 return new InsetCitation(getContents(), getOptions());
54 string getScreenLabel()const;
56 void Edit(BufferView *, int x, int y, unsigned int button);
58 void callback( FD_citation_form *, State );
60 EDITABLE Editable() const {
65 InsetCitation * inset;
71 void setSize( FD_citation_form *, int, bool ) const;
73 void setBibButtons( FD_citation_form *, State ) const;
75 void setCiteButtons( FD_citation_form *, State ) const;
77 void updateBrowser( FL_OBJECT *, std::vector<string> const & ) const;
82 #endif // INSET_CITE_H