int Tabular::rowHeight(idx_type cell) const
{
- row_type const span = rowSpan(cell);
- row_type const row = cellRow(cell);
- int h = rowAscent(row) + rowDescent(row);
-
- for(row_type r = row; r < row + span ; ++r) {
- if (r > row) {
- h += rowAscent(r);
- h += interRowSpace(r);
- }
- if (r < row + span - 1)
- h += rowDescent(r);
- }
- return h;
+ row_type const span = rowSpan(cell);
+ row_type const row = cellRow(cell);
+ int h = rowAscent(row) + rowDescent(row);
+
+ for(row_type r = row; r < row + span ; ++r) {
+ if (r > row) {
+ h += rowAscent(r);
+ h += interRowSpace(r);
+ }
+ if (r < row + span - 1)
+ h += rowDescent(r);
+ }
+ return h;
}
///
void resetPos(Cursor & cur) const;
///
- void removeTabularRow();
- ///
bool copySelection(Cursor & cur);
///
bool pasteClipboard(Cursor & cur);