@@ 420-424 (lines=5) @@ | ||
417 | $objWriter->writeAttribute('vertical', $pStyle->getAlignment()->getVertical()); |
|
418 | ||
419 | $textRotation = 0; |
|
420 | if ($pStyle->getAlignment()->getTextRotation() >= 0) { |
|
421 | $textRotation = $pStyle->getAlignment()->getTextRotation(); |
|
422 | } elseif ($pStyle->getAlignment()->getTextRotation() < 0) { |
|
423 | $textRotation = 90 - $pStyle->getAlignment()->getTextRotation(); |
|
424 | } |
|
425 | $objWriter->writeAttribute('textRotation', $textRotation); |
|
426 | ||
427 | $objWriter->writeAttribute('wrapText', ($pStyle->getAlignment()->getWrapText() ? 'true' : 'false')); |
|
@@ 485-489 (lines=5) @@ | ||
482 | ||
483 | if ($pStyle->getAlignment()->getTextRotation() !== null) { |
|
484 | $textRotation = 0; |
|
485 | if ($pStyle->getAlignment()->getTextRotation() >= 0) { |
|
486 | $textRotation = $pStyle->getAlignment()->getTextRotation(); |
|
487 | } elseif ($pStyle->getAlignment()->getTextRotation() < 0) { |
|
488 | $textRotation = 90 - $pStyle->getAlignment()->getTextRotation(); |
|
489 | } |
|
490 | $objWriter->writeAttribute('textRotation', $textRotation); |
|
491 | } |
|
492 | $objWriter->endElement(); |