int descent;
string const s = getScreenLabel(bv->buffer());
-#if 0
- if (editable()) {
- bv->painter().buttonText(0, 0, s, font,
- false, width, ascent, descent);
- } else {
- bv->painter().rectText(0, 0, s, font,
- LColor::commandbg, LColor::commandframe,
- false, width, ascent, descent);
- }
-#else
if (editable()) {
lyxfont::buttonText(s, font, width, ascent, descent);
} else {
lyxfont::rectText(s, font, width, ascent, descent);
}
-#endif
+
return ascent;
}
int descent;
string const s = getScreenLabel(bv->buffer());
-#if 0
- if (editable()) {
- bv->painter().buttonText(0, 0, s, font,
- false, width, ascent, descent);
- } else {
- bv->painter().rectText(0, 0, s, font,
- LColor::commandbg, LColor::commandframe,
- false, width, ascent, descent);
- }
-#else
if (editable()) {
lyxfont::buttonText(s, font, width, ascent, descent);
} else {
lyxfont::rectText(s, font, width, ascent, descent);
}
-#endif
+
return descent;
}
int descent;
string const s = getScreenLabel(bv->buffer());
-#if 0
- if (editable()) {
- bv->painter().buttonText(0, 0, s, font,
- false, width, ascent, descent);
- } else {
- bv->painter().rectText(0, 0, s, font,
- LColor::commandbg, LColor::commandframe,
- false, width, ascent, descent);
- }
-#else
if (editable()) {
lyxfont::buttonText(s, font, width, ascent, descent);
} else {
lyxfont::rectText(s, font, width, ascent, descent);
}
-#endif
+
return width + 4;
}
string const s = getScreenLabel(bv->buffer());
-#if 0
- int width;
- if (editable()) {
- pain.buttonText(int(x) + 2, baseline, s, font, true, width);
- } else {
- pain.rectText(int(x) + 2, baseline, s, font,
- LColor::commandbg, LColor::commandframe,
- true, width);
- }
-#else
if (editable()) {
pain.buttonText(int(x) + 2, baseline, s, font);
} else {
pain.rectText(int(x) + 2, baseline, s, font,
LColor::commandbg, LColor::commandframe);
}
-#endif
-#if 0
- x += width + 4;
-#else
x += width(bv, font);
-#endif
}