#include "ParagraphParameters.h"
#include "ParIterator.h"
+#include "insets/InsetBibitem.h"
#include "insets/InsetBranch.h"
#include "insets/InsetCommand.h"
#include "insets/InsetFlex.h"
case LABEL_CODE: {
// check for duplicates
- InsetCommand & lab = static_cast<InsetCommand &>(*it);
+ InsetLabel & lab = dynamic_cast<InsetLabel &>(*it);
docstring const oldname = lab.getParam("name");
lab.updateCommand(oldname, false);
// We need to update the buffer reference cache.
case BIBITEM_CODE: {
// check for duplicates
- InsetCommand & bib = static_cast<InsetCommand &>(*it);
+ InsetBibitem & bib = dynamic_cast<InsetBibitem &>(*it);
docstring const oldkey = bib.getParam("key");
bib.updateCommand(oldkey, false);
// We need to update the buffer reference cache.
///
static bool isCompatibleCommand(std::string const & s)
{ return s == "bibitem"; }
+ ///
+ void updateCommand(docstring const & new_key, bool dummy = false);
private:
/// verify label and update references.
/// Overloaded from Inset::initView.
/// Update the counter of this inset
void updateBuffer(ParIterator const &, UpdateType);
///
- void updateCommand(docstring const & new_key, bool dummy = false);
- ///
void doDispatch(Cursor & cur, FuncRequest & cmd);
///
Inset * clone() const { return new InsetBibitem(*this); }