Class OLEwriter
(line 41)
Located in File: Program_Root/OLEwriter.php
Class for creating OLE streams for Excel Spreadsheets
Class Variable Summary
Size of the data to be written to the OLE stream
Default Value: -><-
|
Number of big blocks in the OLE stream
Default Value: -><-
|
Real data size to be written to the OLE stream
Default Value: -><-
|
Variable for preventing closing two times
Default Value: -><-
|
Filehandle for the OLE stream
Default Value: -><-
|
Number of list blocks in the OLE stream
Default Value: -><-
|
Filename for the OLE stream
Default Value: -><-
|
Number of big blocks in the OLE stream
Default Value: -><-
|
Name of the temporal file in case OLE stream goes to stdout
Default Value: -><-
|
Inherited Class Variable Summary
Method Summary
| void |
close ( )
Write root entry, big block list and close the filehandle.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Inherited Method Summary
Method Detail
close (line 208)
Write root entry, big block list and close the filehandle.
This routine is used to explicitly close the open filehandle without having to wait for DESTROY.
- Function Info:
- See -
Workbook::store_OLE_file()
- Access -
public
[ Top ]
OLEwriter (line 103)
| void | constructor OLEwriter ( $OLEfilename ) |
Class for creating an OLEwriter
- Function Info:
[ Top ]
set_size (line 161)
| integer | set_size ( $biffsize ) |
Set the size of the data to be written to the OLE stream.
The maximun size comes from this: $big_blocks = (109 depot block x (128 -1 marker word) - (1 x end words)) = 13842 $maxsize = $big_blocks * 512 bytes = 7087104
- Function Info:
- Return -
1 for success
- See -
Workbook::store_OLE_file()
- Access -
public
[ Top ]
write (line 235)
Write BIFF data to OLE file.
- Function Info:
[ Top ]
write_header (line 244)
Write OLE header block.
- Function Info:
[ Top ]
_calculate_sizes (line 185)
Calculate various sizes needed for the OLE stream
- Function Info:
[ Top ]
_initialize (line 123)
Check for a valid filename and store the filehandle.
Filehandle "-" writes to STDOUT
- Function Info:
[ Top ]
_write_big_block_depot (line 289)
| void | _write_big_block_depot ( ) |
Write big block depot.
- Function Info:
[ Top ]
_write_padding (line 396)
Pad the end of the file
- Function Info:
[ Top ]
_write_property_storage (line 319)
| void | _write_property_storage ( ) |
Write property storage. TODO: add summary sheets
- Function Info:
[ Top ]
Variable Detail
$_biffsize
(line 72)
Data type: integer
Size of the data to be written to the OLE stream
$_big_blocks
(line 84)
Data type: integer
Number of big blocks in the OLE stream
$_booksize
(line 78)
Data type: integer
Real data size to be written to the OLE stream
$_fileclosed
(line 66)
Data type: integer
Variable for preventing closing two times
$_filehandle
(line 54)
Data type: resource
Filehandle for the OLE stream
$_list_blocks
(line 90)
Data type: integer
Number of list blocks in the OLE stream
$_OLEfilename
(line 48)
Data type: string
Filename for the OLE stream
- See -
_initialize">_initialize()
$_root_start
(line 96)
Data type: integer
Number of big blocks in the OLE stream
$_tmp_filename
(line 60)
Data type: string
Name of the temporal file in case OLE stream goes to stdout