ILIAS
eassessment Revision 61809
|
Public Member Functions | |
__construct (PHPExcel $phpExcel=null, $BIFF_version=0x0600, &$str_total, &$str_unique, &$str_table, &$colors, $parser) | |
Class constructor. | |
addXfWriter ($style, $isStyleXf=false) | |
Add a new XF writer. | |
_setPaletteXl97 () | |
Sets the colour palette to the Excel 97+ default. | |
writeWorkbook ($pWorksheetSizes=null) | |
Assemble worksheets into a workbook and send the BIFF data to an OLE storage. | |
_calcSheetOffsets () | |
Calculate offsets for Worksheet BOF records. | |
getEscher () | |
Get Escher object. | |
setEscher (PHPExcel_Shared_Escher $pValue=null) | |
Set Escher object. | |
Public Member Functions inherited from PHPExcel_Writer_Excel5_BIFFwriter | |
__construct () | |
Constructor. | |
_append ($data) | |
General storage function. | |
writeData ($data) | |
General storage function like _append, but returns string instead of modifying $this->_data. | |
_storeBof ($type) | |
Writes Excel BOF record to indicate the beginning of a stream or sub-stream in the BIFF file. | |
_storeEof () | |
Writes Excel EOF record to indicate the end of a BIFF stream. | |
writeEof () | |
Writes Excel EOF record to indicate the end of a BIFF stream. | |
_addContinue ($data) | |
Excel limits the size of BIFF records. |
Data Fields | |
$_biffsize | |
$_palette | |
$_codepage | |
$_country_code | |
Data Fields inherited from PHPExcel_Writer_Excel5_BIFFwriter | |
$_BIFF_version = 0x0500 | |
$_data | |
$_datasize | |
$_limit |
Private Member Functions | |
_addColor ($rgb) | |
Alter color palette adding a custom color. | |
_writeAllFonts () | |
Store the Excel FONT records. | |
_writeAllNumFormats () | |
Store user defined numerical formats i.e. | |
_writeAllXfs () | |
Write all XF records. | |
_writeAllStyles () | |
Write all STYLE records. | |
_writeExterns () | |
Write the EXTERNCOUNT and EXTERNSHEET records. | |
_writeNames () | |
Write the NAME record to define the print area and the repeat rows and cols. | |
_writeAllDefinedNamesBiff8 () | |
Writes all the DEFINEDNAME records (BIFF8). | |
_writeDefinedNameBiff8 ($name, $formulaData, $sheetIndex=0, $isBuiltIn=false) | |
Write a DEFINEDNAME record for BIFF8 using explicit binary formula data. | |
_writeCodepage () | |
Stores the CODEPAGE biff record. | |
_writeWindow1 () | |
Write Excel BIFF WINDOW1 record. | |
_writeBoundsheet ($sheet, $offset) | |
Writes Excel BIFF BOUNDSHEET record. | |
_writeSupbookInternal () | |
Write Internal SUPBOOK record. | |
_writeExternsheetBiff8 () | |
Writes the Excel BIFF EXTERNSHEET record. | |
_writeStyle () | |
Write Excel BIFF STYLE records. | |
_writeNumFormat ($format, $ifmt) | |
Writes Excel FORMAT record for non "built-in" numerical formats. | |
_writeDatemode () | |
Write DATEMODE record to indicate the date system in use (1904 or 1900). | |
_writeExterncount ($cxals) | |
Write BIFF record EXTERNCOUNT to indicate the number of external sheet references in the workbook. | |
_writeExternsheet ($sheetname) | |
Writes the Excel BIFF EXTERNSHEET record. | |
_writeNameShort ($index, $type, $rowmin, $rowmax, $colmin, $colmax) | |
Store the NAME record in the short format that is used for storing the print area, repeat rows only and repeat columns only. | |
_writeNameLong ($index, $type, $rowmin, $rowmax, $colmin, $colmax) | |
Store the NAME record in the long format that is used for storing the repeat rows and columns when both are specified. | |
_writeCountry () | |
Stores the COUNTRY record for localization. | |
_writeRecalcId () | |
Write the RECALCID record. | |
_writePalette () | |
Stores the PALETTE biff record. | |
_writeSharedStringsTable () | |
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. | |
_writeMsoDrawingGroup () | |
Writes the MSODRAWINGGROUP record if needed. |
Private Attributes | |
$_parser | |
$_xfWriters = array() | |
$_phpExcel | |
$_fontWriters = array() | |
$_addedFonts = array() | |
$_numberFormats = array() | |
$_addedNumberFormats = array() | |
$_worksheetSizes = array() | |
$_worksheetOffsets = array() | |
$_str_total | |
$_str_unique | |
$_str_table | |
$_colors | |
Color cache. | |
$_escher |
Additional Inherited Members | |
Static Public Member Functions inherited from PHPExcel_Writer_Excel5_BIFFwriter | |
static | getByteOrder () |
Determine the byte order and store it as class data to avoid recalculating it for each call to new(). |
Definition at line 71 of file Workbook.php.
PHPExcel_Writer_Excel5_Workbook::__construct | ( | PHPExcel | $phpExcel = null , |
$BIFF_version = 0x0600 , |
|||
& | $str_total, | ||
& | $str_unique, | ||
& | $str_table, | ||
& | $colors, | ||
$parser | |||
) |
Class constructor.
PHPExcel | $phpExcel | The Workbook |
int | $BIFF_verions | BIFF version |
int | $str_total | Total number of strings |
int | $str_unique | Total number of unique strings |
array | $str_table | |
mixed | $parser | The formula parser created for the Workbook |
Definition at line 203 of file Workbook.php.
References PHPExcel_Writer_Excel5_BIFFwriter\__construct(), _addColor(), and _setPaletteXl97().
|
private |
Alter color palette adding a custom color.
string | $rgb | E.g. 'FF00AA' |
Definition at line 326 of file Workbook.php.
Referenced by __construct(), and addXfWriter().
PHPExcel_Writer_Excel5_Workbook::_calcSheetOffsets | ( | ) |
Calculate offsets for Worksheet BOF records.
private
Definition at line 489 of file Workbook.php.
References PHPExcel_Writer_Excel5_BIFFwriter\$_datasize, and PHPExcel_Shared_String\UTF8toBIFF8UnicodeShort().
Referenced by writeWorkbook().
PHPExcel_Writer_Excel5_Workbook::_setPaletteXl97 | ( | ) |
Sets the colour palette to the Excel 97+ default.
private
Definition at line 356 of file Workbook.php.
Referenced by __construct().
|
private |
Writes all the DEFINEDNAME records (BIFF8).
So far this is only used for repeating rows/columns (print titles) and print areas
Definition at line 670 of file Workbook.php.
References PHPExcel_Cell\splitRange().
Referenced by writeWorkbook().
|
private |
Store the Excel FONT records.
Definition at line 521 of file Workbook.php.
References PHPExcel_Writer_Excel5_BIFFwriter\_append().
Referenced by writeWorkbook().
|
private |
Store user defined numerical formats i.e.
FORMAT records
Definition at line 531 of file Workbook.php.
References _writeNumFormat().
Referenced by writeWorkbook().
|
private |
Write all STYLE records.
Definition at line 551 of file Workbook.php.
References _writeStyle().
Referenced by writeWorkbook().
|
private |
Write all XF records.
Definition at line 541 of file Workbook.php.
References PHPExcel_Writer_Excel5_BIFFwriter\_append().
Referenced by writeWorkbook().
|
private |
Writes Excel BIFF BOUNDSHEET record.
PHPExcel_Worksheet | $sheet | Worksheet name |
integer | $offset | Location of worksheet BOF |
Definition at line 893 of file Workbook.php.
Referenced by writeWorkbook().
|
private |
Stores the CODEPAGE biff record.
Definition at line 843 of file Workbook.php.
Referenced by writeWorkbook().
|
private |
Stores the COUNTRY record for localization.
Definition at line 1219 of file Workbook.php.
Referenced by writeWorkbook().
|
private |
Write DATEMODE record to indicate the date system in use (1904 or 1900).
Definition at line 1008 of file Workbook.php.
Referenced by writeWorkbook().
|
private |
Write a DEFINEDNAME record for BIFF8 using explicit binary formula data.
string | $name | The name in UTF-8 |
string | $formulaData | The binary formula data |
string | $sheetIndex | 1-based sheet index the defined name applies to. 0 = global |
boolean | $isBuiltIn | Built-in name? |
Definition at line 814 of file Workbook.php.
|
private |
Write BIFF record EXTERNCOUNT to indicate the number of external sheet references in the workbook.
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 | $cxals | Number of external references |
Definition at line 1034 of file Workbook.php.
Referenced by _writeExterns().
|
private |
Write the EXTERNCOUNT and EXTERNSHEET records.
These are used as indexes for the NAME records.
Definition at line 560 of file Workbook.php.
References _writeExterncount(), and _writeExternsheet().
Referenced by writeWorkbook().
|
private |
Writes the Excel BIFF EXTERNSHEET record.
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 | $sheetname | Worksheet name |
Definition at line 1054 of file Workbook.php.
Referenced by _writeExterns().
|
private |
Writes the Excel BIFF EXTERNSHEET record.
These references are used by formulas.
Definition at line 943 of file Workbook.php.
Referenced by writeWorkbook().
|
private |
Writes the MSODRAWINGGROUP record if needed.
Possibly split using CONTINUE records.
Definition at line 1408 of file Workbook.php.
Referenced by writeWorkbook().
|
private |
Store the NAME record in the long format that is used for storing the repeat rows and columns when both are specified.
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 | $index | Sheet index |
integer | $type | Built-in name type |
integer | $rowmin | Start row |
integer | $rowmax | End row |
integer | $colmin | Start colum |
integer | $colmax | End column |
Definition at line 1144 of file Workbook.php.
Referenced by _writeNames().
|
private |
Write the NAME record to define the print area and the repeat rows and cols.
Definition at line 575 of file Workbook.php.
References _writeNameLong(), _writeNameShort(), PHPExcel_Cell\columnIndexFromString(), PHPExcel_Cell\coordinateFromString(), and PHPExcel_Cell\splitRange().
Referenced by writeWorkbook().
|
private |
Store the NAME record in the short format that is used for storing the print area, repeat rows only and repeat columns only.
integer | $index | Sheet index |
integer | $type | Built-in name type |
integer | $rowmin | Start row |
integer | $rowmax | End row |
integer | $colmin | Start colum |
integer | $colmax | End column |
Definition at line 1079 of file Workbook.php.
Referenced by _writeNames().
|
private |
Writes Excel FORMAT record for non "built-in" numerical formats.
string | $format | Custom format string |
integer | $ifmt | Format index code |
Definition at line 982 of file Workbook.php.
Referenced by _writeAllNumFormats().
|
private |
Stores the PALETTE biff record.
Definition at line 1252 of file Workbook.php.
Referenced by writeWorkbook().
|
private |
Write the RECALCID record.
Definition at line 1236 of file Workbook.php.
Referenced by writeWorkbook().
|
private |
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.
Definition at line 1286 of file Workbook.php.
Referenced by writeWorkbook().
|
private |
Write Excel BIFF STYLE records.
Definition at line 961 of file Workbook.php.
Referenced by _writeAllStyles().
|
private |
Write Internal SUPBOOK record.
Definition at line 928 of file Workbook.php.
Referenced by writeWorkbook().
|
private |
Write Excel BIFF WINDOW1 record.
Definition at line 858 of file Workbook.php.
Referenced by writeWorkbook().
PHPExcel_Writer_Excel5_Workbook::addXfWriter | ( | $style, | |
$isStyleXf = false |
|||
) |
Add a new XF writer.
PHPExcel_Style | |
boolean | Is it a style XF? |
Definition at line 260 of file Workbook.php.
References _addColor(), and PHPExcel_Writer_Excel5_Font\setBIFFVersion().
PHPExcel_Writer_Excel5_Workbook::getEscher | ( | ) |
PHPExcel_Writer_Excel5_Workbook::setEscher | ( | PHPExcel_Shared_Escher | $pValue = null | ) |
Set Escher object.
PHPExcel_Shared_Escher | $pValue |
Definition at line 1441 of file Workbook.php.
PHPExcel_Writer_Excel5_Workbook::writeWorkbook | ( | $pWorksheetSizes = null | ) |
Assemble worksheets into a workbook and send the BIFF data to an OLE storage.
array | $worksheetSizes | The sizes in bytes of the binary worksheet streams |
Definition at line 425 of file Workbook.php.
References PHPExcel_Writer_Excel5_BIFFwriter\$_data, _calcSheetOffsets(), PHPExcel_Writer_Excel5_BIFFwriter\_storeBof(), _writeAllDefinedNamesBiff8(), _writeAllFonts(), _writeAllNumFormats(), _writeAllStyles(), _writeAllXfs(), _writeBoundsheet(), _writeCodepage(), _writeCountry(), _writeDatemode(), _writeExterns(), _writeExternsheetBiff8(), _writeMsoDrawingGroup(), _writeNames(), _writePalette(), _writeRecalcId(), _writeSharedStringsTable(), _writeSupbookInternal(), _writeWindow1(), and PHPExcel_Writer_Excel5_BIFFwriter\writeEof().
|
private |
Definition at line 129 of file Workbook.php.
|
private |
Definition at line 143 of file Workbook.php.
PHPExcel_Writer_Excel5_Workbook::$_biffsize |
Definition at line 85 of file Workbook.php.
PHPExcel_Writer_Excel5_Workbook::$_codepage |
Definition at line 103 of file Workbook.php.
|
private |
Color cache.
Definition at line 183 of file Workbook.php.
PHPExcel_Writer_Excel5_Workbook::$_country_code |
Definition at line 109 of file Workbook.php.
|
private |
Definition at line 190 of file Workbook.php.
|
private |
Definition at line 122 of file Workbook.php.
|
private |
Definition at line 136 of file Workbook.php.
PHPExcel_Writer_Excel5_Workbook::$_palette |
Definition at line 97 of file Workbook.php.
|
private |
Definition at line 78 of file Workbook.php.
|
private |
Definition at line 115 of file Workbook.php.
|
private |
Definition at line 178 of file Workbook.php.
|
private |
Definition at line 164 of file Workbook.php.
|
private |
Definition at line 171 of file Workbook.php.
|
private |
Definition at line 157 of file Workbook.php.
|
private |
Definition at line 150 of file Workbook.php.
|
private |
Definition at line 91 of file Workbook.php.