ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
__construct ($isSupervisor=false, $isConditional=false) | |
Create a new Font. 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... | |
getName () | |
Get Name. More... | |
setName ($fontname) | |
Set Name. More... | |
getSize () | |
Get Size. More... | |
setSize ($sizeInPoints) | |
Set Size. More... | |
getBold () | |
Get Bold. More... | |
setBold ($pValue) | |
Set Bold. More... | |
getItalic () | |
Get Italic. More... | |
setItalic ($pValue) | |
Set Italic. More... | |
getSuperscript () | |
Get Superscript. More... | |
setSuperscript (bool $pValue) | |
Set Superscript. More... | |
getSubscript () | |
Get Subscript. More... | |
setSubscript (bool $pValue) | |
Set Subscript. More... | |
getUnderline () | |
Get Underline. More... | |
setUnderline ($pValue) | |
Set Underline. More... | |
getStrikethrough () | |
Get Strikethrough. More... | |
setStrikethrough ($pValue) | |
Set Strikethrough. More... | |
getColor () | |
Get Color. More... | |
setColor (Color $pValue) | |
Set Color. More... | |
getHashCode () | |
Get hash code. 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... | |
Data Fields | |
const | UNDERLINE_NONE = 'none' |
const | UNDERLINE_DOUBLE = 'double' |
const | UNDERLINE_DOUBLEACCOUNTING = 'doubleAccounting' |
const | UNDERLINE_SINGLE = 'single' |
const | UNDERLINE_SINGLEACCOUNTING = 'singleAccounting' |
$colorIndex | |
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 | |
$name = 'Calibri' | |
$size = 11 | |
$bold = false | |
$italic = false | |
$superscript = false | |
$subscript = false | |
$underline = self::UNDERLINE_NONE | |
$strikethrough = false | |
$color | |
Protected Attributes inherited from PhpOffice\PhpSpreadsheet\Style\Supervisor | |
$isSupervisor | |
$parent | |
$parentPropertyName | |
PhpOffice\PhpSpreadsheet\Style\Font::__construct | ( | $isSupervisor = false , |
|
$isConditional = false |
|||
) |
Create a new Font.
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 92 of file Font.php.
References PhpOffice\PhpSpreadsheet\Style\Supervisor\$isSupervisor, color, PhpOffice\PhpSpreadsheet\Style\Color\COLOR_BLACK, and size.
PhpOffice\PhpSpreadsheet\Style\Font::applyFromArray | ( | array | $pStyles | ) |
Apply styles from array.
$spreadsheet->getActiveSheet()->getStyle('B2')->getFont()->applyFromArray( [ 'name' => 'Arial', 'bold' => TRUE, 'italic' => FALSE, 'underline' => ::UNDERLINE_DOUBLE, 'strikethrough' => FALSE, 'color' => [ 'rgb' => '808080' ] ] );
array | $pStyles | Array containing style information |
Definition at line 162 of file Font.php.
References PhpOffice\PhpSpreadsheet\Style\Supervisor\getActiveSheet(), PhpOffice\PhpSpreadsheet\Style\Font\getColor(), PhpOffice\PhpSpreadsheet\Style\Supervisor\getSelectedCells(), PhpOffice\PhpSpreadsheet\Style\Font\getStyleArray(), PhpOffice\PhpSpreadsheet\Style\Font\setBold(), PhpOffice\PhpSpreadsheet\Style\Font\setItalic(), PhpOffice\PhpSpreadsheet\Style\Font\setName(), PhpOffice\PhpSpreadsheet\Style\Font\setSize(), PhpOffice\PhpSpreadsheet\Style\Font\setStrikethrough(), PhpOffice\PhpSpreadsheet\Style\Font\setSubscript(), PhpOffice\PhpSpreadsheet\Style\Font\setSuperscript(), and PhpOffice\PhpSpreadsheet\Style\Font\setUnderline().
|
protected |
Definition at line 550 of file Font.php.
References PhpOffice\PhpSpreadsheet\Style\Supervisor\exportArray2(), PhpOffice\PhpSpreadsheet\Style\Font\getBold(), PhpOffice\PhpSpreadsheet\Style\Font\getColor(), PhpOffice\PhpSpreadsheet\Style\Font\getItalic(), PhpOffice\PhpSpreadsheet\Style\Font\getName(), PhpOffice\PhpSpreadsheet\Style\Font\getSize(), PhpOffice\PhpSpreadsheet\Style\Font\getStrikethrough(), PhpOffice\PhpSpreadsheet\Style\Font\getSubscript(), PhpOffice\PhpSpreadsheet\Style\Font\getSuperscript(), and PhpOffice\PhpSpreadsheet\Style\Font\getUnderline().
PhpOffice\PhpSpreadsheet\Style\Font::getBold | ( | ) |
Get Bold.
Definition at line 283 of file Font.php.
References PhpOffice\PhpSpreadsheet\Style\Font\$bold, and PhpOffice\PhpSpreadsheet\Style\Font\getSharedComponent().
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\createCSSStyleFont(), PhpOffice\PhpSpreadsheet\Style\Font\exportArray1(), and PhpOffice\PhpSpreadsheet\Writer\Xlsx\Style\writeFont().
PhpOffice\PhpSpreadsheet\Style\Font::getColor | ( | ) |
Get Color.
Definition at line 500 of file Font.php.
References PhpOffice\PhpSpreadsheet\Style\Font\$color.
Referenced by PhpOffice\PhpSpreadsheet\Style\Font\applyFromArray(), PhpOffice\PhpSpreadsheet\Writer\Html\createCSSStyleFont(), PhpOffice\PhpSpreadsheet\Style\Font\exportArray1(), PhpOffice\PhpSpreadsheet\Reader\Xlsx\Styles\readFontStyle(), PhpOffice\PhpSpreadsheet\Style\Font\setColor(), and PhpOffice\PhpSpreadsheet\Writer\Xlsx\Style\writeFont().
PhpOffice\PhpSpreadsheet\Style\Font::getHashCode | ( | ) |
Get hash code.
Implements PhpOffice\PhpSpreadsheet\IComparable.
Definition at line 530 of file Font.php.
References color, PhpOffice\PhpSpreadsheet\Style\Font\getSharedComponent(), and size.
PhpOffice\PhpSpreadsheet\Style\Font::getItalic | ( | ) |
Get Italic.
Definition at line 319 of file Font.php.
References PhpOffice\PhpSpreadsheet\Style\Font\$italic, and PhpOffice\PhpSpreadsheet\Style\Font\getSharedComponent().
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\createCSSStyleFont(), PhpOffice\PhpSpreadsheet\Style\Font\exportArray1(), and PhpOffice\PhpSpreadsheet\Writer\Xlsx\Style\writeFont().
PhpOffice\PhpSpreadsheet\Style\Font::getName | ( | ) |
Get Name.
Definition at line 204 of file Font.php.
References PhpOffice\PhpSpreadsheet\Style\Font\$name, and PhpOffice\PhpSpreadsheet\Style\Font\getSharedComponent().
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\createCSSStyleFont(), PhpOffice\PhpSpreadsheet\Style\Font\exportArray1(), and PhpOffice\PhpSpreadsheet\Writer\Xlsx\Style\writeFont().
PhpOffice\PhpSpreadsheet\Style\Font::getSharedComponent | ( | ) |
Get the shared style component for the currently active cell in currently active sheet.
Only used for style supervisor.
Definition at line 123 of file Font.php.
Referenced by PhpOffice\PhpSpreadsheet\Style\Font\getBold(), PhpOffice\PhpSpreadsheet\Style\Font\getHashCode(), PhpOffice\PhpSpreadsheet\Style\Font\getItalic(), PhpOffice\PhpSpreadsheet\Style\Font\getName(), PhpOffice\PhpSpreadsheet\Style\Font\getSize(), PhpOffice\PhpSpreadsheet\Style\Font\getStrikethrough(), PhpOffice\PhpSpreadsheet\Style\Font\getSubscript(), PhpOffice\PhpSpreadsheet\Style\Font\getSuperscript(), and PhpOffice\PhpSpreadsheet\Style\Font\getUnderline().
PhpOffice\PhpSpreadsheet\Style\Font::getSize | ( | ) |
Get Size.
Definition at line 240 of file Font.php.
References PhpOffice\PhpSpreadsheet\Style\Font\$size, and PhpOffice\PhpSpreadsheet\Style\Font\getSharedComponent().
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\createCSSStyleFont(), PhpOffice\PhpSpreadsheet\Style\Font\exportArray1(), and PhpOffice\PhpSpreadsheet\Writer\Xlsx\Style\writeFont().
PhpOffice\PhpSpreadsheet\Style\Font::getStrikethrough | ( | ) |
Get Strikethrough.
Definition at line 463 of file Font.php.
References PhpOffice\PhpSpreadsheet\Style\Font\$strikethrough, and PhpOffice\PhpSpreadsheet\Style\Font\getSharedComponent().
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\createCSSStyleFont(), PhpOffice\PhpSpreadsheet\Style\Font\exportArray1(), and PhpOffice\PhpSpreadsheet\Writer\Xlsx\Style\writeFont().
PhpOffice\PhpSpreadsheet\Style\Font::getStyleArray | ( | $array | ) |
Build style array from subcomponents.
array | $array |
Definition at line 135 of file Font.php.
Referenced by PhpOffice\PhpSpreadsheet\Style\Font\applyFromArray(), PhpOffice\PhpSpreadsheet\Style\Font\setBold(), PhpOffice\PhpSpreadsheet\Style\Font\setItalic(), PhpOffice\PhpSpreadsheet\Style\Font\setName(), PhpOffice\PhpSpreadsheet\Style\Font\setSize(), PhpOffice\PhpSpreadsheet\Style\Font\setStrikethrough(), PhpOffice\PhpSpreadsheet\Style\Font\setSubscript(), PhpOffice\PhpSpreadsheet\Style\Font\setSuperscript(), and PhpOffice\PhpSpreadsheet\Style\Font\setUnderline().
PhpOffice\PhpSpreadsheet\Style\Font::getSubscript | ( | ) |
Get Subscript.
Definition at line 389 of file Font.php.
References PhpOffice\PhpSpreadsheet\Style\Font\$subscript, and PhpOffice\PhpSpreadsheet\Style\Font\getSharedComponent().
Referenced by PhpOffice\PhpSpreadsheet\Style\Font\exportArray1(), and PhpOffice\PhpSpreadsheet\Writer\Xlsx\Style\writeFont().
PhpOffice\PhpSpreadsheet\Style\Font::getSuperscript | ( | ) |
Get Superscript.
Definition at line 355 of file Font.php.
References PhpOffice\PhpSpreadsheet\Style\Font\$superscript, and PhpOffice\PhpSpreadsheet\Style\Font\getSharedComponent().
Referenced by PhpOffice\PhpSpreadsheet\Style\Font\exportArray1(), and PhpOffice\PhpSpreadsheet\Writer\Xlsx\Style\writeFont().
PhpOffice\PhpSpreadsheet\Style\Font::getUnderline | ( | ) |
Get Underline.
Definition at line 423 of file Font.php.
References PhpOffice\PhpSpreadsheet\Style\Font\$underline, and PhpOffice\PhpSpreadsheet\Style\Font\getSharedComponent().
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\createCSSStyleFont(), PhpOffice\PhpSpreadsheet\Style\Font\exportArray1(), PhpOffice\PhpSpreadsheet\Writer\Ods\Cell\Style\mapUnderlineStyle(), and PhpOffice\PhpSpreadsheet\Writer\Xlsx\Style\writeFont().
PhpOffice\PhpSpreadsheet\Style\Font::setBold | ( | $pValue | ) |
Set Bold.
bool | $pValue |
Definition at line 299 of file Font.php.
References PhpOffice\PhpSpreadsheet\Style\Supervisor\getActiveSheet(), PhpOffice\PhpSpreadsheet\Style\Supervisor\getSelectedCells(), and PhpOffice\PhpSpreadsheet\Style\Font\getStyleArray().
Referenced by PhpOffice\PhpSpreadsheet\Style\Font\applyFromArray(), and PhpOffice\PhpSpreadsheet\Reader\Xlsx\Styles\readFontStyle().
PhpOffice\PhpSpreadsheet\Style\Font::setColor | ( | Color | $pValue | ) |
Set Color.
Definition at line 510 of file Font.php.
References PhpOffice\PhpSpreadsheet\Style\Font\$color, color, PhpOffice\PhpSpreadsheet\Style\Supervisor\getActiveSheet(), PhpOffice\PhpSpreadsheet\Style\Font\getColor(), PhpOffice\PhpSpreadsheet\Style\Supervisor\getIsSupervisor(), and PhpOffice\PhpSpreadsheet\Style\Supervisor\getSelectedCells().
PhpOffice\PhpSpreadsheet\Style\Font::setItalic | ( | $pValue | ) |
Set Italic.
bool | $pValue |
Definition at line 335 of file Font.php.
References PhpOffice\PhpSpreadsheet\Style\Supervisor\getActiveSheet(), PhpOffice\PhpSpreadsheet\Style\Supervisor\getSelectedCells(), and PhpOffice\PhpSpreadsheet\Style\Font\getStyleArray().
Referenced by PhpOffice\PhpSpreadsheet\Style\Font\applyFromArray(), and PhpOffice\PhpSpreadsheet\Reader\Xlsx\Styles\readFontStyle().
PhpOffice\PhpSpreadsheet\Style\Font::setName | ( | $fontname | ) |
Set Name.
string | $fontname |
Definition at line 220 of file Font.php.
References PhpOffice\PhpSpreadsheet\Style\Supervisor\getActiveSheet(), PhpOffice\PhpSpreadsheet\Style\Supervisor\getSelectedCells(), and PhpOffice\PhpSpreadsheet\Style\Font\getStyleArray().
Referenced by PhpOffice\PhpSpreadsheet\Style\Font\applyFromArray(), and PhpOffice\PhpSpreadsheet\Reader\Xlsx\Styles\readFontStyle().
PhpOffice\PhpSpreadsheet\Style\Font::setSize | ( | $sizeInPoints | ) |
Set Size.
mixed | $sizeInPoints | A float representing the value of a positive measurement in points (1/72 of an inch) |
Definition at line 256 of file Font.php.
References PhpOffice\PhpSpreadsheet\Style\Supervisor\getActiveSheet(), PhpOffice\PhpSpreadsheet\Style\Supervisor\getSelectedCells(), PhpOffice\PhpSpreadsheet\Style\Font\getStyleArray(), and size.
Referenced by PhpOffice\PhpSpreadsheet\Style\Font\applyFromArray(), and PhpOffice\PhpSpreadsheet\Reader\Xlsx\Styles\readFontStyle().
PhpOffice\PhpSpreadsheet\Style\Font::setStrikethrough | ( | $pValue | ) |
Set Strikethrough.
bool | $pValue |
Definition at line 479 of file Font.php.
References PhpOffice\PhpSpreadsheet\Style\Supervisor\getActiveSheet(), PhpOffice\PhpSpreadsheet\Style\Supervisor\getSelectedCells(), and PhpOffice\PhpSpreadsheet\Style\Font\getStyleArray().
Referenced by PhpOffice\PhpSpreadsheet\Style\Font\applyFromArray(), and PhpOffice\PhpSpreadsheet\Reader\Xlsx\Styles\readFontStyle().
PhpOffice\PhpSpreadsheet\Style\Font::setSubscript | ( | bool | $pValue | ) |
Set Subscript.
Definition at line 403 of file Font.php.
References PhpOffice\PhpSpreadsheet\Style\Supervisor\getActiveSheet(), PhpOffice\PhpSpreadsheet\Style\Supervisor\getSelectedCells(), and PhpOffice\PhpSpreadsheet\Style\Font\getStyleArray().
Referenced by PhpOffice\PhpSpreadsheet\Style\Font\applyFromArray(), PhpOffice\PhpSpreadsheet\Reader\Xls\Style\CellFont\escapement(), and PhpOffice\PhpSpreadsheet\Reader\Xlsx\Styles\readFontStyle().
PhpOffice\PhpSpreadsheet\Style\Font::setSuperscript | ( | bool | $pValue | ) |
Set Superscript.
Definition at line 369 of file Font.php.
References PhpOffice\PhpSpreadsheet\Style\Supervisor\getActiveSheet(), PhpOffice\PhpSpreadsheet\Style\Supervisor\getSelectedCells(), and PhpOffice\PhpSpreadsheet\Style\Font\getStyleArray().
Referenced by PhpOffice\PhpSpreadsheet\Style\Font\applyFromArray(), PhpOffice\PhpSpreadsheet\Reader\Xls\Style\CellFont\escapement(), and PhpOffice\PhpSpreadsheet\Reader\Xlsx\Styles\readFontStyle().
PhpOffice\PhpSpreadsheet\Style\Font::setUnderline | ( | $pValue | ) |
Set Underline.
bool | string | $pValue | underline type If a boolean is passed, then TRUE equates to UNDERLINE_SINGLE, false equates to UNDERLINE_NONE |
Definition at line 441 of file Font.php.
References PhpOffice\PhpSpreadsheet\Style\Supervisor\getActiveSheet(), PhpOffice\PhpSpreadsheet\Style\Supervisor\getSelectedCells(), and PhpOffice\PhpSpreadsheet\Style\Font\getStyleArray().
Referenced by PhpOffice\PhpSpreadsheet\Style\Font\applyFromArray(), PhpOffice\PhpSpreadsheet\Reader\Xlsx\Styles\readFontStyle(), and PhpOffice\PhpSpreadsheet\Reader\Xls\Style\CellFont\underline().
|
protected |
Definition at line 33 of file Font.php.
Referenced by PhpOffice\PhpSpreadsheet\Style\Font\getBold().
|
protected |
Definition at line 75 of file Font.php.
Referenced by PhpOffice\PhpSpreadsheet\Style\Font\getColor(), and PhpOffice\PhpSpreadsheet\Style\Font\setColor().
|
protected |
Definition at line 40 of file Font.php.
Referenced by PhpOffice\PhpSpreadsheet\Style\Font\getItalic().
|
protected |
Definition at line 19 of file Font.php.
Referenced by PhpOffice\PhpSpreadsheet\Style\Font\getName().
|
protected |
Definition at line 26 of file Font.php.
Referenced by PhpOffice\PhpSpreadsheet\Style\Font\getSize().
|
protected |
Definition at line 68 of file Font.php.
Referenced by PhpOffice\PhpSpreadsheet\Style\Font\getStrikethrough().
|
protected |
Definition at line 54 of file Font.php.
Referenced by PhpOffice\PhpSpreadsheet\Style\Font\getSubscript().
|
protected |
Definition at line 47 of file Font.php.
Referenced by PhpOffice\PhpSpreadsheet\Style\Font\getSuperscript().
|
protected |
Definition at line 61 of file Font.php.
Referenced by PhpOffice\PhpSpreadsheet\Style\Font\getUnderline().
const PhpOffice\PhpSpreadsheet\Style\Font::UNDERLINE_DOUBLE = 'double' |
Definition at line 9 of file Font.php.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Ods\Cell\Style\mapUnderlineStyle().
const PhpOffice\PhpSpreadsheet\Style\Font::UNDERLINE_DOUBLEACCOUNTING = 'doubleAccounting' |
Definition at line 10 of file Font.php.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Ods\Cell\Style\mapUnderlineStyle().
const PhpOffice\PhpSpreadsheet\Style\Font::UNDERLINE_NONE = 'none' |
Definition at line 8 of file Font.php.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\createCSSStyleFont(), and PhpOffice\PhpSpreadsheet\Writer\Ods\Cell\Style\writeTextProperties().
const PhpOffice\PhpSpreadsheet\Style\Font::UNDERLINE_SINGLE = 'single' |
Definition at line 11 of file Font.php.
Referenced by PhpOffice\PhpSpreadsheet\Helper\Html\buildTextRun(), and PhpOffice\PhpSpreadsheet\Writer\Ods\Cell\Style\mapUnderlineStyle().
const PhpOffice\PhpSpreadsheet\Style\Font::UNDERLINE_SINGLEACCOUNTING = 'singleAccounting' |
Definition at line 12 of file Font.php.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Ods\Cell\Style\mapUnderlineStyle().