Lines Matching refs:renderer
156 function renderODTElementOpen($renderer, $HTMLelement, $data) {
208 $this->renderODTOpenSpan ($renderer, $attr ['class'], $style, $language, $attr_string);
211 $this->renderODTOpenParagraph ($renderer, $attr ['class'], $style, $attr ['dir'], $language, $is_indent, $is_outdent, true, $attr_string);
219 if ( method_exists ($renderer, 'getODTPropertiesFromElement') === false ) {
220 $this->renderODTOpenBox ($renderer, $attr ['class'], $style, $fullattr);
222 $this->renderODTOpenTable ($renderer, $attr, $style, $attr_string);
226 $this->renderODTOpenColumns ($renderer, $attr ['class'], $style);
229 $this->renderODTOpenParagraph ($renderer, $attr ['class'], $style, $attr ['dir'], $language, $is_indent, $is_outdent, false, $attr_string);
232 $renderer->pagebreak ();
236 $this->renderODTOpenColumn ($renderer, $attr ['class'], $style, $attr_string);
239 $this->renderODTOpenGroup ($renderer, $attr ['class'], $style);
242 $renderer->linebreak();
243 $renderer->p_close();
244 $renderer->p_open();
257 function renderODTElementClose($renderer, $element) {
260 if ( method_exists ($renderer, 'getODTPropertiesFromElement') === false ) {
261 $this->renderODTCloseBox ($renderer);
263 $this->renderODTCloseTable ($renderer);
267 $this->renderODTCloseColumns($renderer);
270 $this->renderODTCloseParagraph($renderer);
273 $this->renderODTCloseColumn($renderer);
276 $this->renderODTCloseGroup($renderer);
279 $this->renderODTCloseSpan($renderer);
285 function renderODTOpenBox ($renderer, $class, $style, $fullattr) {
288 if ( method_exists ($renderer, 'getODTProperties') === false ) {
294 $renderer->getODTProperties ($properties, 'div', $class, $style);
298 $renderer->replaceURLPrefix ($properties ['background-image'], DOKU_INC);
320 $renderer->_odtDivOpenAsFrameUseProperties ($properties);
323 function renderODTCloseBox ($renderer) {
324 if ( method_exists ($renderer, '_odtDivCloseAsFrame') === false ) {
328 $renderer->_odtDivCloseAsFrame ();
331 function renderODTOpenColumns ($renderer, $class, $style) {
334 if ( method_exists ($renderer, 'getODTProperties') === false ) {
340 $renderer->getODTProperties ($properties, 'div', $class, $style);
342 $renderer->_odtOpenMultiColumnFrame($properties);
345 function renderODTCloseColumns ($renderer) {
346 if ( method_exists ($renderer, '_odtCloseMultiColumnFrame') === false ) {
350 $renderer->_odtCloseMultiColumnFrame();
353 function renderODTOpenParagraph ($renderer, $class, $style, $dir, $language, $is_indent, $is_outdent, $indent_first, $attr=null) {
356 if ( method_exists ($renderer, 'getODTPropertiesFromElement') === true ) {
359 $renderer->getODTPropertiesNew ($properties, 'p', $attr, null, false);
360 } else if ( method_exists ($renderer, 'getODTProperties') === true ) {
362 $renderer->getODTProperties ($properties, 'p', $class, $style);
366 $renderer->replaceURLPrefix ($properties ['background-image'], DOKU_INC);
424 $renderer->p_close();
425 if ( method_exists ($renderer, 'createParagraphStyle') === false ) {
427 $renderer->_odtParagraphOpenUseProperties($properties);
432 if (!$renderer->styleExists('Plugin_Wrap_Paragraphs')) {
438 $renderer->createParagraphStyle($parent_properties);
443 if (!$renderer->styleExists($style_name)) {
448 $renderer->createParagraphStyle($properties);
451 $renderer->p_open($style_name);
455 function renderODTCloseParagraph ($renderer) {
456 if ( method_exists ($renderer, 'p_close') === false ) {
460 $renderer->p_close();
463 function renderODTOpenColumn ($renderer, $class, $style, $attr) {
466 if ( method_exists ($renderer, 'getODTPropertiesFromElement') === true ) {
468 $renderer->getODTPropertiesNew ($properties, 'div', $attr);
469 } else if ( method_exists ($renderer, 'getODTProperties') === true ) {
471 $renderer->getODTProperties ($properties, null, $class, $style);
493 $properties ['padding-left'] = $renderer->_getAbsWidthMindMargins ($properties ['padding-left']).'cm';
498 $properties ['padding-right'] = $renderer->_getAbsWidthMindMargins ($properties ['padding-right']).'cm';
503 $properties ['padding-top'] = $renderer->_getAbsWidthMindMargins ($properties ['padding-top']).'cm';
508 $properties ['padding-bottom'] = $renderer->_getAbsWidthMindMargins ($properties ['padding-bottom']).'cm';
516 $renderer->_odtTableOpenUseProperties($properties);
517 $renderer->_odtTableRowOpenUseProperties($properties);
521 // So we have to tell the renderer to add a column just now.
523 $renderer->_odtTableAddColumnUseProperties($properties);
526 $renderer->_odtTableCellOpenUseProperties($properties);
529 function renderODTCloseColumn ($renderer) {
530 if ( method_exists ($renderer, '_odtTableAddColumnUseProperties') === false ) {
535 $renderer->tablecell_close();
538 function renderODTOpenGroup ($renderer, $class, $style) {
542 function renderODTCloseGroup ($renderer) {
546 $renderer->tablerow_close();
547 //$renderer->table_close();
548 $renderer->_odtTableClose();
553 function renderODTOpenSpan ($renderer, $class, $style, $language, $attr) {
556 if ( method_exists ($renderer, 'getODTPropertiesFromElement') === true ) {
559 $renderer->getODTPropertiesNew ($properties, 'span', $attr, null, false);
560 } else if ( method_exists ($renderer, 'getODTProperties') === true ) {
562 $renderer->getODTProperties ($properties, 'span', $class, $style);
566 $renderer->replaceURLPrefix ($properties ['background-image'], DOKU_INC);
579 if ( method_exists ($renderer, 'getODTPropertiesFromElement') === false ) {
581 $renderer->_odtSpanOpenUseProperties($properties);
587 if (!$renderer->styleExists('Plugin_Wrap_Spans')) {
593 $renderer->createTextStyle($parent_properties);
598 if (!$renderer->styleExists($style_name)) {
603 $renderer->createTextStyle($properties);
607 if (method_exists ($renderer, '_odtAddImageUseProperties') === true) {
611 $size = $renderer->addToValue($size, '2pt');
616 $renderer->_odtAddImageUseProperties ($properties ['background-image'],$properties);
618 $renderer->_odtAddImage ($properties ['background-image'],null,null,null,null,null);
621 $renderer->_odtSpanOpen($style_name);
625 function renderODTCloseSpan ($renderer) {
626 if ( method_exists ($renderer, '_odtSpanClose') === false ) {
630 $renderer->_odtSpanClose();
633 function renderODTOpenTable ($renderer, $attr, $style, $attr_string) {
639 if ( method_exists ($renderer, 'getODTPropertiesFromElement') === false ) {
645 $renderer->getODTPropertiesNew ($css_properties, 'div', $attr_string, null, true);
743 $renderer->_odtOpenTextBoxUseProperties($frame_props);
745 $renderer->_odtTableOpenUseProperties($properties);
750 $renderer->_odtTableAddColumnUseProperties($properties);
754 $renderer->_odtTableAddColumnUseProperties($properties);
756 $renderer->tablerow_open();
765 $renderer->_odtTableCellOpenUseProperties($properties);
766 $renderer->_odtAddImage($image);
767 $renderer->tablecell_close();
775 $renderer->_odtTableCellOpenUseProperties($properties);
778 function renderODTCloseTable ($renderer) {
779 $renderer->tablecell_close();
780 $renderer->tablerow_close();
781 $renderer->_odtTableClose();
782 $renderer->_odtCloseTextBox ();
783 $renderer->p_open();
784 $renderer->p_close();