2 * \file InsetFootlike.cpp
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 "BufferView.h"
17 #include "BufferParams.h"
19 #include "MetricsInfo.h"
21 #include "support/lstrings.h"
31 InsetFootlike::InsetFootlike(Buffer * buf)
32 : InsetCollapsible(buf)
36 void InsetFootlike::write(ostream & os) const
38 // The layoutName may contain a "InTitle" qualifier
39 os << to_utf8(token(layoutName(), char_type(':'), 0)) << "\n";
40 InsetCollapsible::write(os);
44 bool InsetFootlike::insetAllowed(InsetCode code) const
46 if (code == FOOT_CODE || code == MARGIN_CODE || code == FLOAT_CODE)
48 return InsetCollapsible::insetAllowed(code);