]> git.lyx.org Git - lyx.git/blob - src/insets/InsetFootlike.h
Fix bug #12795
[lyx.git] / src / insets / InsetFootlike.h
1 // -*- C++ -*-
2 /**
3  * \file InsetFootlike.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Lars Gullik Bjønnes
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef INSETFOOTLIKE_H
13 #define INSETFOOTLIKE_H
14
15 #include "InsetCollapsible.h"
16
17
18 namespace lyx {
19
20 // To have this class is probably a bit overkill... (Lgb)
21
22 // The footnote inset
23 class InsetFootlike : public InsetCollapsible {
24 public:
25         ///
26         explicit InsetFootlike(Buffer *);
27         ///
28         bool hasSettings() const override { return false; }
29 private:
30         ///
31         void write(std::ostream & os) const override;
32         ///
33         bool insetAllowed(InsetCode) const override;
34         /** returns false if, when outputting LaTeX, font changes should
35             be closed before generating this inset. This is needed for
36             insets that may contain several paragraphs */
37         bool inheritFont() const override { return false; }
38 };
39
40
41 } // namespace lyx
42
43 #endif