Lines Matching refs:box

146   function get_footnotes_traverse(&$box) {  argument
149 if (is_a($box, 'BoxNoteCall')) {
150 …$footnotes[] = new FootnoteLocation($box->get_top_margin(), $box->_note_content->get_full_height()…
151 } elseif (is_a($box, 'GenericContainerBox')) {
152 foreach ($box->content as $child) {
236 function has_forced_page_break_before(&$box) { argument
237 return PageBreakLocator::is_forced_page_break($box->get_css_property(CSS_PAGE_BREAK_BEFORE));
240 function has_forced_page_break_after(&$box) { argument
241 return PageBreakLocator::is_forced_page_break($box->get_css_property(CSS_PAGE_BREAK_AFTER));
244 function get_pages_traverse_block(&$box, &$next, &$previous, $penalty) { argument
249 $position = $box->get_css_property(CSS_POSITION);
255 if (is_a($box, 'FakeTableCellBox')) {
266 if (PageBreakLocator::has_forced_page_break_before($box)) {
267 $location = new PageBreakLocation($box->get_top_margin(), FORCED_PAGE_BREAK_BONUS);
269 …$location = new PageBreakLocation($box->get_top_margin(), $penalty + PAGE_BREAK_AFTER_AVOID_PENALT…
270 } elseif ($box->get_css_property(CSS_PAGE_BREAK_BEFORE) == PAGE_BREAK_AVOID) {
271 …$location = new PageBreakLocation($box->get_top_margin(), $penalty + PAGE_BREAK_BEFORE_AVOID_PENAL…
273 $location = new PageBreakLocation($box->get_top_margin(), $penalty);
280 if (PageBreakLocator::has_forced_page_break_after($box)) {
281 $location = new PageBreakLocation($box->get_bottom_margin(), FORCED_PAGE_BREAK_BONUS);
283 …$location = new PageBreakLocation($box->get_bottom_margin(), $penalty + PAGE_BREAK_AFTER_AVOID_PEN…
284 } elseif ($box->get_css_property(CSS_PAGE_BREAK_AFTER) == PAGE_BREAK_AVOID) {
285 …$location = new PageBreakLocation($box->get_bottom_margin(), $penalty + PAGE_BREAK_AFTER_AVOID_PEN…
287 $location = new PageBreakLocation($box->get_bottom_margin(), $penalty);
296 if ($box->get_css_property(CSS_PAGE_BREAK_INSIDE) == PAGE_BREAK_AVOID) {
307 $border_left =& $box->get_css_property(CSS_BORDER_LEFT);
308 $border_right =& $box->get_css_property(CSS_BORDER_RIGHT);
320 $locations = array_merge($locations, PageBreakLocator::get_pages_traverse($box, $penalty));
363 function get_pages_traverse_table_row(&$box, $penalty) { argument
366 $cells = $box->getChildNodes();
387 if ($box->get_css_property(CSS_PAGE_BREAK_INSIDE) == PAGE_BREAK_AVOID) {
391 $cells = $box->getChildNodes();
458 function get_pages_traverse_inline(&$box, $penalty, $more_before, $more_after) { argument
465 $size = $box->get_line_box_count();
475 if ($more_before < $box->parent->get_css_property(CSS_ORPHANS)) {
481 if ($box->parent->get_css_property(CSS_WIDOWS) > $size + $more_after) {
487 $line_box = $box->get_line_box(0);
496 if ($size + 1 + $more_before < $box->parent->get_css_property(CSS_ORPHANS)) {
502 if ($size + 1 + $box->parent->get_css_property(CSS_WIDOWS) > $size + $more_after) {
508 $line_box = $box->getLineBox($size-1);
518 $line_box = $box->get_line_box($i);
520 if ($i + 1 + $more_before < $box->parent->get_css_property(CSS_ORPHANS)) {
526 if ($i + 1 + $box->parent->get_css_property(CSS_WIDOWS) > $size + $more_after) {
563 function get_pages_traverse(&$box, $penalty) { argument
564 if (!is_a($box, 'GenericContainerBox')) {
570 for ($i=0, $content_size = count($box->content); $i<$content_size; $i++) {
571 $previous_child =& PageBreakLocator::get_previous($i, $box->content, $content_size);
572 $next_child =& PageBreakLocator::get_next($i, $box->content, $content_size);
573 $child =& $box->content[$i];
595 $more_before = PageBreakLocator::get_more_before($i, $box->content, $content_size);
599 $more_after = PageBreakLocator::get_more_after($i, $box->content, $content_size);