ILIAS
eassessment Revision 61809
|
Public Member Functions | |
getReadDataOnly () | |
Read data only? If this is true, then the Reader will only read data values for cells, it will not read any formatting information. | |
setReadDataOnly ($pValue=false) | |
Set read data only Set to true, to advise the Reader only to read data values for cells, and to ignore any formatting information. | |
getLoadSheetsOnly () | |
Get which sheets to load Returns either an array of worksheet names (the list of worksheets that should be loaded), or a null indicating that all worksheets in the workbook should be loaded. | |
setLoadSheetsOnly ($value=null) | |
Set which sheets to load. | |
setLoadAllSheets () | |
Set all sheets to load Tells the Reader to load all worksheets from the workbook. | |
getReadFilter () | |
Read filter. | |
setReadFilter (PHPExcel_Reader_IReadFilter $pValue) | |
Set read filter. | |
__construct () | |
Create a new PHPExcel_Reader_Excel5 instance. | |
canRead ($pFilename) | |
Can the current PHPExcel_Reader_IReader read the file? | |
listWorksheetNames ($pFilename) | |
Reads names of the worksheets from a file, without parsing the whole file to a PHPExcel object. | |
load ($pFilename) | |
Loads PHPExcel from file. |
Static Public Member Functions | |
static | _GetInt2d ($data, $pos) |
Read 16-bit unsigned integer. | |
static | _GetInt4d ($data, $pos) |
Read 32-bit signed integer. |
Private Member Functions | |
_loadOLE ($pFilename) | |
Use OLE reader to extract the relevant data streams from the OLE file. | |
_readSummaryInformation () | |
Read summary information. | |
_readDocumentSummaryInformation () | |
Read additional document summary information. | |
_readDefault () | |
Reads a general type of BIFF record. | |
_readNote () | |
The NOTE record specifies a comment associated with a particular cell. | |
_readTextObject () | |
The TEXT Object record contains the text associated with a cell annotation. | |
_readBof () | |
Read BOF. | |
_readFilepass () | |
FILEPASS. | |
_readCodepage () | |
CODEPAGE. | |
_readDateMode () | |
DATEMODE. | |
_readFont () | |
Read a FONT record. | |
_readFormat () | |
FORMAT. | |
_readXf () | |
XF - Extended Format. | |
_readXfExt () | |
_readStyle () | |
Read STYLE record. | |
_readPalette () | |
Read PALETTE record. | |
_readSheet () | |
SHEET. | |
_readExternalBook () | |
Read EXTERNALBOOK record. | |
_readExternName () | |
Read EXTERNNAME record. | |
_readExternSheet () | |
Read EXTERNSHEET record. | |
_readDefinedName () | |
DEFINEDNAME. | |
_readMsoDrawingGroup () | |
Read MSODRAWINGGROUP record. | |
_readSst () | |
SST - Shared String Table. | |
_readPrintGridlines () | |
Read PRINTGRIDLINES record. | |
_readDefaultRowHeight () | |
Read DEFAULTROWHEIGHT record. | |
_readSheetPr () | |
Read SHEETPR record. | |
_readHorizontalPageBreaks () | |
Read HORIZONTALPAGEBREAKS record. | |
_readVerticalPageBreaks () | |
Read VERTICALPAGEBREAKS record. | |
_readHeader () | |
Read HEADER record. | |
_readFooter () | |
Read FOOTER record. | |
_readHcenter () | |
Read HCENTER record. | |
_readVcenter () | |
Read VCENTER record. | |
_readLeftMargin () | |
Read LEFTMARGIN record. | |
_readRightMargin () | |
Read RIGHTMARGIN record. | |
_readTopMargin () | |
Read TOPMARGIN record. | |
_readBottomMargin () | |
Read BOTTOMMARGIN record. | |
_readPageSetup () | |
Read PAGESETUP record. | |
_readProtect () | |
PROTECT - Sheet protection (BIFF2 through BIFF8) if this record is omitted, then it also means no sheet protection. | |
_readScenProtect () | |
SCENPROTECT. | |
_readObjectProtect () | |
OBJECTPROTECT. | |
_readPassword () | |
PASSWORD - Sheet protection (hashed) password (BIFF2 through BIFF8) | |
_readDefColWidth () | |
Read DEFCOLWIDTH record. | |
_readColInfo () | |
Read COLINFO record. | |
_readRow () | |
ROW. | |
_readRk () | |
Read RK record This record represents a cell that contains an RK value (encoded integer or floating-point value). | |
_readLabelSst () | |
Read LABELSST record This record represents a cell that contains a string. | |
_readMulRk () | |
Read MULRK record This record represents a cell range containing RK value cells. | |
_readNumber () | |
Read NUMBER record This record represents a cell that contains a floating-point value. | |
_readFormula () | |
Read FORMULA record + perhaps a following STRING record if formula result is a string This record contains the token array and the result of a formula cell. | |
_readSharedFmla () | |
Read a SHAREDFMLA record. | |
_readString () | |
Read a STRING record from current stream position and advance the stream pointer to next record This record is used for storing result from FORMULA record when it is a string, and it occurs directly after the FORMULA record. | |
_readBoolErr () | |
Read BOOLERR record This record represents a Boolean value or error value cell. | |
_readMulBlank () | |
Read MULBLANK record This record represents a cell range of empty cells. | |
_readLabel () | |
Read LABEL record This record represents a cell that contains a string. | |
_readBlank () | |
Read BLANK record. | |
_readMsoDrawing () | |
Read MSODRAWING record. | |
_readObj () | |
Read OBJ record. | |
_readWindow2 () | |
Read WINDOW2 record. | |
_readScl () | |
Read SCL record. | |
_readPane () | |
Read PANE record. | |
_readSelection () | |
Read SELECTION record. | |
_includeCellRangeFiltered ($cellRangeAddress) | |
_readMergedCells () | |
MERGEDCELLS. | |
_readHyperLink () | |
Read HYPERLINK record. | |
_readDataValidations () | |
Read DATAVALIDATIONS record. | |
_readDataValidation () | |
Read DATAVALIDATION record. | |
_readSheetLayout () | |
Read SHEETLAYOUT record. | |
_readSheetProtection () | |
Read SHEETPROTECTION record (FEATHEADR) | |
_readRangeProtection () | |
Read RANGEPROTECTION record Reading of this record is based on Microsoft Office Excel 97-2000 Binary File Format Specification, where it is referred to as FEAT record. | |
_readImData () | |
Read IMDATA record. | |
_readContinue () | |
Read a free CONTINUE record. | |
_getSplicedRecordData () | |
Reads a record from current position in data stream and continues reading data as long as CONTINUE records are found. | |
_getFormulaFromStructure ($formulaStructure, $baseCell= 'A1') | |
Convert formula structure into human readable Excel formula like 'A3+A5*5'. | |
_getFormulaFromData ($formulaData, $additionalData= '', $baseCell= 'A1') | |
Take formula data and additional data for formula and return human readable formula. | |
_createFormulaFromTokens ($tokens, $additionalData) | |
Take array of tokens together with additional data for formula and return human readable formula. | |
_getNextToken ($formulaData, $baseCell= 'A1') | |
Fetch next token from binary formula data. | |
_readBIFF8CellAddress ($cellAddressStructure) | |
Reads a cell address in BIFF8 e.g. | |
_readBIFF8CellAddressB ($cellAddressStructure, $baseCell= 'A1') | |
Reads a cell address in BIFF8 for shared formulas. | |
_readBIFF5CellRangeAddressFixed ($subData) | |
Reads a cell range address in BIFF5 e.g. | |
_readBIFF8CellRangeAddressFixed ($subData) | |
Reads a cell range address in BIFF8 e.g. | |
_readBIFF8CellRangeAddress ($subData) | |
Reads a cell range address in BIFF8 e.g. | |
_readBIFF8CellRangeAddressB ($subData, $baseCell= 'A1') | |
Reads a cell range address in BIFF8 for shared formulas. | |
_readBIFF8CellRangeAddressList ($subData) | |
Read BIFF8 cell range address list section 2.5.15. | |
_readBIFF5CellRangeAddressList ($subData) | |
Read BIFF5 cell range address list section 2.5.15. | |
_readSheetRangeByRefIndex ($index) | |
Get a sheet range like Sheet1:Sheet3 from REF index Note: If there is only one sheet in the range, one gets e.g Sheet1 It can also happen that the REF structure uses the -1 (FFFF) code to indicate deleted sheets, in which case an exception is thrown. | |
_readByteStringShort ($subData) | |
Read byte string (8-bit string length) OpenOffice documentation: 2.5.2. | |
_readByteStringLong ($subData) | |
Read byte string (16-bit string length) OpenOffice documentation: 2.5.2. | |
_decodeCodepage ($string) | |
Convert string to UTF-8. | |
_parseRichText ($is= '') |
Static Private Member Functions | |
static | _readBIFF8ConstantArray ($arrayData) |
read BIFF8 constant value array from array data returns e.g. | |
static | _readBIFF8Constant ($valueData) |
read BIFF8 constant value which may be 'Empty Value', 'Number', 'String Value', 'Boolean Value', 'Error Value' section 2.5.7 returns e.g. | |
static | _readRGB ($rgb) |
Extract RGB color OpenOffice.org's Documentation of the Microsoft Excel File Format, section 2.5.4. | |
static | _readUnicodeStringShort ($subData) |
Extracts an Excel Unicode short string (8-bit string length) OpenOffice documentation: 2.5.3 function will automatically find out where the Unicode string ends. | |
static | _readUnicodeStringLong ($subData) |
Extracts an Excel Unicode long string (16-bit string length) OpenOffice documentation: 2.5.3 this function is under construction, needs to support rich text, and Asian phonetic settings. | |
static | _readUnicodeString ($subData, $characterCount) |
Read Unicode string with no string length field, but with known character count this function is under construction, needs to support rich text, and Asian phonetic settings OpenOffice.org's Documentation of the Microsoft Excel File Format, section 2.5.3. | |
static | _UTF8toExcelDoubleQuoted ($value) |
Convert UTF-8 string to string surounded by double quotes. | |
static | _extractNumber ($data) |
Reads first 8 bytes of a string and return IEEE 754 float. | |
static | _GetIEEE754 ($rknum) |
static | _encodeUTF16 ($string, $compressed= '') |
Get UTF-8 string from (compressed or uncompressed) UTF-16 string. | |
static | _uncompressByteString ($string) |
Convert UTF-16 string in compressed notation to uncompressed form. | |
static | _readColor ($color, $palette, $version) |
Read color. | |
static | _mapBorderStyle ($index) |
Map border style OpenOffice documentation: 2.5.11. | |
static | _mapFillPattern ($index) |
Get fill pattern from index OpenOffice documentation: 2.5.12. | |
static | _mapErrorCode ($subData) |
Map error code, e.g. | |
static | _mapBuiltInColor ($color) |
Map built-in color to RGB value. | |
static | _mapColorBIFF5 ($subData) |
Map color array from BIFF5 built-in color index. | |
static | _mapColor ($subData) |
Map color array from BIFF8 built-in color index. |
Definition at line 78 of file Excel5.php.
PHPExcel_Reader_Excel5::__construct | ( | ) |
Create a new PHPExcel_Reader_Excel5 instance.
Definition at line 495 of file Excel5.php.
|
private |
Take array of tokens together with additional data for formula and return human readable formula.
array | $tokens | |
array | $additionalData | Additional binary data going with the formula |
string | $baseCell | Base cell, only needed when formula contains tRefN tokens, e.g. with shared formulas |
Definition at line 4894 of file Excel5.php.
References _readBIFF8CellRangeAddressList(), and _readBIFF8ConstantArray().
Referenced by _getFormulaFromData().
|
private |
Convert string to UTF-8.
Only used for BIFF5.
string | $string |
Definition at line 6349 of file Excel5.php.
References PHPExcel_Shared_String\ConvertEncoding().
Referenced by _readByteStringLong(), and _readByteStringShort().
|
staticprivate |
Get UTF-8 string from (compressed or uncompressed) UTF-16 string.
string | $string | |
bool | $compressed |
Definition at line 6317 of file Excel5.php.
References _uncompressByteString(), and PHPExcel_Shared_String\ConvertEncoding().
Referenced by _readHyperLink(), _readSst(), and _readUnicodeString().
|
staticprivate |
Reads first 8 bytes of a string and return IEEE 754 float.
string | $data | Binary string that is at least 8 bytes long |
Definition at line 6261 of file Excel5.php.
References $data, and _GetInt4d().
Referenced by _getNextToken(), _readBIFF8Constant(), _readFormula(), _readNumber(), and _readPageSetup().
|
private |
Take formula data and additional data for formula and return human readable formula.
string | $formulaData | The binary data for the formula itself |
string | $additionalData | Additional binary data going with the formula |
string | $baseCell | Base cell, only needed when formula contains tRefN tokens, e.g. with shared formulas |
Definition at line 4868 of file Excel5.php.
References _createFormulaFromTokens(), and _getNextToken().
Referenced by _getFormulaFromStructure(), and _getNextToken().
|
private |
Convert formula structure into human readable Excel formula like 'A3+A5*5'.
string | $formulaStructure | The complete binary data for the formula |
string | $baseCell | Base cell, only needed when formula contains tRefN tokens, e.g. with shared formulas |
Definition at line 4829 of file Excel5.php.
References _getFormulaFromData(), and _GetInt2d().
Referenced by _readDataValidation(), _readDefinedName(), _readExternName(), _readFormula(), and load().
|
staticprivate |
Definition at line 6284 of file Excel5.php.
Referenced by _readMulRk(), and _readRk().
|
static |
Read 16-bit unsigned integer.
string | $data | |
int | $pos |
Definition at line 6361 of file Excel5.php.
Referenced by _getFormulaFromStructure(), _getNextToken(), _getSplicedRecordData(), _readBIFF5CellRangeAddressFixed(), _readBIFF5CellRangeAddressList(), _readBIFF8CellAddress(), _readBIFF8CellAddressB(), _readBIFF8CellRangeAddress(), _readBIFF8CellRangeAddressB(), _readBIFF8CellRangeAddressFixed(), _readBIFF8CellRangeAddressList(), _readBIFF8ConstantArray(), _readBlank(), PHPExcel_Reader_Excel5_Escher\_readBlipJPEG(), PHPExcel_Reader_Excel5_Escher\_readBlipPNG(), _readBof(), _readBoolErr(), _readBottomMargin(), PHPExcel_Reader_Excel5_Escher\_readBSE(), _readByteStringLong(), PHPExcel_Reader_Excel5_Escher\_readClientAnchor(), PHPExcel_Reader_Excel5_Escher\_readClientTextbox(), _readCodepage(), _readColInfo(), _readContinue(), _readDataValidation(), _readDataValidations(), _readDateMode(), PHPExcel_Reader_Excel5_Escher\_readDefault(), _readDefault(), _readDefaultRowHeight(), _readDefColWidth(), _readDefinedName(), _readDocumentSummaryInformation(), _readExternalBook(), _readExternName(), _readExternSheet(), _readFilepass(), _readFont(), _readFooter(), _readFormat(), _readFormula(), _readHcenter(), _readHeader(), _readHorizontalPageBreaks(), _readHyperLink(), _readImData(), _readLabel(), _readLabelSst(), _readLeftMargin(), _readMergedCells(), _readMsoDrawing(), _readMsoDrawingGroup(), _readMulBlank(), _readMulRk(), _readNote(), _readNumber(), _readObj(), _readObjectProtect(), PHPExcel_Reader_Excel5_Escher\_readOfficeArtRGFOPTE(), PHPExcel_Reader_Excel5_Escher\_readOPT(), _readPageSetup(), _readPalette(), _readPane(), _readPassword(), _readPrintGridlines(), _readProtect(), _readRangeProtection(), _readRightMargin(), _readRk(), _readRow(), _readScenProtect(), _readScl(), _readSelection(), _readSharedFmla(), _readSheet(), _readSheetLayout(), _readSheetPr(), _readSheetProtection(), PHPExcel_Reader_Excel5_Escher\_readSp(), _readSst(), _readString(), _readStyle(), _readSummaryInformation(), PHPExcel_Reader_Excel5_Escher\_readTertiaryOPT(), _readTextObject(), _readTopMargin(), _readUnicodeStringLong(), _readVcenter(), _readVerticalPageBreaks(), _readWindow2(), _readXf(), _readXfExt(), listWorksheetNames(), PHPExcel_Reader_Excel5_Escher\load(), and load().
|
static |
Read 32-bit signed integer.
string | $data | |
int | $pos |
Definition at line 6373 of file Excel5.php.
Referenced by _extractNumber(), PHPExcel_Reader_Excel5_Escher\_readBlipJPEG(), PHPExcel_Reader_Excel5_Escher\_readBlipPNG(), PHPExcel_Reader_Excel5_Escher\_readBSE(), PHPExcel_Reader_Excel5_Escher\_readBstoreContainer(), PHPExcel_Reader_Excel5_Escher\_readClientAnchor(), PHPExcel_Reader_Excel5_Escher\_readClientData(), PHPExcel_Reader_Excel5_Escher\_readClientTextbox(), _readDataValidation(), PHPExcel_Reader_Excel5_Escher\_readDefault(), PHPExcel_Reader_Excel5_Escher\_readDg(), PHPExcel_Reader_Excel5_Escher\_readDgContainer(), PHPExcel_Reader_Excel5_Escher\_readDgg(), PHPExcel_Reader_Excel5_Escher\_readDggContainer(), _readDocumentSummaryInformation(), _readHyperLink(), _readImData(), _readLabelSst(), PHPExcel_Reader_Excel5_Escher\_readOfficeArtRGFOPTE(), PHPExcel_Reader_Excel5_Escher\_readOPT(), _readRangeProtection(), _readRk(), _readRow(), _readSheet(), _readSheetLayout(), PHPExcel_Reader_Excel5_Escher\_readSp(), PHPExcel_Reader_Excel5_Escher\_readSpContainer(), PHPExcel_Reader_Excel5_Escher\_readSpgr(), PHPExcel_Reader_Excel5_Escher\_readSpgrContainer(), PHPExcel_Reader_Excel5_Escher\_readSplitMenuColors(), _readSst(), _readSummaryInformation(), PHPExcel_Reader_Excel5_Escher\_readTertiaryOPT(), and _readXf().
|
private |
Fetch next token from binary formula data.
string | Formula data | |
string | $baseCell | Base cell, only needed when formula contains tRefN tokens, e.g. with shared formulas |
Exception |
Definition at line 5057 of file Excel5.php.
References $data, $name, _extractNumber(), _getFormulaFromData(), _GetInt2d(), _mapErrorCode(), _readBIFF8CellAddress(), _readBIFF8CellAddressB(), _readBIFF8CellRangeAddress(), _readBIFF8CellRangeAddressB(), _readSheetRangeByRefIndex(), _readUnicodeStringShort(), and _UTF8toExcelDoubleQuoted().
Referenced by _getFormulaFromData().
|
private |
Reads a record from current position in data stream and continues reading data as long as CONTINUE records are found.
Splices the record data pieces and returns the combined string as if record data is in one piece. Moves to next current position in data stream to start of next record different from a CONtINUE record
Definition at line 4789 of file Excel5.php.
References $data, and _GetInt2d().
Referenced by _readContinue(), _readImData(), _readMsoDrawing(), _readMsoDrawingGroup(), _readSst(), and _readTextObject().
|
private |
Definition at line 4060 of file Excel5.php.
References $row, PHPExcel_Cell\getRangeBoundaries(), and getReadFilter().
Referenced by _readMergedCells().
|
private |
Use OLE reader to extract the relevant data streams from the OLE file.
string | $pFilename |
Definition at line 1063 of file Excel5.php.
References $res.
Referenced by listWorksheetNames(), and load().
|
staticprivate |
Map border style OpenOffice documentation: 2.5.11.
int | $index |
Definition at line 6424 of file Excel5.php.
References PHPExcel_Style_Border\BORDER_DASHDOT, PHPExcel_Style_Border\BORDER_DASHDOTDOT, PHPExcel_Style_Border\BORDER_DASHED, PHPExcel_Style_Border\BORDER_DOTTED, PHPExcel_Style_Border\BORDER_DOUBLE, PHPExcel_Style_Border\BORDER_HAIR, PHPExcel_Style_Border\BORDER_MEDIUM, PHPExcel_Style_Border\BORDER_MEDIUMDASHDOT, PHPExcel_Style_Border\BORDER_MEDIUMDASHDOTDOT, PHPExcel_Style_Border\BORDER_MEDIUMDASHED, PHPExcel_Style_Border\BORDER_NONE, PHPExcel_Style_Border\BORDER_SLANTDASHDOT, PHPExcel_Style_Border\BORDER_THICK, and PHPExcel_Style_Border\BORDER_THIN.
|
staticprivate |
Map built-in color to RGB value.
int | $color | Indexed color |
Definition at line 6504 of file Excel5.php.
Referenced by _readColor().
|
staticprivate |
Map color array from BIFF8 built-in color index.
int | $subData |
Definition at line 6596 of file Excel5.php.
Referenced by _readColor().
|
staticprivate |
Map color array from BIFF5 built-in color index.
int | $subData |
Definition at line 6527 of file Excel5.php.
Referenced by _readColor().
|
staticprivate |
Map error code, e.g.
'#N/A'
int | $subData |
Definition at line 6484 of file Excel5.php.
Referenced by _getNextToken(), _readBIFF8Constant(), _readBoolErr(), and _readFormula().
|
staticprivate |
Get fill pattern from index OpenOffice documentation: 2.5.12.
int | $index |
Definition at line 6452 of file Excel5.php.
References PHPExcel_Style_Fill\FILL_NONE, PHPExcel_Style_Fill\FILL_PATTERN_DARKDOWN, PHPExcel_Style_Fill\FILL_PATTERN_DARKGRAY, PHPExcel_Style_Fill\FILL_PATTERN_DARKGRID, PHPExcel_Style_Fill\FILL_PATTERN_DARKHORIZONTAL, PHPExcel_Style_Fill\FILL_PATTERN_DARKTRELLIS, PHPExcel_Style_Fill\FILL_PATTERN_DARKUP, PHPExcel_Style_Fill\FILL_PATTERN_DARKVERTICAL, PHPExcel_Style_Fill\FILL_PATTERN_GRAY0625, PHPExcel_Style_Fill\FILL_PATTERN_GRAY125, PHPExcel_Style_Fill\FILL_PATTERN_LIGHTDOWN, PHPExcel_Style_Fill\FILL_PATTERN_LIGHTGRAY, PHPExcel_Style_Fill\FILL_PATTERN_LIGHTGRID, PHPExcel_Style_Fill\FILL_PATTERN_LIGHTHORIZONTAL, PHPExcel_Style_Fill\FILL_PATTERN_LIGHTTRELLIS, PHPExcel_Style_Fill\FILL_PATTERN_LIGHTUP, PHPExcel_Style_Fill\FILL_PATTERN_LIGHTVERTICAL, PHPExcel_Style_Fill\FILL_PATTERN_MEDIUMGRAY, and PHPExcel_Style_Fill\FILL_SOLID.
|
private |
Definition at line 6659 of file Excel5.php.
Referenced by _readNote(), and load().
|
private |
Reads a cell range address in BIFF5 e.g.
'A2:B6' or 'A1' always fixed range section 2.5.14
string | $subData |
Exception |
Definition at line 5695 of file Excel5.php.
References _GetInt2d(), and PHPExcel_Cell\stringFromColumnIndex().
Referenced by _readBIFF5CellRangeAddressList(), and _readSharedFmla().
|
private |
Read BIFF5 cell range address list section 2.5.15.
string | $subData |
Definition at line 5930 of file Excel5.php.
References _GetInt2d(), and _readBIFF5CellRangeAddressFixed().
Referenced by _readSelection().
|
private |
Reads a cell address in BIFF8 e.g.
'A2' or '$A$2' section 3.3.4
string | $cellAddressStructure |
Definition at line 5621 of file Excel5.php.
References $row, _GetInt2d(), and PHPExcel_Cell\stringFromColumnIndex().
Referenced by _getNextToken(), and _readNote().
|
private |
Reads a cell address in BIFF8 for shared formulas.
Uses positive and negative values for row and column to indicate offsets from a base cell section 3.3.4
string | $cellAddressStructure | |
string | $baseCell | Base cell, only needed when formula contains tRefN tokens, e.g. with shared formulas |
Definition at line 5652 of file Excel5.php.
References $row, _GetInt2d(), PHPExcel_Cell\columnIndexFromString(), PHPExcel_Cell\coordinateFromString(), and PHPExcel_Cell\stringFromColumnIndex().
Referenced by _getNextToken().
|
private |
Reads a cell range address in BIFF8 e.g.
'A2:B6' or '$A$2:$B$6' there are flags indicating whether column/row index is relative section 3.3.4
string | $subData |
Definition at line 5770 of file Excel5.php.
References _GetInt2d(), and PHPExcel_Cell\stringFromColumnIndex().
Referenced by _getNextToken().
|
private |
Reads a cell range address in BIFF8 for shared formulas.
Uses positive and negative values for row and column to indicate offsets from a base cell section 3.3.4
string | $subData | |
string | $baseCell | Base cell |
Definition at line 5823 of file Excel5.php.
References _GetInt2d(), PHPExcel_Cell\columnIndexFromString(), PHPExcel_Cell\coordinateFromString(), and PHPExcel_Cell\stringFromColumnIndex().
Referenced by _getNextToken().
|
private |
Reads a cell range address in BIFF8 e.g.
'A2:B6' or 'A1' always fixed range section 2.5.14
string | $subData |
Exception |
Definition at line 5733 of file Excel5.php.
References _GetInt2d(), and PHPExcel_Cell\stringFromColumnIndex().
Referenced by _readBIFF8CellRangeAddressList(), _readHyperLink(), and _readRangeProtection().
|
private |
Read BIFF8 cell range address list section 2.5.15.
string | $subData |
Definition at line 5903 of file Excel5.php.
References _GetInt2d(), and _readBIFF8CellRangeAddressFixed().
Referenced by _createFormulaFromTokens(), _readDataValidation(), and _readMergedCells().
|
staticprivate |
read BIFF8 constant value which may be 'Empty Value', 'Number', 'String Value', 'Boolean Value', 'Error Value' section 2.5.7 returns e.g.
array('value' => '5', 'size' => 9)
string | $valueData |
Definition at line 6053 of file Excel5.php.
References _extractNumber(), _mapErrorCode(), and _readUnicodeStringLong().
Referenced by _readBIFF8ConstantArray().
|
staticprivate |
read BIFF8 constant value array from array data returns e.g.
array('value' => '{1,2;3,4}', 'size' => 40} section 2.5.8
string | $arrayData |
Definition at line 6015 of file Excel5.php.
References _GetInt2d(), and _readBIFF8Constant().
Referenced by _createFormulaFromTokens().
|
private |
Read BLANK record.
Definition at line 3841 of file Excel5.php.
References $row, _GetInt2d(), getReadFilter(), and PHPExcel_Cell\stringFromColumnIndex().
Referenced by load().
|
private |
Read BOF.
Definition at line 1513 of file Excel5.php.
References _GetInt2d(), and _readDefault().
Referenced by listWorksheetNames(), and load().
|
private |
Read BOOLERR record This record represents a Boolean value or error value cell.
– "OpenOffice.org's Documentation of the Microsoft Excel File Format"
Definition at line 3700 of file Excel5.php.
References $row, _GetInt2d(), _mapErrorCode(), getReadFilter(), PHPExcel_Cell\stringFromColumnIndex(), PHPExcel_Cell_DataType\TYPE_BOOL, and PHPExcel_Cell_DataType\TYPE_ERROR.
Referenced by load().
|
private |
Read BOTTOMMARGIN record.
Definition at line 2980 of file Excel5.php.
References _GetInt2d().
Referenced by load().
|
private |
Read byte string (16-bit string length) OpenOffice documentation: 2.5.2.
string | $subData |
Definition at line 6147 of file Excel5.php.
References _decodeCodepage(), and _GetInt2d().
Referenced by _readLabel(), and _readString().
|
private |
Read byte string (8-bit string length) OpenOffice documentation: 2.5.2.
string | $subData |
Definition at line 6126 of file Excel5.php.
References _decodeCodepage().
Referenced by _readFont(), _readFooter(), _readFormat(), _readHeader(), and _readSheet().
|
private |
CODEPAGE.
This record stores the text encoding used to write byte strings, stored as MS Windows code page identifier.
– "OpenOffice.org's Documentation of the Microsoft Excel File Format"
Definition at line 1580 of file Excel5.php.
References _GetInt2d(), and PHPExcel_Shared_CodePage\NumberToName().
Referenced by load().
|
private |
Read COLINFO record.
Definition at line 3158 of file Excel5.php.
References _GetInt2d().
Referenced by load().
|
staticprivate |
Read color.
int | $color | Indexed color |
array | $palette | Color palette |
Definition at line 6395 of file Excel5.php.
References _mapBuiltInColor(), _mapColor(), and _mapColorBIFF5().
Referenced by _readSheetLayout(), and load().
|
private |
Read a free CONTINUE record.
Free CONTINUE record may be a camouflaged MSODRAWING record When MSODRAWING data on a sheet exceeds 8224 bytes, CONTINUE records are used instead. Undocumented. In this case, we must treat the CONTINUE record as a MSODRAWING record
Definition at line 4736 of file Excel5.php.
References _GetInt2d(), and _getSplicedRecordData().
Referenced by load().
|
private |
Read DATAVALIDATION record.
Definition at line 4296 of file Excel5.php.
References $error, $type, _getFormulaFromStructure(), _GetInt2d(), _GetInt4d(), _readBIFF8CellRangeAddressList(), _readUnicodeStringLong(), PHPExcel_Cell\extractAllCellReferencesInRange(), PHPExcel_Cell_DataValidation\OPERATOR_BETWEEN, PHPExcel_Cell_DataValidation\OPERATOR_EQUAL, PHPExcel_Cell_DataValidation\OPERATOR_GREATERTHAN, PHPExcel_Cell_DataValidation\OPERATOR_GREATERTHANOREQUAL, PHPExcel_Cell_DataValidation\OPERATOR_LESSTHAN, PHPExcel_Cell_DataValidation\OPERATOR_LESSTHANOREQUAL, PHPExcel_Cell_DataValidation\OPERATOR_NOTBETWEEN, PHPExcel_Cell_DataValidation\OPERATOR_NOTEQUAL, PHPExcel_Cell_DataValidation\STYLE_INFORMATION, PHPExcel_Cell_DataValidation\STYLE_STOP, PHPExcel_Cell_DataValidation\STYLE_WARNING, PHPExcel_Cell_DataValidation\TYPE_CUSTOM, PHPExcel_Cell_DataValidation\TYPE_DATE, PHPExcel_Cell_DataValidation\TYPE_DECIMAL, PHPExcel_Cell_DataValidation\TYPE_LIST, PHPExcel_Cell_DataValidation\TYPE_NONE, PHPExcel_Cell_DataValidation\TYPE_TEXTLENGTH, PHPExcel_Cell_DataValidation\TYPE_TIME, and PHPExcel_Cell_DataValidation\TYPE_WHOLE.
Referenced by load().
|
private |
Read DATAVALIDATIONS record.
Definition at line 4284 of file Excel5.php.
References _GetInt2d().
Referenced by load().
|
private |
DATEMODE.
This record specifies the base date for displaying date values. All dates are stored as count of days past this base date. In BIFF2-BIFF4 this record is part of the Calculation Settings Block. In BIFF5-BIFF8 it is stored in the Workbook Globals Substream.
– "OpenOffice.org's Documentation of the Microsoft Excel File Format"
Definition at line 1606 of file Excel5.php.
References _GetInt2d(), PHPExcel_Shared_Date\CALENDAR_MAC_1904, PHPExcel_Shared_Date\CALENDAR_WINDOWS_1900, and PHPExcel_Shared_Date\setExcelCalendar().
Referenced by load().
|
private |
Reads a general type of BIFF record.
Does nothing except for moving stream pointer forward to next record.
Definition at line 1398 of file Excel5.php.
References _GetInt2d().
Referenced by _readBof(), listWorksheetNames(), and load().
|
private |
Read DEFAULTROWHEIGHT record.
Definition at line 2740 of file Excel5.php.
References _GetInt2d().
Referenced by load().
|
private |
Read DEFCOLWIDTH record.
Definition at line 3140 of file Excel5.php.
References _GetInt2d().
Referenced by load().
|
private |
DEFINEDNAME.
This record is part of a Link Table. It contains the name and the token array of an internal defined name. Token arrays of defined names contain tokens with aberrant token classes.
– "OpenOffice.org's Documentation of the Microsoft Excel File Format"
Definition at line 2463 of file Excel5.php.
References _getFormulaFromStructure(), _GetInt2d(), and _readUnicodeString().
Referenced by load().
|
private |
Read additional document summary information.
Definition at line 1245 of file Excel5.php.
References $type, _GetInt2d(), _GetInt4d(), PHPExcel_Shared_String\ConvertEncoding(), PHPExcel_Shared_CodePage\NumberToName(), and PHPExcel_Shared_OLE\OLE2LocalDate().
Referenced by load().
|
private |
Read EXTERNALBOOK record.
Definition at line 2330 of file Excel5.php.
References _GetInt2d(), and _readUnicodeStringLong().
Referenced by load().
|
private |
Read EXTERNNAME record.
Definition at line 2393 of file Excel5.php.
References _getFormulaFromStructure(), _GetInt2d(), and _readUnicodeStringShort().
Referenced by load().
|
private |
Read EXTERNSHEET record.
Definition at line 2427 of file Excel5.php.
References _GetInt2d().
Referenced by load().
|
private |
FILEPASS.
This record is part of the File Protection Block. It contains information about the read/write password of the file. All record contents following this record will be encrypted.
– "OpenOffice.org's Documentation of the Microsoft Excel File Format"
Definition at line 1560 of file Excel5.php.
References _GetInt2d().
Referenced by load().
|
private |
Read a FONT record.
Definition at line 1624 of file Excel5.php.
References _GetInt2d(), _readByteStringShort(), _readUnicodeStringShort(), PHPExcel_Style_Font\UNDERLINE_DOUBLE, PHPExcel_Style_Font\UNDERLINE_DOUBLEACCOUNTING, PHPExcel_Style_Font\UNDERLINE_SINGLE, and PHPExcel_Style_Font\UNDERLINE_SINGLEACCOUNTING.
Referenced by load().
|
private |
Read FOOTER record.
Definition at line 2865 of file Excel5.php.
References _GetInt2d(), _readByteStringShort(), and _readUnicodeStringLong().
Referenced by load().
|
private |
FORMAT.
This record contains information about a number format. All FORMAT records occur together in a sequential list.
In BIFF2-BIFF4 other records referencing a FORMAT record contain a zero-based index into this list. From BIFF5 on the FORMAT record contains the index itself that will be used by other records.
– "OpenOffice.org's Documentation of the Microsoft Excel File Format"
Definition at line 1721 of file Excel5.php.
References _GetInt2d(), _readByteStringShort(), and _readUnicodeStringLong().
Referenced by load().
|
private |
Read FORMULA record + perhaps a following STRING record if formula result is a string This record contains the token array and the result of a formula cell.
– "OpenOffice.org's Documentation of the Microsoft Excel File Format"
Definition at line 3501 of file Excel5.php.
References $row, _extractNumber(), _getFormulaFromStructure(), _GetInt2d(), _mapErrorCode(), _readSharedFmla(), _readString(), getReadFilter(), PHPExcel_Cell\stringFromColumnIndex(), PHPExcel_Cell_DataType\TYPE_BOOL, PHPExcel_Cell_DataType\TYPE_ERROR, PHPExcel_Cell_DataType\TYPE_FORMULA, PHPExcel_Cell_DataType\TYPE_NULL, PHPExcel_Cell_DataType\TYPE_NUMERIC, and PHPExcel_Cell_DataType\TYPE_STRING.
Referenced by load().
|
private |
Read HCENTER record.
Definition at line 2891 of file Excel5.php.
References _GetInt2d().
Referenced by load().
|
private |
Read HEADER record.
Definition at line 2838 of file Excel5.php.
References _GetInt2d(), _readByteStringShort(), and _readUnicodeStringLong().
Referenced by load().
|
private |
Read HORIZONTALPAGEBREAKS record.
Definition at line 2783 of file Excel5.php.
References _GetInt2d(), and PHPExcel_Worksheet\BREAK_ROW.
Referenced by load().
|
private |
Read HYPERLINK record.
Definition at line 4109 of file Excel5.php.
References $desc, _encodeUTF16(), _GetInt2d(), _GetInt4d(), _readBIFF8CellRangeAddressFixed(), and PHPExcel_Cell\extractAllCellReferencesInRange().
Referenced by load().
|
private |
Read IMDATA record.
Definition at line 4654 of file Excel5.php.
References $filename, $x, $y, _GetInt2d(), _GetInt4d(), and _getSplicedRecordData().
|
private |
Read LABEL record This record represents a cell that contains a string.
In BIFF8 it is usually replaced by the LABELSST record. Excel still uses this record, if it copies unformatted text cells to the clipboard.
– "OpenOffice.org's Documentation of the Microsoft Excel File Format"
Definition at line 3799 of file Excel5.php.
References $row, _GetInt2d(), _readByteStringLong(), _readUnicodeStringLong(), getReadFilter(), PHPExcel_Cell\stringFromColumnIndex(), and PHPExcel_Cell_DataType\TYPE_STRING.
Referenced by load().
|
private |
Read LABELSST record This record represents a cell that contains a string.
It replaces the LABEL record and RSTRING record used in BIFF2-BIFF5.
– "OpenOffice.org's Documentation of the Microsoft Excel File Format"
Definition at line 3329 of file Excel5.php.
References $row, _GetInt2d(), _GetInt4d(), PHPExcel_Shared_String\CountCharacters(), getReadFilter(), PHPExcel_Cell\stringFromColumnIndex(), PHPExcel_Shared_String\Substring(), and PHPExcel_Cell_DataType\TYPE_STRING.
Referenced by load().
|
private |
Read LEFTMARGIN record.
Definition at line 2929 of file Excel5.php.
References _GetInt2d().
Referenced by load().
|
private |
MERGEDCELLS.
This record contains the addresses of merged cell ranges in the current sheet.
– "OpenOffice.org's Documentation of the Microsoft Excel File Format"
Definition at line 4088 of file Excel5.php.
References _GetInt2d(), _includeCellRangeFiltered(), and _readBIFF8CellRangeAddressList().
Referenced by load().
|
private |
Read MSODRAWING record.
Definition at line 3872 of file Excel5.php.
References _GetInt2d(), and _getSplicedRecordData().
Referenced by load().
|
private |
Read MSODRAWINGGROUP record.
Definition at line 2517 of file Excel5.php.
References _GetInt2d(), and _getSplicedRecordData().
Referenced by load().
|
private |
Read MULBLANK record This record represents a cell range of empty cells.
All cells are located in the same row
– "OpenOffice.org's Documentation of the Microsoft Excel File Format"
Definition at line 3758 of file Excel5.php.
References $row, _GetInt2d(), getReadFilter(), and PHPExcel_Cell\stringFromColumnIndex().
Referenced by load().
|
private |
Read MULRK record This record represents a cell range containing RK value cells.
All cells are located in the same row.
– "OpenOffice.org's Documentation of the Microsoft Excel File Format"
Definition at line 3406 of file Excel5.php.
References $row, _GetIEEE754(), _GetInt2d(), getReadFilter(), PHPExcel_Cell\stringFromColumnIndex(), and PHPExcel_Cell_DataType\TYPE_NUMERIC.
Referenced by load().
|
private |
The NOTE record specifies a comment associated with a particular cell.
In Excel 95 (BIFF7) and earlier versions, this record stores a note (cell note). This feature was significantly enhanced in Excel 97.
Definition at line 1412 of file Excel5.php.
References $comment, $row, _GetInt2d(), _parseRichText(), _readBIFF8CellAddress(), and _readUnicodeStringLong().
Referenced by load().
|
private |
Read NUMBER record This record represents a cell that contains a floating-point value.
– "OpenOffice.org's Documentation of the Microsoft Excel File Format"
Definition at line 3460 of file Excel5.php.
References $row, _extractNumber(), _GetInt2d(), getReadFilter(), PHPExcel_Cell\stringFromColumnIndex(), and PHPExcel_Cell_DataType\TYPE_NUMERIC.
Referenced by load().
|
private |
Read OBJ record.
Definition at line 3886 of file Excel5.php.
References _GetInt2d().
Referenced by load().
|
private |
OBJECTPROTECT.
Definition at line 3099 of file Excel5.php.
References _GetInt2d().
Referenced by load().
|
private |
Read PAGESETUP record.
Definition at line 2997 of file Excel5.php.
References _extractNumber(), _GetInt2d(), PHPExcel_Worksheet_PageSetup\ORIENTATION_LANDSCAPE, and PHPExcel_Worksheet_PageSetup\ORIENTATION_PORTRAIT.
Referenced by load().
|
private |
Read PALETTE record.
Definition at line 2256 of file Excel5.php.
References _GetInt2d(), and _readRGB().
Referenced by load().
|
private |
Read PANE record.
Definition at line 3986 of file Excel5.php.
References _GetInt2d(), and PHPExcel_Cell\stringFromColumnIndex().
Referenced by load().
|
private |
PASSWORD - Sheet protection (hashed) password (BIFF2 through BIFF8)
Definition at line 3122 of file Excel5.php.
References _GetInt2d().
Referenced by load().
|
private |
Read PRINTGRIDLINES record.
Definition at line 2722 of file Excel5.php.
References _GetInt2d().
Referenced by load().
|
private |
PROTECT - Sheet protection (BIFF2 through BIFF8) if this record is omitted, then it also means no sheet protection.
Definition at line 3054 of file Excel5.php.
References _GetInt2d().
Referenced by load().
|
private |
Read RANGEPROTECTION record Reading of this record is based on Microsoft Office Excel 97-2000 Binary File Format Specification, where it is referred to as FEAT record.
Definition at line 4594 of file Excel5.php.
References _GetInt2d(), _GetInt4d(), and _readBIFF8CellRangeAddressFixed().
Referenced by load().
|
staticprivate |
Extract RGB color OpenOffice.org's Documentation of the Microsoft Excel File Format, section 2.5.4.
string | $rgb | Encoded RGB value (4 bytes) |
Definition at line 6102 of file Excel5.php.
Referenced by _readPalette().
|
private |
Read RIGHTMARGIN record.
Definition at line 2946 of file Excel5.php.
References _GetInt2d().
Referenced by load().
|
private |
Read RK record This record represents a cell that contains an RK value (encoded integer or floating-point value).
If a floating-point value cannot be encoded to an RK value, a NUMBER record will be written. This record replaces the record INTEGER written in BIFF2.
– "OpenOffice.org's Documentation of the Microsoft Excel File Format"
Definition at line 3285 of file Excel5.php.
References $row, _GetIEEE754(), _GetInt2d(), _GetInt4d(), getReadFilter(), PHPExcel_Cell\stringFromColumnIndex(), and PHPExcel_Cell_DataType\TYPE_NUMERIC.
Referenced by load().
|
private |
ROW.
This record contains the properties of a single row in a sheet. Rows and cells in a sheet are divided into blocks of 32 rows.
– "OpenOffice.org's Documentation of the Microsoft Excel File Format"
Definition at line 3216 of file Excel5.php.
References _GetInt2d(), and _GetInt4d().
Referenced by load().
|
private |
SCENPROTECT.
Definition at line 3076 of file Excel5.php.
References _GetInt2d().
Referenced by load().
|
private |
Read SCL record.
Definition at line 3965 of file Excel5.php.
References _GetInt2d().
Referenced by load().
|
private |
Read SELECTION record.
There is one such record for each pane in the sheet.
Definition at line 4013 of file Excel5.php.
References $data, _GetInt2d(), and _readBIFF5CellRangeAddressList().
Referenced by load().
|
private |
Read a SHAREDFMLA record.
This function just stores the binary shared formula in the reader, which usually contains relative references. These will be used to construct the formula in each shared formula part after the sheet is read.
Definition at line 3641 of file Excel5.php.
References _GetInt2d(), and _readBIFF5CellRangeAddressFixed().
Referenced by _readFormula(), and load().
|
private |
SHEET.
This record is located in the Workbook Globals Substream and represents a sheet inside the workbook. One SHEET record is written for each sheet. It stores the sheet name and a stream offset to the BOF record of the respective Sheet Substream within the Workbook Stream.
– "OpenOffice.org's Documentation of the Microsoft Excel File Format"
Definition at line 2288 of file Excel5.php.
References _GetInt2d(), _GetInt4d(), _readByteStringShort(), _readUnicodeStringShort(), PHPExcel_Worksheet\SHEETSTATE_HIDDEN, PHPExcel_Worksheet\SHEETSTATE_VERYHIDDEN, and PHPExcel_Worksheet\SHEETSTATE_VISIBLE.
Referenced by listWorksheetNames(), and load().
|
private |
Read SHEETLAYOUT record.
Stores sheet tab color information.
Definition at line 4455 of file Excel5.php.
References _GetInt2d(), _GetInt4d(), and _readColor().
Referenced by load().
|
private |
Read SHEETPR record.
Definition at line 2757 of file Excel5.php.
References _GetInt2d().
Referenced by load().
|
private |
Read SHEETPROTECTION record (FEATHEADR)
Definition at line 4494 of file Excel5.php.
References _GetInt2d().
Referenced by load().
|
private |
Get a sheet range like Sheet1:Sheet3 from REF index Note: If there is only one sheet in the range, one gets e.g Sheet1 It can also happen that the REF structure uses the -1 (FFFF) code to indicate deleted sheets, in which case an exception is thrown.
int | $index |
Exception |
Definition at line 5960 of file Excel5.php.
References $type.
Referenced by _getNextToken().
|
private |
SST - Shared String Table.
This record contains a list of all strings used anywhere in the workbook. Each string occurs only once. The workbook uses indexes into the list to reference the strings.
– "OpenOffice.org's Documentation of the Microsoft Excel File Format"
Definition at line 2539 of file Excel5.php.
References $pos, _encodeUTF16(), _GetInt2d(), _GetInt4d(), and _getSplicedRecordData().
Referenced by load().
|
private |
Read a STRING record from current stream position and advance the stream pointer to next record This record is used for storing result from FORMULA record when it is a string, and it occurs directly after the FORMULA record.
Definition at line 3673 of file Excel5.php.
References _GetInt2d(), _readByteStringLong(), and _readUnicodeStringLong().
Referenced by _readFormula().
|
private |
Read STYLE record.
Definition at line 2216 of file Excel5.php.
References _GetInt2d().
Referenced by load().
|
private |
Read summary information.
Definition at line 1086 of file Excel5.php.
References $type, _GetInt2d(), _GetInt4d(), PHPExcel_Shared_String\ConvertEncoding(), PHPExcel_Shared_CodePage\NumberToName(), and PHPExcel_Shared_OLE\OLE2LocalDate().
Referenced by load().
|
private |
The TEXT Object record contains the text associated with a cell annotation.
Definition at line 1474 of file Excel5.php.
References _GetInt2d(), and _getSplicedRecordData().
Referenced by load().
|
private |
Read TOPMARGIN record.
Definition at line 2963 of file Excel5.php.
References _GetInt2d().
Referenced by load().
|
staticprivate |
Read Unicode string with no string length field, but with known character count this function is under construction, needs to support rich text, and Asian phonetic settings OpenOffice.org's Documentation of the Microsoft Excel File Format, section 2.5.3.
string | $subData | |
int | $characterCount |
Definition at line 6217 of file Excel5.php.
References _encodeUTF16().
Referenced by _readDefinedName(), _readUnicodeStringLong(), and _readUnicodeStringShort().
|
staticprivate |
Extracts an Excel Unicode long string (16-bit string length) OpenOffice documentation: 2.5.3 this function is under construction, needs to support rich text, and Asian phonetic settings.
string | $subData |
Definition at line 6193 of file Excel5.php.
References _GetInt2d(), and _readUnicodeString().
Referenced by _readBIFF8Constant(), _readDataValidation(), _readExternalBook(), _readFooter(), _readFormat(), _readHeader(), _readLabel(), _readNote(), and _readString().
|
staticprivate |
Extracts an Excel Unicode short string (8-bit string length) OpenOffice documentation: 2.5.3 function will automatically find out where the Unicode string ends.
string | $subData |
Definition at line 6170 of file Excel5.php.
References _readUnicodeString().
Referenced by _getNextToken(), _readExternName(), _readFont(), and _readSheet().
|
private |
Read VCENTER record.
Definition at line 2910 of file Excel5.php.
References _GetInt2d().
Referenced by load().
|
private |
Read VERTICALPAGEBREAKS record.
Definition at line 2811 of file Excel5.php.
References _GetInt2d(), and PHPExcel_Worksheet\BREAK_COLUMN.
Referenced by load().
|
private |
Read WINDOW2 record.
Definition at line 3930 of file Excel5.php.
References _GetInt2d().
Referenced by load().
|
private |
XF - Extended Format.
This record contains formatting information for cells, rows, columns or styles. According to http://support.microsoft.com/kb/147732 there are always at least 15 cell style XF and 1 cell XF. Inspection of Excel files generated by MS Office Excel shows that XF records 0-14 are cell style XF and XF record 15 is a cell XF We only read the first cell style XF and skip the remaining cell style XF records We read all cell XF records.
– "OpenOffice.org's Documentation of the Microsoft Excel File Format"
Definition at line 1758 of file Excel5.php.
References $_xfIndex, _GetInt2d(), _GetInt4d(), PHPExcel_Style_NumberFormat\builtInFormatCode(), PHPExcel_Style_Borders\DIAGONAL_BOTH, PHPExcel_Style_Borders\DIAGONAL_DOWN, PHPExcel_Style_Borders\DIAGONAL_NONE, PHPExcel_Style_Borders\DIAGONAL_UP, PHPExcel_Style_Alignment\HORIZONTAL_CENTER, PHPExcel_Style_Alignment\HORIZONTAL_CENTER_CONTINUOUS, PHPExcel_Style_Alignment\HORIZONTAL_GENERAL, PHPExcel_Style_Alignment\HORIZONTAL_JUSTIFY, PHPExcel_Style_Alignment\HORIZONTAL_LEFT, PHPExcel_Style_Alignment\HORIZONTAL_RIGHT, PHPExcel_Style_Protection\PROTECTION_INHERIT, PHPExcel_Style_Protection\PROTECTION_PROTECTED, PHPExcel_Style_Protection\PROTECTION_UNPROTECTED, PHPExcel_Style_Alignment\VERTICAL_BOTTOM, PHPExcel_Style_Alignment\VERTICAL_CENTER, PHPExcel_Style_Alignment\VERTICAL_JUSTIFY, and PHPExcel_Style_Alignment\VERTICAL_TOP.
Referenced by load().
|
private |
Definition at line 2040 of file Excel5.php.
References _GetInt2d().
Referenced by load().
|
staticprivate |
Convert UTF-16 string in compressed notation to uncompressed form.
Only used for BIFF8.
string | $string |
Definition at line 6332 of file Excel5.php.
Referenced by _encodeUTF16().
|
staticprivate |
Convert UTF-8 string to string surounded by double quotes.
Used for explicit string tokens in formulas. Example: hello"world –> "hello""world"
string | $value | UTF-8 encoded string |
Definition at line 6250 of file Excel5.php.
Referenced by _getNextToken().
PHPExcel_Reader_Excel5::canRead | ( | $pFilename | ) |
Can the current PHPExcel_Reader_IReader read the file?
string | $pFileName |
Implements PHPExcel_Reader_IReader.
Definition at line 505 of file Excel5.php.
References $res.
PHPExcel_Reader_Excel5::getLoadSheetsOnly | ( | ) |
Get which sheets to load Returns either an array of worksheet names (the list of worksheets that should be loaded), or a null indicating that all worksheets in the workbook should be loaded.
Definition at line 439 of file Excel5.php.
References $_loadSheetsOnly.
PHPExcel_Reader_Excel5::getReadDataOnly | ( | ) |
Read data only? If this is true, then the Reader will only read data values for cells, it will not read any formatting information.
If false (the default) it will read data and formatting.
Definition at line 412 of file Excel5.php.
References $_readDataOnly.
PHPExcel_Reader_Excel5::getReadFilter | ( | ) |
Read filter.
Definition at line 477 of file Excel5.php.
References $_readFilter.
Referenced by _includeCellRangeFiltered(), _readBlank(), _readBoolErr(), _readFormula(), _readLabel(), _readLabelSst(), _readMulBlank(), _readMulRk(), _readNumber(), _readRk(), and load().
PHPExcel_Reader_Excel5::listWorksheetNames | ( | $pFilename | ) |
Reads names of the worksheets from a file, without parsing the whole file to a PHPExcel object.
string | $pFilename |
Exception |
Definition at line 531 of file Excel5.php.
References _GetInt2d(), _loadOLE(), _readBof(), _readDefault(), and _readSheet().
PHPExcel_Reader_Excel5::load | ( | $pFilename | ) |
Loads PHPExcel from file.
string | $pFilename |
Exception |
Implements PHPExcel_Reader_IReader.
Definition at line 581 of file Excel5.php.
References $_phpExcel, $reader, $row, _getFormulaFromStructure(), _GetInt2d(), _loadOLE(), _parseRichText(), _readBlank(), _readBof(), _readBoolErr(), _readBottomMargin(), _readCodepage(), _readColInfo(), _readColor(), _readContinue(), _readDataValidation(), _readDataValidations(), _readDateMode(), _readDefault(), _readDefaultRowHeight(), _readDefColWidth(), _readDefinedName(), _readDocumentSummaryInformation(), _readExternalBook(), _readExternName(), _readExternSheet(), _readFilepass(), _readFont(), _readFooter(), _readFormat(), _readFormula(), _readHcenter(), _readHeader(), _readHorizontalPageBreaks(), _readHyperLink(), _readLabel(), _readLabelSst(), _readLeftMargin(), _readMergedCells(), _readMsoDrawing(), _readMsoDrawingGroup(), _readMulBlank(), _readMulRk(), _readNote(), _readNumber(), _readObj(), _readObjectProtect(), _readPageSetup(), _readPalette(), _readPane(), _readPassword(), _readPrintGridlines(), _readProtect(), _readRangeProtection(), _readRightMargin(), _readRk(), _readRow(), _readScenProtect(), _readScl(), _readSelection(), _readSharedFmla(), _readSheet(), _readSheetLayout(), _readSheetPr(), _readSheetProtection(), _readSst(), _readStyle(), _readSummaryInformation(), _readTextObject(), _readTopMargin(), _readVcenter(), _readVerticalPageBreaks(), _readWindow2(), _readXf(), _readXfExt(), PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE\BLIPTYPE_JPEG, PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE\BLIPTYPE_PNG, PHPExcel_Cell\coordinateFromString(), PHPExcel_Shared_Excel5\getDistanceX(), PHPExcel_Shared_Excel5\getDistanceY(), getReadFilter(), PHPExcel_Worksheet_MemoryDrawing\MIMETYPE_JPEG, PHPExcel_Worksheet_MemoryDrawing\MIMETYPE_PNG, PHPExcel\removeSheetByIndex(), PHPExcel_Worksheet_MemoryDrawing\RENDERING_JPEG, PHPExcel_Worksheet_MemoryDrawing\RENDERING_PNG, PHPExcel_Shared_Excel5\sizeCol(), PHPExcel_Shared_Excel5\sizeRow(), and PHPExcel_Cell_DataType\TYPE_FORMULA.
PHPExcel_Reader_Excel5::setLoadAllSheets | ( | ) |
Set all sheets to load Tells the Reader to load all worksheets from the workbook.
Definition at line 466 of file Excel5.php.
PHPExcel_Reader_Excel5::setLoadSheetsOnly | ( | $value = null | ) |
Set which sheets to load.
mixed | $value | This should be either an array of worksheet names to be loaded, or a string containing a single worksheet name. If NULL, then it tells the Reader to read all worksheets in the workbook |
Definition at line 453 of file Excel5.php.
PHPExcel_Reader_Excel5::setReadDataOnly | ( | $pValue = false | ) |
Set read data only Set to true, to advise the Reader only to read data values for cells, and to ignore any formatting information.
Set to false (the default) to advise the Reader to read both data and formatting for cells.
boolean | $pValue |
Definition at line 426 of file Excel5.php.
PHPExcel_Reader_Excel5::setReadFilter | ( | PHPExcel_Reader_IReadFilter | $pValue | ) |
Set read filter.
PHPExcel_Reader_IReadFilter | $pValue |
Definition at line 487 of file Excel5.php.
|
private |
Definition at line 352 of file Excel5.php.
|
private |
Definition at line 254 of file Excel5.php.
|
private |
Definition at line 211 of file Excel5.php.
|
private |
Definition at line 218 of file Excel5.php.
|
private |
Definition at line 310 of file Excel5.php.
|
private |
Definition at line 197 of file Excel5.php.
|
private |
Definition at line 366 of file Excel5.php.
|
private |
Definition at line 359 of file Excel5.php.
|
private |
Definition at line 289 of file Excel5.php.
|
private |
Definition at line 303 of file Excel5.php.
|
private |
Definition at line 261 of file Excel5.php.
|
private |
Definition at line 324 of file Excel5.php.
|
private |
Definition at line 331 of file Excel5.php.
|
private |
Definition at line 176 of file Excel5.php.
Referenced by getLoadSheetsOnly().
|
private |
Definition at line 387 of file Excel5.php.
|
private |
Definition at line 380 of file Excel5.php.
|
private |
Definition at line 268 of file Excel5.php.
|
private |
Definition at line 338 of file Excel5.php.
|
private |
Definition at line 275 of file Excel5.php.
|
private |
Definition at line 232 of file Excel5.php.
Referenced by load().
|
private |
Definition at line 239 of file Excel5.php.
|
private |
Definition at line 225 of file Excel5.php.
|
private |
Definition at line 168 of file Excel5.php.
Referenced by getReadDataOnly().
|
private |
Definition at line 183 of file Excel5.php.
Referenced by getReadFilter().
|
private |
Definition at line 296 of file Excel5.php.
|
private |
Definition at line 402 of file Excel5.php.
|
private |
Definition at line 394 of file Excel5.php.
|
private |
Definition at line 282 of file Excel5.php.
|
private |
Definition at line 317 of file Excel5.php.
|
private |
Definition at line 190 of file Excel5.php.
|
private |
Definition at line 345 of file Excel5.php.
|
private |
Definition at line 204 of file Excel5.php.
|
private |
Definition at line 246 of file Excel5.php.
|
private |
Definition at line 373 of file Excel5.php.
Referenced by _readXf().
const PHPExcel_Reader_Excel5::XLS_BIFF7 = 0x0500 |
Definition at line 82 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_BIFF8 = 0x0600 |
Definition at line 81 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_ARRAY = 0x0221 |
Definition at line 147 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_BLANK = 0x0201 |
Definition at line 140 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_BOF = 0x0809 |
Definition at line 154 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_BOOLERR = 0x0205 |
Definition at line 143 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_BOTTOMMARGIN = 0x0029 |
Definition at line 106 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_CODEPAGE = 0x0042 |
Definition at line 112 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_COLINFO = 0x007d |
Definition at line 115 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_CONTINUE = 0x003c |
Definition at line 110 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_DATAVALIDATION = 0x01be |
Definition at line 138 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_DATAVALIDATIONS = 0x01b2 |
Definition at line 135 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_DATEMODE = 0x0022 |
Definition at line 101 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_DBCELL = 0x00d7 |
Definition at line 126 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_DEFAULTROWHEIGHT = 0x0225 |
Definition at line 148 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_DEFCOLWIDTH = 0x0055 |
Definition at line 113 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_DEFINEDNAME = 0x0018 |
Definition at line 96 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_DIMENSION = 0x0200 |
Definition at line 139 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_EOF = 0x000a |
Definition at line 88 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_EXTERNALBOOK = 0x01ae |
Definition at line 134 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_EXTERNNAME = 0x0023 |
Definition at line 102 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_EXTERNSHEET = 0x0017 |
Definition at line 95 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_EXTSST = 0x00ff |
Definition at line 133 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_FILEPASS = 0x002f |
Definition at line 108 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_FONT = 0x0031 |
Definition at line 109 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_FOOTER = 0x0015 |
Definition at line 94 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_FORMAT = 0x041e |
Definition at line 152 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_FORMULA = 0x0006 |
Definition at line 87 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_HCENTER = 0x0083 |
Definition at line 118 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_HEADER = 0x0014 |
Definition at line 93 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_HORIZONTALPAGEBREAKS = 0x001b |
Definition at line 98 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_HYPERLINK = 0x01b8 |
Definition at line 137 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_IMDATA = 0x007f |
Definition at line 116 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_INDEX = 0x020b |
Definition at line 146 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_LABEL = 0x0204 |
Definition at line 142 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_LABELSST = 0x00fd |
Definition at line 132 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_LEFTMARGIN = 0x0026 |
Definition at line 103 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_MERGEDCELLS = 0x00e5 |
Definition at line 128 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_MSODRAWING = 0x00ec |
Definition at line 130 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_MSODRAWINGGROUP = 0x00eb |
Definition at line 129 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_MULBLANK = 0x00be |
Definition at line 125 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_MULRK = 0x00bd |
Definition at line 124 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_NOTE = 0x001c |
Definition at line 99 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_NUMBER = 0x0203 |
Definition at line 141 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_OBJ = 0x005d |
Definition at line 114 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_OBJECTPROTECT = 0x0063 |
Definition at line 90 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_PAGESETUP = 0x00a1 |
Definition at line 123 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_PALETTE = 0x0092 |
Definition at line 121 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_PANE = 0x0041 |
Definition at line 111 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_PASSWORD = 0x0013 |
Definition at line 92 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_PRINTGRIDLINES = 0x002b |
Definition at line 107 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_PROTECT = 0x0012 |
Definition at line 89 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_RANGEPROTECTION = 0x0868 |
Definition at line 156 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_RIGHTMARGIN = 0x0027 |
Definition at line 104 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_RK = 0x027e |
Definition at line 150 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_ROW = 0x0208 |
Definition at line 145 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_SCENPROTECT = 0x00dd |
Definition at line 91 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_SCL = 0x00a0 |
Definition at line 122 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_SELECTION = 0x001d |
Definition at line 100 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_SHAREDFMLA = 0x04bc |
Definition at line 153 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_SHEET = 0x0085 |
Definition at line 120 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_SHEETLAYOUT = 0x0862 |
Definition at line 157 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_SHEETPR = 0x0081 |
Definition at line 117 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_SHEETPROTECTION = 0x0867 |
Definition at line 155 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_SST = 0x00fc |
Definition at line 131 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_STRING = 0x0207 |
Definition at line 144 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_STYLE = 0x0293 |
Definition at line 151 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_TOPMARGIN = 0x0028 |
Definition at line 105 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_TXO = 0x01b6 |
Definition at line 136 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_UNKNOWN = 0xffff |
Definition at line 159 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_VCENTER = 0x0084 |
Definition at line 119 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_VERTICALPAGEBREAKS = 0x001a |
Definition at line 97 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_WINDOW2 = 0x023e |
Definition at line 149 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_XF = 0x00e0 |
Definition at line 127 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Type_XFEXT = 0x087d |
Definition at line 158 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_WorkbookGlobals = 0x0005 |
Definition at line 83 of file Excel5.php.
const PHPExcel_Reader_Excel5::XLS_Worksheet = 0x0010 |
Definition at line 84 of file Excel5.php.