@@ 945-960 (lines=16) @@ | ||
942 | } |
|
943 | ||
944 | // rowBreaks |
|
945 | if (!empty($aRowBreaks)) { |
|
946 | $objWriter->startElement('rowBreaks'); |
|
947 | $objWriter->writeAttribute('count', count($aRowBreaks)); |
|
948 | $objWriter->writeAttribute('manualBreakCount', count($aRowBreaks)); |
|
949 | ||
950 | foreach ($aRowBreaks as $cell) { |
|
951 | $coords = Cell::coordinateFromString($cell); |
|
952 | ||
953 | $objWriter->startElement('brk'); |
|
954 | $objWriter->writeAttribute('id', $coords[1]); |
|
955 | $objWriter->writeAttribute('man', '1'); |
|
956 | $objWriter->endElement(); |
|
957 | } |
|
958 | ||
959 | $objWriter->endElement(); |
|
960 | } |
|
961 | ||
962 | // Second, write column breaks |
|
963 | if (!empty($aColumnBreaks)) { |
|
@@ 963-978 (lines=16) @@ | ||
960 | } |
|
961 | ||
962 | // Second, write column breaks |
|
963 | if (!empty($aColumnBreaks)) { |
|
964 | $objWriter->startElement('colBreaks'); |
|
965 | $objWriter->writeAttribute('count', count($aColumnBreaks)); |
|
966 | $objWriter->writeAttribute('manualBreakCount', count($aColumnBreaks)); |
|
967 | ||
968 | foreach ($aColumnBreaks as $cell) { |
|
969 | $coords = Cell::coordinateFromString($cell); |
|
970 | ||
971 | $objWriter->startElement('brk'); |
|
972 | $objWriter->writeAttribute('id', Cell::columnIndexFromString($coords[0]) - 1); |
|
973 | $objWriter->writeAttribute('man', '1'); |
|
974 | $objWriter->endElement(); |
|
975 | } |
|
976 | ||
977 | $objWriter->endElement(); |
|
978 | } |
|
979 | } |
|
980 | ||
981 | /** |