#include <boost/assert.hpp>
+using lyx::char_type;
+using lyx::docstring;
+
using std::string;
-PainterInfo::PainterInfo(BufferView * bv, Painter & painter)
+PainterInfo::PainterInfo(BufferView * bv, lyx::frontend::Painter & painter)
: pain(painter), ltr_pos(false), erased_(false)
{
base.bv = bv;
}
-void PainterInfo::draw(int x, int y, char c)
+void PainterInfo::draw(int x, int y, char_type c)
{
pain.text(x, y, c, base.font);
}
-void PainterInfo::draw(int x, int y, std::string const & str)
+void PainterInfo::draw(int x, int y, docstring const & str)
{
pain.text(x, y, str, base.font);
}