PHPExcel_Writer_Excel5_Workbook
| category | PHPExcel |
|---|---|
| package | PHPExcel_Writer_Excel5 |
| copyright | Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) |
__construct(\PHPExcel $phpExcel, int $str_total, int $str_unique, array $str_table, array $colors, mixed $parser)
int&$str_total Total number of strings
int&$str_unique Total number of unique strings
array&$str_table String Table
array&$colors Colour Table
mixedThe formula parser created for the Workbook
_addContinue(string $data) : string
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.
| access | private |
|---|---|
| inherited_from | \PHPExcel_Writer_Excel5_BIFFwriter::_addContinue() |
stringThe original binary data to be written
stringA very convenient string of continue blocks_addFont(\PHPExcel_Style_Font $font) : int
_append(string $data)
| access | private |
|---|---|
| inherited_from | \PHPExcel_Writer_Excel5_BIFFwriter::_append() |
stringbinary data to append
_calcSheetOffsets()
| access | private |
|---|
_setPaletteXl97()
| access | private |
|---|
_storeBof(integer $type)
| access | private |
|---|---|
| inherited_from | \PHPExcel_Writer_Excel5_BIFFwriter::_storeBof() |
integerType of BIFF file to write: 0x0005 Workbook, 0x0010 Worksheet.
_storeEof()
| access | private |
|---|---|
| inherited_from | \PHPExcel_Writer_Excel5_BIFFwriter::_storeEof() |
getByteOrder() : int
| inherited_from | \PHPExcel_Writer_Excel5_BIFFwriter::getByteOrder() |
|---|
intsetEscher(\PHPExcel_Shared_Escher $pValue)
\PHPExcel_Shared_Escher
writeData(string $data) : string
| inherited_from | \PHPExcel_Writer_Excel5_BIFFwriter::writeData() |
|---|
stringbinary data to write
stringwriteEof()
| access | private |
|---|---|
| inherited_from | \PHPExcel_Writer_Excel5_BIFFwriter::writeEof() |
writeWorkbook(array $pWorksheetSizes) : string
arrayThe sizes in bytes of the binary worksheet streams
stringBinary data for workbook stream_addColor(string $rgb) : int
stringE.g. 'FF00AA'
intColor index_writeAllDefinedNamesBiff8()
So far this is only used for repeating rows/columns (print titles) and print areas
_writeAllFonts()
_writeAllNumFormats()
FORMAT records
_writeAllStyles()
_writeAllXfs()
_writeCodepage()
_writeCountry() : string
string_writeDatemode()
_writeDefinedNameBiff8(string $name, string $formulaData, string $sheetIndex, boolean $isBuiltIn) : string
stringThe name in UTF-8
stringThe binary formula data
string1-based sheet index the defined name applies to. 0 = global
booleanBuilt-in name?
stringComplete binary record data_writeExterncount(integer $cxals)
Excel only stores references to external sheets that are used in NAME. The workbook NAME record is required to define the print area and the repeat rows and columns.
A similar method is used in Worksheet.php for a slightly different purpose.
integerNumber of external references
_writeExterns()
These are used as indexes for the NAME records.
_writeExternsheet(string $sheetname)
These references are used by formulas. NAME record is required to define the print area and the repeat rows and columns.
A similar method is used in Worksheet.php for a slightly different purpose.
stringWorksheet name
_writeExternsheetBiff8()
These references are used by formulas.
_writeMsoDrawingGroup()
Possibly split using CONTINUE records.
_writeNameLong(integer $index, integer $type, integer $rowmin, integer $rowmax, integer $colmin, integer $colmax)
This shares a lot of code with _writeNameShort() but we use a separate method to keep the code clean. Code abstraction for reuse can be carried too far, and I should know. ;-)
integerSheet index
integerBuilt-in name type
integerStart row
integerEnd row
integerStart colum
integerEnd column
_writeNameShort(integer $index, integer $type, integer $rowmin, integer $rowmax, integer $colmin, integer $colmax)
integerSheet index
integerBuilt-in name type
integerStart row
integerEnd row
integerStart colum
integerEnd column
_writeNames()
_writeNumFormat(string $format, integer $ifmt)
stringCustom format string
integerFormat index code
_writePalette()
_writeRecalcId() : string
string_writeSharedStringsTable() : string
(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.
stringBinary data_writeShortNameBiff8(string $name, string $sheetIndex, \integer[][] $rangeBounds, boolean $isHidden) : string
string
string1-based sheet index the defined name applies to. 0 = global
\integer[][]range boundaries
boolean
stringComplete binary record data_writeStyle()
_writeSupbookInternal()
_writeWindow1()
$_biffsize : integer
$_codepage : integer
$_country_code : integer
$_data : string
| inherited_from | \PHPExcel_Writer_Excel5_BIFFwriter::$$_data |
|---|
$_datasize : integer
Should be the same as strlen($this->_data)
| inherited_from | \PHPExcel_Writer_Excel5_BIFFwriter::$$_datasize |
|---|
$_limit : integer
See _addContinue()
| see | \_addContinue() |
|---|---|
| inherited_from | \PHPExcel_Writer_Excel5_BIFFwriter::$$_limit |
$_palette : array
$_addedFonts : array
Maps from font's hash => index in workbook
$_addedNumberFormats : array
Maps from numberFormat's hash => index in workbook
$_byte_order : integer
0 => little endian, 1 => big endian
| inherited_from | \PHPExcel_Writer_Excel5_BIFFwriter::$$_byte_order |
|---|
$_colors
$_escher : \PHPExcel_Shared_Escher
$_fontWriters : \PHPExcel_Writer_Excel5_Font[]
$_numberFormats : array
$_parser : \PHPExcel_Writer_Excel5_Parser
$_phpExcel : \PHPExcel
$_str_table : array
$_str_total : int
$_str_unique : int
$_worksheetOffsets : array
$_worksheetSizes : array
$_xfWriters : \PHPExcel_Writer_Excel5_Xf[]