2 /* This file is part of*
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1995 Matthias Ettrich
8 * Copyright 2000 The LyX Team.
10 * ====================================================== */
12 #ifndef INSET_BUTTON_H
13 #define INSET_BUTTON_H
22 /** Used to provide an inset that looks like a button.
24 class InsetButton: public Inset {
27 int ascent(BufferView *, LyXFont const &) const;
29 int descent(BufferView *, LyXFont const &) const;
31 int width(BufferView *, LyXFont const &) const;
33 void draw(BufferView *, LyXFont const &, int, float &, bool) const;
36 /// This should provide the text for the button
37 virtual string getScreenLabel() const = 0;