@@ 936-951 (lines=16) @@ | ||
933 | } |
|
934 | ||
935 | // rowBreaks |
|
936 | if (!empty($aRowBreaks)) { |
|
937 | $objWriter->startElement('rowBreaks'); |
|
938 | $objWriter->writeAttribute('count', count($aRowBreaks)); |
|
939 | $objWriter->writeAttribute('manualBreakCount', count($aRowBreaks)); |
|
940 | ||
941 | foreach ($aRowBreaks as $cell) { |
|
942 | $coords = \PhpOffice\PhpSpreadsheet\Cell::coordinateFromString($cell); |
|
943 | ||
944 | $objWriter->startElement('brk'); |
|
945 | $objWriter->writeAttribute('id', $coords[1]); |
|
946 | $objWriter->writeAttribute('man', '1'); |
|
947 | $objWriter->endElement(); |
|
948 | } |
|
949 | ||
950 | $objWriter->endElement(); |
|
951 | } |
|
952 | ||
953 | // Second, write column breaks |
|
954 | if (!empty($aColumnBreaks)) { |
|
@@ 954-969 (lines=16) @@ | ||
951 | } |
|
952 | ||
953 | // Second, write column breaks |
|
954 | if (!empty($aColumnBreaks)) { |
|
955 | $objWriter->startElement('colBreaks'); |
|
956 | $objWriter->writeAttribute('count', count($aColumnBreaks)); |
|
957 | $objWriter->writeAttribute('manualBreakCount', count($aColumnBreaks)); |
|
958 | ||
959 | foreach ($aColumnBreaks as $cell) { |
|
960 | $coords = \PhpOffice\PhpSpreadsheet\Cell::coordinateFromString($cell); |
|
961 | ||
962 | $objWriter->startElement('brk'); |
|
963 | $objWriter->writeAttribute('id', \PhpOffice\PhpSpreadsheet\Cell::columnIndexFromString($coords[0]) - 1); |
|
964 | $objWriter->writeAttribute('man', '1'); |
|
965 | $objWriter->endElement(); |
|
966 | } |
|
967 | ||
968 | $objWriter->endElement(); |
|
969 | } |
|
970 | } |
|
971 | ||
972 | /** |