24 if (!defined(
'PHPEXCEL_ROOT')) {
28 define(
'PHPEXCEL_ROOT', dirname(__FILE__) .
'/../../../');
31 require_once PHPEXCEL_ROOT .
'PHPExcel/Shared/OLE.php';
140 $this->PrevPps = $prev;
141 $this->NextPps = $next;
142 $this->DirPps =
$dir;
143 $this->Time1st = $time_1st;
144 $this->Time2nd = $time_2nd;
145 $this->_data =
$data;
148 $this->Size = strlen(
$data);
162 if (!isset($this->_data)) {
165 if (isset($this->_PPS_FILE)) {
166 fseek($this->_PPS_FILE, 0);
167 $stats = fstat($this->_PPS_FILE);
170 return strlen($this->_data);
183 for ($i = 0; $i < (64 - strlen($this->Name)); ++$i) {
186 $ret .= pack(
"v", strlen($this->Name) + 2)
187 . pack(
"c", $this->Type)
189 . pack(
"V", $this->PrevPps)
190 . pack(
"V", $this->NextPps)
191 . pack(
"V", $this->DirPps)
199 . pack(
"V", isset($this->_StartBlock)?
200 $this->_StartBlock:0)
201 . pack(
"V", $this->Size)
217 $pps_array[count($pps_array)] = &$this;
218 $this->No = count($pps_array) - 1;
219 $this->PrevPps = 0xFFFFFFFF;
220 $this->NextPps = 0xFFFFFFFF;
221 if (count($this->children) > 0) {
222 $this->DirPps = $this->children[0]->_savePpsSetPnt($pps_array);
224 $this->DirPps = 0xFFFFFFFF;