output_active));
else
toc.push_back(TocItem(ref_pit, 1,
- static_cast<InsetRef *>(it->first)->screenLabel(),
+ static_cast<InsetRef *>(it->first)->getTOCString(),
output_active));
}
}
}
+docstring InsetRef::getTOCString() const
+{
+ return tooltip_.empty() ? screen_label_ : tooltip_;
+}
+
} // namespace lyx
docstring toolTip(BufferView const &, int, int) const
{ return tooltip_; }
///
+ docstring getTOCString() const;
+ ///
bool hasSettings() const { return true; }
///
InsetCode lyxCode() const { return REF_CODE; }