Lines Matching refs:box
4 function ta_left(&$box, &$context, $lastline) { argument
8 function ta_center(&$box, &$context, $lastline) { argument
9 $delta = $box->_line_length_delta($context) / 2;
11 $size = count($box->_line);
13 $box->_line[$i]->offset($delta, 0);
16 $first_box =& $box->_line[0];
22 function ta_right(&$box, &$context, $lastline) { argument
23 $delta = $box->_line_length_delta($context);
25 $size = count($box->_line);
27 $box->_line[$i]->offset($delta, 0);
30 $first_box =& $box->_line[0];
36 function ta_justify(&$box, &$context, $lastline) { argument
43 if (count($box->_line) < 2) {
48 $delta = $box->_line_length_delta($context);
52 if (count($box->content) > 0) {
53 if ($box->content[0]->uid === $box->_line[0]->uid) {
54 $delta -= $box->text_indent->calculate($box);
59 if ($delta > $box->_line_length() * MAX_JUSTIFY_FRACTION) {
65 $size = count($box->_line);
72 if (is_a($box->_line[$i],"WhitespaceBox")) {
85 $size = count($box->_line);
93 $box->_line[$i]->offset($offset * $num_whitespaces, 0);
95 if (is_a($box->_line[$i],"WhitespaceBox")) {