X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsetmarginal.h;h=5a50a637c37d1ce23fb1f8782216ccd7d93fa0f3;hb=e28331ed63062dea10d0a21b9ec12034b4b17b9a;hp=d9698ff3c2855ac89b3d277bdaa5ce0df26c8870;hpb=0811126012a57f06705ec2eac6f5b40c054aff28;p=lyx.git diff --git a/src/insets/insetmarginal.h b/src/insets/insetmarginal.h index d9698ff3c2..5a50a637c3 100644 --- a/src/insets/insetmarginal.h +++ b/src/insets/insetmarginal.h @@ -1,49 +1,48 @@ // -*- C++ -*- -/* This file is part of - * ====================================================== - * - * LyX, The Document Processor +/** + * \file insetmarginal.h + * This file is part of LyX, the document processor. + * Licence details can be found in the file COPYING. * - * Copyright 1998 The LyX Team. + * \author Jürgen Vigna + * \author Lars Gullik Bjønnes * - *====================================================== + * Full author contact details are available in file CREDITS. */ #ifndef INSETMARGINAL_H #define INSETMARGINAL_H -#ifdef __GNUG__ -#pragma interface -#endif -#include "insetcollapsable.h" +#include "insetfootlike.h" + -class Painter; +namespace lyx { /** The marginal note inset - + */ -class InsetMarginal : public InsetCollapsable { +class InsetMarginal : public InsetFootlike { public: /// - explicit - InsetMarginal(); - /// - ~InsetMarginal() {} - /// - Inset * Clone() const; + InsetMarginal(BufferParams const &); /// - Inset::Code LyxCode() const { return Inset::MARGIN_CODE; } + InsetBase::Code lyxCode() const { return InsetBase::MARGIN_CODE; } /// - int Latex(Buffer const *, std::ostream &, bool fragile, bool fp) const; + int latex(Buffer const &, odocstream &, + OutputParams const &) const; /// - const char * EditMessage() const; + int docbook(Buffer const &, odocstream &, + OutputParams const & runparams) const; /// - bool InsertInset(BufferView *, Inset * inset); - /// - bool InsertInsetAllowed(Inset * inset) const; - /// - LyXFont GetDrawFont(BufferView *, LyXParagraph * par, int pos) const; + virtual docstring const editMessage() const; +protected: + InsetMarginal(InsetMarginal const &); +private: + virtual std::auto_ptr doClone() const; }; + +} // namespace lyx + #endif