@@ 716-719 (lines=4) @@ | ||
713 | // Cannot be resolved already in XF record, because PALETTE record comes afterwards |
|
714 | if (!$this->readDataOnly) { |
|
715 | foreach ($this->objFonts as $objFont) { |
|
716 | if (isset($objFont->colorIndex)) { |
|
717 | $color = Excel5\Color::map($objFont->colorIndex, $this->palette, $this->version); |
|
718 | $objFont->getColor()->setRGB($color['rgb']); |
|
719 | } |
|
720 | } |
|
721 | ||
722 | foreach ($this->spreadsheet->getCellXfCollection() as $objStyle) { |
|
@@ 742-745 (lines=4) @@ | ||
739 | $left = $objStyle->getBorders()->getLeft(); |
|
740 | $diagonal = $objStyle->getBorders()->getDiagonal(); |
|
741 | ||
742 | if (isset($top->colorIndex)) { |
|
743 | $borderTopColor = Excel5\Color::map($top->colorIndex, $this->palette, $this->version); |
|
744 | $top->getColor()->setRGB($borderTopColor['rgb']); |
|
745 | } |
|
746 | if (isset($right->colorIndex)) { |
|
747 | $borderRightColor = Excel5\Color::map($right->colorIndex, $this->palette, $this->version); |
|
748 | $right->getColor()->setRGB($borderRightColor['rgb']); |
|
@@ 746-749 (lines=4) @@ | ||
743 | $borderTopColor = Excel5\Color::map($top->colorIndex, $this->palette, $this->version); |
|
744 | $top->getColor()->setRGB($borderTopColor['rgb']); |
|
745 | } |
|
746 | if (isset($right->colorIndex)) { |
|
747 | $borderRightColor = Excel5\Color::map($right->colorIndex, $this->palette, $this->version); |
|
748 | $right->getColor()->setRGB($borderRightColor['rgb']); |
|
749 | } |
|
750 | if (isset($bottom->colorIndex)) { |
|
751 | $borderBottomColor = Excel5\Color::map($bottom->colorIndex, $this->palette, $this->version); |
|
752 | $bottom->getColor()->setRGB($borderBottomColor['rgb']); |
|
@@ 750-753 (lines=4) @@ | ||
747 | $borderRightColor = Excel5\Color::map($right->colorIndex, $this->palette, $this->version); |
|
748 | $right->getColor()->setRGB($borderRightColor['rgb']); |
|
749 | } |
|
750 | if (isset($bottom->colorIndex)) { |
|
751 | $borderBottomColor = Excel5\Color::map($bottom->colorIndex, $this->palette, $this->version); |
|
752 | $bottom->getColor()->setRGB($borderBottomColor['rgb']); |
|
753 | } |
|
754 | if (isset($left->colorIndex)) { |
|
755 | $borderLeftColor = Excel5\Color::map($left->colorIndex, $this->palette, $this->version); |
|
756 | $left->getColor()->setRGB($borderLeftColor['rgb']); |
|
@@ 754-757 (lines=4) @@ | ||
751 | $borderBottomColor = Excel5\Color::map($bottom->colorIndex, $this->palette, $this->version); |
|
752 | $bottom->getColor()->setRGB($borderBottomColor['rgb']); |
|
753 | } |
|
754 | if (isset($left->colorIndex)) { |
|
755 | $borderLeftColor = Excel5\Color::map($left->colorIndex, $this->palette, $this->version); |
|
756 | $left->getColor()->setRGB($borderLeftColor['rgb']); |
|
757 | } |
|
758 | if (isset($diagonal->colorIndex)) { |
|
759 | $borderDiagonalColor = Excel5\Color::map($diagonal->colorIndex, $this->palette, $this->version); |
|
760 | $diagonal->getColor()->setRGB($borderDiagonalColor['rgb']); |
|
@@ 758-761 (lines=4) @@ | ||
755 | $borderLeftColor = Excel5\Color::map($left->colorIndex, $this->palette, $this->version); |
|
756 | $left->getColor()->setRGB($borderLeftColor['rgb']); |
|
757 | } |
|
758 | if (isset($diagonal->colorIndex)) { |
|
759 | $borderDiagonalColor = Excel5\Color::map($diagonal->colorIndex, $this->palette, $this->version); |
|
760 | $diagonal->getColor()->setRGB($borderDiagonalColor['rgb']); |
|
761 | } |
|
762 | } |
|
763 | } |
|
764 |