X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetMarginal.h;h=008a3dd039fae9c64a622ca8eb879edd15d2a181;hb=239b9919ffe28338d789e6dc9122228f77ab77a7;hp=6fce74306a17369571aa75f2535221054cb03cf6;hpb=c8d00ed1272cd489041bed2115081008b6a26489;p=lyx.git diff --git a/src/insets/InsetMarginal.h b/src/insets/InsetMarginal.h index 6fce74306a..008a3dd039 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,24 +25,21 @@ 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(odocstringstream & ods, OutputParams const & op, + size_t max_length = INT_MAX) const; /// - int docbook(Buffer const &, odocstream &, - OutputParams const & runparams) const; - /// - virtual docstring const editMessage() const; -protected: - InsetMarginal(InsetMarginal const &); + int docbook(odocstream &, OutputParams const & runparams) const; + /// Is the content of this inset part of the immediate (visible) text sequence? + bool isPartOfTextSequence() const { return false; } private: - virtual std::auto_ptr doClone() const; + /// + Inset * clone() const { return new InsetMarginal(*this); } };