Lines Matching refs:width
249 $width = $this->getAttribute($attribute, 'table-width');
250 if ($width != '') {
251 return '<table class="columns-plugin" style="width:' . $width . '">';
313 $width = $this->getAttribute($attribute, 'table-width');
315 if (($width != '') && ($width != '100%')) {
317 $style .= ' style:width="' . $this->getOdtAbsoluteWidth($metrics, $width) . '"';
319 $align = ($width == '100%') ? 'margins' : 'left';
336 $width = $this->getAttribute($attribute, 'column-width');
338 if ($width != '') {
340 $style .= ' style:column-width="' . $this->getOdtAbsoluteWidth($metrics, $width) . '"';
429 private function getOdtAbsoluteWidth($metrics, $width) { argument
430 if (preg_match('/([\d\.]+)(.+)/', $width, $match) == 1) {
434 … $width = ($match[1] / 100 * $metrics['page-width']) . $metrics['page-width-units'];
438 … $width = ($match[1] * 0.8 * $metrics['font-size']) . $metrics['font-size-units'];
442 return $width;