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;
30 void metrics(MetricsInfo &, Dimension &) const;
32 void draw(PainterInfo & pi, int x, int y) const;
34 std::string const getScreenLabel(Buffer const &) const;
36 EDITABLE editable() const { return IS_EDITABLE; }
38 InsetOld::Code lyxCode() const { return InsetOld::BIBTEX_CODE; }
40 int latex(Buffer const &, std::ostream &,
41 LatexRunParams const &) const;
43 void fillWithBibKeys(Buffer const & buffer,
44 std::vector<std::pair<std::string,std::string> > & keys) const;
46 std::vector<std::string> const getFiles(Buffer const &) const;
48 bool addDatabase(std::string const &);
50 bool delDatabase(std::string const &);
55 priv_dispatch(FuncRequest const & cmd, idx_type &, pos_type &);
58 #endif // INSET_BIBTEX_H