]> 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 e720526b8bc27789885b848f4a8b95ce0b5302a1..a3389a01e1e49ac28771889d87e30011eed31205 100644 (file)
@@ -4,8 +4,8 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author Jrgen Vigna
- * \author Lars Gullik Bjnnes
+ * \author Jürgen Vigna
+ * \author Lars Gullik Bjønnes
  *
  * Full author contact details are available in file CREDITS.
  */
@@ -27,24 +27,26 @@ 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"); }
        ///
        int latex(Buffer const &, odocstream &,
-                 OutputParams const &) const;
+                 OutputParams const &) const;
        ///
        int plaintext(Buffer const &, odocstream &,
-                     OutputParams const & runparams) const;
+                     OutputParams const & runparams) const;
        ///
        int docbook(Buffer const &, odocstream &,
-                   OutputParams const & runparams) const;
+                   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;
 };