You are here

private function PHPExcel_Reader_Excel5::_readMergedCells in Loft Data Grids 6.2

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

* MERGEDCELLS * * This record contains the addresses of merged cell ranges * in the current sheet. * * -- "OpenOffice.org's Documentation of the Microsoft * Excel File Format"

1 call to PHPExcel_Reader_Excel5::_readMergedCells()
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 4462

Class

PHPExcel_Reader_Excel5
PHPExcel_Reader_Excel5

Code

private function _readMergedCells() {
  $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;
  if ($this->_version == self::XLS_BIFF8 && !$this->_readDataOnly) {
    $cellRangeAddressList = $this
      ->_readBIFF8CellRangeAddressList($recordData);
    foreach ($cellRangeAddressList['cellRangeAddresses'] as $cellRangeAddress) {
      if (strpos($cellRangeAddress, ':') !== FALSE && $this
        ->_includeCellRangeFiltered($cellRangeAddress)) {
        $this->_phpSheet
          ->mergeCells($cellRangeAddress);
      }
    }
  }
}