ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Public Member Functions | |
__construct ($isSupervisor=FALSE, $isConditional=FALSE) | |
Create a new PHPExcel_Style_Alignment. 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... | |
getHorizontal () | |
Get Horizontal. More... | |
setHorizontal ($pValue=PHPExcel_Style_Alignment::HORIZONTAL_GENERAL) | |
Set Horizontal. More... | |
getVertical () | |
Get Vertical. More... | |
setVertical ($pValue=PHPExcel_Style_Alignment::VERTICAL_BOTTOM) | |
Set Vertical. More... | |
getTextRotation () | |
Get TextRotation. More... | |
setTextRotation ($pValue=0) | |
Set TextRotation. More... | |
getWrapText () | |
Get Wrap Text. More... | |
setWrapText ($pValue=FALSE) | |
Set Wrap Text. More... | |
getShrinkToFit () | |
Get Shrink to fit. More... | |
setShrinkToFit ($pValue=FALSE) | |
Set Shrink to fit. More... | |
getIndent () | |
Get indent. More... | |
setIndent ($pValue=0) | |
Set indent. More... | |
getReadorder () | |
Get read order. More... | |
setReadorder ($pValue=0) | |
Set read order. 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 | 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 | HORIZONTAL_FILL = 'fill' |
const | HORIZONTAL_DISTRIBUTED = 'distributed' |
const | VERTICAL_BOTTOM = 'bottom' |
const | VERTICAL_TOP = 'top' |
const | VERTICAL_CENTER = 'center' |
const | VERTICAL_JUSTIFY = 'justify' |
const | VERTICAL_DISTRIBUTED = 'distributed' |
const | READORDER_CONTEXT = 0 |
const | READORDER_LTR = 1 |
const | READORDER_RTL = 2 |
Protected Attributes | |
$_horizontal = PHPExcel_Style_Alignment::HORIZONTAL_GENERAL | |
$_vertical = PHPExcel_Style_Alignment::VERTICAL_BOTTOM | |
$_textRotation = 0 | |
$_wrapText = FALSE | |
$_shrinkToFit = FALSE | |
$_indent = 0 | |
$_readorder = 0 | |
Protected Attributes inherited from PHPExcel_Style_Supervisor | |
$_isSupervisor | |
$_parent | |
Definition at line 36 of file Alignment.php.
PHPExcel_Style_Alignment::__construct | ( | $isSupervisor = FALSE , |
|
$isConditional = FALSE |
|||
) |
Create a new PHPExcel_Style_Alignment.
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 119 of file Alignment.php.
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 |
PHPExcel_Exception |
Definition at line 171 of file Alignment.php.
References PHPExcel_Style_Supervisor\getActiveSheet(), PHPExcel_Style_Supervisor\getSelectedCells(), getStyleArray(), setHorizontal(), setIndent(), setReadorder(), setShrinkToFit(), setTextRotation(), setVertical(), and setWrapText().
PHPExcel_Style_Alignment::getHashCode | ( | ) |
Get hash code.
Implements PHPExcel_IComparable.
Definition at line 443 of file Alignment.php.
References getSharedComponent().
PHPExcel_Style_Alignment::getHorizontal | ( | ) |
Get Horizontal.
Definition at line 210 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 377 of file Alignment.php.
References $_indent, and getSharedComponent().
Referenced by PHPExcel_Writer_HTML\_createCSSStyleAlignment().
PHPExcel_Style_Alignment::getReadorder | ( | ) |
Get read order.
Definition at line 412 of file Alignment.php.
References $_readorder, and getSharedComponent().
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 137 of file Alignment.php.
Referenced by getHashCode(), getHorizontal(), getIndent(), getReadorder(), getShrinkToFit(), getTextRotation(), getVertical(), and getWrapText().
PHPExcel_Style_Alignment::getShrinkToFit | ( | ) |
Get Shrink to fit.
Definition at line 346 of file Alignment.php.
References $_shrinkToFit, and getSharedComponent().
PHPExcel_Style_Alignment::getStyleArray | ( | $array | ) |
Build style array from subcomponents.
array | $array |
Definition at line 148 of file Alignment.php.
References array.
Referenced by applyFromArray(), setHorizontal(), setIndent(), setReadorder(), setShrinkToFit(), setTextRotation(), setVertical(), and setWrapText().
PHPExcel_Style_Alignment::getTextRotation | ( | ) |
Get TextRotation.
Definition at line 275 of file Alignment.php.
References $_textRotation, and getSharedComponent().
PHPExcel_Style_Alignment::getVertical | ( | ) |
Get Vertical.
Definition at line 243 of file Alignment.php.
References $_vertical, and getSharedComponent().
Referenced by PHPExcel_Writer_HTML\_createCSSStyleAlignment().
PHPExcel_Style_Alignment::getWrapText | ( | ) |
Get Wrap Text.
Definition at line 315 of file Alignment.php.
References $_wrapText, and getSharedComponent().
PHPExcel_Style_Alignment::setHorizontal | ( | $pValue = PHPExcel_Style_Alignment::HORIZONTAL_GENERAL | ) |
Set Horizontal.
string | $pValue |
Definition at line 223 of file Alignment.php.
References array, PHPExcel_Style_Supervisor\getActiveSheet(), PHPExcel_Style_Supervisor\getSelectedCells(), getStyleArray(), and HORIZONTAL_GENERAL.
Referenced by applyFromArray().
PHPExcel_Style_Alignment::setIndent | ( | $pValue = 0 | ) |
Set indent.
int | $pValue |
Definition at line 390 of file Alignment.php.
References array, PHPExcel_Style_Supervisor\getActiveSheet(), getHorizontal(), PHPExcel_Style_Supervisor\getSelectedCells(), and getStyleArray().
Referenced by applyFromArray().
PHPExcel_Style_Alignment::setReadorder | ( | $pValue = 0 | ) |
Set read order.
int | $pValue |
Definition at line 425 of file Alignment.php.
References array, PHPExcel_Style_Supervisor\getActiveSheet(), PHPExcel_Style_Supervisor\getSelectedCells(), and getStyleArray().
Referenced by applyFromArray().
PHPExcel_Style_Alignment::setShrinkToFit | ( | $pValue = FALSE | ) |
Set Shrink to fit.
boolean | $pValue |
Definition at line 359 of file Alignment.php.
References array, PHPExcel_Style_Supervisor\getActiveSheet(), PHPExcel_Style_Supervisor\getSelectedCells(), and getStyleArray().
Referenced by applyFromArray().
PHPExcel_Style_Alignment::setTextRotation | ( | $pValue = 0 | ) |
Set TextRotation.
int | $pValue |
PHPExcel_Exception |
Definition at line 289 of file Alignment.php.
References array, PHPExcel_Style_Supervisor\getActiveSheet(), PHPExcel_Style_Supervisor\getSelectedCells(), and getStyleArray().
Referenced by applyFromArray().
PHPExcel_Style_Alignment::setVertical | ( | $pValue = PHPExcel_Style_Alignment::VERTICAL_BOTTOM | ) |
Set Vertical.
string | $pValue |
Definition at line 256 of file Alignment.php.
References array, PHPExcel_Style_Supervisor\getActiveSheet(), PHPExcel_Style_Supervisor\getSelectedCells(), getStyleArray(), and VERTICAL_BOTTOM.
Referenced by applyFromArray().
PHPExcel_Style_Alignment::setWrapText | ( | $pValue = FALSE | ) |
Set Wrap Text.
boolean | $pValue |
Definition at line 328 of file Alignment.php.
References array, PHPExcel_Style_Supervisor\getActiveSheet(), PHPExcel_Style_Supervisor\getSelectedCells(), and getStyleArray().
Referenced by applyFromArray().
|
protected |
Definition at line 65 of file Alignment.php.
Referenced by getHorizontal().
|
protected |
Definition at line 100 of file Alignment.php.
Referenced by getIndent().
|
protected |
Definition at line 107 of file Alignment.php.
Referenced by getReadorder().
|
protected |
Definition at line 93 of file Alignment.php.
Referenced by getShrinkToFit().
|
protected |
Definition at line 79 of file Alignment.php.
Referenced by getTextRotation().
|
protected |
Definition at line 72 of file Alignment.php.
Referenced by getVertical().
|
protected |
Definition at line 86 of file Alignment.php.
Referenced by getWrapText().
const PHPExcel_Style_Alignment::HORIZONTAL_CENTER = 'center' |
Definition at line 42 of file Alignment.php.
Referenced by PHPExcel_Writer_HTML\_mapHAlign(), PHPExcel_Reader_Excel5\_readXf(), PHPExcel_Writer_Excel5_Worksheet\_writeCFRule(), PHPExcel_Reader_Gnumeric\loadIntoExisting(), and PHPExcel_Reader_Excel2003XML\loadIntoExisting().
const PHPExcel_Style_Alignment::HORIZONTAL_CENTER_CONTINUOUS = 'centerContinuous' |
Definition at line 43 of file Alignment.php.
Referenced by PHPExcel_Writer_HTML\_mapHAlign(), PHPExcel_Reader_Excel5\_readXf(), PHPExcel_Writer_Excel5_Worksheet\_writeCFRule(), PHPExcel_Reader_Gnumeric\loadIntoExisting(), and PHPExcel_Reader_Excel2003XML\loadIntoExisting().
const PHPExcel_Style_Alignment::HORIZONTAL_DISTRIBUTED = 'distributed' |
Definition at line 46 of file Alignment.php.
const PHPExcel_Style_Alignment::HORIZONTAL_FILL = 'fill' |
Definition at line 45 of file Alignment.php.
Referenced by PHPExcel_Reader_Excel5\_readXf().
const PHPExcel_Style_Alignment::HORIZONTAL_GENERAL = 'general' |
Definition at line 39 of file Alignment.php.
Referenced by PHPExcel_Comment\__construct(), PHPExcel_Writer_HTML\_generateRow(), PHPExcel_Writer_HTML\_mapHAlign(), PHPExcel_Reader_Excel5\_readXf(), PHPExcel_Writer_Excel5_Worksheet\_writeCFRule(), PHPExcel_Reader_Gnumeric\loadIntoExisting(), PHPExcel_Reader_Excel2003XML\loadIntoExisting(), and setHorizontal().
const PHPExcel_Style_Alignment::HORIZONTAL_JUSTIFY = 'justify' |
Definition at line 44 of file Alignment.php.
Referenced by PHPExcel_Writer_HTML\_mapHAlign(), PHPExcel_Reader_Excel5\_readXf(), PHPExcel_Writer_Excel5_Worksheet\_writeCFRule(), PHPExcel_Reader_Gnumeric\loadIntoExisting(), and PHPExcel_Reader_Excel2003XML\loadIntoExisting().
const PHPExcel_Style_Alignment::HORIZONTAL_LEFT = 'left' |
Definition at line 40 of file Alignment.php.
Referenced by PHPExcel_Writer_HTML\_mapHAlign(), PHPExcel_Reader_Excel5\_readXf(), PHPExcel_Writer_Excel5_Worksheet\_writeCFRule(), PHPExcel_Reader_Gnumeric\loadIntoExisting(), and PHPExcel_Reader_Excel2003XML\loadIntoExisting().
const PHPExcel_Style_Alignment::HORIZONTAL_RIGHT = 'right' |
Definition at line 41 of file Alignment.php.
Referenced by PHPExcel_Writer_HTML\_mapHAlign(), PHPExcel_Reader_Excel5\_readXf(), PHPExcel_Writer_Excel5_Worksheet\_writeCFRule(), PHPExcel_Reader_Gnumeric\loadIntoExisting(), and PHPExcel_Reader_Excel2003XML\loadIntoExisting().
const PHPExcel_Style_Alignment::READORDER_CONTEXT = 0 |
Definition at line 56 of file Alignment.php.
const PHPExcel_Style_Alignment::READORDER_LTR = 1 |
Definition at line 57 of file Alignment.php.
const PHPExcel_Style_Alignment::READORDER_RTL = 2 |
Definition at line 58 of file Alignment.php.
const PHPExcel_Style_Alignment::VERTICAL_BOTTOM = 'bottom' |
Definition at line 49 of file Alignment.php.
Referenced by PHPExcel_Writer_HTML\_mapVAlign(), PHPExcel_Reader_Excel5\_readXf(), PHPExcel_Writer_Excel5_Worksheet\_writeCFRule(), PHPExcel_Reader_Gnumeric\loadIntoExisting(), PHPExcel_Reader_Excel2003XML\loadIntoExisting(), and setVertical().
const PHPExcel_Style_Alignment::VERTICAL_CENTER = 'center' |
Definition at line 51 of file Alignment.php.
Referenced by PHPExcel_Writer_HTML\_mapVAlign(), PHPExcel_Reader_Excel5\_readXf(), PHPExcel_Writer_Excel5_Worksheet\_writeCFRule(), PHPExcel_Reader_Gnumeric\loadIntoExisting(), and PHPExcel_Reader_Excel2003XML\loadIntoExisting().
const PHPExcel_Style_Alignment::VERTICAL_DISTRIBUTED = 'distributed' |
Definition at line 53 of file Alignment.php.
const PHPExcel_Style_Alignment::VERTICAL_JUSTIFY = 'justify' |
Definition at line 52 of file Alignment.php.
Referenced by PHPExcel_Writer_HTML\_mapVAlign(), PHPExcel_Reader_Excel5\_readXf(), PHPExcel_Writer_Excel5_Worksheet\_writeCFRule(), PHPExcel_Reader_Gnumeric\loadIntoExisting(), and PHPExcel_Reader_Excel2003XML\loadIntoExisting().
const PHPExcel_Style_Alignment::VERTICAL_TOP = 'top' |
Definition at line 50 of file Alignment.php.
Referenced by PHPExcel_Writer_HTML\_mapVAlign(), PHPExcel_Reader_Excel5\_readXf(), PHPExcel_Writer_Excel5_Worksheet\_writeCFRule(), PHPExcel_Reader_Gnumeric\loadIntoExisting(), and PHPExcel_Reader_Excel2003XML\loadIntoExisting().