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"
21 class EmbeddedFileList;
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 InsetCode lyxCode() const { return BIBTEX_CODE; }
37 DisplayType display() const { return AlignCenter; }
39 int latex(Buffer const &, odocstream &, OutputParams const &) const;
41 virtual void fillWithBibKeys(Buffer const &,
42 BiblioInfo &, InsetIterator const &) const;
44 EmbeddedFileList const getFiles(Buffer const &) const;
46 bool addDatabase(std::string const &);
48 bool delDatabase(std::string const &);
50 void validate(LaTeXFeatures &) const;
52 static ParamInfo const & findInfo(std::string const &);
54 static std::string defaultCommand() { return "bibtex"; };
56 static bool isCompatibleCommand(std::string const & s)
57 { return s == "bibtex"; }
59 void registerEmbeddedFiles(Buffer const &, EmbeddedFileList &) const;
61 void updateEmbeddedFile(Buffer const & buf, EmbeddedFile const & file);
65 virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
68 virtual Inset * clone() const;
75 #endif // INSET_BIBTEX_H