1<?php 2 3class renderer_plugin_structodt extends Doku_Renderer { 4 /** 5 * Returns the format produced by this renderer. 6 * 7 * @return string always 'odt' 8 */ 9 public function getFormat() { 10 return 'odt'; 11 } 12 13 /** 14 * Render plain text data 15 * 16 * @param $text 17 */ 18 function cdata($text) { 19 $this->doc .= $text; 20 } 21 22 /** 23 * Open a paragraph 24 */ 25 public function p_open() { 26// $this->doc .= '<text:p>'; 27 } 28 29 /** 30 * Close a paragraph 31 */ 32 public function p_close() { 33 $this->doc .= '<text:line-break/><text:line-break/>'; 34 } 35 36 /** 37 * Create a line break 38 */ 39 public function linebreak() { 40 $this->doc .= '<text:line-break/>'; 41 } 42} 43