@@ 6641-6660 (lines=20) @@ | ||
6638 | * @param int $index |
|
6639 | * @return string |
|
6640 | */ |
|
6641 | private static function _mapBorderStyle($index) |
|
6642 | { |
|
6643 | switch ($index) { |
|
6644 | case 0x00: return PHPExcel_Style_Border::BORDER_NONE; |
|
6645 | case 0x01: return PHPExcel_Style_Border::BORDER_THIN; |
|
6646 | case 0x02: return PHPExcel_Style_Border::BORDER_MEDIUM; |
|
6647 | case 0x03: return PHPExcel_Style_Border::BORDER_DASHED; |
|
6648 | case 0x04: return PHPExcel_Style_Border::BORDER_DOTTED; |
|
6649 | case 0x05: return PHPExcel_Style_Border::BORDER_THICK; |
|
6650 | case 0x06: return PHPExcel_Style_Border::BORDER_DOUBLE; |
|
6651 | case 0x07: return PHPExcel_Style_Border::BORDER_HAIR; |
|
6652 | case 0x08: return PHPExcel_Style_Border::BORDER_MEDIUMDASHED; |
|
6653 | case 0x09: return PHPExcel_Style_Border::BORDER_DASHDOT; |
|
6654 | case 0x0A: return PHPExcel_Style_Border::BORDER_MEDIUMDASHDOT; |
|
6655 | case 0x0B: return PHPExcel_Style_Border::BORDER_DASHDOTDOT; |
|
6656 | case 0x0C: return PHPExcel_Style_Border::BORDER_MEDIUMDASHDOTDOT; |
|
6657 | case 0x0D: return PHPExcel_Style_Border::BORDER_SLANTDASHDOT; |
|
6658 | default: return PHPExcel_Style_Border::BORDER_NONE; |
|
6659 | } |
|
6660 | } |
|
6661 | ||
6662 | ||
6663 | /** |
@@ 230-248 (lines=19) @@ | ||
227 | * @param int $borderStyle Sheet index |
|
228 | * @return string |
|
229 | */ |
|
230 | private function _mapBorderStyle($borderStyle) { |
|
231 | switch ($borderStyle) { |
|
232 | case PHPExcel_Style_Border::BORDER_NONE: return '1px hidden'; |
|
233 | case PHPExcel_Style_Border::BORDER_DASHDOT: return '1px dashed'; |
|
234 | case PHPExcel_Style_Border::BORDER_DASHDOTDOT: return '1px dotted'; |
|
235 | case PHPExcel_Style_Border::BORDER_DASHED: return '1px dashed'; |
|
236 | case PHPExcel_Style_Border::BORDER_DOTTED: return '1px dotted'; |
|
237 | case PHPExcel_Style_Border::BORDER_DOUBLE: return '3px double'; |
|
238 | case PHPExcel_Style_Border::BORDER_HAIR: return '1px solid'; |
|
239 | case PHPExcel_Style_Border::BORDER_MEDIUM: return '2px solid'; |
|
240 | case PHPExcel_Style_Border::BORDER_MEDIUMDASHDOT: return '2px dashed'; |
|
241 | case PHPExcel_Style_Border::BORDER_MEDIUMDASHDOTDOT: return '2px dotted'; |
|
242 | case PHPExcel_Style_Border::BORDER_MEDIUMDASHED: return '2px dashed'; |
|
243 | case PHPExcel_Style_Border::BORDER_SLANTDASHDOT: return '2px dashed'; |
|
244 | case PHPExcel_Style_Border::BORDER_THICK: return '3px solid'; |
|
245 | case PHPExcel_Style_Border::BORDER_THIN: return '1px solid'; |
|
246 | default: return '1px solid'; // map others to thin |
|
247 | } |
|
248 | } |
|
249 | ||
250 | /** |
|
251 | * Get sheet index |