ILIAS
Release_4_0_x_branch Revision 61816
|
Public Member Functions | |
__construct ($isSupervisor=false) | |
Create a new PHPExcel_Style_Font. | |
bindParent ($parent) | |
Bind parent. | |
getIsSupervisor () | |
Is this a supervisor or a real style component? | |
getSharedComponent () | |
Get the shared style component for the currently active cell in currently active sheet. | |
getActiveSheet () | |
Get the currently active sheet. | |
getXSelectedCells () | |
Get the currently active cell coordinate in currently active sheet. | |
getXActiveCell () | |
Get the currently active cell coordinate in currently active sheet. | |
getStyleArray ($array) | |
Build style array from subcomponents. | |
applyFromArray ($pStyles=null) | |
Apply styles from array. | |
getName () | |
Get Name. | |
setName ($pValue= 'Calibri') | |
Set Name. | |
getSize () | |
Get Size. | |
setSize ($pValue=10) | |
Set Size. | |
getBold () | |
Get Bold. | |
setBold ($pValue=false) | |
Set Bold. | |
getItalic () | |
Get Italic. | |
setItalic ($pValue=false) | |
Set Italic. | |
getSuperScript () | |
Get SuperScript. | |
setSuperScript ($pValue=false) | |
Set SuperScript. | |
getSubScript () | |
Get SubScript. | |
setSubScript ($pValue=false) | |
Set SubScript. | |
getUnderline () | |
Get Underline. | |
setUnderline ($pValue=PHPExcel_Style_Font::UNDERLINE_NONE) | |
Set Underline. | |
getStriketrough () | |
Get Striketrough. | |
setStriketrough ($pValue=false) | |
Set Striketrough. | |
getStrikethrough () | |
Get Strikethrough. | |
setStrikethrough ($pValue=false) | |
Set Strikethrough. | |
getColor () | |
Get Color. | |
setColor (PHPExcel_Style_Color $pValue=null) | |
Set Color. | |
getHashCode () | |
Get hash code. | |
getHashIndex () | |
Get hash index. | |
setHashIndex ($value) | |
Set hash index. | |
__clone () | |
Implement PHP __clone to create a deep clone, not just a shallow copy. |
Data Fields | |
const | UNDERLINE_NONE = 'none' |
const | UNDERLINE_DOUBLE = 'double' |
const | UNDERLINE_DOUBLEACCOUNTING = 'doubleAccounting' |
const | UNDERLINE_SINGLE = 'single' |
const | UNDERLINE_SINGLEACCOUNTING = 'singleAccounting' |
Private Attributes | |
$_name | |
$_bold | |
$_italic | |
$_superScript | |
$_subScript | |
$_underline | |
$_strikethrough | |
$_color | |
$_parentPropertyName | |
$_isSupervisor | |
$_parent | |
$_hashIndex |
PHPExcel_Style_Font::__construct | ( | $isSupervisor = false | ) |
Create a new PHPExcel_Style_Font.
Definition at line 140 of file Font.php.
References PHPExcel_Style_Color\COLOR_BLACK, and UNDERLINE_NONE.
PHPExcel_Style_Font::__clone | ( | ) |
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 |
Exception |
Definition at line 259 of file Font.php.
References getActiveSheet(), getColor(), getStyleArray(), getXSelectedCells(), setBold(), setItalic(), setName(), setSize(), setStrikethrough(), setSubScript(), setSuperScript(), and setUnderline().
PHPExcel_Style_Font::bindParent | ( | $parent | ) |
Bind parent.
Only used for supervisor
PHPExcel_Style | $parent |
Definition at line 168 of file Font.php.
PHPExcel_Style_Font::getActiveSheet | ( | ) |
Get the currently active sheet.
Only used for supervisor
Definition at line 199 of file Font.php.
Referenced by applyFromArray(), getXActiveCell(), getXSelectedCells(), setBold(), setColor(), setItalic(), setName(), setSize(), setStrikethrough(), setSubScript(), setSuperScript(), and setUnderline().
PHPExcel_Style_Font::getBold | ( | ) |
Get Bold.
Definition at line 365 of file Font.php.
References $_bold, and getSharedComponent().
Referenced by PHPExcel_Writer_HTML\_createCSSStyleFont().
PHPExcel_Style_Font::getColor | ( | ) |
Get Color.
Definition at line 574 of file Font.php.
References $_color.
Referenced by PHPExcel_Writer_HTML\_createCSSStyleFont(), applyFromArray(), and setColor().
PHPExcel_Style_Font::getHashCode | ( | ) |
Get hash code.
Implements PHPExcel_IComparable.
Definition at line 603 of file Font.php.
References getSharedComponent().
PHPExcel_Style_Font::getHashIndex | ( | ) |
Get hash index.
Note that this index may vary during script execution! Only reliable moment is while doing a write of a workbook and when changes are not allowed.
Implements PHPExcel_IComparable.
Definition at line 636 of file Font.php.
References $_hashIndex.
PHPExcel_Style_Font::getIsSupervisor | ( | ) |
Is this a supervisor or a real style component?
Definition at line 178 of file Font.php.
References $_isSupervisor.
PHPExcel_Style_Font::getItalic | ( | ) |
Get Italic.
Definition at line 396 of file Font.php.
References $_italic, and getSharedComponent().
Referenced by PHPExcel_Writer_HTML\_createCSSStyleFont().
PHPExcel_Style_Font::getName | ( | ) |
Get Name.
Definition at line 303 of file Font.php.
References $_name, and getSharedComponent().
Referenced by PHPExcel_Writer_HTML\_createCSSStyleFont().
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 189 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 334 of file Font.php.
References getSharedComponent().
Referenced by PHPExcel_Writer_HTML\_createCSSStyleFont().
PHPExcel_Style_Font::getStrikethrough | ( | ) |
Get Strikethrough.
Definition at line 543 of file Font.php.
References $_strikethrough, and getSharedComponent().
Referenced by PHPExcel_Writer_HTML\_createCSSStyleFont(), and getStriketrough().
PHPExcel_Style_Font::getStriketrough | ( | ) |
Get Striketrough.
Definition at line 523 of file Font.php.
References getStrikethrough().
PHPExcel_Style_Font::getStyleArray | ( | $array | ) |
Build style array from subcomponents.
array | $array |
Definition at line 232 of file Font.php.
Referenced by applyFromArray(), setBold(), setItalic(), setName(), setSize(), setStrikethrough(), setSubScript(), setSuperScript(), and setUnderline().
PHPExcel_Style_Font::getSubScript | ( | ) |
Get SubScript.
Definition at line 459 of file Font.php.
References $_subScript, and getSharedComponent().
PHPExcel_Style_Font::getSuperScript | ( | ) |
Get SuperScript.
Definition at line 427 of file Font.php.
References $_superScript, and getSharedComponent().
PHPExcel_Style_Font::getUnderline | ( | ) |
Get Underline.
Definition at line 491 of file Font.php.
References $_underline, and getSharedComponent().
Referenced by PHPExcel_Writer_HTML\_createCSSStyleFont().
PHPExcel_Style_Font::getXActiveCell | ( | ) |
Get the currently active cell coordinate in currently active sheet.
Only used for supervisor
Definition at line 221 of file Font.php.
References getActiveSheet().
PHPExcel_Style_Font::getXSelectedCells | ( | ) |
Get the currently active cell coordinate in currently active sheet.
Only used for supervisor
Definition at line 210 of file Font.php.
References getActiveSheet().
Referenced by applyFromArray(), setBold(), setColor(), setItalic(), setName(), setSize(), setStrikethrough(), setSubScript(), setSuperScript(), and setUnderline().
PHPExcel_Style_Font::setBold | ( | $pValue = false | ) |
Set Bold.
boolean | $pValue |
Definition at line 378 of file Font.php.
References getActiveSheet(), getStyleArray(), and getXSelectedCells().
Referenced by applyFromArray().
PHPExcel_Style_Font::setColor | ( | PHPExcel_Style_Color | $pValue = null | ) |
Set Color.
PHPExcel_Style_Color | $pValue |
Exception |
Definition at line 585 of file Font.php.
References getActiveSheet(), getColor(), and getXSelectedCells().
PHPExcel_Style_Font::setHashIndex | ( | $value | ) |
Set hash index.
Note that this index may vary during script execution! Only reliable moment is while doing a write of a workbook and when changes are not allowed.
string | $value | Hash index |
Implements PHPExcel_IComparable.
Definition at line 648 of file Font.php.
PHPExcel_Style_Font::setItalic | ( | $pValue = false | ) |
Set Italic.
boolean | $pValue |
Definition at line 409 of file Font.php.
References getActiveSheet(), getStyleArray(), and getXSelectedCells().
Referenced by applyFromArray().
PHPExcel_Style_Font::setName | ( | $pValue = 'Calibri' | ) |
Set Name.
string | $pValue |
Definition at line 316 of file Font.php.
References getActiveSheet(), getStyleArray(), and getXSelectedCells().
Referenced by applyFromArray().
PHPExcel_Style_Font::setSize | ( | $pValue = 10 | ) |
Set Size.
double | $pValue |
Definition at line 347 of file Font.php.
References getActiveSheet(), getStyleArray(), and getXSelectedCells().
Referenced by applyFromArray().
PHPExcel_Style_Font::setStrikethrough | ( | $pValue = false | ) |
Set Strikethrough.
boolean | $pValue |
Definition at line 556 of file Font.php.
References getActiveSheet(), getStyleArray(), and getXSelectedCells().
Referenced by applyFromArray(), and setStriketrough().
PHPExcel_Style_Font::setStriketrough | ( | $pValue = false | ) |
Set Striketrough.
boolean | $pValue |
Definition at line 534 of file Font.php.
References setStrikethrough().
PHPExcel_Style_Font::setSubScript | ( | $pValue = false | ) |
Set SubScript.
boolean | $pValue |
Definition at line 472 of file Font.php.
References getActiveSheet(), getStyleArray(), and getXSelectedCells().
Referenced by applyFromArray().
PHPExcel_Style_Font::setSuperScript | ( | $pValue = false | ) |
Set SuperScript.
boolean | $pValue |
Definition at line 440 of file Font.php.
References getActiveSheet(), getStyleArray(), and getXSelectedCells().
Referenced by applyFromArray().
PHPExcel_Style_Font::setUnderline | ( | $pValue = PHPExcel_Style_Font::UNDERLINE_NONE | ) |
Set Underline.
string | $pValue | PHPExcel_Style_Font underline type |
Definition at line 504 of file Font.php.
References getActiveSheet(), getStyleArray(), getXSelectedCells(), and UNDERLINE_NONE.
Referenced by applyFromArray().
|
private |
|
private |
Definition at line 114 of file Font.php.
Referenced by getColor().
|
private |
Definition at line 626 of file Font.php.
Referenced by getHashIndex().
|
private |
Definition at line 128 of file Font.php.
Referenced by getIsSupervisor().
|
private |
Definition at line 79 of file Font.php.
Referenced by getItalic().
|
private |
|
private |
Definition at line 107 of file Font.php.
Referenced by getStrikethrough().
|
private |
Definition at line 93 of file Font.php.
Referenced by getSubScript().
|
private |
Definition at line 86 of file Font.php.
Referenced by getSuperScript().
|
private |
Definition at line 100 of file Font.php.
Referenced by getUnderline().
const PHPExcel_Style_Font::UNDERLINE_DOUBLE = 'double' |
Definition at line 55 of file Font.php.
Referenced by PHPExcel_Writer_Excel5_Font\_mapUnderline(), and PHPExcel_Reader_Excel5\_readFont().
const PHPExcel_Style_Font::UNDERLINE_DOUBLEACCOUNTING = 'doubleAccounting' |
Definition at line 56 of file Font.php.
Referenced by PHPExcel_Writer_Excel5_Font\_mapUnderline(), and PHPExcel_Reader_Excel5\_readFont().
const PHPExcel_Style_Font::UNDERLINE_NONE = 'none' |
Definition at line 54 of file Font.php.
Referenced by __construct(), PHPExcel_Writer_HTML\_createCSSStyleFont(), PHPExcel_Writer_Excel5_Font\_mapUnderline(), and setUnderline().
const PHPExcel_Style_Font::UNDERLINE_SINGLE = 'single' |
Definition at line 57 of file Font.php.
Referenced by PHPExcel_Writer_Excel5_Font\_mapUnderline(), PHPExcel_Reader_Excel2007\_parseRichText(), PHPExcel_Reader_Excel5\_readFont(), and PHPExcel_Reader_Excel2007\_readStyle().
const PHPExcel_Style_Font::UNDERLINE_SINGLEACCOUNTING = 'singleAccounting' |
Definition at line 58 of file Font.php.
Referenced by PHPExcel_Writer_Excel5_Font\_mapUnderline(), and PHPExcel_Reader_Excel5\_readFont().