-/// Description of a position
-class MathCursorPos {
-public:
- ///
- MathCursorPos();
- ///
- explicit MathCursorPos(MathInset * p);
-
- /// returns cell corresponding to this position
- MathArray & cell() const;
- /// returns cell corresponding to this position
- MathArray & cell(MathInset::idx_type idx) const;
- /// returns xcell corresponding to this position
- MathXArray & xcell() const;
- /// returns xcell corresponding to this position
- MathXArray & xcell(MathInset::idx_type idx) const;
- ///
- int xpos() const;
- ///
- int ypos() const;
-
-public:
- /// pointer to an inset
- MathInset * par_;
- /// cell index of a position in this inset
- MathInset::idx_type idx_;
- /// position in this cell
- MathInset::pos_type pos_;
-};
-
-/// test for equality
-bool operator==(MathCursorPos const &, MathCursorPos const &);
-/// test for inequality
-bool operator!=(MathCursorPos const &, MathCursorPos const &);
-/// test for order
-bool operator<(MathCursorPos const &, MathCursorPos const &);
-/// output
-std::ostream & operator<<(std::ostream &, MathCursorPos const &);
-
-
-/// see above