/* This file is part of
* ======================================================
- *
+ *
* LyX, The Document Processor
- *
+ *
* Copyright 1995 Matthias Ettrich
* Copyright 2000-2001 The LyX Team.
*
int InsetButton::ascent(BufferView * bv, LyXFont const &) const
{
lyx::Assert(bv);
-
+
LyXFont font(LyXFont::ALL_SANE);
font.decSize();
-
+
int width;
int ascent;
int descent;
- string const s = getScreenLabel(bv->buffer());
+ string const s = getScreenLabel(bv->buffer());
- if (editable()) {
+ if (editable()) {
lyxfont::buttonText(s, font, width, ascent, descent);
} else {
lyxfont::rectText(s, font, width, ascent, descent);
int InsetButton::descent(BufferView * bv, LyXFont const &) const
{
lyx::Assert(bv);
-
+
LyXFont font(LyXFont::ALL_SANE);
font.decSize();
-
+
int width;
int ascent;
int descent;
- string const s = getScreenLabel(bv->buffer());
+ string const s = getScreenLabel(bv->buffer());
- if (editable()) {
+ if (editable()) {
lyxfont::buttonText(s, font, width, ascent, descent);
} else {
lyxfont::rectText(s, font, width, ascent, descent);
LyXFont font(LyXFont::ALL_SANE);
font.decSize();
-
+
int width;
int ascent;
int descent;
- string const s = getScreenLabel(bv->buffer());
+ string const s = getScreenLabel(bv->buffer());
- if (editable()) {
+ if (editable()) {
lyxfont::buttonText(s, font, width, ascent, descent);
} else {
lyxfont::rectText(s, font, width, ascent, descent);
int baseline, float & x, bool) const
{
lyx::Assert(bv);
-
+
Painter & pain = bv->painter();
// Draw it as a box with the LaTeX text
LyXFont font(LyXFont::ALL_SANE);