X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetFootlike.h;h=f4bcbdef19445eef05d42ee074a8dbb211cc4410;hb=131f4b92bac3ecb75b47c266dfa3d8543bd4d578;hp=bc1ce1ab9185f0c4f3112983b87af5ce46f546ea;hpb=c8d00ed1272cd489041bed2115081008b6a26489;p=lyx.git diff --git a/src/insets/InsetFootlike.h b/src/insets/InsetFootlike.h index bc1ce1ab91..f4bcbdef19 100644 --- a/src/insets/InsetFootlike.h +++ b/src/insets/InsetFootlike.h @@ -4,7 +4,7 @@ * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * - * \author Lars Gullik Bjønnes + * \author Lars Gullik Bjønnes * * Full author contact details are available in file CREDITS. */ @@ -12,7 +12,7 @@ #ifndef INSETFOOTLIKE_H #define INSETFOOTLIKE_H -#include "InsetCollapsable.h" +#include "InsetCollapsible.h" namespace lyx { @@ -20,24 +20,25 @@ namespace lyx { // To have this class is probably a bit overkill... (Lgb) // The footnote inset -class InsetFootlike : public InsetCollapsable { +class InsetFootlike : public InsetCollapsible { public: /// - InsetFootlike(BufferParams const &); + InsetFootlike(Buffer *); /// - InsetFootlike(InsetFootlike const &); + bool hasSettings() const { return false; } +private: /// - bool metrics(MetricsInfo &, Dimension &) const; + void metrics(MetricsInfo &, Dimension &) const; /// void draw(PainterInfo & pi, int x, int y) const; /// - void write(Buffer const & buf, std::ostream & os) const; + void write(std::ostream & os) const; /// - bool insetAllowed(InsetBase::Code) const; - /** returns true if, when outputing LaTeX, font changes should + bool insetAllowed(InsetCode) const; + /** returns false if, when outputing LaTeX, font changes should be closed before generating this inset. This is needed for insets that may contain several paragraphs */ - bool noFontChange() const { return true; } + bool inheritFont() const { return false; } };