private static function PHPExcel_Reader_Excel5::_mapFillPattern in Loft Data Grids 7.2
Same name and namespace in other branches
- 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel5.php \PHPExcel_Reader_Excel5::_mapFillPattern()
* Get fill pattern from index * OpenOffice documentation: 2.5.12 * *
Parameters
int $index: * @return string
1 call to PHPExcel_Reader_Excel5::_mapFillPattern()
- PHPExcel_Reader_Excel5::_readXf in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Reader/ Excel5.php - * XF - Extended Format * * This record contains formatting information for cells, rows, columns or styles. * According to http://support.microsoft.com/kb/147732 there are always at least 15 cell style XF * and 1 cell XF. * Inspection of…
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Reader/ Excel5.php, line 6868
Class
- PHPExcel_Reader_Excel5
- PHPExcel_Reader_Excel5
Code
private static function _mapFillPattern($index) {
switch ($index) {
case 0x0:
return PHPExcel_Style_Fill::FILL_NONE;
case 0x1:
return PHPExcel_Style_Fill::FILL_SOLID;
case 0x2:
return PHPExcel_Style_Fill::FILL_PATTERN_MEDIUMGRAY;
case 0x3:
return PHPExcel_Style_Fill::FILL_PATTERN_DARKGRAY;
case 0x4:
return PHPExcel_Style_Fill::FILL_PATTERN_LIGHTGRAY;
case 0x5:
return PHPExcel_Style_Fill::FILL_PATTERN_DARKHORIZONTAL;
case 0x6:
return PHPExcel_Style_Fill::FILL_PATTERN_DARKVERTICAL;
case 0x7:
return PHPExcel_Style_Fill::FILL_PATTERN_DARKDOWN;
case 0x8:
return PHPExcel_Style_Fill::FILL_PATTERN_DARKUP;
case 0x9:
return PHPExcel_Style_Fill::FILL_PATTERN_DARKGRID;
case 0xa:
return PHPExcel_Style_Fill::FILL_PATTERN_DARKTRELLIS;
case 0xb:
return PHPExcel_Style_Fill::FILL_PATTERN_LIGHTHORIZONTAL;
case 0xc:
return PHPExcel_Style_Fill::FILL_PATTERN_LIGHTVERTICAL;
case 0xd:
return PHPExcel_Style_Fill::FILL_PATTERN_LIGHTDOWN;
case 0xe:
return PHPExcel_Style_Fill::FILL_PATTERN_LIGHTUP;
case 0xf:
return PHPExcel_Style_Fill::FILL_PATTERN_LIGHTGRID;
case 0x10:
return PHPExcel_Style_Fill::FILL_PATTERN_LIGHTTRELLIS;
case 0x11:
return PHPExcel_Style_Fill::FILL_PATTERN_GRAY125;
case 0x12:
return PHPExcel_Style_Fill::FILL_PATTERN_GRAY0625;
default:
return PHPExcel_Style_Fill::FILL_NONE;
}
}