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 &);
26 lyx::docstring const getScreenLabel(Buffer const &) const;
28 EDITABLE editable() const { return IS_EDITABLE; }
30 InsetBase::Code lyxCode() const { return InsetBase::BIBTEX_CODE; }
32 bool display() const { return true; }
34 int latex(Buffer const &, std::ostream &,
35 OutputParams const &) const;
37 void fillWithBibKeys(Buffer const & buffer,
38 std::vector<std::pair<std::string,std::string> > & keys) const;
40 std::vector<std::string> const getFiles(Buffer const &) const;
42 bool addDatabase(std::string const &);
44 bool delDatabase(std::string const &);
46 void validate(LaTeXFeatures &) const;
48 virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
50 virtual std::auto_ptr<InsetBase> doClone() const;
54 #endif // INSET_BIBTEX_H