Class: Spreadsheet_Excel_Writer_Worksheet
Source Location: /Spreadsheet_Excel_Writer-0.8/Writer/Worksheet.php
Inherited Variables
|
Inherited Methods
|
Class Details
Class Variables
Method Detail
activate [line 683]
Set this worksheet as the active worksheet, i.e. the worksheet that is displayed when the workbook is opened. Also set it as selected.
centerHorizontally [line 858]
void centerHorizontally(
[integer
$center = 1])
|
|
Center the page horinzontally.
Parameters:
centerVertically [line 869]
void centerVertically(
[integer
$center = 1])
|
|
Center the page vertically.
Parameters:
close [line 489]
void close(
array
$sheetnames)
|
|
Add data to the beginning of the workbook (note the reverse order) and to the end of the workbook.
Parameters:
fitToPages [line 1050]
void fitToPages(
integer
$width, integer
$height)
|
|
Set the vertical and horizontal number of pages that will define the maximum area printed. It doesn't seem to work with OpenOffice.
Parameters:
freezePanes [line 763]
void freezePanes(
array
$panes)
|
|
Set panes and mark them as frozen.
Parameters:
getData [line 619]
Retrieves data from memory in one chunk, or from disk in $buffer sized chunks.
getName [line 608]
Retrieve the worksheet name. This is usefull when creating worksheets without a name.
hideGridlines [line 1015]
Set the option to hide gridlines on the printed page.
hideScreenGridlines [line 1025]
void hideScreenGridlines(
)
|
|
Set the option to hide gridlines on the worksheet (as seen on the screen).
insertBitmap [line 3110]
void insertBitmap(
integer
$row, integer
$col, string
$bitmap, [integer
$x = 0], [integer
$y = 0], [integer
$scale_x = 1], [integer
$scale_y = 1])
|
|
Insert a 24bit bitmap image in a worksheet.
Parameters:
mergeCells [line 2794]
void mergeCells(
integer
$first_row, integer
$first_col, integer
$last_row, integer
$last_col)
|
|
Merges the area given by its arguments. This is an Excel97/2000 method. It is required to perform more complicated merging than the normal setAlign('merge').
Parameters:
printArea [line 1001]
void printArea(
integer
$first_row, integer
$first_col, integer
$last_row, integer
$last_col)
|
|
Set the area of each worksheet that will be printed.
Parameters:
printRowColHeaders [line 1036]
void printRowColHeaders(
[integer
$print = 1])
|
|
Set the option to print the row and column headers on the printed page.
Parameters:
protect [line 709]
void protect(
string
$password)
|
|
Set the worksheet protection flag to prevent accidental modification and to hide formulas if the locked and hidden format properties have been set.
Parameters:
repeatColumns [line 981]
void repeatColumns(
integer
$first_col, [integer
$last_col = NULL])
|
|
Set the columns to repeat at the left hand side of each printed page.
Parameters:
repeatRows [line 963]
void repeatRows(
integer
$first_row, [integer
$last_row = NULL])
|
|
Set the rows to repeat at the top of each printed page.
Parameters:
select [line 671]
Set this worksheet as a selected worksheet, i.e. the worksheet has its tab highlighted.
setColumn [line 726]
void setColumn(
integer
$firstcol, integer
$lastcol, integer
$width, [mixed
$format = 0], [integer
$hidden = 0], [integer
$level = 0])
|
|
Set the width of a single column or a range of columns.
Parameters:
setFirstSheet [line 696]
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.
setFooter [line 842]
void setFooter(
string
$string, [float
$margin = 0.50])
|
|
Set the page footer caption and optional margin.
Parameters:
setHeader [line 825]
void setHeader(
string
$string, [float
$margin = 0.50])
|
|
Set the page header caption and optional margin.
Parameters:
setHPagebreaks [line 1064]
void setHPagebreaks(
array
$breaks)
|
|
Store the horizontal page breaks on a worksheet (for printing). The breaks represent the row after which the break is inserted.
Parameters:
setLandscape [line 801]
Set the page orientation as landscape.
setMarginBottom [line 951]
void setMarginBottom(
[float
$margin = 1.00])
|
|
Set the bottom margin in inches.
Parameters:
setMarginLeft [line 918]
void setMarginLeft(
[float
$margin = 0.75])
|
|
Set the left margin in inches.
Parameters:
setMarginRight [line 929]
void setMarginRight(
[float
$margin = 0.75])
|
|
Set the right margin in inches.
Parameters:
setMargins [line 880]
void setMargins(
float
$margin)
|
|
Set all the page margins to the same value in inches.
Parameters:
setMargins_LR [line 894]
void setMargins_LR(
float
$margin)
|
|
Set the left and right margins to the same value in inches.
Parameters:
setMargins_TB [line 906]
void setMargins_TB(
float
$margin)
|
|
Set the top and bottom margins to the same value in inches.
Parameters:
setMarginTop [line 940]
void setMarginTop(
[float
$margin = 1.00])
|
|
Set the top margin in inches.
Parameters:
setMerge [line 655]
void setMerge(
integer
$first_row, integer
$first_col, integer
$last_row, integer
$last_col)
|
|
Sets a merged cell range
Parameters:
setOutline [line 1387]
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. The defaults correspond to Excel's defaults.
Parameters:
setPaper [line 812]
void setPaper(
[integer
$size = 0])
|
|
Set the paper type. Ex. 1 = US Letter, 9 = A4
Parameters:
setPortrait [line 791]
Set the page orientation as portrait.
setPrintScale [line 1111]
void setPrintScale(
[integer
$scale = 100])
|
|
Set the scale factor for the printed page. It turns off the "fit to page" option
Parameters:
setRow [line 2116]
void setRow(
integer
$row, integer
$height, [mixed
$format = 0], [bool
$hidden = false], [integer
$level = 0])
|
|
This method is used to set the height and format for a row.
Parameters:
setSelection [line 747]
void setSelection(
integer
$first_row, integer
$first_column, integer
$last_row, integer
$last_column)
|
|
Set which cell or cells are selected in a worksheet
Parameters:
setValidation [line 3487]
void setValidation(
$row1,
$col1,
$row2,
$col2,
&$validator)
|
|
FIXME: add comments
Parameters:
setVPagebreaks [line 1078]
void setVPagebreaks(
array
$breaks)
|
|
Store the vertical page breaks on a worksheet (for printing). The breaks represent the column after which the break is inserted.
Parameters:
setZoom [line 1092]
void setZoom(
[integer
$scale = 100])
|
|
Set the worksheet zoom factor.
Parameters:
thawPanes [line 780]
void thawPanes(
array
$panes)
|
|
Set panes and mark them as unfrozen.
Parameters:
write [line 1135]
void write(
integer
$row, integer
$col, mixed
$token, [mixed
$format = 0])
|
|
Map to the appropriate write method acording to the token recieved.
Parameters:
writeBlank [line 1672]
void writeBlank(
integer
$row, integer
$col, mixed
$format)
|
|
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
Parameters:
writeCol [line 1217]
mixed writeCol(
integer
$row, integer
$col, array
$val, [mixed
$format = 0])
|
|
Write an array of values as a column
Parameters:
writeFormula [line 1732]
integer writeFormula(
integer
$row, integer
$col, string
$formula, [mixed
$format = 0])
|
|
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
Parameters:
writeNote [line 1605]
void writeNote(
integer
$row, integer
$col, string
$note)
|
|
Writes a note associated with the cell given by the row and column. NOTE records don't have a length limit.
Parameters:
writeNumber [line 1422]
integer writeNumber(
integer
$row, integer
$col, float
$num, [mixed
$format = 0])
|
|
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
Parameters:
writeRow [line 1188]
mixed writeRow(
integer
$row, integer
$col, array
$val, [mixed
$format = 0])
|
|
Write an array of values as a row
Parameters:
writeString [line 1482]
integer writeString(
integer
$row, integer
$col, string
$str, [mixed
$format = 0])
|
|
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
Parameters:
writeStringBIFF8 [line 1534]
void writeStringBIFF8(
$row,
$col,
$str, [
$format = 0])
|
|
Parameters:
writeUrl [line 1815]
integer writeUrl(
integer
$row, integer
$col, string
$url, [string
$string = ''], [mixed
$format = 0])
|
|
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
Parameters:
Documentation generated on Mon, 11 Mar 2019 13:52:00 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|
|