24 if (!defined(
'PHPEXCEL_ROOT')) {
28 define(
'PHPEXCEL_ROOT', dirname(__FILE__) .
'/../../../');
31 require_once PHPEXCEL_ROOT .
'PHPExcel/Shared/OLE/OLE_PPS.php';
81 $this->_tmp_dir =
$dir;
95 $this->_tmp_filename = tempnam($this->_tmp_dir,
"OLE_PPS_File");
96 $fh = fopen($this->_tmp_filename,
"w+b");
98 throw new Exception(
"Can't create temporary file");
100 $this->_PPS_FILE = $fh;
101 if ($this->_PPS_FILE) {
102 fseek($this->_PPS_FILE, 0);
115 if ($this->_PPS_FILE) {
116 fwrite($this->_PPS_FILE,
$data);
118 $this->_data .=
$data;
128 $this->ole->getStream($this);