mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-24 10:40:48 +00:00
23 lines
431 B
C
23 lines
431 B
C
|
#ifndef BUTTON_INSET_H
|
||
|
#define BUTTON_INSET_H
|
||
|
|
||
|
#include "math_nestinset.h"
|
||
|
|
||
|
// Try to implement the reference inset "natively" for mathed.
|
||
|
|
||
|
class ButtonInset: public MathNestInset {
|
||
|
public:
|
||
|
///
|
||
|
ButtonInset();
|
||
|
///
|
||
|
void metrics(MathMetricsInfo & mi) const;
|
||
|
///
|
||
|
void draw(MathPainterInfo & pi, int x, int y) const;
|
||
|
|
||
|
protected:
|
||
|
/// This should provide the text for the button
|
||
|
virtual string screenLabel() const = 0;
|
||
|
};
|
||
|
|
||
|
#endif
|