ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
__construct ($isSupervisor=false, $isConditional=false) | |
Create a new Alignment. More... | |
getSharedComponent () | |
Get the shared style component for the currently active cell in currently active sheet. More... | |
getStyleArray ($array) | |
Build style array from subcomponents. More... | |
applyFromArray (array $pStyles) | |
Apply styles from array. More... | |
getHorizontal () | |
Get Horizontal. More... | |
setHorizontal ($pValue) | |
Set Horizontal. More... | |
getVertical () | |
Get Vertical. More... | |
setVertical ($pValue) | |
Set Vertical. More... | |
getTextRotation () | |
Get TextRotation. More... | |
setTextRotation ($pValue) | |
Set TextRotation. More... | |
getWrapText () | |
Get Wrap Text. More... | |
setWrapText ($pValue) | |
Set Wrap Text. More... | |
getShrinkToFit () | |
Get Shrink to fit. More... | |
setShrinkToFit ($pValue) | |
Set Shrink to fit. More... | |
getIndent () | |
Get indent. More... | |
setIndent ($pValue) | |
Set indent. More... | |
getReadOrder () | |
Get read order. More... | |
setReadOrder ($pValue) | |
Set read order. More... | |
getHashCode () | |
Get hash code. More... | |
![]() | |
__construct ($isSupervisor=false) | |
Create a new Supervisor. More... | |
bindParent ($parent, $parentPropertyName=null) | |
Bind parent. More... | |
getIsSupervisor () | |
Is this a supervisor or a cell style component? More... | |
getActiveSheet () | |
Get the currently active sheet. More... | |
getSelectedCells () | |
Get the currently active cell coordinate in currently active sheet. More... | |
getActiveCell () | |
Get the currently active cell coordinate in currently active sheet. More... | |
__clone () | |
Implement PHP __clone to create a deep clone, not just a shallow copy. More... | |
exportArray () | |
Export style as array. More... | |
Data Fields | |
const | HORIZONTAL_GENERAL = 'general' |
const | HORIZONTAL_LEFT = 'left' |
const | HORIZONTAL_RIGHT = 'right' |
const | HORIZONTAL_CENTER = 'center' |
const | HORIZONTAL_CENTER_CONTINUOUS = 'centerContinuous' |
const | HORIZONTAL_JUSTIFY = 'justify' |
const | HORIZONTAL_FILL = 'fill' |
const | HORIZONTAL_DISTRIBUTED = 'distributed' |
const | VERTICAL_BOTTOM = 'bottom' |
const | VERTICAL_TOP = 'top' |
const | VERTICAL_CENTER = 'center' |
const | VERTICAL_JUSTIFY = 'justify' |
const | VERTICAL_DISTRIBUTED = 'distributed' |
const | READORDER_CONTEXT = 0 |
const | READORDER_LTR = 1 |
const | READORDER_RTL = 2 |
const | TEXTROTATION_STACK_EXCEL = 255 |
const | TEXTROTATION_STACK_PHPSPREADSHEET = -165 |
Protected Member Functions | |
exportArray1 () | |
![]() | |
exportArray1 () | |
Abstract method to be implemented in anything which extends this class. More... | |
exportArray2 (array &$exportedArray, string $index, $objOrValue) | |
Populate array from exportArray1. More... | |
Protected Attributes | |
$horizontal = self::HORIZONTAL_GENERAL | |
$vertical = self::VERTICAL_BOTTOM | |
$textRotation = 0 | |
$wrapText = false | |
$shrinkToFit = false | |
$indent = 0 | |
$readOrder = 0 | |
![]() | |
$isSupervisor | |
$parent | |
$parentPropertyName | |
Definition at line 7 of file Alignment.php.
PhpOffice\PhpSpreadsheet\Style\Alignment::__construct | ( | $isSupervisor = false , |
|
$isConditional = false |
|||
) |
Create a new Alignment.
bool | $isSupervisor | Flag indicating if this is a supervisor or not Leave this value at default unless you understand exactly what its ramifications are |
bool | $isConditional | Flag indicating if this is a conditional style or not Leave this value at default unless you understand exactly what its ramifications are |
Definition at line 94 of file Alignment.php.
References PhpOffice\PhpSpreadsheet\Style\Supervisor\$isSupervisor.
PhpOffice\PhpSpreadsheet\Style\Alignment::applyFromArray | ( | array | $pStyles | ) |
Apply styles from array.
$spreadsheet->getActiveSheet()->getStyle('B2')->getAlignment()->applyFromArray( [ 'horizontal' => ::HORIZONTAL_CENTER, 'vertical' => ::VERTICAL_CENTER, 'textRotation' => 0, 'wrapText' => TRUE ] );
array | $pStyles | Array containing style information |
Definition at line 147 of file Alignment.php.
References PhpOffice\PhpSpreadsheet\Style\Supervisor\getActiveSheet(), PhpOffice\PhpSpreadsheet\Style\Supervisor\getSelectedCells(), PhpOffice\PhpSpreadsheet\Style\Alignment\getStyleArray(), PhpOffice\PhpSpreadsheet\Style\Alignment\setHorizontal(), PhpOffice\PhpSpreadsheet\Style\Alignment\setIndent(), PhpOffice\PhpSpreadsheet\Style\Alignment\setReadOrder(), PhpOffice\PhpSpreadsheet\Style\Alignment\setShrinkToFit(), PhpOffice\PhpSpreadsheet\Style\Alignment\setTextRotation(), PhpOffice\PhpSpreadsheet\Style\Alignment\setVertical(), and PhpOffice\PhpSpreadsheet\Style\Alignment\setWrapText().
|
protected |
Definition at line 470 of file Alignment.php.
References PhpOffice\PhpSpreadsheet\Style\Supervisor\exportArray2(), PhpOffice\PhpSpreadsheet\Style\Alignment\getHorizontal(), PhpOffice\PhpSpreadsheet\Style\Alignment\getIndent(), PhpOffice\PhpSpreadsheet\Style\Alignment\getReadOrder(), PhpOffice\PhpSpreadsheet\Style\Alignment\getShrinkToFit(), PhpOffice\PhpSpreadsheet\Style\Alignment\getTextRotation(), PhpOffice\PhpSpreadsheet\Style\Alignment\getVertical(), and PhpOffice\PhpSpreadsheet\Style\Alignment\getWrapText().
PhpOffice\PhpSpreadsheet\Style\Alignment::getHashCode | ( | ) |
Get hash code.
Implements PhpOffice\PhpSpreadsheet\IComparable.
Definition at line 452 of file Alignment.php.
References PhpOffice\PhpSpreadsheet\Style\Alignment\getSharedComponent().
PhpOffice\PhpSpreadsheet\Style\Alignment::getHorizontal | ( | ) |
Get Horizontal.
Definition at line 184 of file Alignment.php.
References PhpOffice\PhpSpreadsheet\Style\Alignment\$horizontal, and PhpOffice\PhpSpreadsheet\Style\Alignment\getSharedComponent().
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\createCSSStyleAlignment(), PhpOffice\PhpSpreadsheet\Style\Alignment\exportArray1(), PhpOffice\PhpSpreadsheet\Writer\Xls\Style\CellAlignment\horizontal(), and PhpOffice\PhpSpreadsheet\Style\Alignment\setIndent().
PhpOffice\PhpSpreadsheet\Style\Alignment::getIndent | ( | ) |
Get indent.
Definition at line 373 of file Alignment.php.
References PhpOffice\PhpSpreadsheet\Style\Alignment\$indent, and PhpOffice\PhpSpreadsheet\Style\Alignment\getSharedComponent().
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\createCSSStyleAlignment(), and PhpOffice\PhpSpreadsheet\Style\Alignment\exportArray1().
PhpOffice\PhpSpreadsheet\Style\Alignment::getReadOrder | ( | ) |
Get read order.
Definition at line 416 of file Alignment.php.
References PhpOffice\PhpSpreadsheet\Style\Alignment\$readOrder, and PhpOffice\PhpSpreadsheet\Style\Alignment\getSharedComponent().
Referenced by PhpOffice\PhpSpreadsheet\Style\Alignment\exportArray1().
PhpOffice\PhpSpreadsheet\Style\Alignment::getSharedComponent | ( | ) |
Get the shared style component for the currently active cell in currently active sheet.
Only used for style supervisor.
Definition at line 112 of file Alignment.php.
Referenced by PhpOffice\PhpSpreadsheet\Style\Alignment\getHashCode(), PhpOffice\PhpSpreadsheet\Style\Alignment\getHorizontal(), PhpOffice\PhpSpreadsheet\Style\Alignment\getIndent(), PhpOffice\PhpSpreadsheet\Style\Alignment\getReadOrder(), PhpOffice\PhpSpreadsheet\Style\Alignment\getShrinkToFit(), PhpOffice\PhpSpreadsheet\Style\Alignment\getTextRotation(), PhpOffice\PhpSpreadsheet\Style\Alignment\getVertical(), and PhpOffice\PhpSpreadsheet\Style\Alignment\getWrapText().
PhpOffice\PhpSpreadsheet\Style\Alignment::getShrinkToFit | ( | ) |
Get Shrink to fit.
Definition at line 337 of file Alignment.php.
References PhpOffice\PhpSpreadsheet\Style\Alignment\$shrinkToFit, and PhpOffice\PhpSpreadsheet\Style\Alignment\getSharedComponent().
Referenced by PhpOffice\PhpSpreadsheet\Style\Alignment\exportArray1().
PhpOffice\PhpSpreadsheet\Style\Alignment::getStyleArray | ( | $array | ) |
Build style array from subcomponents.
array | $array |
Definition at line 124 of file Alignment.php.
Referenced by PhpOffice\PhpSpreadsheet\Style\Alignment\applyFromArray(), PhpOffice\PhpSpreadsheet\Style\Alignment\setHorizontal(), PhpOffice\PhpSpreadsheet\Style\Alignment\setIndent(), PhpOffice\PhpSpreadsheet\Style\Alignment\setReadOrder(), PhpOffice\PhpSpreadsheet\Style\Alignment\setShrinkToFit(), PhpOffice\PhpSpreadsheet\Style\Alignment\setTextRotation(), PhpOffice\PhpSpreadsheet\Style\Alignment\setVertical(), and PhpOffice\PhpSpreadsheet\Style\Alignment\setWrapText().
PhpOffice\PhpSpreadsheet\Style\Alignment::getTextRotation | ( | ) |
Get TextRotation.
Definition at line 258 of file Alignment.php.
References PhpOffice\PhpSpreadsheet\Style\Alignment\$textRotation, and PhpOffice\PhpSpreadsheet\Style\Alignment\getSharedComponent().
Referenced by PhpOffice\PhpSpreadsheet\Style\Alignment\exportArray1().
PhpOffice\PhpSpreadsheet\Style\Alignment::getVertical | ( | ) |
Get Vertical.
Definition at line 221 of file Alignment.php.
References PhpOffice\PhpSpreadsheet\Style\Alignment\$vertical, and PhpOffice\PhpSpreadsheet\Style\Alignment\getSharedComponent().
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\createCSSStyleAlignment(), PhpOffice\PhpSpreadsheet\Style\Alignment\exportArray1(), and PhpOffice\PhpSpreadsheet\Writer\Xls\Style\CellAlignment\vertical().
PhpOffice\PhpSpreadsheet\Style\Alignment::getWrapText | ( | ) |
Get Wrap Text.
Definition at line 301 of file Alignment.php.
References PhpOffice\PhpSpreadsheet\Style\Alignment\$wrapText, and PhpOffice\PhpSpreadsheet\Style\Alignment\getSharedComponent().
Referenced by PhpOffice\PhpSpreadsheet\Style\Alignment\exportArray1(), and PhpOffice\PhpSpreadsheet\Writer\Xls\Style\CellAlignment\wrap().
PhpOffice\PhpSpreadsheet\Style\Alignment::setHorizontal | ( | $pValue | ) |
Set Horizontal.
string | $pValue | see self::HORIZONTAL_* |
Definition at line 200 of file Alignment.php.
References PhpOffice\PhpSpreadsheet\Style\Supervisor\getActiveSheet(), PhpOffice\PhpSpreadsheet\Style\Supervisor\getSelectedCells(), and PhpOffice\PhpSpreadsheet\Style\Alignment\getStyleArray().
Referenced by PhpOffice\PhpSpreadsheet\Style\Alignment\applyFromArray(), PhpOffice\PhpSpreadsheet\Reader\Xls\Style\CellAlignment\horizontal(), and PhpOffice\PhpSpreadsheet\Reader\Xlsx\Styles\readAlignmentStyle().
PhpOffice\PhpSpreadsheet\Style\Alignment::setIndent | ( | $pValue | ) |
Set indent.
int | $pValue |
Definition at line 389 of file Alignment.php.
References PhpOffice\PhpSpreadsheet\Style\Supervisor\getActiveSheet(), PhpOffice\PhpSpreadsheet\Style\Alignment\getHorizontal(), PhpOffice\PhpSpreadsheet\Style\Supervisor\getSelectedCells(), and PhpOffice\PhpSpreadsheet\Style\Alignment\getStyleArray().
Referenced by PhpOffice\PhpSpreadsheet\Style\Alignment\applyFromArray(), and PhpOffice\PhpSpreadsheet\Reader\Xlsx\Styles\readAlignmentStyle().
PhpOffice\PhpSpreadsheet\Style\Alignment::setReadOrder | ( | $pValue | ) |
Set read order.
int | $pValue |
Definition at line 432 of file Alignment.php.
References PhpOffice\PhpSpreadsheet\Style\Supervisor\getActiveSheet(), PhpOffice\PhpSpreadsheet\Style\Supervisor\getSelectedCells(), and PhpOffice\PhpSpreadsheet\Style\Alignment\getStyleArray().
Referenced by PhpOffice\PhpSpreadsheet\Style\Alignment\applyFromArray(), and PhpOffice\PhpSpreadsheet\Reader\Xlsx\Styles\readAlignmentStyle().
PhpOffice\PhpSpreadsheet\Style\Alignment::setShrinkToFit | ( | $pValue | ) |
Set Shrink to fit.
bool | $pValue |
Definition at line 353 of file Alignment.php.
References PhpOffice\PhpSpreadsheet\Style\Supervisor\getActiveSheet(), PhpOffice\PhpSpreadsheet\Style\Supervisor\getSelectedCells(), and PhpOffice\PhpSpreadsheet\Style\Alignment\getStyleArray().
Referenced by PhpOffice\PhpSpreadsheet\Style\Alignment\applyFromArray(), and PhpOffice\PhpSpreadsheet\Reader\Xlsx\Styles\readAlignmentStyle().
PhpOffice\PhpSpreadsheet\Style\Alignment::setTextRotation | ( | $pValue | ) |
Set TextRotation.
int | $pValue |
Definition at line 274 of file Alignment.php.
References PhpOffice\PhpSpreadsheet\Style\Supervisor\getActiveSheet(), PhpOffice\PhpSpreadsheet\Style\Supervisor\getSelectedCells(), and PhpOffice\PhpSpreadsheet\Style\Alignment\getStyleArray().
Referenced by PhpOffice\PhpSpreadsheet\Style\Alignment\applyFromArray(), and PhpOffice\PhpSpreadsheet\Reader\Xlsx\Styles\readAlignmentStyle().
PhpOffice\PhpSpreadsheet\Style\Alignment::setVertical | ( | $pValue | ) |
Set Vertical.
string | $pValue | see self::VERTICAL_* |
Definition at line 237 of file Alignment.php.
References PhpOffice\PhpSpreadsheet\Style\Supervisor\getActiveSheet(), PhpOffice\PhpSpreadsheet\Style\Supervisor\getSelectedCells(), and PhpOffice\PhpSpreadsheet\Style\Alignment\getStyleArray().
Referenced by PhpOffice\PhpSpreadsheet\Style\Alignment\applyFromArray(), PhpOffice\PhpSpreadsheet\Reader\Xlsx\Styles\readAlignmentStyle(), and PhpOffice\PhpSpreadsheet\Reader\Xls\Style\CellAlignment\vertical().
PhpOffice\PhpSpreadsheet\Style\Alignment::setWrapText | ( | $pValue | ) |
Set Wrap Text.
bool | $pValue |
Definition at line 317 of file Alignment.php.
References PhpOffice\PhpSpreadsheet\Style\Supervisor\getActiveSheet(), PhpOffice\PhpSpreadsheet\Style\Supervisor\getSelectedCells(), and PhpOffice\PhpSpreadsheet\Style\Alignment\getStyleArray().
Referenced by PhpOffice\PhpSpreadsheet\Style\Alignment\applyFromArray(), PhpOffice\PhpSpreadsheet\Reader\Xlsx\Styles\readAlignmentStyle(), and PhpOffice\PhpSpreadsheet\Reader\Xls\Style\CellAlignment\wrap().
|
protected |
Definition at line 40 of file Alignment.php.
Referenced by PhpOffice\PhpSpreadsheet\Style\Alignment\getHorizontal().
|
protected |
Definition at line 75 of file Alignment.php.
Referenced by PhpOffice\PhpSpreadsheet\Style\Alignment\getIndent().
|
protected |
Definition at line 82 of file Alignment.php.
Referenced by PhpOffice\PhpSpreadsheet\Style\Alignment\getReadOrder().
|
protected |
Definition at line 68 of file Alignment.php.
Referenced by PhpOffice\PhpSpreadsheet\Style\Alignment\getShrinkToFit().
|
protected |
Definition at line 54 of file Alignment.php.
Referenced by PhpOffice\PhpSpreadsheet\Style\Alignment\getTextRotation().
|
protected |
Definition at line 47 of file Alignment.php.
Referenced by PhpOffice\PhpSpreadsheet\Style\Alignment\getVertical().
|
protected |
Definition at line 61 of file Alignment.php.
Referenced by PhpOffice\PhpSpreadsheet\Style\Alignment\getWrapText().
const PhpOffice\PhpSpreadsheet\Style\Alignment::HORIZONTAL_CENTER = 'center' |
Definition at line 13 of file Alignment.php.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Ods\Cell\Style\mapHorizontalAlignment().
const PhpOffice\PhpSpreadsheet\Style\Alignment::HORIZONTAL_CENTER_CONTINUOUS = 'centerContinuous' |
Definition at line 14 of file Alignment.php.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Ods\Cell\Style\mapHorizontalAlignment().
const PhpOffice\PhpSpreadsheet\Style\Alignment::HORIZONTAL_DISTRIBUTED = 'distributed' |
Definition at line 17 of file Alignment.php.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Ods\Cell\Style\mapHorizontalAlignment().
const PhpOffice\PhpSpreadsheet\Style\Alignment::HORIZONTAL_FILL = 'fill' |
Definition at line 16 of file Alignment.php.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Ods\Cell\Style\mapHorizontalAlignment().
const PhpOffice\PhpSpreadsheet\Style\Alignment::HORIZONTAL_GENERAL = 'general' |
Definition at line 10 of file Alignment.php.
Referenced by PhpOffice\PhpSpreadsheet\Comment\__construct(), PhpOffice\PhpSpreadsheet\Writer\Html\generateRowCellData(), and PhpOffice\PhpSpreadsheet\Writer\Xls\Style\CellAlignment\horizontal().
const PhpOffice\PhpSpreadsheet\Style\Alignment::HORIZONTAL_JUSTIFY = 'justify' |
Definition at line 15 of file Alignment.php.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Ods\Cell\Style\mapHorizontalAlignment().
const PhpOffice\PhpSpreadsheet\Style\Alignment::HORIZONTAL_LEFT = 'left' |
Definition at line 11 of file Alignment.php.
const PhpOffice\PhpSpreadsheet\Style\Alignment::HORIZONTAL_RIGHT = 'right' |
Definition at line 12 of file Alignment.php.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Ods\Cell\Style\mapHorizontalAlignment().
const PhpOffice\PhpSpreadsheet\Style\Alignment::READORDER_CONTEXT = 0 |
Definition at line 27 of file Alignment.php.
const PhpOffice\PhpSpreadsheet\Style\Alignment::READORDER_LTR = 1 |
Definition at line 28 of file Alignment.php.
const PhpOffice\PhpSpreadsheet\Style\Alignment::READORDER_RTL = 2 |
Definition at line 29 of file Alignment.php.
const PhpOffice\PhpSpreadsheet\Style\Alignment::TEXTROTATION_STACK_EXCEL = 255 |
Definition at line 32 of file Alignment.php.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Xls\Xf\mapTextRotation(), and PhpOffice\PhpSpreadsheet\Reader\Xls\readXf().
const PhpOffice\PhpSpreadsheet\Style\Alignment::TEXTROTATION_STACK_PHPSPREADSHEET = -165 |
Definition at line 33 of file Alignment.php.
Referenced by PhpOffice\PhpSpreadsheet\Shared\Font\getTextWidthPixelsApprox(), PhpOffice\PhpSpreadsheet\Writer\Xls\Xf\mapTextRotation(), and PhpOffice\PhpSpreadsheet\Reader\Xls\readXf().
const PhpOffice\PhpSpreadsheet\Style\Alignment::VERTICAL_BOTTOM = 'bottom' |
Definition at line 20 of file Alignment.php.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Xls\Style\CellAlignment\vertical().
const PhpOffice\PhpSpreadsheet\Style\Alignment::VERTICAL_CENTER = 'center' |
Definition at line 22 of file Alignment.php.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Ods\Cell\Style\mapVerticalAlignment().
const PhpOffice\PhpSpreadsheet\Style\Alignment::VERTICAL_DISTRIBUTED = 'distributed' |
Definition at line 24 of file Alignment.php.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Ods\Cell\Style\mapVerticalAlignment().
const PhpOffice\PhpSpreadsheet\Style\Alignment::VERTICAL_JUSTIFY = 'justify' |
Definition at line 23 of file Alignment.php.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Ods\Cell\Style\mapVerticalAlignment().
const PhpOffice\PhpSpreadsheet\Style\Alignment::VERTICAL_TOP = 'top' |
Definition at line 21 of file Alignment.php.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Ods\Cell\Style\mapVerticalAlignment().