#include "insetcommand.h"
-class Buffer;
+
+namespace lyx {
/** Used to insert bibitem's information (key and label)
///
InsetBibitem(InsetCommandParams const &);
///
- std::auto_ptr<InsetBase> clone() const;
- /** Currently \bibitem is used as a LyX2.x command,
- so we need this method.
- */
- void write(Buffer const &, std::ostream &) const;
- ///
void read(Buffer const &, LyXLex & lex);
///
- virtual std::string const getScreenLabel(Buffer const &) const;
+ docstring const getScreenLabel(Buffer const &) const;
///
EDITABLE editable() const { return IS_EDITABLE; }
///
- InsetOld::Code lyxCode() const { return InsetOld::BIBITEM_CODE; }
- /// keep .lyx format compatible
- bool directWrite() const { return true; }
+ InsetBase::Code lyxCode() const { return InsetBase::BIBITEM_CODE; }
///
void setCounter(int);
///
int getCounter() const { return counter; }
///
- std::string const getBibLabel() const;
+ docstring const getBibLabel() const;
+ ///
+ int plaintext(Buffer const &, odocstream &, OutputParams const &) const;
protected:
///
- virtual void priv_dispatch(LCursor & cur, FuncRequest & cmd);
+ virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
private:
+ virtual std::auto_ptr<InsetBase> doClone() const;
+
///
int counter;
///
static int key_counter;
};
+
+/// Return the widest label in the Bibliography.
+docstring const bibitemWidest(Buffer const &);
+
+
+} // namespace lyx
+
#endif // INSET_BIBITEM_H