#include <boost/assert.hpp>
+using lyx::char_type;
+using lyx::docstring;
+
using std::string;
-PainterInfo::PainterInfo(BufferView * bv, Painter & painter)
- : pain(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, docstring const & str)
+{
+ pain.text(x, y, str, base.font);
+}
+
+
Styles smallerScriptStyle(Styles st)
{
switch (st) {
: Changer<MetricsBase>(mb)
{
static const int diff[4][4] =
- { { 0, 0, -3, -5 },
- { 0, 0, -3, -5 },
- { 3, 3, 0, -2 },
- { 5, 5, 2, 0 } };
+ { { 0, 0, -3, -5 },
+ { 0, 0, -3, -5 },
+ { 3, 3, 0, -2 },
+ { 5, 5, 2, 0 } };
save_ = mb;
int t = diff[mb.style][style];
if (t > 0)