@@ 162-181 (lines=20) @@ | ||
159 | * |
|
160 | * @return PrintSetup |
|
161 | */ |
|
162 | public function printRepeatRows($firstRow, $lastRow = null) |
|
163 | { |
|
164 | if (!isset($lastRow)) { |
|
165 | $lastRow = $firstRow; |
|
166 | } |
|
167 | ||
168 | $this->printRepeat |
|
169 | ->setRowFrom($firstRow) |
|
170 | ->setRowTo($lastRow) |
|
171 | ; |
|
172 | ||
173 | if (is_null($this->printRepeat->getColFrom())) { |
|
174 | $this->printRepeat |
|
175 | ->setColFrom(0) |
|
176 | ->setColTo(Biff8::MAX_COL_IDX) |
|
177 | ; |
|
178 | } |
|
179 | ||
180 | return $this; |
|
181 | } |
|
182 | ||
183 | /** |
|
184 | * Set the columns to repeat at the left hand side of each printed page. |
|
@@ 191-210 (lines=20) @@ | ||
188 | * |
|
189 | * @return PrintSetup |
|
190 | */ |
|
191 | public function printRepeatColumns($firstCol, $lastCol = null) |
|
192 | { |
|
193 | if (!isset($lastCol)) { |
|
194 | $lastCol = $firstCol; |
|
195 | } |
|
196 | ||
197 | $this->printRepeat |
|
198 | ->setColFrom($firstCol) |
|
199 | ->setColTo($lastCol) |
|
200 | ; |
|
201 | ||
202 | if (is_null($this->printRepeat->getRowFrom())) { |
|
203 | $this->printRepeat |
|
204 | ->setRowFrom(0) |
|
205 | ->setRowTo(Biff8::MAX_ROW_IDX) |
|
206 | ; |
|
207 | } |
|
208 | ||
209 | return $this; |
|
210 | } |
|
211 | ||
212 | /** |
|
213 | * @return Range |