#include <map>
#include "InsetCommand.h"
-#include "Biblio_typedefs.h"
+#include "BiblioInfo.h"
-#include "support/FileName.h"
+namespace lyx {
+class EmbeddedFileList;
-namespace lyx {
/** Used to insert BibTeX's information
*/
///
EDITABLE editable() const { return IS_EDITABLE; }
///
- Inset::Code lyxCode() const { return Inset::BIBTEX_CODE; }
+ InsetCode lyxCode() const { return BIBTEX_CODE; }
///
DisplayType display() const { return AlignCenter; }
///
int latex(Buffer const &, odocstream &, OutputParams const &) const;
///
virtual void fillWithBibKeys(Buffer const &,
- biblio::BibKeyList &, InsetIterator const &) const;
+ BiblioInfo &, InsetIterator const &) const;
///
- std::vector<support::FileName> const getFiles(Buffer const &) const;
+ EmbeddedFileList const getFiles(Buffer const &) const;
///
bool addDatabase(std::string const &);
///
bool delDatabase(std::string const &);
///
void validate(LaTeXFeatures &) const;
+ ///
+ static CommandInfo const * findInfo(std::string const &);
+ ///
+ static std::string defaultCommand() { return "bibtex"; };
+ ///
+ 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);
private:
- virtual std::auto_ptr<Inset> doClone() const;
+ virtual Inset * clone() const;
};