]> git.lyx.org Git - lyx.git/blob - src/insets/insetfootlike.C
ea4da1ef0f447e3fdc97266c98bbe687f03b9732
[lyx.git] / src / insets / insetfootlike.C
1 /* This file is part of
2  * ======================================================
3  * 
4  *           LyX, The Document Processor
5  *       
6  *          Copyright 2000-2001 The LyX Team.
7  *
8  * ======================================================
9  */
10
11 #include <config.h>
12
13 #ifdef __GNUG__
14 #pragma implementation
15 #endif
16
17 #include "insetfootlike.h"
18 #include "lyxfont.h"
19 #include "buffer.h"
20 #include "lyxtext.h"
21 #include "support/LOstream.h"
22
23
24 InsetFootlike::InsetFootlike()
25         : InsetCollapsable()
26 {
27         LyXFont font(LyXFont::ALL_SANE);
28         font.decSize();
29         font.decSize();
30         font.setColor(LColor::collapsable);
31         setLabelFont(font);
32 #if 0
33         setAutoCollapse(false);
34 #endif
35 }
36
37
38 void InsetFootlike::write(Buffer const * buf, std::ostream & os) const 
39 {
40         os << getInsetName() << "\n";
41         InsetCollapsable::write(buf, os);
42 }
43
44
45 bool InsetFootlike::insetAllowed(Inset::Code code) const
46 {
47         if ((code == Inset::FOOT_CODE) || (code == Inset::MARGIN_CODE)
48             || (code ==Inset::FLOAT_CODE))
49                 return false;
50         return InsetCollapsable::insetAllowed(code);
51 }