| Conditions | 6 |
| Paths | 32 |
| Total Lines | 26 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | public function getData(Worksheet $sheet) |
||
| 18 | { |
||
| 19 | $grbit = 0x0000; |
||
| 20 | |||
| 21 | // Set the option flags |
||
| 22 | $grbit |= 0x0001; // Auto page breaks visible |
||
| 23 | if ($sheet->getOutlineStyle()) { |
||
| 24 | $grbit |= 0x0020; // Auto outline styles |
||
| 25 | } |
||
| 26 | if ($sheet->getOutlineBelow()) { |
||
| 27 | $grbit |= 0x0040; // Outline summary below |
||
| 28 | } |
||
| 29 | if ($sheet->getOutlineRight()) { |
||
| 30 | $grbit |= 0x0080; // Outline summary right |
||
| 31 | } |
||
| 32 | if ($sheet->getPrintSetup()->isFitPage()) { |
||
| 33 | $grbit |= 0x0100; // Page setup fit to page |
||
| 34 | } |
||
| 35 | if ($sheet->isOutlineOn()) { |
||
| 36 | $grbit |= 0x0400; // Outline symbols displayed |
||
| 37 | } |
||
| 38 | |||
| 39 | $data = pack("v", $grbit); |
||
| 40 | |||
| 41 | return $this->getFullRecord($data); |
||
| 42 | } |
||
| 43 | } |
||
| 44 |