- int w = font.textWidth("x", 1);
- int ox = font.textWidth(" ", 1) + int(x);
- int h = font.ascent('x');
- XPoint p[4];
- p[0].x = ox; p[0].y = baseline;
- p[1].x = ox; p[1].y = baseline - h;
- p[2].x = ox + w;p[2].y = baseline - h/2;
- p[3].x = ox; p[3].y = baseline;
- scr.drawLines(getGC(gc_copy), p, 4);
- x += Width(font);
+ int w = lyxfont::width('x', font);
+ int ox = lyxfont::width(' ', font) + int(x);
+ int h = lyxfont::ascent('x', font);
+ int xp[4], yp[4];
+
+ xp[0] = ox; yp[0] = baseline;
+ xp[1] = ox; yp[1] = baseline - h;
+ xp[2] = ox + w; yp[2] = baseline - h/2;
+ xp[3] = ox; yp[3] = baseline;
+
+ pain.lines(xp, yp, 4, LColor::special);
+ x += width(bv, font);
+ break;
+ }
+ case PROTECTED_SEPARATOR:
+ {
+ float w = width(bv, font);
+ int h = lyxfont::ascent('x', font);
+ int xp[4], yp[4];
+
+ xp[0] = int(x);
+ yp[0] = baseline - max(h / 4, 1);
+
+ xp[1] = int(x);
+ yp[1] = baseline;
+
+ xp[2] = int(x + w);
+ yp[2] = baseline;
+
+ xp[3] = int(x + w);
+ yp[3] = baseline - max(h / 4, 1);
+
+ pain.lines(xp, yp, 4, LColor::special);
+ x += w;
+ break;