ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Public Member Functions | |
__construct ($isSupervisor=FALSE, $isConditional=FALSE) | |
Create a new PHPExcel_Style_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 ($pStyles=null) | |
Apply styles from array. More... | |
getName () | |
Get Name. More... | |
setName ($pValue='Calibri') | |
Set Name. More... | |
getSize () | |
Get Size. More... | |
setSize ($pValue=10) | |
Set Size. More... | |
getBold () | |
Get Bold. More... | |
setBold ($pValue=false) | |
Set Bold. More... | |
getItalic () | |
Get Italic. More... | |
setItalic ($pValue=false) | |
Set Italic. More... | |
getSuperScript () | |
Get SuperScript. More... | |
setSuperScript ($pValue=false) | |
Set SuperScript. More... | |
getSubScript () | |
Get SubScript. More... | |
setSubScript ($pValue=false) | |
Set SubScript. More... | |
getUnderline () | |
Get Underline. More... | |
setUnderline ($pValue=self::UNDERLINE_NONE) | |
Set Underline. More... | |
getStrikethrough () | |
Get Strikethrough. More... | |
setStrikethrough ($pValue=false) | |
Set Strikethrough. More... | |
getColor () | |
Get Color. More... | |
setColor (PHPExcel_Style_Color $pValue=null) | |
Set Color. More... | |
getHashCode () | |
Get hash code. More... | |
Public Member Functions inherited from PHPExcel_Style_Supervisor | |
__construct ($isSupervisor=FALSE) | |
Create a new PHPExcel_Style_Alignment. 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... | |
Data Fields | |
const | UNDERLINE_NONE = 'none' |
const | UNDERLINE_DOUBLE = 'double' |
const | UNDERLINE_DOUBLEACCOUNTING = 'doubleAccounting' |
const | UNDERLINE_SINGLE = 'single' |
const | UNDERLINE_SINGLEACCOUNTING = 'singleAccounting' |
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 PHPExcel_Style_Supervisor | |
$_isSupervisor | |
$_parent | |
PHPExcel_Style_Font::__construct | ( | $isSupervisor = FALSE , |
|
$isConditional = FALSE |
|||
) |
Create a new PHPExcel_Style_Font.
boolean | $isSupervisor | Flag indicating if this is a supervisor or not Leave this value at default unless you understand exactly what its ramifications are |
boolean | $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 118 of file Font.php.
References PHPExcel_Style_Color\COLOR_BLACK.
PHPExcel_Style_Font::applyFromArray | ( | $pStyles = null | ) |
Apply styles from array.
$objPHPExcel->getActiveSheet()->getStyle('B2')->getFont()->applyFromArray( array( 'name' => 'Arial', 'bold' => TRUE, 'italic' => FALSE, 'underline' => PHPExcel_Style_Font::UNDERLINE_DOUBLE, 'strike' => FALSE, 'color' => array( 'rgb' => '808080' ) ) );
array | $pStyles | Array containing style information |
PHPExcel_Exception |
Definition at line 187 of file Font.php.
References PHPExcel_Style_Supervisor\getActiveSheet(), getColor(), PHPExcel_Style_Supervisor\getSelectedCells(), getStyleArray(), setBold(), setItalic(), setName(), setSize(), setStrikethrough(), setSubScript(), setSuperScript(), and setUnderline().
PHPExcel_Style_Font::getBold | ( | ) |
Get Bold.
Definition at line 293 of file Font.php.
References $_bold, and getSharedComponent().
Referenced by PHPExcel_Writer_HTML\_createCSSStyleFont().
PHPExcel_Style_Font::getColor | ( | ) |
Get Color.
Definition at line 485 of file Font.php.
References $_color.
Referenced by PHPExcel_Writer_Excel5_Workbook\_addFont(), PHPExcel_Writer_HTML\_createCSSStyleFont(), applyFromArray(), and setColor().
PHPExcel_Style_Font::getHashCode | ( | ) |
Get hash code.
Implements PHPExcel_IComparable.
Definition at line 514 of file Font.php.
References getSharedComponent().
Referenced by PHPExcel_Writer_Excel5_Workbook\_addFont().
PHPExcel_Style_Font::getItalic | ( | ) |
Get Italic.
Definition at line 324 of file Font.php.
References $_italic, and getSharedComponent().
Referenced by PHPExcel_Writer_HTML\_createCSSStyleFont().
PHPExcel_Style_Font::getName | ( | ) |
Get Name.
Definition at line 231 of file Font.php.
References $_name, and getSharedComponent().
Referenced by PHPExcel_Writer_HTML\_createCSSStyleFont(), PHPExcel_Shared_Drawing\cellDimensionToPixels(), PHPExcel_Shared_Font\getDefaultColumnWidthByFont(), PHPExcel_Shared_Font\getDefaultRowHeightByFont(), and PHPExcel_Shared_Drawing\pixelsToCellDimension().
PHPExcel_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 149 of file Font.php.
Referenced by getBold(), getHashCode(), getItalic(), getName(), getSize(), getStrikethrough(), getSubScript(), getSuperScript(), and getUnderline().
PHPExcel_Style_Font::getSize | ( | ) |
Get Size.
Definition at line 262 of file Font.php.
References $_size, and getSharedComponent().
Referenced by PHPExcel_Writer_HTML\_createCSSStyleFont(), PHPExcel_Shared_Drawing\cellDimensionToPixels(), PHPExcel_Shared_Font\getDefaultColumnWidthByFont(), PHPExcel_Shared_Font\getDefaultRowHeightByFont(), PHPExcel_Shared_Font\getTextWidthPixelsExact(), and PHPExcel_Shared_Drawing\pixelsToCellDimension().
PHPExcel_Style_Font::getStrikethrough | ( | ) |
Get Strikethrough.
Definition at line 454 of file Font.php.
References $_strikethrough, and getSharedComponent().
Referenced by PHPExcel_Writer_HTML\_createCSSStyleFont().
PHPExcel_Style_Font::getStyleArray | ( | $array | ) |
Build style array from subcomponents.
array | $array |
Definition at line 160 of file Font.php.
References array.
Referenced by applyFromArray(), setBold(), setItalic(), setName(), setSize(), setStrikethrough(), setSubScript(), setSuperScript(), and setUnderline().
PHPExcel_Style_Font::getSubScript | ( | ) |
Get SubScript.
Definition at line 387 of file Font.php.
References $_subScript, and getSharedComponent().
PHPExcel_Style_Font::getSuperScript | ( | ) |
Get SuperScript.
Definition at line 355 of file Font.php.
References $_superScript, and getSharedComponent().
PHPExcel_Style_Font::getUnderline | ( | ) |
Get Underline.
Definition at line 419 of file Font.php.
References $_underline, and getSharedComponent().
Referenced by PHPExcel_Writer_HTML\_createCSSStyleFont().
PHPExcel_Style_Font::setBold | ( | $pValue = false | ) |
Set Bold.
boolean | $pValue |
Definition at line 306 of file Font.php.
References array, PHPExcel_Style_Supervisor\getActiveSheet(), PHPExcel_Style_Supervisor\getSelectedCells(), and getStyleArray().
Referenced by applyFromArray().
PHPExcel_Style_Font::setColor | ( | PHPExcel_Style_Color | $pValue = null | ) |
Set Color.
PHPExcel_Style_Color | $pValue |
PHPExcel_Exception |
Definition at line 496 of file Font.php.
References array, PHPExcel_Style_Supervisor\getActiveSheet(), getColor(), and PHPExcel_Style_Supervisor\getSelectedCells().
PHPExcel_Style_Font::setItalic | ( | $pValue = false | ) |
Set Italic.
boolean | $pValue |
Definition at line 337 of file Font.php.
References array, PHPExcel_Style_Supervisor\getActiveSheet(), PHPExcel_Style_Supervisor\getSelectedCells(), and getStyleArray().
Referenced by applyFromArray().
PHPExcel_Style_Font::setName | ( | $pValue = 'Calibri' | ) |
Set Name.
string | $pValue |
Definition at line 244 of file Font.php.
References array, PHPExcel_Style_Supervisor\getActiveSheet(), PHPExcel_Style_Supervisor\getSelectedCells(), and getStyleArray().
Referenced by applyFromArray().
PHPExcel_Style_Font::setSize | ( | $pValue = 10 | ) |
Set Size.
double | $pValue |
Definition at line 275 of file Font.php.
References array, PHPExcel_Style_Supervisor\getActiveSheet(), PHPExcel_Style_Supervisor\getSelectedCells(), and getStyleArray().
Referenced by applyFromArray().
PHPExcel_Style_Font::setStrikethrough | ( | $pValue = false | ) |
Set Strikethrough.
boolean | $pValue |
Definition at line 467 of file Font.php.
References array, PHPExcel_Style_Supervisor\getActiveSheet(), PHPExcel_Style_Supervisor\getSelectedCells(), and getStyleArray().
Referenced by applyFromArray().
PHPExcel_Style_Font::setSubScript | ( | $pValue = false | ) |
Set SubScript.
boolean | $pValue |
Definition at line 400 of file Font.php.
References array, PHPExcel_Style_Supervisor\getActiveSheet(), PHPExcel_Style_Supervisor\getSelectedCells(), and getStyleArray().
Referenced by applyFromArray().
PHPExcel_Style_Font::setSuperScript | ( | $pValue = false | ) |
Set SuperScript.
boolean | $pValue |
Definition at line 368 of file Font.php.
References array, PHPExcel_Style_Supervisor\getActiveSheet(), PHPExcel_Style_Supervisor\getSelectedCells(), and getStyleArray().
Referenced by applyFromArray().
PHPExcel_Style_Font::setUnderline | ( | $pValue = self::UNDERLINE_NONE | ) |
Set Underline.
string | boolean | $pValue | PHPExcel_Style_Font underline type If a boolean is passed, then TRUE equates to UNDERLINE_SINGLE, false equates to UNDERLINE_NONE |
Definition at line 434 of file Font.php.
References array, PHPExcel_Style_Supervisor\getActiveSheet(), PHPExcel_Style_Supervisor\getSelectedCells(), and getStyleArray().
Referenced by applyFromArray().
|
protected |
|
protected |
Definition at line 106 of file Font.php.
Referenced by getColor().
|
protected |
Definition at line 71 of file Font.php.
Referenced by getItalic().
|
protected |
|
protected |
|
protected |
Definition at line 99 of file Font.php.
Referenced by getStrikethrough().
|
protected |
Definition at line 85 of file Font.php.
Referenced by getSubScript().
|
protected |
Definition at line 78 of file Font.php.
Referenced by getSuperScript().
|
protected |
Definition at line 92 of file Font.php.
Referenced by getUnderline().
const PHPExcel_Style_Font::UNDERLINE_DOUBLE = 'double' |
const PHPExcel_Style_Font::UNDERLINE_DOUBLEACCOUNTING = 'doubleAccounting' |
Definition at line 41 of file Font.php.
Referenced by PHPExcel_Reader_Excel5\_readFont(), PHPExcel_Writer_Excel5_Worksheet\_writeCFRule(), PHPExcel_Reader_Gnumeric\loadIntoExisting(), and PHPExcel_Reader_Excel2003XML\loadIntoExisting().
const PHPExcel_Style_Font::UNDERLINE_NONE = 'none' |
const PHPExcel_Style_Font::UNDERLINE_SINGLE = 'single' |
Definition at line 42 of file Font.php.
Referenced by PHPExcel_Reader_Excel2007_Chart\_parseRichText(), PHPExcel_Reader_Excel2007\_parseRichText(), PHPExcel_Reader_Excel5\_readFont(), PHPExcel_Reader_Excel2007\_readStyle(), PHPExcel_Writer_Excel5_Worksheet\_writeCFRule(), PHPExcel_Helper_HTML\buildTextRun(), PHPExcel_Reader_Gnumeric\loadIntoExisting(), and PHPExcel_Reader_Excel2003XML\loadIntoExisting().
const PHPExcel_Style_Font::UNDERLINE_SINGLEACCOUNTING = 'singleAccounting' |
Definition at line 43 of file Font.php.
Referenced by PHPExcel_Reader_Excel5\_readFont(), PHPExcel_Writer_Excel5_Worksheet\_writeCFRule(), PHPExcel_Reader_Gnumeric\loadIntoExisting(), and PHPExcel_Reader_Excel2003XML\loadIntoExisting().