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 &);
30 std::auto_ptr<InsetBase> clone() const {
31 return std::auto_ptr<InsetBase>(new InsetBibtex(params()));
33 /// small wrapper for the time being
34 virtual dispatch_result localDispatch(FuncRequest const & cmd);
36 string const getScreenLabel(Buffer const *) const;
38 EDITABLE editable() const { return IS_EDITABLE; }
40 InsetOld::Code lyxCode() const { return InsetOld::BIBTEX_CODE; }
42 int latex(Buffer const *, std::ostream &,
43 LatexRunParams const &) const;
45 void fillWithBibKeys(Buffer const * buffer,
46 std::vector<std::pair<string,string> > & keys) const;
48 std::vector<string> const getFiles(Buffer const &) const;
50 bool addDatabase(string const &);
52 bool delDatabase(string const &);
54 bool display() const { return true; }
66 #endif // INSET_BIBTEX_H