4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Alejandro Aguilar Sierra
9 * Full author contact details are available in file CREDITS
12 #ifndef INSET_BIBTEX_H
13 #define INSET_BIBTEX_H
17 #include "insetcommand.h"
21 /** Used to insert BibTeX's information
23 class InsetBibtex : public InsetCommand {
26 InsetBibtex(InsetCommandParams const &, bool same_id = false);
30 Inset * clone(Buffer const &, bool same_id = false) const {
31 return new InsetBibtex(params(), same_id);
34 string const getScreenLabel(Buffer const *) const;
36 EDITABLE editable() const { return IS_EDITABLE; }
38 Inset::Code lyxCode() const { return Inset::BIBTEX_CODE; }
40 void edit(BufferView *, int x, int y, mouse_button::state button);
42 void edit(BufferView * bv, bool front = true);
44 int latex(Buffer const *, std::ostream &,
45 bool fragile, bool freespace) const;
47 void fillWithBibKeys(Buffer const *,
48 std::vector<std::pair<string,string> > &) const;
50 std::vector<string> const getFiles(Buffer const &) const;
52 bool addDatabase(string const &);
54 bool delDatabase(string const &);
56 bool display() const { return true; }
68 #endif // INSET_BIBTEX_H