#include "lyxfont.h"
#include "BufferView.h"
#include "Painter.h"
+#include "lyxtext.h"
#include "support/LOstream.h"
using std::ostream;
}
+void InsetFoot::Write(Buffer const * buf, ostream & os) const
+{
+ os << getInsetName() << "\n";
+ InsetCollapsable::Write(buf, os);
+}
+
+
Inset * InsetFoot::Clone() const
{
- InsetFoot * result = new InsetFoot();
+ InsetFoot * result = new InsetFoot;
result->init(this);
result->collapsed = collapsed;
int InsetFoot::Latex(Buffer const * buf, ostream & os, bool fragile, bool fp) const
{
- os << "\\footnote{%" << endl;
+ os << "\\footnote{%\n";
int i = InsetText::Latex(buf, os, fragile, fp);
- os << "}%" << endl;
+ os << "}%\n";
return i + 2;
}
}
-LyXFont InsetFoot::GetDrawFont(Buffer const * buf, LyXParagraph * p, int pos) const
+LyXFont InsetFoot::GetDrawFont(BufferView * bv,LyXParagraph * p, int pos) const
{
- LyXFont fn = InsetCollapsable::GetDrawFont(buf, p, pos);
+ LyXFont fn = getLyXText(bv)->GetFont(bv->buffer(), p, pos);
fn.decSize().decSize();
return fn;
}