]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetFoot.h
This should be the last of the commits refactoring the InsetLayout code.
[lyx.git] / src / insets / InsetFoot.h
index f10c11097dcd63b71c9f4c7cf1ab6d476ede8604..7a6576b7bf4b8acc8b23ffa2a419902cf6a40fef 100644 (file)
@@ -26,7 +26,7 @@ public:
        ///
        InsetFoot(BufferParams const &);
        ///
-       Inset::Code lyxCode() const { return Inset::FOOT_CODE; }
+       InsetCode lyxCode() const { return FOOT_CODE; }
        ///
        docstring name() const { return from_ascii("Foot"); }
        ///
@@ -40,10 +40,15 @@ public:
                    OutputParams const &) const;
        ///
        virtual docstring const editMessage() const;
+       /// Update the counters of this inset and of its contents
+       void updateLabels(Buffer const &, ParIterator const &);
+       ///
+       void addToToc(Buffer const &, ParConstIterator const &) const;
+
 protected:
        InsetFoot(InsetFoot const &);
 private:
-       virtual std::auto_ptr<Inset> doClone() const;
+       virtual Inset * clone() const;
 };