|
@@ 2927-2950 (lines=24) @@
|
| 2924 |
|
/** |
| 2925 |
|
* Read HORIZONTALPAGEBREAKS record |
| 2926 |
|
*/ |
| 2927 |
|
private function _readHorizontalPageBreaks() |
| 2928 |
|
{ |
| 2929 |
|
$length = self::_GetInt2d($this->_data, $this->_pos + 2); |
| 2930 |
|
$recordData = substr($this->_data, $this->_pos + 4, $length); |
| 2931 |
|
|
| 2932 |
|
// move stream pointer to next record |
| 2933 |
|
$this->_pos += 4 + $length; |
| 2934 |
|
|
| 2935 |
|
if ($this->_version == self::XLS_BIFF8 && !$this->_readDataOnly) { |
| 2936 |
|
|
| 2937 |
|
// offset: 0; size: 2; number of the following row index structures |
| 2938 |
|
$nm = self::_GetInt2d($recordData, 0); |
| 2939 |
|
|
| 2940 |
|
// offset: 2; size: 6 * $nm; list of $nm row index structures |
| 2941 |
|
for ($i = 0; $i < $nm; ++$i) { |
| 2942 |
|
$r = self::_GetInt2d($recordData, 2 + 6 * $i); |
| 2943 |
|
$cf = self::_GetInt2d($recordData, 2 + 6 * $i + 2); |
| 2944 |
|
$cl = self::_GetInt2d($recordData, 2 + 6 * $i + 4); |
| 2945 |
|
|
| 2946 |
|
// not sure why two column indexes are necessary? |
| 2947 |
|
$this->_phpSheet->setBreakByColumnAndRow($cf, $r, PHPExcel_Worksheet::BREAK_ROW); |
| 2948 |
|
} |
| 2949 |
|
} |
| 2950 |
|
} |
| 2951 |
|
|
| 2952 |
|
|
| 2953 |
|
/** |
|
@@ 2956-2978 (lines=23) @@
|
| 2953 |
|
/** |
| 2954 |
|
* Read VERTICALPAGEBREAKS record |
| 2955 |
|
*/ |
| 2956 |
|
private function _readVerticalPageBreaks() |
| 2957 |
|
{ |
| 2958 |
|
$length = self::_GetInt2d($this->_data, $this->_pos + 2); |
| 2959 |
|
$recordData = substr($this->_data, $this->_pos + 4, $length); |
| 2960 |
|
|
| 2961 |
|
// move stream pointer to next record |
| 2962 |
|
$this->_pos += 4 + $length; |
| 2963 |
|
|
| 2964 |
|
if ($this->_version == self::XLS_BIFF8 && !$this->_readDataOnly) { |
| 2965 |
|
// offset: 0; size: 2; number of the following column index structures |
| 2966 |
|
$nm = self::_GetInt2d($recordData, 0); |
| 2967 |
|
|
| 2968 |
|
// offset: 2; size: 6 * $nm; list of $nm row index structures |
| 2969 |
|
for ($i = 0; $i < $nm; ++$i) { |
| 2970 |
|
$c = self::_GetInt2d($recordData, 2 + 6 * $i); |
| 2971 |
|
$rf = self::_GetInt2d($recordData, 2 + 6 * $i + 2); |
| 2972 |
|
$rl = self::_GetInt2d($recordData, 2 + 6 * $i + 4); |
| 2973 |
|
|
| 2974 |
|
// not sure why two row indexes are necessary? |
| 2975 |
|
$this->_phpSheet->setBreakByColumnAndRow($c, $rf, PHPExcel_Worksheet::BREAK_COLUMN); |
| 2976 |
|
} |
| 2977 |
|
} |
| 2978 |
|
} |
| 2979 |
|
|
| 2980 |
|
|
| 2981 |
|
/** |