]> git.lyx.org Git - lyx.git/blob - src/mathed/button_inset.h
small up/down tweaking
[lyx.git] / src / mathed / button_inset.h
1 // -*- C++ -*-
2
3 /**
4  *  \file button_inset.h
5  *
6  *  This file is part of LyX, the document processor.
7  *  Licence details can be found in the file COPYING.
8  *
9  *  \author André Pönitz
10  *
11  *  Full author contact details are available in file CREDITS.
12  */
13
14 #ifndef BUTTON_INSET_H
15 #define BUTTON_INSET_H
16
17 #ifdef __GNUG__
18 #pragma interface
19 #endif
20
21 #include "math_nestinset.h"
22
23 /// try to implement the button-like insets "natively" for mathed
24 class ButtonInset: public MathNestInset {
25 public:
26         ///
27         ButtonInset();
28         ///
29         void metrics(MathMetricsInfo & mi) const;
30         ///
31         void draw(MathPainterInfo & pi, int x, int y) const;
32
33 protected:
34         /// This should provide the text for the button
35         virtual string screenLabel() const = 0;
36 };
37
38 #endif