121 $this->_isSupervisor = $isSupervisor;
132 $this->_parent = $parent;
154 return $this->_parent->getSharedComponent()->getAlignment();
164 return $this->_parent->getActiveSheet();
197 return array(
'alignment' => $array);
219 if (is_array($pStyles)) {
220 if ($this->_isSupervisor) {
223 if (array_key_exists(
'horizontal', $pStyles)) {
226 if (array_key_exists(
'vertical', $pStyles)) {
229 if (array_key_exists(
'rotation', $pStyles)) {
232 if (array_key_exists(
'wrap', $pStyles)) {
235 if (array_key_exists(
'shrinkToFit', $pStyles)) {
238 if (array_key_exists(
'indent', $pStyles)) {
243 throw new Exception(
"Invalid style array passed.");
254 if ($this->_isSupervisor) {
271 if ($this->_isSupervisor) {
272 $styleArray = $this->
getStyleArray(array(
'horizontal' => $pValue));
276 $this->_horizontal = $pValue;
287 if ($this->_isSupervisor) {
304 if ($this->_isSupervisor) {
305 $styleArray = $this->
getStyleArray(array(
'vertical' => $pValue));
308 $this->_vertical = $pValue;
319 if ($this->_isSupervisor) {
334 if ($pValue == 255) {
339 if ( ($pValue >= -90 && $pValue <= 90) || $pValue == -165 ) {
340 if ($this->_isSupervisor) {
341 $styleArray = $this->
getStyleArray(array(
'rotation' => $pValue));
344 $this->_textRotation = $pValue;
347 throw new Exception(
"Text rotation should be a value between -90 and 90.");
359 if ($this->_isSupervisor) {
375 if ($this->_isSupervisor) {
376 $styleArray = $this->
getStyleArray(array(
'wrap' => $pValue));
379 $this->_wrapText = $pValue;
390 if ($this->_isSupervisor) {
406 if ($this->_isSupervisor) {
407 $styleArray = $this->
getStyleArray(array(
'shrinkToFit' => $pValue));
410 $this->_shrinkToFit = $pValue;
421 if ($this->_isSupervisor) {
439 if ($this->_isSupervisor) {
440 $styleArray = $this->
getStyleArray(array(
'indent' => $pValue));
443 $this->_indent = $pValue;
454 if ($this->_isSupervisor) {
460 . $this->_textRotation
461 . ($this->_wrapText ?
't' :
'f')
462 . ($this->_shrinkToFit ?
't' :
'f')
472 $vars = get_object_vars($this);
473 foreach ($vars as $key => $value) {
474 if ((is_object($value)) && ($key !=
'_parent')) {
475 $this->$key = clone $value;
477 $this->$key = $value;