Lines Matching refs:attribute

161     public function render($state, Doku_Renderer $renderer, $attribute) {  argument
164 $this->render_enter($renderer, $attribute);
168 $this->render_matched($renderer, $attribute);
172 $this->render_exit($renderer, $attribute);
177 abstract protected function render_enter(Doku_Renderer $renderer, $attribute); argument
178 abstract protected function render_matched(Doku_Renderer $renderer, $attribute); argument
179 abstract protected function render_exit(Doku_Renderer $renderer, $attribute); argument
184 protected function getAttribute($attribute, $name) { argument
186 if (array_key_exists($name, $attribute)) {
187 $result = $attribute[$name];
195 protected function getStyle($attribute, $attributeName, $styleName = '') { argument
196 $result = $this->getAttribute($attribute, $attributeName);
215 public function render($state, Doku_Renderer $renderer, $attribute) { argument
216 parent::render($state, $renderer, $attribute);
219 $renderer->finishSectionEdit($attribute);
226 protected function render_enter(Doku_Renderer $renderer, $attribute) { argument
227 $renderer->doc .= $this->renderTable($attribute) . DOKU_LF;
228 $renderer->doc .= '<tr>' . $this->renderTd($attribute) . DOKU_LF;
234 protected function render_matched(Doku_Renderer $renderer, $attribute) { argument
235 $renderer->doc .= '</td>' . $this->renderTd($attribute) . DOKU_LF;
241 protected function render_exit(Doku_Renderer $renderer, $attribute) { argument
248 private function renderTable($attribute) { argument
249 $width = $this->getAttribute($attribute, 'table-width');
261 private function renderTd($attribute) { argument
263 $class[] = $this->getAttribute($attribute, 'class');
264 $class[] = $this->getAttribute($attribute, 'text-align');
266 $style = $this->getStyle($attribute, 'column-width', 'width');
267 $style .= $this->getStyle($attribute, 'vertical-align');
282 protected function render_enter(Doku_Renderer $renderer, $attribute) { argument
283 $this->addOdtTableStyle($renderer, $attribute);
284 $this->addOdtColumnStyles($renderer, $attribute);
285 $this->renderOdtTableEnter($renderer, $attribute);
286 $this->renderOdtColumnEnter($renderer, $attribute);
292 protected function render_matched(Doku_Renderer $renderer, $attribute) { argument
293 $this->addOdtColumnStyles($renderer, $attribute);
295 $this->renderOdtColumnEnter($renderer, $attribute);
301 protected function render_exit(Doku_Renderer $renderer, $attribute) { argument
309 private function addOdtTableStyle(Doku_Renderer $renderer, $attribute) { argument
310 $styleName = $this->getOdtTableStyleName($this->getAttribute($attribute, 'block-id'));
313 $width = $this->getAttribute($attribute, 'table-width');
329 private function addOdtColumnStyles(Doku_Renderer $renderer, $attribute) { argument
330 $blockId = $this->getAttribute($attribute, 'block-id');
331 $columnId = $this->getAttribute($attribute, 'column-id');
336 $width = $this->getAttribute($attribute, 'column-width');
355 switch ($this->getAttribute($attribute, 'class')) {
371 $align = $this->getAttribute($attribute, 'vertical-align');
388 private function renderOdtTableEnter(Doku_Renderer $renderer, $attribute) { argument
389 $columns = $this->getAttribute($attribute, 'columns');
390 $blockId = $this->getAttribute($attribute, 'block-id');
404 private function renderOdtColumnEnter(Doku_Renderer $renderer, $attribute) { argument
405 $blockId = $this->getAttribute($attribute, 'block-id');
406 $columnId = $this->getAttribute($attribute, 'column-id');
521 protected function render_enter(Doku_Renderer $renderer, $attribute) { argument
522 $this->renderOdtTableEnter($renderer, $attribute);
523 $this->renderOdtColumnEnter($renderer, $attribute);
529 protected function render_matched(Doku_Renderer $renderer, $attribute) { argument
531 $this->renderOdtColumnEnter($renderer, $attribute);
537 protected function render_exit(Doku_Renderer $renderer, $attribute) { argument
545 private function renderOdtTableEnter(Doku_Renderer $renderer, $attribute) { argument
547 $properties ['width'] = $this->getAttribute($attribute, 'table-width');
556 private function renderOdtColumnEnter(Doku_Renderer $renderer, $attribute) { argument
558 $properties ['width'] = $this->getAttribute($attribute, 'column-width');
562 switch ($this->getAttribute($attribute, 'class')) {
573 $align = $this->getAttribute($attribute, 'vertical-align');
580 $align = $this->getAttribute($attribute, 'text-align');