You are here

private function PHPExcel_Reader_Excel5::_readSheetPr in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel5.php \PHPExcel_Reader_Excel5::_readSheetPr()

* Read SHEETPR record

1 call to PHPExcel_Reader_Excel5::_readSheetPr()
PHPExcel_Reader_Excel5::load in vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel5.php
* Loads PHPExcel from file * *

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel5.php, line 3024

Class

PHPExcel_Reader_Excel5
PHPExcel_Reader_Excel5

Code

private function _readSheetPr() {
  $length = self::_GetInt2d($this->_data, $this->_pos + 2);
  $recordData = $this
    ->_readRecordData($this->_data, $this->_pos + 4, $length);

  // move stream pointer to next record
  $this->_pos += 4 + $length;

  // offset: 0; size: 2
  // bit: 6; mask: 0x0040; 0 = outline buttons above outline group
  $isSummaryBelow = (0x40 & self::_GetInt2d($recordData, 0)) >> 6;
  $this->_phpSheet
    ->setShowSummaryBelow($isSummaryBelow);

  // bit: 7; mask: 0x0080; 0 = outline buttons left of outline group
  $isSummaryRight = (0x80 & self::_GetInt2d($recordData, 0)) >> 7;
  $this->_phpSheet
    ->setShowSummaryRight($isSummaryRight);

  // bit: 8; mask: 0x100; 0 = scale printout in percent, 1 = fit printout to number of pages
  // this corresponds to radio button setting in page setup dialog in Excel
  $this->_isFitToPages = (bool) ((0x100 & self::_GetInt2d($recordData, 0)) >> 8);
}