- std::string currentState();
-
- //
- // access to the 'current' cursor slice
- //
- /// the containing inset
- InsetBase * inset() const { return current().inset(); }
- /// return the cell of the inset this cursor is in
- idx_type idx() const { return current().idx(); }
- /// return the cell of the inset this cursor is in
- idx_type & idx() { return current().idx(); }
- /// return the last possible cell in this inset
- idx_type lastidx() const;
- /// return the paragraph this cursor is in
- par_type par() const { return current().par(); }
- /// return the paragraph this cursor is in
- par_type & par() { return current().par(); }
- /// return the last possible paragraph in this inset
- par_type lastpar() const;
- /// return the position within the paragraph
- pos_type pos() const { return current().pos(); }
- /// return the position within the paragraph
- pos_type & pos() { return current().pos(); }
- /// return the last position within the paragraph
- pos_type lastpos() const;
- /// return the display row of the cursor with in the current par
- row_type crow() const;
- /// return the display row of the cursor with in the current par
- row_type lastcrow() const;
-
- /// return the number of embedded cells
- size_t nargs() const;
- /// return the number of embedded cells
- size_t ncols() const;
- /// return the number of embedded cells
- size_t nrows() const;
- /// return the grid row of the current cell
- row_type row() const;
- /// return the last row of the current grid
- row_type lastrow() const { return nrows() - 1; }
- /// return the grid column of the current cell
- col_type col() const;
- /// return the last column of the current grid
- col_type lastcol() const { return ncols() - 1; }
- /// the inset just behind the cursor
- InsetBase * nextInset();
- /// the inset just in front of the cursor
- InsetBase * prevInset();
- /// the inset just in front of the cursor
- InsetBase const * prevInset() const;