- int labelFill(pit_type const pit, Row const & row) const;
-
- /// FIXME??
- int labelEnd(pit_type const pit) const;
-
- /// sets row.end to the pos value *after* which a row should break.
- /// for example, the pos after which isNewLine(pos) == true
- pit_type rowBreakPoint(
- int width,
- pit_type const pit,
- pit_type first
- ) const;
-
- /// sets row.width to the minimum space a row needs on the screen in pixel
- int rowWidth(
- int right_margin,
- pit_type const pit,
- pos_type const first,
- pos_type const end
- ) const;
-
- /// Calculate and set the height of the row
- boost::tuple<int, int> rowHeight(
- pit_type const pit,
- pos_type const first,
- pos_type const end
- ) const;
-
- /// draw selection for a single row
- void drawRowSelection(PainterInfo & pi, int x, Row const & row,
- DocIterator const & beg, DocIterator const & end,
- bool drawOnBegMargin, bool drawOnEndMargin) const;
+ int labelFill(Row const & row) const;
+
+ // Turn paragraph oh index \c pit into a single row
+ Row tokenizeParagraph(pit_type pit) const;
+
+ // Break the row produced by tokenizeParagraph() into a list of rows.
+ RowList breakParagraph(Row const & row) const;
+
+ // Expands the alignment of row \param row in paragraph \param par
+ LyXAlignment getAlign(Paragraph const & par, Row const & row) const;
+ /// Aligns properly the row contents (computes spaces and fills)
+ void setRowAlignment(Row & row, int width) const;
+
+ /// Set the height of the row (without space above/below paragraph)
+ void setRowHeight(Row & row) const;
+ // Compute the space on top of a paragraph
+ int parTopSpacing(pit_type pit) const;
+ // Compute the space below a a paragraph
+ int parBottomSpacing(pit_type pit) const;
+
+ // Helper function for the other checkInsetHit method.
+ InsetList::Element * checkInsetHit(pit_type pit, int x, int y);
+