#include "insetcommand.h"
class Buffer;
-struct FD_bibitem_form;
/** Used to insert bibitem's information (key and label)
///
~InsetBibKey();
///
- Inset * Clone() const;
+ Inset * Clone(Buffer const &) const;
/** Currently \bibitem is used as a LyX2.x command,
so we need this method.
*/
///
void Read(Buffer const *, LyXLex & lex);
///
- virtual string getScreenLabel() const;
+ virtual string const getScreenLabel() const;
///
void Edit(BufferView *, int x, int y, unsigned int button);
///
///
int getCounter() const { return counter; }
///
- void callback( FD_bibitem_form *, long );
+ string const getBibLabel() const;
///
struct Holder {
InsetBibKey * inset;
int counter;
///
Holder holder;
+ ///
+ static int key_counter;
};
class InsetBibtex : public InsetCommand {
public:
///
- InsetBibtex(InsetCommandParams const &, Buffer *);
+ InsetBibtex(InsetCommandParams const &);
///
~InsetBibtex();
///
- Inset * Clone() const { return new InsetBibtex(params(), owner); }
+ Inset * Clone(Buffer const &) const {
+ return new InsetBibtex(params());
+ }
///
- string getScreenLabel() const;
+ string const getScreenLabel() const;
///
EDITABLE Editable() const { return IS_EDITABLE; }
///
int Latex(Buffer const *, std::ostream &,
bool fragile, bool freespace) const;
///
- std::vector<std::pair<string,string> > getKeys() const;
+ std::vector<std::pair<string,string> > const getKeys(Buffer const *) const;
///
bool addDatabase(string const &);
///
};
private:
- ///
- mutable Buffer * owner;
-
///
Holder holder;
};