]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetMarginal.h
#5502 add binding for full screen toggle on mac
[lyx.git] / src / insets / InsetMarginal.h
index e720526b8bc27789885b848f4a8b95ce0b5302a1..38e1a9c50a067590c3f53ebfe10c726acb9cda7c 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.
  */
@@ -25,26 +25,21 @@ namespace lyx {
 class InsetMarginal : public InsetFootlike {
 public:
        ///
-       InsetMarginal(BufferParams const &);
+       InsetMarginal(Buffer *);
        ///
-       Inset::Code lyxCode() const { return Inset::MARGIN_CODE; }
+       InsetCode lyxCode() const { return MARGIN_CODE; }
        ///
-       docstring name() const { return from_ascii("Marginal"); }
+       docstring layoutName() const { return from_ascii("Marginal"); }
        ///
-       int latex(Buffer const &, odocstream &,
-                 OutputParams const &) const;
+       int plaintext(odocstringstream & ods, OutputParams const & op,
+                     size_t max_length = INT_MAX) const;
        ///
-       int plaintext(Buffer const &, odocstream &,
-                     OutputParams const & runparams) const;
+       int docbook(odocstream &, OutputParams const & runparams) const;
        ///
-       int docbook(Buffer const &, odocstream &,
-                   OutputParams const & runparams) const;
-       ///
-       virtual docstring const editMessage() const;
-protected:
-       InsetMarginal(InsetMarginal const &);
+       void addToToc(DocIterator const & di, bool output_active) const;
 private:
-       virtual std::auto_ptr<Inset> doClone() const;
+       ///
+       Inset * clone() const { return new InsetMarginal(*this); }
 };