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
16 #include "InsetCommand.h"
17 #include "BiblioInfo.h"
26 /** Used to insert BibTeX's information
28 class InsetBibtex : public InsetCommand {
31 InsetBibtex(InsetCommandParams const &);
33 docstring const getScreenLabel(Buffer const &) const;
35 EDITABLE editable() const { return IS_EDITABLE; }
37 InsetCode lyxCode() const { return BIBTEX_CODE; }
39 DisplayType display() const { return AlignCenter; }
41 int latex(Buffer const &, odocstream &, OutputParams const &) const;
43 virtual void fillWithBibKeys(Buffer const &,
44 BiblioInfo &, InsetIterator const &) const;
46 support::FileNameList const getFiles(Buffer const &) const;
48 bool addDatabase(std::string const &);
50 bool delDatabase(std::string const &);
52 void validate(LaTeXFeatures &) const;
54 static CommandInfo const * findInfo(std::string const &);
56 static std::string defaultCommand() { return "bibtex"; };
58 static bool isCompatibleCommand(std::string const & s)
59 { return s == "bibtex"; }
61 virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
63 virtual Inset * clone() const;
70 #endif // INSET_BIBTEX_H