#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
*/
///
void fillWithBibKeys(BiblioInfo &, InsetIterator const &) const;
///
- EmbeddedFileList embeddedFiles() 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(EmbeddedFileList &) const;
- ///
- void updateEmbeddedFile(EmbeddedFile const & file);
-protected:
+ /// look up the path to the file using TeX
+ static support::FileName
+ getBibTeXPath(docstring const & filename, Buffer const & buf);
+private:
///
void doDispatch(Cursor & cur, FuncRequest & cmd);
-private:
///
- Inset * clone() const;
+ Inset * clone() const { return new InsetBibtex(*this); }
};