X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetMarginal.h;h=8b6a403258932c297e38c1b16eb8d606a92ec623;hb=8124e6c02ea1fd6779bb6c47ffe2bca2c8bd2d97;hp=c081dd9b7bc3255f18dc9606b2cfe36f869e0714;hpb=eb8468994f6ded648dcf6eaf957fa098ded6477c;p=lyx.git diff --git a/src/insets/InsetMarginal.h b/src/insets/InsetMarginal.h index c081dd9b7b..8b6a403258 100644 --- a/src/insets/InsetMarginal.h +++ b/src/insets/InsetMarginal.h @@ -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,28 +25,21 @@ namespace lyx { class InsetMarginal : public InsetFootlike { public: /// - InsetMarginal(BufferParams const &); + explicit InsetMarginal(Buffer *); /// - InsetCode lyxCode() const { return 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; - /// - void addToToc(TocList &, Buffer const &, ParConstIterator const &) 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); } };