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 "metricsinfo.h"
18 #include "paragraph.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(InsetBase::Code code) const
54 if (code == InsetBase::FOOT_CODE || code == InsetBase::MARGIN_CODE
55 || code == InsetBase::FLOAT_CODE)
57 return InsetCollapsable::insetAllowed(code);