X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetFootlike.cpp;h=afd23295307bb8d33da8bc6b29f4219728108ca9;hb=55a3dd7b346d29a52ba305a4558e9e380ef50f47;hp=c0647b0824f99b6bafcbabc9ef4c1f0f9d137df1;hpb=a8cd9a4b8fd325b00c75f601c66c6d618ba276db;p=lyx.git diff --git a/src/insets/InsetFootlike.cpp b/src/insets/InsetFootlike.cpp index c0647b0824..afd2329530 100644 --- a/src/insets/InsetFootlike.cpp +++ b/src/insets/InsetFootlike.cpp @@ -3,7 +3,7 @@ * 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. */ @@ -15,20 +15,18 @@ #include "Buffer.h" #include "BufferView.h" #include "BufferParams.h" +#include "Font.h" #include "MetricsInfo.h" #include -namespace lyx { - +using namespace std; -InsetFootlike::InsetFootlike(BufferParams const & bp) - : InsetCollapsable(bp) -{} +namespace lyx { -InsetFootlike::InsetFootlike(InsetFootlike const & in) - : InsetCollapsable(in) +InsetFootlike::InsetFootlike(Buffer * buf) + : InsetCollapsable(buf) {} @@ -50,10 +48,10 @@ void InsetFootlike::draw(PainterInfo & pi, int x, int y) const } -void InsetFootlike::write(Buffer const & buf, std::ostream & os) const +void InsetFootlike::write(ostream & os) const { - os << to_utf8(name()) << "\n"; - InsetCollapsable::write(buf, os); + os << to_utf8(layoutName()) << "\n"; + InsetCollapsable::write(os); }