class MathInset {
public:
/// short of anything else reasonable
- typedef MathArray::size_type size_type;
+ typedef MathArray::size_type size_type;
+ /// type for cursor positions differences within a cell
+ typedef MathArray::difference_type difference_type;
/// type for cursor positions within a cell
- typedef MathArray::size_type pos_type;
+ typedef MathArray::size_type pos_type;
/// type for cell indices
- typedef size_type idx_type;
+ typedef size_type idx_type;
/// type for row numbers
- typedef size_type row_type;
+ typedef size_type row_type;
/// type for column numbers
- typedef size_type col_type;
+ typedef size_type col_type;
/// our members behave nicely...
MathInset() {}
/// identifies certain types of insets
virtual MathArrayInset * asArrayInset() { return 0; }
virtual MathBoxInset * asBoxInset() { return 0; }
+ virtual MathBoxInset const * asBoxInset() const { return 0; }
virtual MathCharInset const * asCharInset() const { return 0; }
virtual MathDelimInset * asDelimInset() { return 0; }
virtual MathDelimInset const * asDelimInset() const { return 0; }