X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsetmarginal.h;h=10329a97127ffcede2b96d9332dcaa01a8f932df;hb=4a5b7a5952ad2381fcdf4830511293e184c7c5a1;hp=6a47bfeb7b51237c175773c87261bbf9b5e90479;hpb=eb7220abe64a6e301c51974fb34bb916ac41d64b;p=lyx.git diff --git a/src/insets/insetmarginal.h b/src/insets/insetmarginal.h index 6a47bfeb7b..10329a9712 100644 --- a/src/insets/insetmarginal.h +++ b/src/insets/insetmarginal.h @@ -16,36 +16,25 @@ #pragma interface #endif -#include "insetcollapsable.h" - -class Painter; +#include "insetfootlike.h" /** The marginal note inset */ -class InsetMarginal : public InsetCollapsable { +class InsetMarginal : public InsetFootlike { public: /// - explicit InsetMarginal(); /// - ~InsetMarginal() {} - /// - void Write(Buffer const * buf, std::ostream & os) const; - /// - Inset * Clone() const; - /// - Inset::Code LyxCode() const { return Inset::MARGIN_CODE; } - /// - int Latex(Buffer const *, std::ostream &, bool fragile, bool fp) const; + InsetMarginal(InsetMarginal const &, bool same_id = false); /// - const char * EditMessage() const; + Inset * clone(Buffer const &, bool same_id = false) const; /// - bool InsertInset(BufferView *, Inset * inset); + Inset::Code lyxCode() const { return Inset::MARGIN_CODE; } /// - bool InsertInsetAllowed(Inset * inset) const; + int latex(Buffer const *, std::ostream &, bool fragile, bool fp) const; /// -// LyXFont GetDrawFont(BufferView *, LyXParagraph * par, int pos) const; + string const editMessage() const; }; #endif