setClass ('table-header'); } /** * Return string with encoded opening tag. * * @return string The ODT XML code to open this element. */ public function getOpeningTag () { $colspan = $this->getColumnSpan(); $rowspan = $this->getRowSpan(); // Get our corresponding table. $table = $this->getTable(); $auto_columns = false; $count = 0; if (isset($table)) { $auto_columns = $table->getTableAutoColumns(); $count = $table->getCount(); } $encoded = 'getStyleName().'"'; if ( $colspan > 1 ) { $encoded .= ' table:number-columns-spanned="'.$colspan.'"'; } else if ($auto_columns === true && $colspan == 0) { $encoded .= ' table:number-columns-spanned=""'; } if ( $rowspan > 1 ) { $encoded .= ' table:number-rows-spanned="'.$rowspan.'"'; } $encoded .= '>'; return $encoded; } }