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"
24 InsetFootlike::InsetFootlike()
27 LyXFont font(LyXFont::ALL_SANE);
30 font.setColor(LColor::collapsable);
33 setAutoCollapse(false);
38 void InsetFootlike::write(Buffer const * buf, std::ostream & os) const
40 os << getInsetName() << "\n";
41 InsetCollapsable::write(buf, os);
45 bool InsetFootlike::insetAllowed(Inset::Code code) const
47 if ((code == Inset::FOOT_CODE) || (code == Inset::MARGIN_CODE)
48 || (code ==Inset::FLOAT_CODE))
50 return InsetCollapsable::insetAllowed(code);