PHPExcel_Writer_Excel5_Workbook
category | PHPExcel |
---|---|
package | PHPExcel_Writer_Excel5 |
copyright | Copyright (c) 2006 - 2014 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
mixed
The 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() |
string
The original binary data to be written
string
A very convenient string of continue blocks_addFont(\PHPExcel_Style_Font $font) : int
_append(string $data)
access | private |
---|---|
inherited_from | \PHPExcel_Writer_Excel5_BIFFwriter::_append() |
string
binary data to append
_calcSheetOffsets()
access | private |
---|
_setPaletteXl97()
access | private |
---|
_storeBof(integer $type)
access | private |
---|---|
inherited_from | \PHPExcel_Writer_Excel5_BIFFwriter::_storeBof() |
integer
Type 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() |
---|
int
setEscher(\PHPExcel_Shared_Escher $pValue)
\PHPExcel_Shared_Escher
writeData(string $data) : string
inherited_from | \PHPExcel_Writer_Excel5_BIFFwriter::writeData() |
---|
string
binary data to write
string
writeEof()
access | private |
---|---|
inherited_from | \PHPExcel_Writer_Excel5_BIFFwriter::writeEof() |
writeWorkbook(array $pWorksheetSizes) : string
array
The sizes in bytes of the binary worksheet streams
string
Binary data for workbook stream_addColor(string $rgb) : int
string
E.g. 'FF00AA'
int
Color 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
string
The name in UTF-8
string
The binary formula data
string
1-based sheet index the defined name applies to. 0 = global
boolean
Built-in name?
string
Complete 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.
integer
Number 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.
string
Worksheet 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. ;-)
integer
Sheet index
integer
Built-in name type
integer
Start row
integer
End row
integer
Start colum
integer
End column
_writeNameShort(integer $index, integer $type, integer $rowmin, integer $rowmax, integer $colmin, integer $colmax)
integer
Sheet index
integer
Built-in name type
integer
Start row
integer
End row
integer
Start colum
integer
End column
_writeNames()
_writeNumFormat(string $format, integer $ifmt)
string
Custom format string
integer
Format 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.
string
Binary data_writeShortNameBiff8(string $name, string $sheetIndex, \integer[][] $rangeBounds, boolean $isHidden) : string
string
string
1-based sheet index the defined name applies to. 0 = global
\integer[][]
range boundaries
boolean
string
Complete 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[]