300 $this->_paperSize = $pValue;
320 $this->_orientation = $pValue;
344 public function setScale($pValue = 100, $pUpdate =
true) {
347 if (($pValue >= 0) || is_null($pValue)) {
348 $this->_scale = $pValue;
350 $this->_fitToPage =
false;
374 $this->_fitToPage = $pValue;
395 $this->_fitToHeight = $pValue;
397 $this->_fitToPage = TRUE;
419 $this->_fitToWidth = $pValue;
421 $this->_fitToPage = TRUE;
432 if (is_array($this->_columnsToRepeatAtLeft)) {
433 if ($this->_columnsToRepeatAtLeft[0] !=
'' && $this->_columnsToRepeatAtLeft[1] !=
'') {
457 if (is_array($pValue)) {
458 $this->_columnsToRepeatAtLeft = $pValue;
471 $this->_columnsToRepeatAtLeft =
array($pStart, $pEnd);
481 if (is_array($this->_rowsToRepeatAtTop)) {
482 if ($this->_rowsToRepeatAtTop[0] != 0 && $this->_rowsToRepeatAtTop[1] != 0) {
506 if (is_array($pValue)) {
507 $this->_rowsToRepeatAtTop = $pValue;
520 $this->_rowsToRepeatAtTop =
array($pStart, $pEnd);
540 $this->_horizontalCentered = $value;
560 $this->_verticalCentered = $value;
578 $printAreas = explode(
',',$this->_printArea);
579 if (isset($printAreas[$index-1])) {
580 return $printAreas[$index-1];
596 return !is_null($this->_printArea);
598 $printAreas = explode(
',',$this->_printArea);
599 return isset($printAreas[$index-1]);
613 $this->_printArea = NULL;
615 $printAreas = explode(
',',$this->_printArea);
616 if (isset($printAreas[$index-1])) {
617 unset($printAreas[$index-1]);
618 $this->_printArea = implode(
',',$printAreas);
645 public function setPrintArea($value, $index = 0, $method = self::SETPRINTRANGE_OVERWRITE) {
646 if (strpos($value,
'!') !==
false) {
648 } elseif (strpos($value,
':') ===
false) {
650 } elseif (strpos($value,
'$') !==
false) {
653 $value = strtoupper($value);
655 if ($method == self::SETPRINTRANGE_OVERWRITE) {
657 $this->_printArea = $value;
659 $printAreas = explode(
',',$this->_printArea);
661 $index = count($printAreas) - abs($index) + 1;
663 if (($index <= 0) || ($index > count($printAreas))) {
666 $printAreas[$index-1] = $value;
667 $this->_printArea = implode(
',',$printAreas);
669 } elseif($method == self::SETPRINTRANGE_INSERT) {
671 $this->_printArea .= ($this->_printArea ==
'') ? $value :
','.$value;
673 $printAreas = explode(
',',$this->_printArea);
675 $index = abs($index) - 1;
677 if ($index > count($printAreas)) {
680 $printAreas = array_merge(array_slice($printAreas,0,$index),
array($value),array_slice($printAreas,$index));
681 $this->_printArea = implode(
',',$printAreas);
704 return $this->
setPrintArea($value, $index, self::SETPRINTRANGE_INSERT);
772 $this->_firstPageNumber = $value;
789 $vars = get_object_vars($this);
790 foreach ($vars as $key => $value) {
791 if (is_object($value)) {
792 $this->$key = clone $value;
794 $this->$key = $value;
const PAPERSIZE_LETTER_SMALL
const PAPERSIZE_JAPANESE_DOUBLE_POSTCARD
addPrintAreaByColumnAndRow($column1, $row1, $column2, $row2, $index=-1)
Add a new print area to the list of print areas.
const PAPERSIZE_TABLOID_EXTRA_PAPER
getFitToWidth()
Get Fit To Width.
const PAPERSIZE_A4_EXTRA_PAPER
const ORIENTATION_DEFAULT
const PAPERSIZE_MONARCH_ENVELOPE
setFirstPageNumber($value=null)
Set first page number.
const PAPERSIZE_C3_ENVELOPE
setColumnsToRepeatAtLeftByStartAndEnd($pStart='A', $pEnd='A')
Set Columns to repeat at left by start and end.
const PAPERSIZE_LEGAL_EXTRA_PAPER
const PAPERSIZE_STANDARD_1
setColumnsToRepeatAtLeft($pValue=null)
Set Columns to repeat at left.
clearPrintArea($index=0)
Clear a print area.
const PAPERSIZE_JIS_B5_TRANSVERSE_PAPER
getRowsToRepeatAtTop()
Get Rows to repeat at top.
const PAPERSIZE_6_3_4_ENVELOPE
const PAPERSIZE_A4_TRANSVERSE_PAPER
const PAPERSIZE_SUPERB_SUPERB_A3_PAPER
const PAPERSIZE_LETTER_EXTRA_TRANSVERSE_PAPER
getFitToPage()
Get Fit To Page.
__clone()
Implement PHP __clone to create a deep clone, not just a shallow copy.
const PAPERSIZE_INVITE_ENVELOPE
getFirstPageNumber()
Get first page number.
setPrintArea($value, $index=0, $method=self::SETPRINTRANGE_OVERWRITE)
Set print area.
const PAPERSIZE_NO9_ENVELOPE
setHorizontalCentered($value=false)
Set center page horizontally.
setRowsToRepeatAtTopByStartAndEnd($pStart=1, $pEnd=1)
Set Rows to repeat at top by start and end.
const SETPRINTRANGE_INSERT
setPaperSize($pValue=PHPExcel_Worksheet_PageSetup::PAPERSIZE_LETTER)
Set Paper Size.
const PAPERSIZE_STATEMENT
setFitToWidth($pValue=1, $pUpdate=TRUE)
Set Fit To Width.
const PAPERSIZE_LETTER_EXTRA_PAPER
const PAPERSIZE_A5_EXTRA_PAPER
const PAPERSIZE_C6_ENVELOPE
const ORIENTATION_LANDSCAPE
const PAPERSIZE_A3_EXTRA_PAPER
getPaperSize()
Get Paper Size.
const PAPERSIZE_B4_ENVELOPE
getColumnsToRepeatAtLeft()
Get Columns to repeat at left.
const PAPERSIZE_STANDARD_PAPER_3
const PAPERSIZE_A5_TRANSVERSE_PAPER
resetFirstPageNumber()
Reset first page number.
const PAPERSIZE_C5_ENVELOPE
setScale($pValue=100, $pUpdate=true)
Set Scale.
const PAPERSIZE_LETTER_TRANSVERSE_PAPER
const PAPERSIZE_A3_EXTRA_TRANSVERSE_PAPER
const PAPERSIZE_EXECUTIVE
const PAPERSIZE_NO11_ENVELOPE
const PAPERSIZE_GERMAN_STANDARD_FANFOLD
const PAPERSIZE_B5_ENVELOPE
const PAPERSIZE_NO12_ENVELOPE
isColumnsToRepeatAtLeftSet()
Is Columns to repeat at left set?
setFitToHeight($pValue=1, $pUpdate=TRUE)
Set Fit To Height.
const PAPERSIZE_STANDARD_PAPER_2
const PAPERSIZE_STANDARD_2
const PAPERSIZE_A4_PLUS_PAPER
const PAPERSIZE_LETTER_PLUS_PAPER
getHorizontalCentered()
Get center page horizontally.
Create styles array
The data for the language used.
addPrintArea($value, $index=-1)
Add a new print area (e.g.
const PAPERSIZE_STANDARD_PAPER_1
getOrientation()
Get Orientation.
getVerticalCentered()
Get center page vertically.
const PAPERSIZE_NO10_ENVELOPE
const SETPRINTRANGE_OVERWRITE
setPrintAreaByColumnAndRow($column1, $row1, $column2, $row2, $index=0, $method=self::SETPRINTRANGE_OVERWRITE)
Set print area.
const PAPERSIZE_SUPERA_SUPERA_A4_PAPER
const PAPERSIZE_C65_ENVELOPE
static stringFromColumnIndex($pColumnIndex=0)
String from columnindex.
const PAPERSIZE_C4_ENVELOPE
const PAPERSIZE_B6_ENVELOPE
const ORIENTATION_PORTRAIT
isPrintAreaSet($index=0)
Is print area set?
getFitToHeight()
Get Fit To Height.
const PAPERSIZE_A3_TRANSVERSE_PAPER
isRowsToRepeatAtTopSet()
Is Rows to repeat at top set?
getPrintArea($index=0)
Get print area.
const PAPERSIZE_DL_ENVELOPE
__construct()
Create a new PHPExcel_Worksheet_PageSetup.
const PAPERSIZE_NO14_ENVELOPE
setOrientation($pValue=PHPExcel_Worksheet_PageSetup::ORIENTATION_DEFAULT)
Set Orientation.
const PAPERSIZE_ITALY_ENVELOPE
const PAPERSIZE_GERMAN_LEGAL_FANFOLD
const PAPERSIZE_US_STANDARD_FANFOLD
setFitToPage($pValue=TRUE)
Set Fit To Page.
setVerticalCentered($value=false)
Set center page vertically.
setRowsToRepeatAtTop($pValue=null)
Set Rows to repeat at top.
const PAPERSIZE_ISO_B5_EXTRA_PAPER