- pos_type rowBreakPoint(
- int width,
- pit_type const pit,
- pos_type first
- ) const;
-
- /// returns 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;
-
- /// draw selection for a single row
- void drawRowSelection(PainterInfo & pi, int x, Row const & row,
- Cursor const & cur, pit_type const pit) const;
+ /// \return true when another row is required (after a newline)
+ bool breakRow(Row & row, int right_margin) 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);
+