// FIXME Would it now be possible to use the InsetCode in
// place of the mailer name and recover that information?
InsetCommand::InsetCommand(Buffer * buf, InsetCommandParams const & p)
- : Inset(buf), p_(p)
+ : Inset(buf), p_(p), broken_(false)
{}
// The sole purpose of this copy constructor is to make sure
// that the mouse_hover_ map is not copied and remains empty.
InsetCommand::InsetCommand(InsetCommand const & rhs)
- : Inset(rhs), p_(rhs.p_)
+ : Inset(rhs), p_(rhs.p_), broken_(false)
{}
p_ = rhs.p_;
mouse_hover_.clear();
button_ = RenderButton();
+ broken_ = false;
return *this;
}
void InsetCommand::metrics(MetricsInfo & mi, Dimension & dim) const
{
button_.update(screenLabel(), editable() || clickable(*mi.base.bv, 0, 0),
- inheritFont());
+ inheritFont(), broken_);
button_.metrics(mi, dim);
}
}
-int InsetCommand::docbook(odocstream &, OutputParams const &) const
+void InsetCommand::docbook(XMLStream &, OutputParams const &) const
{
- return 0;
+ return;
}
case NOMENCL_PRINT_CODE:
case REF_CODE:
case TOC_CODE:
- case HYPERLINK_CODE: {
+ case HYPERLINK_CODE:
+ case COUNTER_CODE: {
InsetCommandParams p(code);
data = InsetCommand::params2string(p);
break;