Lines Matching full:col
124 struct roffcol *col; in tblcalc() local
153 icol = dp->layout->col; in tblcalc()
156 col = tbl->cols + icol; in tblcalc()
157 col->flags |= dp->layout->flags; in tblcalc()
169 if (col->width < dp->layout->width) in tblcalc()
170 col->width = dp->layout->width; in tblcalc()
172 (col->spacing == SIZE_MAX || in tblcalc()
173 col->spacing < dp->layout->spacing)) in tblcalc()
174 col->spacing = dp->layout->spacing; in tblcalc()
182 dp->hspans == 0 ? col : NULL, in tblcalc()
221 col = tbl->cols + icol; in tblcalc()
222 if (col->width < 1) in tblcalc()
223 col->width = 1; in tblcalc()
230 if (col->spacing == SIZE_MAX || icol == maxcol) in tblcalc()
231 col->spacing = 3; in tblcalc()
344 col = tbl->cols + icol; in tblcalc()
345 if (col->width > col->nwidth) in tblcalc()
346 col->decimal += (col->width - col->nwidth) / 2; in tblcalc()
347 if (col->flags & TBL_CELL_EQUAL) { in tblcalc()
349 if (ewidth < col->width) in tblcalc()
350 ewidth = col->width; in tblcalc()
352 if (col->flags & TBL_CELL_WMAX) in tblcalc()
355 xwidth += col->width; in tblcalc()
365 col = tbl->cols + icol; in tblcalc()
366 if ( ! (col->flags & TBL_CELL_EQUAL)) in tblcalc()
368 if (col->width == ewidth) in tblcalc()
371 xwidth += ewidth - col->width; in tblcalc()
372 col->width = ewidth; in tblcalc()
407 col = tbl->cols + icol; in tblcalc()
408 if ( ! (col->flags & TBL_CELL_WMAX)) in tblcalc()
410 col->width = (double)xwidth * ++necol / nxcol in tblcalc()
413 col->width--; in tblcalc()
414 ewidth += col->width; in tblcalc()
420 tblcalc_data(struct rofftbl *tbl, struct roffcol *col, in tblcalc_data() argument
431 if (col != NULL && col->width < sz) in tblcalc_data()
432 col->width = sz; in tblcalc_data()
438 return tblcalc_literal(tbl, col, dp, mw); in tblcalc_data()
440 return tblcalc_number(tbl, col, opts, dp); in tblcalc_data()
449 tblcalc_literal(struct rofftbl *tbl, struct roffcol *col, in tblcalc_literal() argument
480 if (col != NULL && col->width < msz) in tblcalc_literal()
481 col->width = msz; in tblcalc_literal()
486 tblcalc_number(struct rofftbl *tbl, struct roffcol *col, in tblcalc_number() argument
497 if (col == NULL) in tblcalc_number()
522 if (col != NULL && col->width < totsz) in tblcalc_number()
523 col->width = totsz; in tblcalc_number()
544 if (intsz > col->decimal) { in tblcalc_number()
545 col->nwidth += intsz - col->decimal; in tblcalc_number()
546 col->decimal = intsz; in tblcalc_number()
548 totsz += col->decimal - intsz; in tblcalc_number()
552 if (totsz > col->nwidth) in tblcalc_number()
553 col->nwidth = totsz; in tblcalc_number()
554 if (col->nwidth > col->width) in tblcalc_number()
555 col->width = col->nwidth; in tblcalc_number()