Lines Matching refs:i

165     for ($i=0; $i<count($this->content); $i++) {
166 $this->content[$i]->parent =& $this;
168 for ($j=0; $j<count($this->content[$i]->content); $j++) {
169 $this->content[$i]->content[$j]->parent =& $this;
172 $this->content[$i]->content[$j]->column = $j;
175 $this->content[$i]->content[$j]->row = $i;
187 for ($i=0, $size = count($this->content); $i < $size; $i++) {
188 $this->rhc[$i] = new HCConstraint(null, null, null);
192 for ($i=0, $num_rows = count($this->content); $i < $num_rows; $i++) {
193 $row =& $this->content[$i];
202 $this->rhc[$i] = merge_height_constraint($this->rhc[$i], $cell->get_height_constraint());
218 for ($i=0, $num_cols = count($this->content[0]->content); $i < $num_cols; $i++) {
221 if (!isset($this->cwc[$i])) {
222 $this->cwc[$i] = new WCNone;
227 for ($i=0, $num_cols = count($this->content[0]->content); $i < $num_cols; $i++) {
231 $cell =& $this->content[$j]->content[$i];
237 $this->cwc[$i] = merge_width_constraint($this->cwc[$i], $cell->get_css_property(CSS_WIDTH));
248 for ($i=0, $num_cols = count($this->content[0]->content); $i < $num_cols; $i++) {
250 $wc =& $this->cwc[$i];
303 for ($i=0; $i<count($this->content); $i++) {
304 $row =& $this->content[$i];
306 $this->content[$i]->add_fake_cell_before(0, $pipeline);
313 for ($i=0; $i<count($this->content); $i++) {
314 $this->content[$i]->normalize($pipeline);
376 for ($i=0; $i<count($this->content); $i++) {
377 $length = max($length, count($this->content[$i]->content));
379 for ($i=0; $i<count($this->content); $i++) {
380 $row =& $this->content[$i];
407 for ($i=0, $size = count($item->content); $i < $size; $i++) {
408 $this->add_child($item->content[$i]);
455 for ($i=0; $i<count($this->content); $i++) {
456 $spans = array_merge($spans, $this->content[$i]->get_rowspans($i));
490 for ($i=0; $i<count($this->content); $i++) {
491 $heights[] = max($minheight, $this->content[$i]->row_height());
496 $hc = $this->get_rhc($i);
497 $cheights[] = $hc->apply($heights[$i], $this->content[$i], null);
506 for ($i=0; $i<count($heights); $i++) {
507 if ($flags[$i]) { $h -= $cheights[$i]; } else { $ch += $cheights[$i]; };
514 for ($i=0; $i<count($heights); $i++) {
515 if (!$flags[$i]) { $cheights[$i] *= $scale; };
525 for ($i=0; $i<count($cheights); $i++) {
526 if (!$flags[$i]) { $h -= $cheights[$i]; } else { $ch += $cheights[$i]; };
533 for ($i=0; $i<count($heights); $i++) {
534 if ($flags[$i]) { $cheights[$i] *= $scale; };
544 for ($i=0; $i<count($cheights); $i++) {
545 if ($flags[$i]) { $h -= $cheights[$i]; } else { $ch += $cheights[$i]; };
552 for ($i=0; $i<count($heights); $i++) {
553 if (!$flags[$i]) { $cheights[$i] *= $scale; };
559 for ($i=0; $i<count($heights); $i++) {
560 $heights[$i] = max($heights[$i], $cheights[$i]);
570 for ($i=0; $i<$size; $i++) {
571 $this->content[$i]->table_resize_row($heights[$i], $row_top);
572 $row_top -= $heights[$i];
667 for ($i=0; $i<$this->cols_count(); $i++) {
668 $cwc = $this->get_cwc($i);
671 min($cwc->apply_inverse($widths[$i], $base_width),
701 for ($i=0; $i<$this->cols_count(); $i++) {
702 $cwc = $this->get_cwc($i);
705 min($cwc->apply_inverse($widths[$i], $base_width),
785 for ($i=$colspan->column; $i < $colspan->column+$colspan->size; $i++) {
786 $spanned_widths[] = $widths[$i];
787 $spanned_resizable[] = ($minwc[$i] != $maxwc[$i]);
794 for ($i=0; $i<count($spanned_widths); $i++) {
795 $spanned_widths[$i] = EPSILON;
796 $spanned_resizable[$i] = true;
803 for ($i=0; $i<count($spanned_widths); $i++) {
804 $any_resizable |= $spanned_resizable[$i];
807 for ($i=0; $i<count($spanned_widths); $i++) {
808 $spanned_resizable[$i] = true;
826 for ($i=0; $i<count($this->content[0]->content); $i++) {
830 for ($i=0; $i<count($this->content); $i++) {
832 $roww = $this->content[$i]->get_table_columns_max_widths($context);
840 for ($i=0; $i<count($widths); $i++) {
841 $cwc = $this->get_cwc($i);
847 $widths[$i] = $cwc->apply($widths[$i], $this->get_width());
866 for ($i=0; $i<count($this->content[0]->content); $i++) {
871 for ($i=0; $i<$content_size; $i++) {
873 $roww = $this->content[$i]->get_table_columns_min_widths($context);
888 for ($i=0; $i<count($this->content); $i++) {
889 $colspans = array_merge($colspans, $this->content[$i]->get_colspans($i));
896 for ($i=0; $i<$this->rows_count(); $i++) {
897 $cell =& $this->cell($i, $col);
934 for ($i=0; $i<count($minw); $i++) {
936 if (!$this->check_constrained_colspan($i)) {
937 $diff[$i] = $minwc[$i] - $minw[$i];
939 $diff[$i] = 0;
948 for ($i=0; $i<count($minw); $i++) {
950 $minwc[$i] = max(0, -$diff[$i] / $cwdelta * $delta + $minwc[$i]);
1090 for ($i=0; $i<count($this->content); $i++) {
1091 $hc = $this->get_rhc($i);
1092 $flags[$i] =
1109 for ($i=0; $i<count($this->content); $i++) {
1110 $hc = $this->get_rhc($i);
1111 $flags[$i] =
1123 for ($i=0; $i<count($this->content); $i++) {
1124 $hc = $this->get_rhc($i);
1126 $flags[$i] = $hc->is_null();
1140 for ($i=0; $i<$this->cols_count(); $i++) {
1141 $wc = $this->get_cwc($i);
1142 $flags[$i] = is_a($wc,"wcnone");
1151 for ($i=0; $i<$this->cols_count(); $i++) {
1152 $wc = $this->get_cwc($i);
1153 $flags[$i] = !is_a($wc,"WCConstant");
1160 for ($i=0; $i<$this->rows_count(); $i++) {
1161 $cell =& $this->cell($i, $col);
1175 for ($i=0; $i<$this->cols_count(); $i++) {
1176 $flags[$i] = !$this->check_if_column_image_constrained($i);
1190 for ($i=0; $i<count($this->content); $i++) {
1191 $hc = $this->get_rhc($i);
1192 $flags[$i] = is_null($hc->constant);
1224 for ($i=0; $i<count($this->content); $i++) {
1231 for ($j=0; $j<count($this->content[$i]->content); $j++) {
1236 $span = $this->table_have_colspan($j, $i);
1243 $cell =& $this->content[$i]->content[$j];
1252 $this->content[$i]->content[$j]->reflow($this, $context);
1267 $this->_current_y -= $this->content[$i]->row_height();