$_data
$_data : string
The string containing the data of the BIFF stream.
$xfWriters : array<mixed,\PhpOffice\PhpSpreadsheet\Writer\Xls\Xf>
XF Writers.
$spreadsheet : \PhpOffice\PhpSpreadsheet\Spreadsheet
Workbook.
$fontWriters : array<mixed,\PhpOffice\PhpSpreadsheet\Writer\Xls\Font>
Fonts writers.
$escher : \PhpOffice\PhpSpreadsheet\Shared\Escher
Escher object corresponding to MSODRAWINGGROUP.
__construct(\PhpOffice\PhpSpreadsheet\Spreadsheet $spreadsheet, integer $str_total, integer $str_unique, array $str_table, array $colors, \PhpOffice\PhpSpreadsheet\Writer\Xls\Parser $parser)
Class constructor.
\PhpOffice\PhpSpreadsheet\Spreadsheet | $spreadsheet | The Workbook |
integer | $str_total | Total number of strings |
integer | $str_unique | Total number of unique strings |
array | $str_table | String Table |
array | $colors | Colour Table |
\PhpOffice\PhpSpreadsheet\Writer\Xls\Parser | $parser | The formula parser created for the Workbook |
addFont(\PhpOffice\PhpSpreadsheet\Style\Font $font) : integer
Add a font to added fonts.
\PhpOffice\PhpSpreadsheet\Style\Font | $font |
Index to FONT record
getEscher() : \PhpOffice\PhpSpreadsheet\Shared\Escher
Get Escher object.
setEscher(\PhpOffice\PhpSpreadsheet\Shared\Escher $pValue = null)
Set Escher object.
\PhpOffice\PhpSpreadsheet\Shared\Escher | $pValue |
addContinue(string $data) : string
Excel limits the size of BIFF records. In Excel 5 the limit is 2084 bytes. In Excel 97 the limit is 8228 bytes. Records that are longer than these limits must be split up into CONTINUE blocks.
This function takes a long BIFF record and inserts CONTINUE records as necessary.
string | $data | The original binary data to be written |
A very convenient string of continue blocks
writeDefinedNameBiff8(string $name, string $formulaData, integer $sheetIndex, boolean $isBuiltIn = false) : string
Write a DEFINEDNAME record for BIFF8 using explicit binary formula data.
string | $name | The name in UTF-8 |
string | $formulaData | The binary formula data |
integer | $sheetIndex | 1-based sheet index the defined name applies to. 0 = global |
boolean | $isBuiltIn | Built-in name? |
Complete binary record data
writeShortNameBiff8(string $name, string $sheetIndex, array<mixed,integer[]> $rangeBounds, boolean $isHidden = false) : string
Write a short NAME record.
string | $name | |
string | $sheetIndex | 1-based sheet index the defined name applies to. 0 = global |
array<mixed,integer[]> | $rangeBounds | range boundaries |
boolean | $isHidden |
Complete binary record data
writeSharedStringsTable() : string
Handling of the SST continue blocks is complicated by the need to include an additional continuation byte depending on whether the string is split between blocks or whether it starts at the beginning of the block. (There are also additional complications that will arise later when/if Rich Strings are supported).
The Excel documentation says that the SST record should be followed by an EXTSST record. The EXTSST record is a hash table that is used to optimise access to SST. However, despite the documentation it doesn't seem to be required so we will ignore it.
Binary data