DisplayLabelBox(Buffer * buf, MathAtom const & atom, docstring label,
MathMacroTemplate const & parent);
+ ///
+ marker_type marker(BufferView const *) const;
///
void metrics(MetricsInfo & mi, Dimension & dim) const;
///
}
+InsetMath::marker_type DisplayLabelBox::marker(BufferView const * bv) const
+{
+ if (parent_.editing(bv)
+ || !parent_.cell(parent_.displayIdx()).empty())
+ return MARKER;
+ else
+ return NO_MARKER;
+}
+
+
void DisplayLabelBox::metrics(MetricsInfo & mi, Dimension & dim) const
{
InsetLabelBox::metrics(mi, dim);