@@ 428-432 (lines=5) @@ | ||
425 | $objWriter->writeAttribute('vertical', $pStyle->getAlignment()->getVertical()); |
|
426 | ||
427 | $textRotation = 0; |
|
428 | if ($pStyle->getAlignment()->getTextRotation() >= 0) { |
|
429 | $textRotation = $pStyle->getAlignment()->getTextRotation(); |
|
430 | } elseif ($pStyle->getAlignment()->getTextRotation() < 0) { |
|
431 | $textRotation = 90 - $pStyle->getAlignment()->getTextRotation(); |
|
432 | } |
|
433 | $objWriter->writeAttribute('textRotation', $textRotation); |
|
434 | ||
435 | $objWriter->writeAttribute('wrapText', ($pStyle->getAlignment()->getWrapText() ? 'true' : 'false')); |
|
@@ 494-498 (lines=5) @@ | ||
491 | ||
492 | if ($pStyle->getAlignment()->getTextRotation() !== null) { |
|
493 | $textRotation = 0; |
|
494 | if ($pStyle->getAlignment()->getTextRotation() >= 0) { |
|
495 | $textRotation = $pStyle->getAlignment()->getTextRotation(); |
|
496 | } elseif ($pStyle->getAlignment()->getTextRotation() < 0) { |
|
497 | $textRotation = 90 - $pStyle->getAlignment()->getTextRotation(); |
|
498 | } |
|
499 | $objWriter->writeAttribute('textRotation', $textRotation); |
|
500 | } |
|
501 | $objWriter->endElement(); |