Lines Matching refs:penalty

35   var $penalty;  variable in PageBreakLocation
37 function PageBreakLocation($location, $penalty) { argument
39 $this->penalty = $penalty;
76 return $this->penalty + $height_penalty;
215 if ($location->penalty < 0) { // Forced page break
244 function get_pages_traverse_block(&$box, &$next, &$previous, $penalty) { argument
269 …$location = new PageBreakLocation($box->get_top_margin(), $penalty + PAGE_BREAK_AFTER_AVOID_PENALT…
271 …$location = new PageBreakLocation($box->get_top_margin(), $penalty + PAGE_BREAK_BEFORE_AVOID_PENAL…
273 $location = new PageBreakLocation($box->get_top_margin(), $penalty);
283 …$location = new PageBreakLocation($box->get_bottom_margin(), $penalty + PAGE_BREAK_AFTER_AVOID_PEN…
285 …$location = new PageBreakLocation($box->get_bottom_margin(), $penalty + PAGE_BREAK_AFTER_AVOID_PEN…
287 $location = new PageBreakLocation($box->get_bottom_margin(), $penalty);
297 $penalty += PAGE_BREAK_INSIDE_AVOID_PENALTY;
314 $penalty += PAGE_BREAK_BORDER_PENALTY;
320 $locations = array_merge($locations, PageBreakLocator::get_pages_traverse($box, $penalty));
363 function get_pages_traverse_table_row(&$box, $penalty) { argument
377 $locations[] = new PageBreakLocation($cells[$i]->get_top_margin(), $penalty);
378 $locations[] = new PageBreakLocation($cells[$i]->get_bottom_margin(), $penalty);
386 $inside_penalty = $penalty;
428 max($current_child_location->penalty,
429 $current_row_location->penalty));
445 $current_child_location->penalty);
458 function get_pages_traverse_inline(&$box, $penalty, $more_before, $more_after) { argument
489 … $penalty + PAGE_BREAK_LINE_PENALTY + $orphans_penalty + $widows_penalty);
510 … $penalty + PAGE_BREAK_LINE_PENALTY + $orphans_penalty + $widows_penalty);
533 … $penalty + PAGE_BREAK_LINE_PENALTY + $orphans_penalty + $widows_penalty);
563 function get_pages_traverse(&$box, $penalty) { argument
584 $penalty));
588 … $child_locations = PageBreakLocator::get_pages_traverse_block($child, $null, $null, $penalty);
602 …y_merge($locations, PageBreakLocator::get_pages_traverse_inline($child, $penalty, $more_before, $m…
604 …ations = array_merge($locations, PageBreakLocator::get_pages_traverse_table_row($child, $penalty));
625 if ($last_location->penalty >= 0 && $location->penalty >= 0) {
626 $last_location->penalty = max($last_location->penalty, $location->penalty);
628 $last_location->penalty = min($last_location->penalty, $location->penalty);