]> git.lyx.org Git - lyx.git/blob - src/mathed/button_inset.h
fix #1073
[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
18 #include "math_nestinset.h"
19
20 /// try to implement the button-like insets "natively" for mathed
21 class ButtonInset: public MathNestInset {
22 public:
23         ///
24         ButtonInset();
25         ///
26         void metrics(MetricsInfo & mi) const;
27         ///
28         void draw(PainterInfo & pi, int x, int y) const;
29
30 protected:
31         /// This should provide the text for the button
32         virtual string screenLabel() const = 0;
33 };
34
35 #endif