-namespace lyx {
-
-
-MetricsBase::MetricsBase()
- : bv(0), font(), style(LM_ST_TEXT), fontname("mathnormal"),
- textwidth(0)
-{}
-
-
-MetricsBase::MetricsBase(BufferView * b, FontInfo const & f, int w)
- : bv(b), font(f), style(LM_ST_TEXT), fontname("mathnormal"),
- textwidth(w)
-{}
-
-
-MetricsInfo::MetricsInfo(BufferView * bv, FontInfo const & font, int textwidth,
- MacroContext const & mc)
- : base(bv, font, textwidth), macrocontext(mc)
-{}
-
-
-PainterInfo::PainterInfo(BufferView * bv, lyx::frontend::Painter & painter)
- : pain(painter), ltr_pos(false), erased_(false), full_repaint(true),
- background_color(Color_background)
-{
- base.bv = bv;
-}
-
-
-void PainterInfo::draw(int x, int y, char_type c)
-{
- pain.text(x, y, c, base.font);
-}