1 /* This file is part of
2 * ======================================================
4 * LyX, The Document Processor
6 * Copyright 2000-2001 The LyX Team.
8 * ======================================================
14 #pragma implementation
17 #include "insetfootlike.h"
21 #include "support/LOstream.h"
27 InsetFootlike::InsetFootlike(BufferParams const & bp)
28 : InsetCollapsable(bp)
30 LyXFont font(LyXFont::ALL_SANE);
33 font.setColor(LColor::collapsable);
38 InsetFootlike::InsetFootlike(InsetFootlike const & in, bool same_id)
39 : InsetCollapsable(in, same_id)
41 LyXFont font(LyXFont::ALL_SANE);
44 font.setColor(LColor::collapsable);
49 void InsetFootlike::write(Buffer const * buf, ostream & os) const
51 os << getInsetName() << "\n";
52 InsetCollapsable::write(buf, os);
56 bool InsetFootlike::insetAllowed(Inset::Code code) const
58 if ((code == Inset::FOOT_CODE) || (code == Inset::MARGIN_CODE)
59 || (code ==Inset::FLOAT_CODE))
61 return InsetCollapsable::insetAllowed(code);