- bool gotoNextInset(BufferView *, std::vector<Inset::Code> const & codes,
- string const & contents = string()) const;
- ///
-
- /* for the greater insets */
-
- /// returns false if inset wasn't found
- bool updateInset(BufferView *, Inset *);
- ///
- void checkParagraph(BufferView *, Paragraph * par,
- Paragraph::size_type pos);
- ///
- int numberOfCell(Paragraph * par,
- Paragraph::size_type pos) const;
- ///
- void removeTableRow(LyXCursor & cursor) const;
- ///
- bool isEmptyTableCell() const;
- ///
- void toggleAppendix(BufferView *);
- ///
- int workWidth(BufferView *) const;
- ///
- void computeBidiTables(Buffer const *, Row * row) const;
-
- /// Maps positions in the visual string to positions in logical string.
- inline
- Paragraph::size_type log2vis(Paragraph::size_type pos) const {
- if (bidi_start == -1)
- return pos;
- else
- return log2vis_list[pos-bidi_start];
- }
-
- /// Maps positions in the logical string to positions in visual string.
- inline
- Paragraph::size_type vis2log(Paragraph::size_type pos) const {
- if (bidi_start == -1)
- return pos;
- else
- return vis2log_list[pos-bidi_start];
- }
- ///
- inline
- Paragraph::size_type bidi_level(Paragraph::size_type pos) const {
- if (bidi_start == -1)
- return 0;
- else
- return bidi_levels[pos-bidi_start];
- }
- ///
- inline
- bool bidi_InRange(Paragraph::size_type pos) const {
- return bidi_start == -1 ||
- (bidi_start <= pos && pos <= bidi_end);
- }
-private: