]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetMarginal.h
Context menu item to add unknown branch (rest of #7643)
[lyx.git] / src / insets / InsetMarginal.h
index 6fce74306a17369571aa75f2535221054cb03cf6..67bd1e5a549982380e7fdd462b2368276fe28611 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 Jürgen Vigna
- * \author Lars Gullik Bjønnes
+ * \author Jürgen Vigna
+ * \author Lars Gullik Bjønnes
  *
  * Full author contact details are available in file CREDITS.
  */
@@ -25,24 +25,20 @@ namespace lyx {
 class InsetMarginal : public InsetFootlike {
 public:
        ///
-       InsetMarginal(BufferParams const &);
+       InsetMarginal(Buffer *);
        ///
-       InsetBase::Code lyxCode() const { return InsetBase::MARGIN_CODE; }
+       InsetCode lyxCode() const { return MARGIN_CODE; }
        ///
-       int latex(Buffer const &, odocstream &,
-                 OutputParams const &) const;
+       docstring layoutName() const { return from_ascii("Marginal"); }
        ///
-       int plaintext(Buffer const &, odocstream &,
-                     OutputParams const & runparams) const;
+       int plaintext(odocstream &, OutputParams const & runparams) const;
        ///
-       int docbook(Buffer const &, odocstream &,
-                   OutputParams const & runparams) const;
+       int docbook(odocstream &, OutputParams const & runparams) const;
        ///
-       virtual docstring const editMessage() const;
-protected:
-       InsetMarginal(InsetMarginal const &);
+       void addToToc(DocIterator const &) const;
 private:
-       virtual std::auto_ptr<InsetBase> doClone() const;
+       ///
+       Inset * clone() const { return new InsetMarginal(*this); }
 };