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 &);
28 //InsetBibtex(InsetCommandParams const &, bool same_id);
32 Inset * clone(Buffer const &) const {
33 return new InsetBibtex(params());
36 //Inset * clone(Buffer const &, bool same_id) const {
37 // return new InsetBibtex(params(), same_id);
39 /// small wrapper for the time being
40 virtual dispatch_result localDispatch(FuncRequest const & cmd);
42 string const getScreenLabel(Buffer const *) const;
44 EDITABLE editable() const { return IS_EDITABLE; }
46 Inset::Code lyxCode() const { return Inset::BIBTEX_CODE; }
48 int latex(Buffer const *, std::ostream &,
49 LatexRunParams const &) const;
51 void fillWithBibKeys(Buffer const *,
52 std::vector<std::pair<string,string> > &) const;
54 std::vector<string> const getFiles(Buffer const &) const;
56 bool addDatabase(string const &);
58 bool delDatabase(string const &);
60 bool display() const { return true; }
72 #endif // INSET_BIBTEX_H