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 #include "support/filename.h"
24 /** Used to insert BibTeX's information
26 class InsetBibtex : public InsetCommand {
29 InsetBibtex(InsetCommandParams const &);
31 docstring const getScreenLabel(Buffer const &) const;
33 EDITABLE editable() const { return IS_EDITABLE; }
35 InsetBase::Code lyxCode() const { return InsetBase::BIBTEX_CODE; }
37 bool display() const { return true; }
39 int latex(Buffer const &, odocstream &, OutputParams const &) const;
41 void fillWithBibKeys(Buffer const & buffer,
42 std::vector<std::pair<std::string, docstring> > & keys) const;
44 std::vector<support::FileName> const getFiles(Buffer const &) const;
46 bool addDatabase(std::string const &);
48 bool delDatabase(std::string const &);
50 void validate(LaTeXFeatures &) const;
52 virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
54 virtual std::auto_ptr<InsetBase> doClone() const;
61 #endif // INSET_BIBTEX_H