#ifndef MATH_BIGOPINSET_H
#define MATH_BIGOPINSET_H
-#include "math_inset.h"
-#include "math_defs.h"
+#include "math_updowninset.h"
/// big operators
-class MathBigopInset : public MathedInset {
+class MathBigopInset : public MathUpDownInset {
public:
///
- MathBigopInset(string const &, int, short st = LM_ST_TEXT);
+ MathBigopInset(string const &, int);
///
- MathedInset * Clone();
+ MathInset * clone() const;
///
- void draw(Painter &, int, int);
+ void Write(std::ostream &, bool fragile) const;
///
- void Write(std::ostream &, bool fragile);
+ void WriteNormal(std::ostream &) const;
///
- void WriteNormal(std::ostream &);
+ void Metrics(MathStyles st, int asc = 0, int des = 0);
///
- void Metrics();
+ void draw(Painter &, int, int);
///
- bool GetLimits() const;
+ void limits(int);
///
- void SetLimits(bool);
+ int limits() const;
+ /// Identifies BigopInsets
+ bool isBigopInset() const { return true; }
private:
///
- int lims_;
+ bool hasLimits() const;
///
int sym_;
+ ///
+ string ssym_;
+ ///
+ MathTextCodes code_;
+ /// 1: \limits, -1: \nolimits, 0: use default
+ int limits_;
+ /// x offset for drawing the superscript
+ int dx0_;
+ /// x offset for drawing the subscript
+ int dx1_;
+ /// x offset for drawing the inner symbol
+ int dxx_;
};
#endif