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
14 #include "insetfootlike.h"
18 #include "support/LOstream.h"
24 InsetFootlike::InsetFootlike(BufferParams const & bp)
25 : InsetCollapsable(bp)
27 LyXFont font(LyXFont::ALL_SANE);
30 font.setColor(LColor::collapsable);
35 InsetFootlike::InsetFootlike(InsetFootlike const & in)
36 : InsetCollapsable(in)
38 LyXFont font(LyXFont::ALL_SANE);
41 font.setColor(LColor::collapsable);
46 // InsetFootlike::InsetFootlike(InsetFootlike const & in, bool same_id)
47 // : InsetCollapsable(in, same_id)
49 // LyXFont font(LyXFont::ALL_SANE);
52 // font.setColor(LColor::collapsable);
53 // setLabelFont(font);
57 void InsetFootlike::write(Buffer const * buf, ostream & os) const
59 os << getInsetName() << "\n";
60 InsetCollapsable::write(buf, os);
64 bool InsetFootlike::insetAllowed(Inset::Code code) const
66 if ((code == Inset::FOOT_CODE) || (code == Inset::MARGIN_CODE)
67 || (code == Inset::FLOAT_CODE))
69 return InsetCollapsable::insetAllowed(code);