X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetFoot.h;h=1e4b0d26e83749e97e550ef6ceef6bbd5dab78e2;hb=eeb36e808c9726fd3689926a3c20457e3b801341;hp=7a6576b7bf4b8acc8b23ffa2a419902cf6a40fef;hpb=c3a8b3a566e9e90f9ade72acbc723232d721d0b1;p=lyx.git diff --git a/src/insets/InsetFoot.h b/src/insets/InsetFoot.h index 7a6576b7bf..1e4b0d26e8 100644 --- a/src/insets/InsetFoot.h +++ b/src/insets/InsetFoot.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. */ @@ -21,34 +21,39 @@ namespace lyx { /** The footnote inset */ -class InsetFoot : public InsetFootlike { +class InsetFoot : public InsetFootlike +{ public: /// - InsetFoot(BufferParams const &); - /// - InsetCode lyxCode() const { return FOOT_CODE; } + explicit InsetFoot(Buffer *); +private: /// - docstring name() const { return from_ascii("Foot"); } + InsetCode lyxCode() const override { return FOOT_CODE; } /// - int latex(Buffer const &, odocstream &, - OutputParams const &) const; + docstring layoutName() const override; /// - int plaintext(Buffer const &, odocstream &, - OutputParams const &) const; + int plaintext(odocstringstream & ods, OutputParams const & op, + size_t max_length = INT_MAX) const override; /// - int docbook(Buffer const &, odocstream &, - OutputParams const &) const; + void docbook(XMLStream &, OutputParams const &) const override; /// - virtual docstring const editMessage() const; + void validate(LaTeXFeatures & features) const override; /// Update the counters of this inset and of its contents - void updateLabels(Buffer const &, ParIterator const &); + void updateBuffer(ParIterator const &, UpdateType, bool const deleted = false) override; /// - void addToToc(Buffer const &, ParConstIterator const &) const; - -protected: - InsetFoot(InsetFoot const &); -private: - virtual Inset * clone() const; + docstring toolTip(BufferView const & bv, int x, int y) const override; + /// + Inset * clone() const override { return new InsetFoot(*this); } + /// + bool inheritFont() const override { return true; } + /// + bool allowMultiPar() const override { return true; } + /// + docstring custom_label_; + /// + bool intitle_; + /// + bool infloattable_; };