@@ 917-932 (lines=16) @@ | ||
914 | } |
|
915 | ||
916 | // rowBreaks |
|
917 | if (!empty($aRowBreaks)) { |
|
918 | $objWriter->startElement('rowBreaks'); |
|
919 | $objWriter->writeAttribute('count', count($aRowBreaks)); |
|
920 | $objWriter->writeAttribute('manualBreakCount', count($aRowBreaks)); |
|
921 | ||
922 | foreach ($aRowBreaks as $cell) { |
|
923 | $coords = \PhpOffice\PhpSpreadsheet\Cell::coordinateFromString($cell); |
|
924 | ||
925 | $objWriter->startElement('brk'); |
|
926 | $objWriter->writeAttribute('id', $coords[1]); |
|
927 | $objWriter->writeAttribute('man', '1'); |
|
928 | $objWriter->endElement(); |
|
929 | } |
|
930 | ||
931 | $objWriter->endElement(); |
|
932 | } |
|
933 | ||
934 | // Second, write column breaks |
|
935 | if (!empty($aColumnBreaks)) { |
|
@@ 935-950 (lines=16) @@ | ||
932 | } |
|
933 | ||
934 | // Second, write column breaks |
|
935 | if (!empty($aColumnBreaks)) { |
|
936 | $objWriter->startElement('colBreaks'); |
|
937 | $objWriter->writeAttribute('count', count($aColumnBreaks)); |
|
938 | $objWriter->writeAttribute('manualBreakCount', count($aColumnBreaks)); |
|
939 | ||
940 | foreach ($aColumnBreaks as $cell) { |
|
941 | $coords = \PhpOffice\PhpSpreadsheet\Cell::coordinateFromString($cell); |
|
942 | ||
943 | $objWriter->startElement('brk'); |
|
944 | $objWriter->writeAttribute('id', \PhpOffice\PhpSpreadsheet\Cell::columnIndexFromString($coords[0]) - 1); |
|
945 | $objWriter->writeAttribute('man', '1'); |
|
946 | $objWriter->endElement(); |
|
947 | } |
|
948 | ||
949 | $objWriter->endElement(); |
|
950 | } |
|
951 | } |
|
952 | ||
953 | /** |