- {
- // A triangle the width and height of an 'x'
- 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);
- }
- }
-}
-#endif
-
-
-// In lyxf3 this will be just LaTeX
-void InsetSpecialChar::Write(ostream & os)
-{
- string command;
- switch (kind) {
- case HYPHENATION: command = "\\-"; break;
- case END_OF_SENTENCE: command = "\\@."; break;
- case LDOTS: command = "\\ldots{}"; break;
- case MENU_SEPARATOR: command = "\\menuseparator"; break;