+// -*- C++ -*-
#ifndef MATH_DECORATIONINSET_H
#define MATH_DECORATIONINSET_H
-#include "math_parinset.h"
+#include "math_inset.h"
-/// Decorations over (below) a math object
-class MathDecorationInset: public MathParInset {
+#ifdef __GNUG__
+#pragma interface
+#endif
+
+/** Decorations and accents over (below) a math object
+ \author Alejandro Aguilar Sierra
+ */
+class MathDecorationInset : public MathInset {
public:
///
- MathDecorationInset(int, short st = LM_ST_TEXT);
+ MathDecorationInset(string const & name, int);
///
- MathedInset * Clone();
+ MathInset * clone() const;
///
void draw(Painter &, int, int);
///
- void Write(std::ostream &, bool fragile);
- ///
- void Metrics();
+ void Write(std::ostream &, bool fragile) const;
///
- bool GetLimits() const;
-protected:
+ void Metrics(MathStyles st, int asc = 0, int des = 0);
///
- int deco;
+ void WriteNormal(std::ostream & os) const;
+private:
///
- bool upper;
+ int deco_;
///
- int dw, dh, dy;
+ bool upper_;
+ /// height of deco
+ int dh_;
+ /// vertical offset of deco
+ int dy_;
};
#endif