#ifndef INSET_BIBITEM_H
#define INSET_BIBITEM_H
-#include "InsetCommand.h"
#include "BiblioInfo.h"
+#include "InsetCommand.h"
namespace lyx {
{
public:
///
- InsetBibitem(InsetCommandParams const &);
+ InsetBibitem(Buffer *, InsetCommandParams const &);
+ ///
+ virtual ~InsetBibitem();
///
static ParamInfo const & findInfo(std::string const &);
///
///
docstring screenLabel() const;
///
- EDITABLE editable() const { return IS_EDITABLE; }
+ bool hasSettings() const { return true; }
///
InsetCode lyxCode() const { return BIBITEM_CODE; }
///
///
int plaintext(odocstream &, OutputParams const &) const;
///
+ docstring xhtml(XHTMLStream &, OutputParams const &) const;
+ ///
virtual void fillWithBibKeys(BiblioInfo &, InsetIterator const &) const;
/// Update the counter of this inset
- virtual void updateLabels(ParIterator const &);
+ void updateBuffer(ParIterator const &, UpdateType);
///
void updateCommand(docstring const & new_key, bool dummy = false);
///
///
Inset * clone() const { return new InsetBibitem(*this); }
- friend docstring bibitemWidest(Buffer const & buffer);
- /// The label that is set by updateLabels
+ friend docstring bibitemWidest(Buffer const & buffer, OutputParams const &);
+ /// The label that is set by updateBuffer
docstring autolabel_;
///
static int key_counter;
/// Return the widest label in the Bibliography.
-docstring bibitemWidest(Buffer const &);
+docstring bibitemWidest(Buffer const &, OutputParams const &);
} // namespace lyx