Lines Matching refs:media
354 function calculate_page_heights(&$media, &$box) { argument
355 return $this->_page_break_strategy->run($this, $media, $box);
531 function render_margin_boxes($page_no, &$media) { argument
532 $boxes =& $this->reflow_margin_boxes($page_no, $media);
545 function get_page_media($page_no, &$media) { argument
549 $media->set_width($size_landscape['size']['width']);
550 $media->set_height($size_landscape['size']['height']);
551 $media->set_landscape($size_landscape['landscape']);
556 … $media->margins['left'] = $margins->left->calc(mm2pt($media->get_width())) / mm2pt(1) / pt2pt(1);
557 …$media->margins['right'] = $margins->right->calc(mm2pt($media->get_width())) / mm2pt(1) / pt2pt(1);
558 … $media->margins['top'] = $margins->top->calc(mm2pt($media->get_height())) / mm2pt(1) / pt2pt(1);
559 …$media->margins['bottom'] = $margins->bottom->calc(mm2pt($media->get_height())) / mm2pt(1) / pt2pt…
564 … $media->margins['left'] = $left_margin->calc(mm2pt($media->get_width())) / mm2pt(1) / pt2pt(1);
569 … $media->margins['right'] = $right_margin->calc(mm2pt($media->get_width())) / mm2pt(1) / pt2pt(1);
574 $media->margins['top'] = $top_margin->calc(mm2pt($media->get_height())) / mm2pt(1) / pt2pt(1);
579 …$media->margins['bottom'] = $bottom_margin->calc(mm2pt($media->get_height())) / mm2pt(1) / pt2pt(1…
584 $media->set_pixels($pixels);
617 function &reflow_page_box($page_no, &$media) { argument
620 $box->reflow($media);
624 function render_page_box($page_no, &$media) { argument
625 $box =& $this->reflow_page_box($page_no, $media);
631 function &reflow_margin_boxes($page_no, &$media) { argument
632 $at_rules = $this->_getMarginBoxes($page_no, $media);
649 $media,
661 function _getMarginBoxes($page_no, $media) { argument
786 function _process_item($data_id, &$media, $offset=0) { argument
789 $box =& $this->_layout_item($data_id, $media, $offset, $context, $postponed_filter);
796 $this->_show_item($box, $offset, $context, $media, $postponed_filter);
809 function _show_item(&$box, $offset, &$context, &$media, &$postponed_filter) { argument
814 'media' => &$media));
817 $page_heights = $this->calculate_page_heights($media, $box);
825 'media' => &$media));
834 $this->get_page_media(1, $media);
836 $this->output_driver->update_media($media);
837 $this->_setupScales($media);
856 $this->render_margin_boxes($i+1, $media);
857 $this->render_page_box($i+1, $media);
956 function process($data_id, &$media) { argument
957 return $this->process_batch(array($data_id), $media);
960 function _setupScales(&$media) { argument
965 …$g_px_scale = floor(mm2pt($media->width() - $media->margins['left'] - $media->margins['right'])) /…
981 …* @param Media $media Object describing the media to render for (size, margins, orientaiton & reso…
983 function process_batch($data_id_array, &$media) { argument
990 $this->_prepare($media);
997 $this->_process_item($data_id, $media, $offset);
1110 function _prepare(&$media) { argument
1111 $this->_setupScales($media);
1112 $GLOBALS['g_media'] =& $media;
1113 $this->output_driver->reset($media);
1127 function &_layout_item($data_id, &$media, $offset, &$context, &$postponed_filter) { argument
1149 $box =& $this->parser->process($data->get_content(), $this, $media);
1153 'media' => $media));
1191 $this->get_page_media(1, $media);
1192 $at_rules = $this->_getMarginBoxes($i, $media);
1201 $status = $this->layout_engine->process($box, $media, $this->output_driver, $context);