#ifndef INSET_BIBTEX_H
#define INSET_BIBTEX_H
-
-#include <vector>
+#include <map>
#include "InsetCommand.h"
+#include "BiblioInfo.h"
#include "support/FileName.h"
///
EDITABLE editable() const { return IS_EDITABLE; }
///
- InsetBase::Code lyxCode() const { return InsetBase::BIBTEX_CODE; }
+ InsetCode lyxCode() const { return BIBTEX_CODE; }
///
- bool display() const { return true; }
+ DisplayType display() const { return AlignCenter; }
///
int latex(Buffer const &, odocstream &, OutputParams const &) const;
///
- void fillWithBibKeys(Buffer const & buffer,
- std::vector<std::pair<std::string, docstring> > & keys) const;
+ virtual void fillWithBibKeys(Buffer const &,
+ BiblioInfo &, InsetIterator const &) const;
///
std::vector<support::FileName> const getFiles(Buffer const &) 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"; }
protected:
virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
private:
- virtual std::auto_ptr<InsetBase> doClone() const;
+ virtual Inset * clone() const;
};