2 * \file insetfootlike.C
3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
6 * \author Lars Gullik Bjønnes
8 * Full author contact details are available in file CREDITS
13 #include "insetfootlike.h"
17 #include "support/LOstream.h"
23 InsetFootlike::InsetFootlike(BufferParams const & bp)
24 : InsetCollapsable(bp)
26 LyXFont font(LyXFont::ALL_SANE);
29 font.setColor(LColor::collapsable);
34 InsetFootlike::InsetFootlike(InsetFootlike const & in)
35 : InsetCollapsable(in)
37 LyXFont font(LyXFont::ALL_SANE);
40 font.setColor(LColor::collapsable);
45 void InsetFootlike::write(Buffer const * buf, ostream & os) const
47 os << getInsetName() << "\n";
48 InsetCollapsable::write(buf, os);
52 bool InsetFootlike::insetAllowed(InsetOld::Code code) const
54 if (code == InsetOld::FOOT_CODE || code == InsetOld::MARGIN_CODE
55 || code == InsetOld::FLOAT_CODE)
57 return InsetCollapsable::insetAllowed(code);