* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
- * \author Lars Gullik Bjønnes
+ * \author Lars Gullik Bjønnes
*
* Full author contact details are available in file CREDITS.
*/
#include "Buffer.h"
#include "BufferView.h"
#include "BufferParams.h"
+#include "Font.h"
#include "MetricsInfo.h"
+#include "support/lstrings.h"
+
#include <iostream>
using namespace std;
namespace lyx {
+using support::token;
-InsetFootlike::InsetFootlike(Buffer const & buf)
+InsetFootlike::InsetFootlike(Buffer * buf)
: InsetCollapsable(buf)
{}
-InsetFootlike::InsetFootlike(InsetFootlike const & in)
- : InsetCollapsable(in)
-{}
-
-
void InsetFootlike::metrics(MetricsInfo & mi, Dimension & dim) const
{
FontInfo tmpfont = mi.base.font;
void InsetFootlike::write(ostream & os) const
{
- os << to_utf8(name()) << "\n";
+ // The layoutName may contain a "InTitle" qualifier
+ os << to_utf8(token(layoutName(), char_type(':'), 0)) << "\n";
InsetCollapsable::write(os);
}