30 if (!defined(
'PHPEXCEL_ROOT')) {
34 define(
'PHPEXCEL_ROOT', dirname(__FILE__) .
'/../../');
38 require_once PHPEXCEL_ROOT .
'PHPExcel/Worksheet/HeaderFooterDrawing.php';
201 $this->_oddHeader =
'';
202 $this->_oddFooter =
'';
203 $this->_evenHeader =
'';
204 $this->_evenFooter =
'';
205 $this->_firstHeader =
'';
206 $this->_firstFooter =
'';
207 $this->_differentOddEven =
false;
208 $this->_differentFirst =
false;
209 $this->_scaleWithDocument =
true;
210 $this->_alignWithMargins =
true;
211 $this->_headerFooterImages = array();
230 $this->_oddHeader = $pValue;
250 $this->_oddFooter = $pValue;
270 $this->_evenHeader = $pValue;
290 $this->_evenFooter = $pValue;
310 $this->_firstHeader = $pValue;
330 $this->_firstFooter = $pValue;
350 $this->_differentOddEven = $pValue;
370 $this->_differentFirst = $pValue;
390 $this->_scaleWithDocument = $pValue;
410 $this->_alignWithMargins = $pValue;
423 $this->_headerFooterImages[
$location] = $image;
435 if (isset($this->_headerFooterImages[
$location])) {
436 unset($this->_headerFooterImages[$location]);
449 if (!is_array($images)) {
450 throw new Exception(
'Invalid parameter!');
453 $this->_headerFooterImages = $images;
471 $this->_headerFooterImages = $images;
480 $vars = get_object_vars($this);
481 foreach ($vars as
$key => $value) {
482 if (is_object($value)) {
483 $this->
$key = clone $value;
485 $this->
$key = $value;