]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetFoot.cpp
Fix GRAPHICS_EDIT of InsetGraphics
[lyx.git] / src / insets / InsetFoot.cpp
index 68ab63daf54b2478081016b3beb2d69e923747f7..c40dc08d43fa196ec58c9325917344a4898f2c98 100644 (file)
@@ -35,22 +35,11 @@ using namespace std;
 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");
@@ -59,11 +48,11 @@ docstring InsetFoot::editMessage() const
 
 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"),