]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetMarginal.h
This should be the last of the commits refactoring the InsetLayout code.
[lyx.git] / src / insets / InsetMarginal.h
index e261f7d9f6728a8f52b439f481839d864695176b..a3389a01e1e49ac28771889d87e30011eed31205 100644 (file)
@@ -27,7 +27,7 @@ public:
        ///
        InsetMarginal(BufferParams const &);
        ///
-       Inset::Code lyxCode() const { return Inset::MARGIN_CODE; }
+       InsetCode lyxCode() const { return MARGIN_CODE; }
        ///
        docstring name() const { return from_ascii("Marginal"); }
        ///
@@ -41,10 +41,12 @@ public:
                    OutputParams const & runparams) const;
        ///
        virtual docstring const editMessage() const;
+       ///
+       void addToToc(Buffer const &, ParConstIterator const &) const;
 protected:
        InsetMarginal(InsetMarginal const &);
 private:
-       virtual std::auto_ptr<Inset> doClone() const;
+       virtual Inset * clone() const;
 };