EOD; $content .= $this->getFontsSectionContent(); $content .= $this->getFillsSectionContent(); $content .= $this->getBordersSectionContent(); $content .= $this->getCellStyleXfsSectionContent(); $content .= $this->getCellXfsSectionContent(); $content .= $this->getCellStylesSectionContent(); $content .= << EOD; return $content; } /** * Returns the content of the "" section. * * @return string */ protected function getFontsSectionContent() { $content = ''; /** @var \Box\Spout\Writer\Style\Style $style */ foreach ($this->getRegisteredStyles() as $style) { $content .= ''; $content .= ''; $content .= ''; $content .= ''; if ($style->isFontBold()) { $content .= ''; } if ($style->isFontItalic()) { $content .= ''; } if ($style->isFontUnderline()) { $content .= ''; } if ($style->isFontStrikethrough()) { $content .= ''; } $content .= ''; } $content .= ''; return $content; } /** * Returns the content of the "" section. * * @return string */ protected function getFillsSectionContent() { return << EOD; } /** * Returns the content of the "" section. * * @return string */ protected function getBordersSectionContent() { return << EOD; } /** * Returns the content of the "" section. * * @return string */ protected function getCellStyleXfsSectionContent() { return << EOD; } /** * Returns the content of the "" section. * * @return string */ protected function getCellXfsSectionContent() { $registeredStyles = $this->getRegisteredStyles(); $content = ''; foreach ($registeredStyles as $style) { $content .= 'shouldApplyFont()) { $content .= ' applyFont="1"'; } if ($style->shouldWrapText()) { $content .= ' applyAlignment="1">'; $content .= ''; $content .= ''; } else { $content .= '/>'; } } $content .= ''; return $content; } /** * Returns the content of the "" section. * * @return string */ protected function getCellStylesSectionContent() { return << EOD; } }