]> git.lyx.org Git - lyx.git/blob - src/insets/InsetFootlike.h
dfacbe9900fa8e6ff53f819353574e01f1d40e43
[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 "InsetCollapsable.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 InsetCollapsable {
24 public:
25         ///
26         InsetFootlike(BufferParams const &);
27         ///
28         InsetFootlike(InsetFootlike const &);
29         ///
30         void metrics(MetricsInfo &, Dimension &) const;
31         ///
32         void draw(PainterInfo & pi, int x, int y) const;
33         ///
34         void write(Buffer const & buf, std::ostream & os) const;
35         ///
36         bool isMacroScope(Buffer const &) const { return true; }
37         ///
38         bool insetAllowed(InsetCode) const;
39         /** returns true if, when outputing LaTeX, font changes should
40             be closed before generating this inset. This is needed for
41             insets that may contain several paragraphs */
42         bool noFontChange() const { return true; }
43 };
44
45
46 } // namespace lyx
47
48 #endif