265 $this->_scale = null;
266 $this->_fitToHeight = null;
267 $this->_fitToWidth = null;
268 $this->_columnsToRepeatAtLeft = array(
'',
'');
269 $this->_rowsToRepeatAtTop = array(0, 0);
270 $this->_horizontalCentered =
false;
271 $this->_verticalCentered =
false;
272 $this->_printArea = null;
291 $this->_paperSize = $pValue;
311 $this->_orientation = $pValue;
337 if (($pValue >= 0) || is_null($pValue)) {
338 $this->_scale = $pValue;
340 throw new Exception(
"Scale must not be negative");
362 $this->_fitToHeight = $pValue;
384 $this->_fitToWidth = $pValue;
395 if (is_array($this->_columnsToRepeatAtLeft)) {
396 if ($this->_columnsToRepeatAtLeft[0] !=
'' && $this->_columnsToRepeatAtLeft[1] !=
'') {
420 if (is_array($pValue)) {
421 $this->_columnsToRepeatAtLeft = $pValue;
434 $this->_columnsToRepeatAtLeft = array($pStart, $pEnd);
444 if (is_array($this->_rowsToRepeatAtTop)) {
445 if ($this->_rowsToRepeatAtTop[0] != 0 && $this->_rowsToRepeatAtTop[1] != 0) {
469 if (is_array($pValue)) {
470 $this->_rowsToRepeatAtTop = $pValue;
483 $this->_rowsToRepeatAtTop = array($pStart, $pEnd);
503 $this->_horizontalCentered = $value;
523 $this->_verticalCentered = $value;
542 return !is_null($this->_printArea);
553 if (strpos($value,
':') ===
false) {
554 throw new Exception(
'Cell coordinate must be a range of cells.');
555 }
elseif (strpos($value,
'$') !==
false) {
556 throw new Exception(
'Cell coordinate must not be absolute.');
558 $this->_printArea = strtoupper($value);
581 $vars = get_object_vars($this);
582 foreach ($vars as
$key => $value) {
583 if (is_object($value)) {
584 $this->
$key = clone $value;
586 $this->
$key = $value;