class MathNestInset : public MathDimInset {
public:
///
- explicit MathNestInset(int ncells);
+ explicit MathNestInset(idx_type ncells);
///
- void metrics(MathStyles st) const;
+ void metrics(MathMetricsInfo const & st) const;
/// draw the object, sets xo_ and yo_ cached values
void draw(Painter &, int x, int y) const;
/// appends itself with macro arguments substituted
- void substitute(MathArray & array, MathMacro const & macro) const;
+ void substitute(MathMacro const & macro);
+ /// identifies NestInsets
+ MathNestInset * asNestInset() { return this; }
/// The left key
- bool idxLeft(int & idx, int & pos) const;
+ bool idxLeft(idx_type & idx, pos_type & pos) const;
/// The right key
- bool idxRight(int & idx, int & pos) const;
+ bool idxRight(idx_type & idx, pos_type & pos) const;
/// Move one physical cell up
- bool idxNext(int & idx, int & pos) const;
+ bool idxNext(idx_type & idx, pos_type & pos) const;
/// Move one physical cell down
- bool idxPrev(int & idx, int & pos) const;
+ bool idxPrev(idx_type & idx, pos_type & pos) const;
/// Target pos when we enter the inset from the left by pressing "Right"
- bool idxFirst(int & idx, int & pos) const;
+ bool idxFirst(idx_type & idx, pos_type & pos) const;
/// Target pos when we enter the inset from the right by pressing "Left"
- bool idxLast(int & idx, int & pos) const;
+ bool idxLast(idx_type & idx, pos_type & pos) const;
/// Where should we go if we press home?
- bool idxHome(int & idx, int & pos) const;
+ bool idxHome(idx_type & idx, pos_type & pos) const;
/// Where should we go if we press end?
- bool idxEnd(int & idx, int & pos) const;
+ bool idxEnd(idx_type & idx, pos_type & pos) const;
///
- int nargs() const;
+ idx_type nargs() const;
///
- MathArray & cell(int);
+ MathArray & cell(idx_type);
///
- MathArray const & cell(int) const;
+ MathArray const & cell(idx_type) const;
///
- MathXArray & xcell(int);
+ MathXArray & xcell(idx_type);
///
- MathXArray const & xcell(int) const;
+ MathXArray const & xcell(idx_type) const;
///
bool isActive() const { return nargs() > 0; }
///
- void push_back(MathInset *);
+ void push_back(MathAtom const &);
///
void dump() const;