ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
__construct ($isSupervisor=false, $isConditional=false) | |
Create a new Style. More... | |
getSharedComponent () | |
Get the shared style component for the currently active cell in currently active sheet. More... | |
getParent () | |
Get parent. More... | |
getStyleArray ($array) | |
Build style array from subcomponents. More... | |
applyFromArray (array $pStyles, $pAdvanced=true) | |
Apply styles from array. More... | |
getFill () | |
Get Fill. More... | |
getFont () | |
Get Font. More... | |
setFont (Font $font) | |
Set font. More... | |
getBorders () | |
Get Borders. More... | |
getAlignment () | |
Get Alignment. More... | |
getNumberFormat () | |
Get Number Format. More... | |
getConditionalStyles () | |
Get Conditional Styles. More... | |
setConditionalStyles (array $pValue) | |
Set Conditional Styles. More... | |
getProtection () | |
Get Protection. More... | |
getQuotePrefix () | |
Get quote prefix. More... | |
setQuotePrefix ($pValue) | |
Set quote prefix. More... | |
getHashCode () | |
Get hash code. More... | |
getIndex () | |
Get own index in style collection. More... | |
setIndex ($pValue) | |
Set own index in style collection. More... | |
Public Member Functions inherited from PhpOffice\PhpSpreadsheet\Style\Supervisor | |
__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... | |
Protected Member Functions | |
exportArray1 () | |
Protected Member Functions inherited from PhpOffice\PhpSpreadsheet\Style\Supervisor | |
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 | |
$font | |
$fill | |
$borders | |
$alignment | |
$numberFormat | |
$protection | |
$index | |
$quotePrefix = false | |
Protected Attributes inherited from PhpOffice\PhpSpreadsheet\Style\Supervisor | |
$isSupervisor | |
$parent | |
$parentPropertyName | |
Private Member Functions | |
getOldXfIndexes (string $selectionType, array $rangeStart, array $rangeEnd, string $columnStart, string $columnEnd, array $pStyles) | |
PhpOffice\PhpSpreadsheet\Style\Style::__construct | ( | $isSupervisor = false , |
|
$isConditional = false |
|||
) |
Create a new Style.
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 76 of file Style.php.
References PhpOffice\PhpSpreadsheet\Style\Supervisor\$isSupervisor.
PhpOffice\PhpSpreadsheet\Style\Style::applyFromArray | ( | array | $pStyles, |
$pAdvanced = true |
|||
) |
Apply styles from array.
$spreadsheet->getActiveSheet()->getStyle('B2')->applyFromArray( [ 'font' => [ 'name' => 'Arial', 'bold' => true, 'italic' => false, 'underline' => Font::UNDERLINE_DOUBLE, 'strikethrough' => false, 'color' => [ 'rgb' => '808080' ] ], 'borders' => [ 'bottom' => [ 'borderStyle' => Border::BORDER_DASHDOT, 'color' => [ 'rgb' => '808080' ] ], 'top' => [ 'borderStyle' => Border::BORDER_DASHDOT, 'color' => [ 'rgb' => '808080' ] ] ], 'alignment' => [ 'horizontal' => Alignment::HORIZONTAL_CENTER, 'vertical' => Alignment::VERTICAL_CENTER, 'wrapText' => true, ], 'quotePrefix' => true ] );
array | $pStyles | Array containing style information |
bool | $pAdvanced | advanced mode for setting borders |
Definition at line 186 of file Style.php.
References $row, $style, $x, $y, PhpOffice\PhpSpreadsheet\Cell\Coordinate\coordinateFromString(), PhpOffice\PhpSpreadsheet\Style\Supervisor\getActiveSheet(), PhpOffice\PhpSpreadsheet\Style\Style\getAlignment(), PhpOffice\PhpSpreadsheet\Style\Style\getBorders(), PhpOffice\PhpSpreadsheet\Style\Style\getFill(), PhpOffice\PhpSpreadsheet\Style\Style\getFont(), PhpOffice\PhpSpreadsheet\Style\Style\getNumberFormat(), PhpOffice\PhpSpreadsheet\Style\Style\getOldXfIndexes(), PhpOffice\PhpSpreadsheet\Style\Style\getProtection(), PhpOffice\PhpSpreadsheet\Style\Supervisor\getSelectedCells(), PhpOffice\PhpSpreadsheet\Cell\Coordinate\indexesFromString(), and PhpOffice\PhpSpreadsheet\Cell\Coordinate\stringFromColumnIndex().
|
protected |
Definition at line 651 of file Style.php.
References PhpOffice\PhpSpreadsheet\Style\Supervisor\exportArray2(), PhpOffice\PhpSpreadsheet\Style\Style\getAlignment(), PhpOffice\PhpSpreadsheet\Style\Style\getBorders(), PhpOffice\PhpSpreadsheet\Style\Style\getFill(), PhpOffice\PhpSpreadsheet\Style\Style\getFont(), PhpOffice\PhpSpreadsheet\Style\Style\getNumberFormat(), PhpOffice\PhpSpreadsheet\Style\Style\getProtection(), and PhpOffice\PhpSpreadsheet\Style\Style\getQuotePrefix().
PhpOffice\PhpSpreadsheet\Style\Style::getAlignment | ( | ) |
Get Alignment.
Definition at line 527 of file Style.php.
References PhpOffice\PhpSpreadsheet\Style\Style\$alignment.
Referenced by PhpOffice\PhpSpreadsheet\Style\Style\applyFromArray(), PhpOffice\PhpSpreadsheet\Writer\Html\createCSSStyle(), PhpOffice\PhpSpreadsheet\Style\Style\exportArray1(), and PhpOffice\PhpSpreadsheet\Reader\Xlsx\Styles\readStyle().
PhpOffice\PhpSpreadsheet\Style\Style::getBorders | ( | ) |
Get Borders.
Definition at line 517 of file Style.php.
References PhpOffice\PhpSpreadsheet\Style\Style\$borders.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Xls\Workbook\addXfWriter(), PhpOffice\PhpSpreadsheet\Style\Style\applyFromArray(), PhpOffice\PhpSpreadsheet\Writer\Html\createCSSStyle(), PhpOffice\PhpSpreadsheet\Style\Style\exportArray1(), and PhpOffice\PhpSpreadsheet\Reader\Xlsx\Styles\readStyle().
PhpOffice\PhpSpreadsheet\Style\Style::getConditionalStyles | ( | ) |
Get Conditional Styles.
Only used on supervisor.
Definition at line 547 of file Style.php.
References PhpOffice\PhpSpreadsheet\Style\Supervisor\getActiveCell(), and PhpOffice\PhpSpreadsheet\Style\Supervisor\getActiveSheet().
PhpOffice\PhpSpreadsheet\Style\Style::getFill | ( | ) |
Get Fill.
Definition at line 485 of file Style.php.
References PhpOffice\PhpSpreadsheet\Style\Style\$fill.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Xls\Workbook\addXfWriter(), PhpOffice\PhpSpreadsheet\Style\Style\applyFromArray(), PhpOffice\PhpSpreadsheet\Writer\Html\createCSSStyle(), PhpOffice\PhpSpreadsheet\Style\Style\exportArray1(), and PhpOffice\PhpSpreadsheet\Reader\Xlsx\Styles\readStyle().
PhpOffice\PhpSpreadsheet\Style\Style::getFont | ( | ) |
Get Font.
Definition at line 495 of file Style.php.
References PhpOffice\PhpSpreadsheet\Style\Style\$font.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Xls\Workbook\addXfWriter(), PhpOffice\PhpSpreadsheet\Style\Style\applyFromArray(), PhpOffice\PhpSpreadsheet\Writer\Html\createCSSStyle(), PhpOffice\PhpSpreadsheet\Style\Style\exportArray1(), and PhpOffice\PhpSpreadsheet\Reader\Xlsx\Styles\readStyle().
PhpOffice\PhpSpreadsheet\Style\Style::getHashCode | ( | ) |
Get hash code.
Implements PhpOffice\PhpSpreadsheet\IComparable.
Definition at line 617 of file Style.php.
Referenced by PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\duplicateStyle().
PhpOffice\PhpSpreadsheet\Style\Style::getIndex | ( | ) |
Get own index in style collection.
Definition at line 636 of file Style.php.
References PhpOffice\PhpSpreadsheet\Style\Style\$index.
Referenced by PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\duplicateStyle().
PhpOffice\PhpSpreadsheet\Style\Style::getNumberFormat | ( | ) |
Get Number Format.
Definition at line 537 of file Style.php.
References PhpOffice\PhpSpreadsheet\Style\Style\$numberFormat.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Xls\Workbook\addXfWriter(), PhpOffice\PhpSpreadsheet\Style\Style\applyFromArray(), PhpOffice\PhpSpreadsheet\Style\Style\exportArray1(), and PhpOffice\PhpSpreadsheet\Reader\Xlsx\Styles\readStyle().
|
private |
Definition at line 429 of file Style.php.
References $row, and PhpOffice\PhpSpreadsheet\Style\Supervisor\getActiveSheet().
Referenced by PhpOffice\PhpSpreadsheet\Style\Style\applyFromArray().
PhpOffice\PhpSpreadsheet\Style\Style::getParent | ( | ) |
Get parent.
Only used for style supervisor.
Definition at line 124 of file Style.php.
References PhpOffice\PhpSpreadsheet\Style\Supervisor\$parent.
PhpOffice\PhpSpreadsheet\Style\Style::getProtection | ( | ) |
Get Protection.
Definition at line 571 of file Style.php.
References PhpOffice\PhpSpreadsheet\Style\Style\$protection.
Referenced by PhpOffice\PhpSpreadsheet\Style\Style\applyFromArray(), PhpOffice\PhpSpreadsheet\Style\Style\exportArray1(), PhpOffice\PhpSpreadsheet\Reader\Xlsx\Styles\readProtectionHidden(), and PhpOffice\PhpSpreadsheet\Reader\Xlsx\Styles\readProtectionLocked().
PhpOffice\PhpSpreadsheet\Style\Style::getQuotePrefix | ( | ) |
Get quote prefix.
Definition at line 581 of file Style.php.
References PhpOffice\PhpSpreadsheet\Style\Style\$quotePrefix, and PhpOffice\PhpSpreadsheet\Style\Style\getSharedComponent().
Referenced by PhpOffice\PhpSpreadsheet\Style\Style\exportArray1().
PhpOffice\PhpSpreadsheet\Style\Style::getSharedComponent | ( | ) |
Get the shared style component for the currently active cell in currently active sheet.
Only used for style supervisor.
Definition at line 105 of file Style.php.
References PhpOffice\PhpSpreadsheet\Style\Supervisor\getActiveCell(), and PhpOffice\PhpSpreadsheet\Style\Supervisor\getActiveSheet().
Referenced by PhpOffice\PhpSpreadsheet\Style\Border\__construct(), PhpOffice\PhpSpreadsheet\Style\Color\__construct(), PhpOffice\PhpSpreadsheet\Style\Color\getARGB(), PhpOffice\PhpSpreadsheet\Style\Border\getBorderStyle(), PhpOffice\PhpSpreadsheet\Style\Border\getHashCode(), PhpOffice\PhpSpreadsheet\Style\Color\getHashCode(), PhpOffice\PhpSpreadsheet\Style\Style\getQuotePrefix(), and PhpOffice\PhpSpreadsheet\Style\Color\getRGB().
PhpOffice\PhpSpreadsheet\Style\Style::getStyleArray | ( | $array | ) |
PhpOffice\PhpSpreadsheet\Style\Style::setConditionalStyles | ( | array | $pValue | ) |
Set Conditional Styles.
Only used on supervisor.
Conditional[] | $pValue Array of conditional styles |
Definition at line 559 of file Style.php.
References PhpOffice\PhpSpreadsheet\Style\Supervisor\getActiveSheet(), and PhpOffice\PhpSpreadsheet\Style\Supervisor\getSelectedCells().
PhpOffice\PhpSpreadsheet\Style\Style::setFont | ( | Font | $font | ) |
Set font.
Definition at line 505 of file Style.php.
References PhpOffice\PhpSpreadsheet\Style\Style\$font.
PhpOffice\PhpSpreadsheet\Style\Style::setIndex | ( | $pValue | ) |
Set own index in style collection.
int | $pValue |
Definition at line 646 of file Style.php.
Referenced by PhpOffice\PhpSpreadsheet\Spreadsheet\addCellStyleXf(), and PhpOffice\PhpSpreadsheet\Spreadsheet\addCellXf().
PhpOffice\PhpSpreadsheet\Style\Style::setQuotePrefix | ( | $pValue | ) |
Set quote prefix.
bool | $pValue |
Definition at line 597 of file Style.php.
References PhpOffice\PhpSpreadsheet\Style\Supervisor\getActiveSheet(), and PhpOffice\PhpSpreadsheet\Style\Supervisor\getSelectedCells().
Referenced by PhpOffice\PhpSpreadsheet\Reader\Xlsx\Styles\readStyle().
|
protected |
Definition at line 36 of file Style.php.
Referenced by PhpOffice\PhpSpreadsheet\Style\Style\getAlignment().
|
protected |
Definition at line 29 of file Style.php.
Referenced by PhpOffice\PhpSpreadsheet\Style\Style\getBorders().
|
protected |
Definition at line 22 of file Style.php.
Referenced by PhpOffice\PhpSpreadsheet\Style\Style\getFill().
|
protected |
Definition at line 15 of file Style.php.
Referenced by PhpOffice\PhpSpreadsheet\Style\Style\getFont(), and PhpOffice\PhpSpreadsheet\Style\Style\setFont().
|
protected |
Definition at line 57 of file Style.php.
Referenced by PhpOffice\PhpSpreadsheet\Style\Supervisor\exportArray2(), and PhpOffice\PhpSpreadsheet\Style\Style\getIndex().
|
protected |
Definition at line 43 of file Style.php.
Referenced by PhpOffice\PhpSpreadsheet\Style\Style\getNumberFormat().
|
protected |
Definition at line 50 of file Style.php.
Referenced by PhpOffice\PhpSpreadsheet\Style\Style\getProtection().
|
protected |
Definition at line 64 of file Style.php.
Referenced by PhpOffice\PhpSpreadsheet\Style\Style\getQuotePrefix().