]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetMarginal.h
Fix bug #12772
[lyx.git] / src / insets / InsetMarginal.h
index 40d4e5d4c3ec77af306acc8a1bf5491e7b36b6a7..8b6a403258932c297e38c1b16eb8d606a92ec623 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,26 +25,21 @@ namespace lyx {
 class InsetMarginal : public InsetFootlike {
 public:
        ///
-       InsetMarginal(BufferParams const &);
+       explicit InsetMarginal(Buffer *);
        ///
-       Inset::Code lyxCode() const { return Inset::MARGIN_CODE; }
+       InsetCode lyxCode() const override { return MARGIN_CODE; }
        ///
-       docstring name() const { return from_ascii("Marginal"); }
+       docstring layoutName() const override { 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 override;
        ///
-       int plaintext(Buffer const &, odocstream &,
-                     OutputParams const & runparams) const;
-       ///
-       int docbook(Buffer const &, odocstream &,
-                   OutputParams const & runparams) const;
-       ///
-       virtual docstring const editMessage() const;
-protected:
-       InsetMarginal(InsetMarginal const &);
+       void docbook(XMLStream &, OutputParams const & runparams) const override;
+       /// Is the content of this inset part of the immediate (visible) text sequence?
+       bool isPartOfTextSequence() const override { return false; }
 private:
-       virtual Inset * clone() const;
+       ///
+       Inset * clone() const override { return new InsetMarginal(*this); }
 };