]> git.lyx.org Git - lyx.git/blob - src/insets/InsetFoot.h
Revert "The foot inset does not inherit fonts"
[lyx.git] / src / insets / InsetFoot.h
1 // -*- C++ -*-
2 /**
3  * \file InsetFoot.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Jürgen Vigna
8  * \author Lars Gullik Bjønnes
9  *
10  * Full author contact details are available in file CREDITS.
11  */
12
13 #ifndef INSETFOOT_H
14 #define INSETFOOT_H
15
16 #include "InsetFootlike.h"
17
18
19 namespace lyx {
20
21 /** The footnote inset
22
23 */
24 class InsetFoot : public InsetFootlike
25 {
26 public:
27         ///
28         explicit InsetFoot(Buffer *);
29 private:
30         ///
31         InsetCode lyxCode() const override { return FOOT_CODE; }
32         ///
33         docstring layoutName() const override;
34         ///
35         int plaintext(odocstringstream & ods, OutputParams const & op,
36                       size_t max_length = INT_MAX) const override;
37         ///
38         void docbook(XMLStream &, OutputParams const &) const override;
39         ///
40         void validate(LaTeXFeatures & features) const override;
41         /// Update the counters of this inset and of its contents
42         void updateBuffer(ParIterator const &, UpdateType, bool const deleted = false) override;
43         ///
44         docstring toolTip(BufferView const & bv, int x, int y) const override;
45         ///
46         Inset * clone() const override { return new InsetFoot(*this); }
47         ///
48         bool inheritFont() const override { return true; }
49         ///
50         bool allowMultiPar() const override { return true; }
51         ///
52         docstring custom_label_;
53         ///
54         bool intitle_;
55         ///
56         bool infloattable_;
57 };
58
59
60 } // namespace lyx
61
62 #endif