Feature: (k1LoW) Support SheetView view attribute (Excel2007)

modified to add reader support, and refactored validation
This commit is contained in:
unknown
2012-08-09 12:35:04 +01:00
parent f830c0f3a8
commit 14686dbb42
4 changed files with 34 additions and 15 deletions
+4
View File
@@ -775,6 +775,10 @@ class PHPExcel_Reader_Excel2007 implements PHPExcel_Reader_IReader
$docSheet->getSheetView()->setZoomScaleNormal( intval($xmlSheet->sheetViews->sheetView['zoomScaleNormal']) );
}
if (isset($xmlSheet->sheetViews->sheetView['view'])) {
$docSheet->getSheetView()->setView((string) $xmlSheet->sheetViews->sheetView['view']);
}
if (isset($xmlSheet->sheetViews->sheetView['showGridLines'])) {
$docSheet->setShowGridLines((string)$xmlSheet->sheetViews->sheetView['showGridLines'] ? true : false);
}