lyx_mirror/src/mathed/button_inset.h

23 lines
431 B
C
Raw Normal View History

#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