ILIAS
Release_4_0_x_branch Revision 61816
|
Public Member Functions | |
__construct ($isSupervisor=false) | |
Create a new PHPExcel_Style_Alignment. | |
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. | |
getHorizontal () | |
Get Horizontal. | |
setHorizontal ($pValue=PHPExcel_Style_Alignment::HORIZONTAL_GENERAL) | |
Set Horizontal. | |
getVertical () | |
Get Vertical. | |
setVertical ($pValue=PHPExcel_Style_Alignment::VERTICAL_BOTTOM) | |
Set Vertical. | |
getTextRotation () | |
Get TextRotation. | |
setTextRotation ($pValue=0) | |
Set TextRotation. | |
getWrapText () | |
Get Wrap Text. | |
setWrapText ($pValue=false) | |
Set Wrap Text. | |
getShrinkToFit () | |
Get Shrink to fit. | |
setShrinkToFit ($pValue=false) | |
Set Shrink to fit. | |
getIndent () | |
Get indent. | |
setIndent ($pValue=0) | |
Set indent. | |
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 | 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 | VERTICAL_BOTTOM = 'bottom' |
const | VERTICAL_TOP = 'top' |
const | VERTICAL_CENTER = 'center' |
const | VERTICAL_JUSTIFY = 'justify' |
Private Attributes | |
$_horizontal | |
$_vertical | |
$_textRotation | |
$_wrapText | |
$_shrinkToFit | |
$_indent | |
$_parentPropertyName | |
$_isSupervisor | |
$_parent | |
$_hashIndex |
Definition at line 48 of file Alignment.php.
PHPExcel_Style_Alignment::__construct | ( | $isSupervisor = false | ) |
Create a new PHPExcel_Style_Alignment.
Definition at line 130 of file Alignment.php.
References HORIZONTAL_GENERAL, and VERTICAL_BOTTOM.
PHPExcel_Style_Alignment::__clone | ( | ) |
PHPExcel_Style_Alignment::applyFromArray | ( | $pStyles = null | ) |
Apply styles from array.
$objPHPExcel->getActiveSheet()->getStyle('B2')->getAlignment()->applyFromArray( array( 'horizontal' => PHPExcel_Style_Alignment::HORIZONTAL_CENTER, 'vertical' => PHPExcel_Style_Alignment::VERTICAL_CENTER, 'rotation' => 0, 'wrap' => true ) );
array | $pStyles | Array containing style information |
Exception |
Definition at line 238 of file Alignment.php.
References getActiveSheet(), getStyleArray(), getXSelectedCells(), setHorizontal(), setIndent(), setShrinkToFit(), setTextRotation(), setVertical(), and setWrapText().
PHPExcel_Style_Alignment::bindParent | ( | $parent | ) |
Bind parent.
Only used for supervisor
PHPExcel | $parent |
Definition at line 150 of file Alignment.php.
PHPExcel_Style_Alignment::getActiveSheet | ( | ) |
Get the currently active sheet.
Only used for supervisor
Definition at line 182 of file Alignment.php.
Referenced by applyFromArray(), getXActiveCell(), getXSelectedCells(), setHorizontal(), setIndent(), setShrinkToFit(), setTextRotation(), setVertical(), and setWrapText().
PHPExcel_Style_Alignment::getHashCode | ( | ) |
Get hash code.
Implements PHPExcel_IComparable.
Definition at line 473 of file Alignment.php.
References getSharedComponent().
PHPExcel_Style_Alignment::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 503 of file Alignment.php.
References $_hashIndex.
PHPExcel_Style_Alignment::getHorizontal | ( | ) |
Get Horizontal.
Definition at line 273 of file Alignment.php.
References $_horizontal, and getSharedComponent().
Referenced by PHPExcel_Writer_HTML\_createCSSStyleAlignment(), and setIndent().
PHPExcel_Style_Alignment::getIndent | ( | ) |
Get indent.
Definition at line 440 of file Alignment.php.
References $_indent, and getSharedComponent().
PHPExcel_Style_Alignment::getIsSupervisor | ( | ) |
Is this a supervisor or a real style component?
Definition at line 161 of file Alignment.php.
References $_isSupervisor.
PHPExcel_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 172 of file Alignment.php.
Referenced by getHashCode(), getHorizontal(), getIndent(), getShrinkToFit(), getTextRotation(), getVertical(), and getWrapText().
PHPExcel_Style_Alignment::getShrinkToFit | ( | ) |
Get Shrink to fit.
Definition at line 409 of file Alignment.php.
References $_shrinkToFit, and getSharedComponent().
PHPExcel_Style_Alignment::getStyleArray | ( | $array | ) |
Build style array from subcomponents.
array | $array |
Definition at line 215 of file Alignment.php.
Referenced by applyFromArray(), setHorizontal(), setIndent(), setShrinkToFit(), setTextRotation(), setVertical(), and setWrapText().
PHPExcel_Style_Alignment::getTextRotation | ( | ) |
Get TextRotation.
Definition at line 338 of file Alignment.php.
References $_textRotation, and getSharedComponent().
PHPExcel_Style_Alignment::getVertical | ( | ) |
Get Vertical.
Definition at line 306 of file Alignment.php.
References $_vertical, and getSharedComponent().
Referenced by PHPExcel_Writer_HTML\_createCSSStyleAlignment().
PHPExcel_Style_Alignment::getWrapText | ( | ) |
Get Wrap Text.
Definition at line 378 of file Alignment.php.
References $_wrapText, and getSharedComponent().
PHPExcel_Style_Alignment::getXActiveCell | ( | ) |
Get the currently active cell coordinate in currently active sheet.
Only used for supervisor
Definition at line 204 of file Alignment.php.
References getActiveSheet().
PHPExcel_Style_Alignment::getXSelectedCells | ( | ) |
Get the currently active cell coordinate in currently active sheet.
Only used for supervisor
Definition at line 193 of file Alignment.php.
References getActiveSheet().
Referenced by applyFromArray(), setHorizontal(), setIndent(), setShrinkToFit(), setTextRotation(), setVertical(), and setWrapText().
PHPExcel_Style_Alignment::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 515 of file Alignment.php.
PHPExcel_Style_Alignment::setHorizontal | ( | $pValue = PHPExcel_Style_Alignment::HORIZONTAL_GENERAL | ) |
Set Horizontal.
string | $pValue |
Definition at line 286 of file Alignment.php.
References getActiveSheet(), getStyleArray(), getXSelectedCells(), and HORIZONTAL_GENERAL.
Referenced by applyFromArray().
PHPExcel_Style_Alignment::setIndent | ( | $pValue = 0 | ) |
Set indent.
int | $pValue |
Definition at line 453 of file Alignment.php.
References getActiveSheet(), getHorizontal(), getStyleArray(), and getXSelectedCells().
Referenced by applyFromArray().
PHPExcel_Style_Alignment::setShrinkToFit | ( | $pValue = false | ) |
Set Shrink to fit.
boolean | $pValue |
Definition at line 422 of file Alignment.php.
References getActiveSheet(), getStyleArray(), and getXSelectedCells().
Referenced by applyFromArray().
PHPExcel_Style_Alignment::setTextRotation | ( | $pValue = 0 | ) |
Set TextRotation.
int | $pValue |
Exception |
Definition at line 352 of file Alignment.php.
References getActiveSheet(), getStyleArray(), and getXSelectedCells().
Referenced by applyFromArray().
PHPExcel_Style_Alignment::setVertical | ( | $pValue = PHPExcel_Style_Alignment::VERTICAL_BOTTOM | ) |
Set Vertical.
string | $pValue |
Definition at line 319 of file Alignment.php.
References getActiveSheet(), getStyleArray(), getXSelectedCells(), and VERTICAL_BOTTOM.
Referenced by applyFromArray().
PHPExcel_Style_Alignment::setWrapText | ( | $pValue = false | ) |
Set Wrap Text.
boolean | $pValue |
Definition at line 391 of file Alignment.php.
References getActiveSheet(), getStyleArray(), and getXSelectedCells().
Referenced by applyFromArray().
|
private |
Definition at line 493 of file Alignment.php.
Referenced by getHashIndex().
|
private |
Definition at line 69 of file Alignment.php.
Referenced by getHorizontal().
|
private |
Definition at line 104 of file Alignment.php.
Referenced by getIndent().
|
private |
Definition at line 118 of file Alignment.php.
Referenced by getIsSupervisor().
|
private |
Definition at line 125 of file Alignment.php.
|
private |
Definition at line 111 of file Alignment.php.
|
private |
Definition at line 97 of file Alignment.php.
Referenced by getShrinkToFit().
|
private |
Definition at line 83 of file Alignment.php.
Referenced by getTextRotation().
|
private |
Definition at line 76 of file Alignment.php.
Referenced by getVertical().
|
private |
Definition at line 90 of file Alignment.php.
Referenced by getWrapText().
const PHPExcel_Style_Alignment::HORIZONTAL_CENTER = 'center' |
Definition at line 54 of file Alignment.php.
Referenced by PHPExcel_Writer_HTML\_mapHAlign(), PHPExcel_Writer_Excel5_Xf\_mapHAlign(), and PHPExcel_Reader_Excel5\_readXf().
const PHPExcel_Style_Alignment::HORIZONTAL_CENTER_CONTINUOUS = 'centerContinuous' |
Definition at line 55 of file Alignment.php.
Referenced by PHPExcel_Writer_Excel5_Xf\_mapHAlign(), and PHPExcel_Reader_Excel5\_readXf().
const PHPExcel_Style_Alignment::HORIZONTAL_GENERAL = 'general' |
Definition at line 51 of file Alignment.php.
Referenced by __construct(), PHPExcel_Writer_HTML\_generateRow(), PHPExcel_Writer_HTML\_mapHAlign(), PHPExcel_Writer_Excel5_Xf\_mapHAlign(), PHPExcel_Reader_Excel5\_readXf(), and setHorizontal().
const PHPExcel_Style_Alignment::HORIZONTAL_JUSTIFY = 'justify' |
Definition at line 56 of file Alignment.php.
Referenced by PHPExcel_Writer_HTML\_mapHAlign(), PHPExcel_Writer_Excel5_Xf\_mapHAlign(), and PHPExcel_Reader_Excel5\_readXf().
const PHPExcel_Style_Alignment::HORIZONTAL_LEFT = 'left' |
Definition at line 52 of file Alignment.php.
Referenced by PHPExcel_Writer_HTML\_mapHAlign(), PHPExcel_Writer_Excel5_Xf\_mapHAlign(), and PHPExcel_Reader_Excel5\_readXf().
const PHPExcel_Style_Alignment::HORIZONTAL_RIGHT = 'right' |
Definition at line 53 of file Alignment.php.
Referenced by PHPExcel_Writer_HTML\_mapHAlign(), PHPExcel_Writer_Excel5_Xf\_mapHAlign(), and PHPExcel_Reader_Excel5\_readXf().
const PHPExcel_Style_Alignment::VERTICAL_BOTTOM = 'bottom' |
Definition at line 59 of file Alignment.php.
Referenced by __construct(), PHPExcel_Writer_HTML\_mapVAlign(), PHPExcel_Writer_Excel5_Xf\_mapVAlign(), PHPExcel_Reader_Excel5\_readXf(), and setVertical().
const PHPExcel_Style_Alignment::VERTICAL_CENTER = 'center' |
Definition at line 61 of file Alignment.php.
Referenced by PHPExcel_Writer_HTML\_mapVAlign(), PHPExcel_Writer_Excel5_Xf\_mapVAlign(), and PHPExcel_Reader_Excel5\_readXf().
const PHPExcel_Style_Alignment::VERTICAL_JUSTIFY = 'justify' |
Definition at line 62 of file Alignment.php.
Referenced by PHPExcel_Writer_HTML\_mapVAlign(), PHPExcel_Writer_Excel5_Xf\_mapVAlign(), and PHPExcel_Reader_Excel5\_readXf().
const PHPExcel_Style_Alignment::VERTICAL_TOP = 'top' |
Definition at line 60 of file Alignment.php.
Referenced by PHPExcel_Writer_HTML\_mapVAlign(), PHPExcel_Writer_Excel5_Xf\_mapVAlign(), and PHPExcel_Reader_Excel5\_readXf().