namespace lyx {
-InsetFoot::InsetFoot(BufferParams const & bp)
- : InsetFootlike(bp)
+InsetFoot::InsetFoot(Buffer const & buf)
+ : InsetFootlike(buf)
{}
-InsetFoot::InsetFoot(InsetFoot const & in)
- : InsetFootlike(in)
-{}
-
-
-Inset * InsetFoot::clone() const
-{
- return new InsetFoot(*this);
-}
-
-
docstring InsetFoot::editMessage() const
{
return _("Opened Footnote Inset");
void InsetFoot::updateLabels(ParIterator const & it)
{
- TextClass const & tclass = buffer().params().textClass();
+ DocumentClass const & tclass = buffer().params().documentClass();
Counters & cnts = tclass.counters();
docstring const foot = from_ascii("footnote");
Paragraph const & outer = it.paragraph();
- if (!outer.layout()->intitle && cnts.hasCounter(foot)) {
+ if (!outer.layout().intitle && cnts.hasCounter(foot)) {
cnts.step(foot);
// FIXME: the counter should format itself.
setLabel(support::bformat(from_ascii("%1$s %2$s"),