$index =
[line 59]
Index for the Worksheet
Index for the Worksheet
$name =
[line 53]
Name of the Worksheet
Name of the Worksheet
$selected =
[line 153]
Bit specifying if the worksheet is selected
Bit specifying if the worksheet is selected
$_active_pane =
[line 147]
The active pane for the worksheet
The active pane for the worksheet
Tags:
$_colinfo =
[line 135]
Array containing format information for columns
Array containing format information for columns
Tags:
$_dim_colmax =
[line 129]
Last column for the DIMENSIONS record
Last column for the DIMENSIONS record
Tags:
$_dim_colmin =
[line 122]
First column for the DIMENSIONS record
First column for the DIMENSIONS record
Tags:
$_dim_rowmax =
[line 115]
Last row for the DIMENSIONS record
Last row for the DIMENSIONS record
Tags:
$_dim_rowmin =
[line 108]
First row for the DIMENSIONS record
First row for the DIMENSIONS record
Tags:
$_filehandle =
[line 77]
Filehandle to the temporary file for storing data
Filehandle to the temporary file for storing data
Tags:
$_firstColumnIndex =
[line 231]
Index of first used column (at least 0)
Index of first used column (at least 0)
Tags:
$_firstRowIndex =
[line 219]
Index of first used row (at least 0)
Index of first used row (at least 0)
Tags:
$_lastColumnIndex =
[line 237]
Index of last used column (no used columns means -1)
Index of last used column (no used columns means -1)
Tags:
$_lastRowIndex =
[line 225]
Index of last used row.
Index of last used row. (no used rows means -1)
Tags:
$_outline_below =
[line 171]
Whether to have outline summary below.
Whether to have outline summary below.
Tags:
$_outline_on =
[line 159]
Whether to use outline.
Whether to use outline.
Tags:
$_outline_right =
[line 177]
Whether to have outline summary at the right.
Whether to have outline summary at the right.
Tags:
$_outline_row_level =
[line 183]
Outline row level.
Outline row level.
Tags:
$_outline_style =
[line 165]
Auto outline styles.
Auto outline styles.
Tags:
$_parser =
[line 71]
Reference to the parser used for parsing formulas
Reference to the parser used for parsing formulas
Tags:
$_phpSheet =
[line 243]
Sheet object
Sheet object
Tags:
$_selection =
[line 141]
Array containing the selected area for the worksheet
Array containing the selected area for the worksheet
Tags:
$_str_table =
[line 201]
Reference to the array containing all the unique strings in the workbook
Reference to the array containing all the unique strings in the workbook
Tags:
$_str_total =
[line 189]
Reference to the total number of strings in the workbook
Reference to the total number of strings in the workbook
Tags:
$_str_unique =
[line 195]
Reference to the number of unique strings in the workbook
Reference to the number of unique strings in the workbook
Tags:
$_tempFilesCreated = array()
[line 213]
List of temporary files created
List of temporary files created
Tags:
$_tmp_dir =
[line 207]
The temporary dir for storing files
The temporary dir for storing files
Tags:
$_url_format =
[line 65]
Reference to the (default) Format object for URLs
Reference to the (default) Format object for URLs
Tags:
$_using_tmpfile =
[line 83]
Boolean indicating if we are using a temporary file for storing data
Boolean indicating if we are using a temporary file for storing data
Tags:
$_xls_colmax =
[line 95]
Maximum number of columns for an Excel spreadsheet (BIFF5)
Maximum number of columns for an Excel spreadsheet (BIFF5)
Tags:
$_xls_rowmax =
[line 89]
Maximum number of rows for an Excel spreadsheet (BIFF5)
Maximum number of rows for an Excel spreadsheet (BIFF5)
Tags:
$_xls_strmax =
[line 101]
Maximum number of characters for a string (LABEL record in BIFF5)
Maximum number of characters for a string (LABEL record in BIFF5)
Tags:
constructor PHPExcel_Writer_Excel5_Worksheet [line 258]
PHPExcel_Writer_Excel5_Worksheet PHPExcel_Writer_Excel5_Worksheet(
$BIFF_version, string
$name, integer
$index, mixed
&$activesheet, mixed
&$firstsheet,
&$str_total,
&$str_unique,
&$str_table, mixed
&$url_format, mixed
&$parser, [string
$tempDir = ''], PHPExcel_Worksheet
$phpSheet)
|
|
Constructor
Constructor
Tags:
Parameters:
method activate [line 590]
Set this worksheet as the active worksheet, i.
Set this worksheet as the active worksheet, i.e. the worksheet that is displayed when the workbook is opened. Also set it as selected.
Tags:
method cleanup [line 320]
method close [line 375]
void close(
array
$sheetnames)
|
|
Add data to the beginning of the workbook (note the reverse order) and to the end of the workbook.
Add data to the beginning of the workbook (note the reverse order) and to the end of the workbook.
Tags:
Parameters:
method getData [line 547]
Retrieves data from memory in one chunk, or from disk in $buffer sized chunks.
Retrieves data from memory in one chunk, or from disk in $buffer sized chunks.
Tags:
method getName [line 536]
Retrieve the worksheet name.
Retrieve the worksheet name. This is usefull when creating worksheets without a name.
Tags:
method insertBitmap [line 2525]
void insertBitmap(
integer
$row, integer
$col, mixed
$bitmap, [integer
$x = 0], [integer
$y = 0], [float
$scale_x = 1], [float
$scale_y = 1])
|
|
Insert a 24bit bitmap image in a worksheet.
Insert a 24bit bitmap image in a worksheet.
Tags:
Parameters:
method printRowColHeaders [line 651]
void printRowColHeaders(
[integer
$print = 1])
|
|
Set the option to print the row and column headers on the printed page.
Set the option to print the row and column headers on the printed page.
Tags:
Parameters:
method select [line 578]
Set this worksheet as a selected worksheet, i.
Set this worksheet as a selected worksheet, i.e. the worksheet has its tab highlighted.
Tags:
method setColumn [line 619]
void setColumn(
integer
$firstcol, integer
$lastcol, integer
$width, [mixed
$format = null], [integer
$hidden = 0], [integer
$level = 0])
|
|
Set the width of a single column or a range of columns.
Set the width of a single column or a range of columns.
Tags:
Parameters:
method setDimensions [line 2955]
void setDimensions(
[int
$firstRowIndex = 0], [int
$lastRowIndex = -1], [int
$firstColumnIndex = 0], [int
$lastColumnIndex = -1])
|
|
Set sheet dimensions
Set sheet dimensions
Tags:
Parameters:
method setFirstSheet [line 603]
Set this worksheet as the first visible sheet.
Set this worksheet as the first visible sheet. This is necessary when there are a large number of worksheets and the activated worksheet is not visible on the screen.
Tags:
method setOutline [line 744]
void setOutline(
[bool
$visible = true], [bool
$symbols_below = true], [bool
$symbols_right = true], [bool
$auto_style = false])
|
|
This method sets the properties for outlining and grouping. correspond to Excel's defaults.
This method sets the properties for outlining and grouping. The defaults correspond to Excel's defaults.
Parameters:
method setRow [line 1443]
void setRow(
integer
$row, integer
$height, [mixed
$format = null], [bool
$hidden = false], [integer
$level = 0])
|
|
This method is used to set the height and format for a row.
This method is used to set the height and format for a row.
Tags:
Parameters:
method setSelection [line 640]
void setSelection(
integer
$first_row, integer
$first_column, integer
$last_row, integer
$last_column)
|
|
Set which cell or cells are selected in a worksheet
Set which cell or cells are selected in a worksheet
Tags:
Parameters:
method setTempDir [line 357]
true setTempDir(
string
$dir)
|
|
Sets the temp dir used for storing files
Sets the temp dir used for storing files
Tags:
Parameters:
method write [line 665]
void write(
integer
$row, integer
$col, mixed
$token, [mixed
$format = null], [
$numberFormat = null])
|
|
Map to the appropriate write method acording to the token recieved.
Map to the appropriate write method acording to the token recieved.
Tags:
Parameters:
method writeBlank [line 1025]
void writeBlank(
integer
$row, integer
$col, mixed
$format)
|
|
Write a blank cell to the specified row and column (zero indexed).
Write a blank cell to the specified row and column (zero indexed). A blank cell is used to specify formatting without adding a string or a number.
A blank cell without a format serves no purpose. Therefore, we don't write a BLANK record unless a format is specified.
Returns 0 : normal termination (including no format) -1 : insufficient number of arguments -2 : row or column out of range
Tags:
Parameters:
method writeBoolErr [line 1065]
void writeBoolErr(
$row,
$col,
$value,
$isError,
$format)
|
|
Write a boolean or an error type to the specified row and column (zero indexed)
Write a boolean or an error type to the specified row and column (zero indexed)
Tags:
Parameters:
method writeFormula [line 1113]
integer writeFormula(
integer
$row, integer
$col, string
$formula, [mixed
$format = null])
|
|
Write a formula to the specified row and column (zero indexed).
Write a formula to the specified row and column (zero indexed). The textual representation of the formula is passed to the parser in Parser.php which returns a packed binary string.
Returns 0 : normal termination -1 : formula errors (bad formula) -2 : row or column out of range
Tags:
Parameters:
method writeNote [line 965]
void writeNote(
integer
$row, integer
$col, string
$note)
|
|
Writes a note associated with the cell given by the row and column.
Writes a note associated with the cell given by the row and column. NOTE records don't have a length limit.
Tags:
Parameters:
method writeNumber [line 779]
integer writeNumber(
integer
$row, integer
$col, float
$num, [mixed
$format = null])
|
|
Write a double to the specified row and column (zero indexed).
Write a double to the specified row and column (zero indexed). An integer can be written as a double. Excel will display an integer. $format is optional.
Returns 0 : normal termination -2 : row or column out of range
Tags:
Parameters:
method writeString [line 832]
integer writeString(
integer
$row, integer
$col, string
$str, [mixed
$format = null])
|
|
Write a string to the specified row and column (zero indexed).
Write a string to the specified row and column (zero indexed). NOTE: there is an Excel 5 defined limit of 255 characters. $format is optional. Returns 0 : normal termination -2 : row or column out of range -3 : long string truncated to 255 chars
Tags:
Parameters:
method writeStringBIFF8 [line 892]
integer writeStringBIFF8(
integer
$row, integer
$col, string
$str, [mixed
$format = null])
|
|
Write a string to the specified row and column (zero indexed).
Write a string to the specified row and column (zero indexed). This is the BIFF8 version (no 255 chars limit). $format is optional. Returns 0 : normal termination -2 : row or column out of range -3 : long string truncated to 255 chars
Tags:
Parameters:
method writeUrl [line 1181]
integer writeUrl(
integer
$row, integer
$col, string
$url)
|
|
Write a hyperlink.
Write a hyperlink. This is comprised of two elements: the visible label and the invisible link. The visible label is the same as the link unless an alternative string is specified. The label is written using the writeString() method. Therefore the 255 characters string limit applies. $string and $format are optional.
The hyperlink can be to a http, ftp, mail, internal sheet (not yet), or external directory url.
Returns 0 : normal termination -2 : row or column out of range -3 : long string truncated to 255 chars
Tags:
Parameters:
method _append [line 721]
void _append(
string
$data)
|
|
Store Worksheet data in memory using the parent's class append() or to a temporary file, the default.
Store Worksheet data in memory using the parent's class append() or to a temporary file, the default.
Tags:
Overrides
PHPExcel_Writer_Excel5_BIFFwriter::_append() (General storage function)
Parameters:
method _checkRowCol [line 933]
boolean _checkRowCol(
integer
$row, integer
$col)
|
|
Check row and col before writing to a cell, and update the sheet's
Check row and col before writing to a cell, and update the sheet's dimensions accordingly
Tags:
Parameters:
method _initialize [line 335]
Open a tmp file to store the majority of the Worksheet data. for example due to write permissions, store the data in memory. slow for large files.
Open a tmp file to store the majority of the Worksheet data. If this fails, for example due to write permissions, store the data in memory. This can be slow for large files.
Tags:
method _positionImage [line 2599]
void _positionImage(
integer
$col_start, integer
$row_start, integer
$x1, integer
$y1, integer
$width, integer
$height)
|
|
Calculate the vertices that define the position of the image as required by the OBJ record.
Calculate the vertices that define the position of the image as required by the OBJ record.
+------------+------------+ | A | B | +-----+------------+------------+ | |(x1,y1) | | | 1 |(A1)._______|______ | | | | | | | | | | | +-----+----| BITMAP |-----+ | | | | | | 2 | |______________. | | | | (B2)| | | | (x2,y2)| +---- +------------+------------+
Example of a bitmap that covers some of the area from cell A1 to cell B2.
Based on the width and height of the bitmap we need to calculate 8 vars: $col_start, $row_start, $col_end, $row_end, $x1, $y1, $x2, $y2. The width and height of the cells are also variable and have to be taken into account. The values of $col_start and $row_start are passed in from the calling function. The values of $col_end and $row_end are calculated by subtracting the width and height of the bitmap from the width and height of the underlying cells. The vertices are expressed as a percentage of the underlying cell width as follows (rhs values are in pixels):
x1 = X / W *1024 y1 = Y / H *256 x2 = (X-1) / W *1024 y2 = (Y-1) / H *256
Where: X is distance from the left side of the underlying cell Y is distance from the top of the underlying cell W is the width of the cell H is the height of the cell
Tags:
Parameters:
method _processBitmap [line 2820]
array _processBitmap(
string
$bitmap)
|
|
Convert a 24 bit bitmap into the modified internal format used by Windows.
Convert a 24 bit bitmap into the modified internal format used by Windows. This is described in BITMAPCOREHEADER and BITMAPCOREINFO structures in the MSDN library.
Tags:
Parameters:
method _processBitmapGd [line 2790]
array _processBitmapGd(
resource
$image)
|
|
Convert a GD-image into the internal format.
Convert a GD-image into the internal format.
Tags:
Parameters:
method _sizeCol [line 2665]
integer _sizeCol(
integer
$col)
|
|
Convert the width of a cell from user's units to pixels. the relationship is: y = 7x +5. use the default value.
Convert the width of a cell from user's units to pixels. By interpolation the relationship is: y = 7x +5. If the width hasn't been set by the user we use the default value. If the col is hidden we use a value of zero.
Tags:
Parameters:
method _sizeRow [line 2689]
integer _sizeRow(
integer
$row)
|
|
Convert the height of a cell from user's units to pixels. the relationship is: y = 4/3x. use the default value. possible to hide row yet).
Convert the height of a cell from user's units to pixels. By interpolation the relationship is: y = 4/3x. If the height hasn't been set by the user we use the default value. If the row is hidden we use a value of zero. (Not possible to hide row yet).
Tags:
Parameters:
method _storeBreaks [line 2368]
Write the HORIZONTALPAGEBREAKS and VERTICALPAGEBREAKS BIFF records.
Write the HORIZONTALPAGEBREAKS and VERTICALPAGEBREAKS BIFF records.
Tags:
method _storeColinfo [line 1643]
void _storeColinfo(
array
$col_array)
|
|
Write BIFF record COLINFO to define column widths
Note: The SDK says the record length is 0x0B but Excel writes a 0x0C length record.
Write BIFF record COLINFO to define column widths
Note: The SDK says the record length is 0x0B but Excel writes a 0x0C length record.
Tags:
Parameters:
method _storeDataValidity [line 2924]
void _storeDataValidity(
)
|
|
Store the DVAL and DV records.
Store the DVAL and DV records.
Tags:
method _storeDefaultRowHeight [line 1588]
void _storeDefaultRowHeight(
)
|
|
Write BIFF record DEFAULTROWHEIGHT.
Write BIFF record DEFAULTROWHEIGHT.
Tags:
method _storeDefcol [line 1612]
Write BIFF record DEFCOLWIDTH if COLINFO records are in use.
Write BIFF record DEFCOLWIDTH if COLINFO records are in use.
Tags:
method _storeDimensions [line 1500]
Writes Excel DIMENSIONS to define the area in which there is data.
Writes Excel DIMENSIONS to define the area in which there is data.
Tags:
method _storeExterncount [line 1848]
void _storeExterncount(
integer
$count)
|
|
Write BIFF record EXTERNCOUNT to indicate the number of external sheet references in a worksheet.
Write BIFF record EXTERNCOUNT to indicate the number of external sheet references in a worksheet.
Excel only stores references to external sheets that are used in formulas. For simplicity we store references to all the sheets in the workbook regardless of whether they are used or not. This reduces the overall complexity and eliminates the need for a two way dialogue between the formula parser the worksheet objects.
Tags:
Parameters:
method _storeExternsheet [line 1867]
void _storeExternsheet(
string
$sheetname)
|
|
Writes the Excel BIFF EXTERNSHEET record. formulas. reference to all of the external worksheets the EXTERNSHEET index is the same as the worksheet index.
Writes the Excel BIFF EXTERNSHEET record. These references are used by formulas. A formula references a sheet name via an index. Since we store a reference to all of the external worksheets the EXTERNSHEET index is the same as the worksheet index.
Tags:
Parameters:
method _storeFooter [line 2083]
Store the footer caption BIFF record.
Store the footer caption BIFF record.
Tags:
method _storeGridset [line 2271]
Write the GRIDSET BIFF record. PRINTGRIDLINES record.
Write the GRIDSET BIFF record. Must be used in conjunction with the PRINTGRIDLINES record.
Tags:
method _storeGuts [line 2291]
Write the GUTS BIFF record. where Excel outline symbols are displayed. controlled by a flag in WSBOOL.
Write the GUTS BIFF record. This is used to configure the gutter margins where Excel outline symbols are displayed. The visibility of the gutters is controlled by a flag in WSBOOL.
Tags:
method _storeHcenter [line 2116]
Store the horizontal centering HCENTER BIFF record.
Store the horizontal centering HCENTER BIFF record.
Tags:
method _storeHeader [line 2050]
Store the header caption BIFF record.
Store the header caption BIFF record.
Tags:
method _storeMarginBottom [line 2214]
void _storeMarginBottom(
)
|
|
Store the BOTTOMMARGIN BIFF record.
Store the BOTTOMMARGIN BIFF record.
Tags:
method _storeMarginLeft [line 2151]
Store the LEFTMARGIN BIFF record.
Store the LEFTMARGIN BIFF record.
Tags:
method _storeMarginRight [line 2172]
void _storeMarginRight(
)
|
|
Store the RIGHTMARGIN BIFF record.
Store the RIGHTMARGIN BIFF record.
Tags:
method _storeMarginTop [line 2193]
Store the TOPMARGIN BIFF record.
Store the TOPMARGIN BIFF record.
Tags:
method _storeMergedCells [line 1736]
void _storeMergedCells(
)
|
|
Store the MERGEDCELLS records for all ranges of merged cells
Store the MERGEDCELLS records for all ranges of merged cells
Tags:
method _storeObjPicture [line 2717]
void _storeObjPicture(
integer
$colL, integer
$dxL, integer
$rwT, integer
$dyT, integer
$colR, integer
$dxR, integer
$rwB, integer
$dyB)
|
|
Store the OBJ record that precedes an IMDATA record. to support other Excel objects.
Store the OBJ record that precedes an IMDATA record. This could be generalise to support other Excel objects.
Tags:
Parameters:
method _storePanes [line 1898]
Writes the Excel BIFF PANE record.
Writes the Excel BIFF PANE record. The panes can either be frozen or thawed (unfrozen). Frozen panes are specified in terms of an integer number of rows and columns. Thawed panes are specified in terms of Excel's units for rows and columns.
Tags:
method _storePassword [line 2494]
Write the worksheet PASSWORD record.
Write the worksheet PASSWORD record.
Tags:
method _storePrintGridlines [line 2253]
void _storePrintGridlines(
)
|
|
Write the PRINTGRIDLINES BIFF record. GRIDSET record.
Write the PRINTGRIDLINES BIFF record. Must be used in conjunction with the GRIDSET record.
Tags:
method _storePrintHeaders [line 2235]
void _storePrintHeaders(
)
|
|
Write the PRINTHEADERS BIFF record.
Write the PRINTHEADERS BIFF record.
Tags:
method _storeProtect [line 2471]
Set the Biff PROTECT record to indicate that the worksheet is protected.
Set the Biff PROTECT record to indicate that the worksheet is protected.
Tags:
method _storeRangeProtection [line 1793]
void _storeRangeProtection(
)
|
|
Write BIFF record RANGEPROTECTION
Write BIFF record RANGEPROTECTION
Openoffice.org's Documentaion of the Microsoft Excel File Format uses term RANGEPROTECTION for these records Microsoft Office Excel 97-2007 Binary File Format Specification uses term FEAT for these records
Tags:
method _storeSelection [line 1695]
void _storeSelection(
array
$array)
|
|
Write BIFF record SELECTION.
Write BIFF record SELECTION.
Tags:
Parameters:
method _storeSetup [line 1980]
Store the page setup SETUP BIFF record.
Store the page setup SETUP BIFF record.
Tags:
method _storeVcenter [line 2134]
Store the vertical centering VCENTER BIFF record.
Store the vertical centering VCENTER BIFF record.
Tags:
method _storeWindow2 [line 1529]
Write BIFF record Window2.
Write BIFF record Window2.
Tags:
method _storeWsbool [line 2333]
Write the WSBOOL BIFF record, mainly for fit-to-page. with the SETUP record.
Write the WSBOOL BIFF record, mainly for fit-to-page. Used in conjunction with the SETUP record.
Tags:
method _storeZoom [line 2904]
Store the window zoom factor. simplicity we will store all fractions with a numerator of 100.
Store the window zoom factor. This should be a reduced fraction but for simplicity we will store all fractions with a numerator of 100.
Tags:
method _writeBIFF8CellRangeAddressFixed [line 502]
string _writeBIFF8CellRangeAddressFixed(
[string
$range = 'A1'])
|
|
Write a cell range address in BIFF8
Write a cell range address in BIFF8 always fixed range See section 2.5.14 in OpenOffice.org's Documentation of the Microsoft Excel File Format
Tags:
Parameters:
method _writeUrlExternal [line 1327]
integer _writeUrlExternal(
integer
$row1, integer
$col1, integer
$row2, integer
$col2, string
$url)
|
|
Write links to external directory names such as 'c:\foo. c:\foo.
Write links to external directory names such as 'c:\foo.xls', c:\foo.xls#Sheet1!A1', '../../foo.xls'. and '../../foo.xls#Sheet1!A1'.
Note: Excel writes some relative links with the $dir_long string. We ignore these cases for the sake of simpler code.
Tags:
Parameters:
method _writeUrlInternal [line 1276]
integer _writeUrlInternal(
integer
$row1, integer
$col1, integer
$row2, integer
$col2, string
$url)
|
|
Used to write internal reference hyperlinks such as "Sheet1!A1".
Used to write internal reference hyperlinks such as "Sheet1!A1".
Tags:
Parameters:
method _writeUrlRange [line 1203]
integer _writeUrlRange(
integer
$row1, integer
$col1, integer
$row2, integer
$col2, string
$url)
|
|
This is the more general form of writeUrl(). written to a range of cells. to be written. (Sheet1!A1) or external ('c:\temp\foo.
This is the more general form of writeUrl(). It allows a hyperlink to be written to a range of cells. This function also decides the type of hyperlink to be written. These are either, Web (http, ftp, mailto), Internal (Sheet1!A1) or external ('c:\temp\foo.xls#Sheet1!A1').
Tags:
Parameters:
method _writeUrlWeb [line 1231]
integer _writeUrlWeb(
integer
$row1, integer
$col1, integer
$row2, integer
$col2, string
$url)
|
|
Used to write http, ftp and mailto hyperlinks.
Used to write http, ftp and mailto hyperlinks. The link type ($options) is 0x03 is the same as absolute dir ref without sheet. However it is differentiated by the $unknown2 data stream.
Tags:
Parameters:
method _XF [line 697]
integer _XF(
mixed
&$format)
|
|
Returns an index to the XF record in the workbook
Returns an index to the XF record in the workbook
Tags:
Parameters: