- BufferParams const & bp = buffer().masterBuffer()->params();
- Counters & cnts = bp.documentClass().counters();
- docstring const foot = from_ascii("footnote");
- Paragraph const & outer = it.paragraph();
- if (!outer.layout().intitle && cnts.hasCounter(foot)) {
- cnts.step(foot);
- // FIXME: the counter should format itself.
- custom_label_= bformat(from_utf8("%1$s %2$s"),
- translateIfPossible(getLayout().labelstring()),
- cnts.theCounter(foot, outer.getParLanguage(bp)->code()));
- setLabel(custom_label_);
-
- }
- InsetCollapsable::updateLabels(it);
+ if (intitle_)
+ return from_ascii("Foot:InTitle");
+ else if (infloattable_)
+ return from_ascii("Foot:InFloatTable");
+ return from_ascii("Foot");