}
-void InsetNewline::dimension(BufferView *, LyXFont const & font,
- Dimension & dim) const
+void InsetNewline::metrics(MetricsInfo & mi, Dimension & dim) const
{
+ LyXFont & font = mi.base.font;
dim.asc = font_metrics::maxAscent(font);
dim.des = font_metrics::maxDescent(font);
dim.wid = font_metrics::width('n', font);
+ dim_ = dim;
}
}
-int InsetNewline::linuxdoc(Buffer const *, std::ostream &) const
+int InsetNewline::linuxdoc(Buffer const *, std::ostream & os) const
{
- /* FIXME */
+ os << '\n';
return 0;
}
-int InsetNewline::docbook(Buffer const *, std::ostream &, bool) const
+int InsetNewline::docbook(Buffer const *, std::ostream & os, bool) const
{
- /* FIXME */
+ os << '\n';
return 0;
}