#include <vector>
#include "insetcommand.h"
-class Buffer;
-
/** Used to insert BibTeX's information
*/
class InsetBibtex : public InsetCommand {
///
InsetBibtex(InsetCommandParams const &);
///
- //InsetBibtex(InsetCommandParams const &, bool same_id);
- ///
~InsetBibtex();
///
- Inset * clone(Buffer const &) const {
- return new InsetBibtex(params());
- }
- ///
- //Inset * clone(Buffer const &, bool same_id) const {
- // return new InsetBibtex(params(), same_id);
- //}
+ std::auto_ptr<InsetBase> clone() const;
/// small wrapper for the time being
virtual dispatch_result localDispatch(FuncRequest const & cmd);
///
///
EDITABLE editable() const { return IS_EDITABLE; }
///
- Inset::Code lyxCode() const { return Inset::BIBTEX_CODE; }
+ InsetOld::Code lyxCode() const { return InsetOld::BIBTEX_CODE; }
///
int latex(Buffer const *, std::ostream &,
LatexRunParams const &) const;
///
- void fillWithBibKeys(Buffer const *,
- std::vector<std::pair<string,string> > &) const;
+ void fillWithBibKeys(Buffer const * buffer,
+ std::vector<std::pair<string,string> > & keys) const;
///
std::vector<string> const getFiles(Buffer const &) const;
///
bool delDatabase(string const &);
///
bool display() const { return true; }
- ///
- struct Holder {
- InsetBibtex * inset;
- BufferView * view;
- };
-
-private:
- ///
- Holder holder;
};
#endif // INSET_BIBTEX_H