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"
16 #include "metricsinfo.h"
21 InsetFootlike::InsetFootlike(BufferParams const & bp)
22 : InsetCollapsable(bp)
24 LyXFont font(LyXFont::ALL_SANE);
27 font.setColor(LColor::collapsable);
32 InsetFootlike::InsetFootlike(InsetFootlike const & in)
33 : InsetCollapsable(in)
35 LyXFont font(LyXFont::ALL_SANE);
38 font.setColor(LColor::collapsable);
43 void InsetFootlike::metrics(MetricsInfo & mi, Dimension & dim) const
45 InsetCollapsable::metrics(mi, dim);
47 dim.wid = mi.base.textwidth;
52 void InsetFootlike::write(Buffer const & buf, ostream & os) const
54 os << getInsetName() << "\n";
55 InsetCollapsable::write(buf, os);
59 bool InsetFootlike::insetAllowed(InsetOld::Code code) const
61 if (code == InsetOld::FOOT_CODE || code == InsetOld::MARGIN_CODE
62 || code == InsetOld::FLOAT_CODE)
64 return InsetCollapsable::insetAllowed(code);