#ifndef INSET_BIBTEX_H
#define INSET_BIBTEX_H
-#include <map>
-#include "InsetCommand.h"
#include "BiblioInfo.h"
+#include "InsetCommand.h"
-namespace lyx {
+#include "support/FileNameList.h"
-class EmbeddedFileList;
+#include <map>
+namespace lyx {
/** Used to insert BibTeX's information
*/
///
int latex(odocstream &, OutputParams const &) const;
///
- virtual void fillWithBibKeys(BiblioInfo &, InsetIterator const &) const;
+ void fillWithBibKeys(BiblioInfo &, InsetIterator const &) const;
///
- EmbeddedFileList const getFiles(Buffer const &) const;
+ support::FileNameList getBibFiles() const;
///
- bool addDatabase(std::string const &);
+ bool addDatabase(docstring const &);
///
- bool delDatabase(std::string const &);
+ bool delDatabase(docstring const &);
///
void validate(LaTeXFeatures &) const;
///
///
static bool isCompatibleCommand(std::string const & s)
{ return s == "bibtex"; }
- ///
- void registerEmbeddedFiles(Buffer const &, EmbeddedFileList &) const;
- ///
- void updateEmbeddedFile(Buffer const & buf, EmbeddedFile const & file);
-
-protected:
- ///
- virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
+ /// look up the path to the file using TeX
+ static support::FileName
+ getBibTeXPath(docstring const & filename, Buffer const & buf);
private:
///
- virtual Inset * clone() const;
-
+ void doDispatch(Cursor & cur, FuncRequest & cmd);
+ ///
+ Inset * clone() const { return new InsetBibtex(*this); }
};