]> git.lyx.org Git - lyx.git/blob - src/insets/insetbutton.h
Don't remove cell selections after fontchange.
[lyx.git] / src / insets / insetbutton.h
1 // -*- C++ -*-
2 /* This file is part of*
3  * ====================================================== 
4  *
5  *           LyX, The Document Processor
6  *       
7  *           Copyright 1995 Matthias Ettrich
8  *           Copyright 2000-2001 The LyX Team.
9  *
10  * ====================================================== */
11
12 #ifndef INSET_BUTTON_H
13 #define INSET_BUTTON_H
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "inset.h"
20 #include "LString.h"
21
22 /** Used to provide an inset that looks like a button.
23  */
24 class InsetButton: public Inset {
25 public:
26         ///
27         int ascent(BufferView *, LyXFont const &) const;
28         ///
29         int descent(BufferView *, LyXFont const &) const;
30         ///
31         int width(BufferView *, LyXFont const &) const;
32         ///
33         void draw(BufferView *, LyXFont const &, int, float &, bool) const;
34
35 protected:
36         /// This should provide the text for the button
37         virtual string const getScreenLabel(Buffer const *) const = 0;
38 };
39
40 #endif