Theme
extends WriterPart
in package
Table of Contents
Properties
- $parentWriter : Xlsx
- Parent Xlsx object.
Methods
- __construct() : mixed
- Set parent Xlsx object.
- getParentWriter() : Xlsx
- Get parent Xlsx object.
- writeTheme() : string
- Write theme to XML format.
- writeColourScheme() : void
- Write colour scheme to XML format.
- writeFonts() : void
- Write fonts to XML format.
Properties
$parentWriter
Parent Xlsx object.
private
Xlsx
$parentWriter
Methods
__construct()
Set parent Xlsx object.
public
__construct(Xlsx $writer) : mixed
Parameters
- $writer : Xlsx
getParentWriter()
Get parent Xlsx object.
public
getParentWriter() : Xlsx
Return values
XlsxwriteTheme()
Write theme to XML format.
public
writeTheme(Spreadsheet $spreadsheet) : string
Parameters
- $spreadsheet : Spreadsheet
Return values
string —XML Output
writeColourScheme()
Write colour scheme to XML format.
private
writeColourScheme(XMLWriter $objWriter, Theme $theme) : void
Parameters
writeFonts()
Write fonts to XML format.
private
writeFonts(XMLWriter $objWriter, string $latinFont, string $eastAsianFont, string $complexScriptFont, array<string|int, string> $fontSet) : void
Parameters
- $objWriter : XMLWriter
- $latinFont : string
- $eastAsianFont : string
- $complexScriptFont : string
- $fontSet : array<string|int, string>