2001-02-13 13:28:32 +00:00
|
|
|
#ifndef MATH_DECORATIONINSET_H
|
|
|
|
#define MATH_DECORATIONINSET_H
|
|
|
|
|
|
|
|
#include "math_parinset.h"
|
|
|
|
|
2001-02-16 09:25:43 +00:00
|
|
|
/** Decorations over (below) a math object
|
|
|
|
\author Alejandro Aguilar Sierra
|
|
|
|
*/
|
2001-02-13 13:28:32 +00:00
|
|
|
class MathDecorationInset: public MathParInset {
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
MathDecorationInset(int, short st = LM_ST_TEXT);
|
|
|
|
///
|
|
|
|
MathedInset * Clone();
|
|
|
|
///
|
|
|
|
void draw(Painter &, int, int);
|
|
|
|
///
|
|
|
|
void Write(std::ostream &, bool fragile);
|
|
|
|
///
|
|
|
|
void Metrics();
|
|
|
|
///
|
2001-02-13 16:40:19 +00:00
|
|
|
bool GetLimits() const;
|
2001-02-16 09:25:43 +00:00
|
|
|
private:
|
2001-02-13 13:28:32 +00:00
|
|
|
///
|
2001-02-16 09:25:43 +00:00
|
|
|
int deco_;
|
2001-02-13 13:28:32 +00:00
|
|
|
///
|
2001-02-16 09:25:43 +00:00
|
|
|
bool upper_;
|
2001-02-13 13:28:32 +00:00
|
|
|
///
|
2001-02-16 09:25:43 +00:00
|
|
|
int dw_;
|
|
|
|
///
|
|
|
|
int dh_;
|
|
|
|
///
|
|
|
|
int dy_;
|
2001-02-13 13:28:32 +00:00
|
|
|
};
|
|
|
|
#endif
|