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"
19 /** Used to insert BibTeX's information
21 class InsetBibtex : public InsetCommand {
24 InsetBibtex(InsetCommandParams const &);
28 std::auto_ptr<InsetBase> clone() const;
29 /// small wrapper for the time being
30 virtual dispatch_result localDispatch(FuncRequest const & cmd);
32 string const getScreenLabel(Buffer const *) const;
34 EDITABLE editable() const { return IS_EDITABLE; }
36 InsetOld::Code lyxCode() const { return InsetOld::BIBTEX_CODE; }
38 int latex(Buffer const *, std::ostream &,
39 LatexRunParams const &) const;
41 void fillWithBibKeys(Buffer const * buffer,
42 std::vector<std::pair<string,string> > & keys) const;
44 std::vector<string> const getFiles(Buffer const &) const;
46 bool addDatabase(string const &);
48 bool delDatabase(string const &);
50 bool display() const { return true; }
53 #endif // INSET_BIBTEX_H