code: private function writeSheets(XMLWriter $objWriter)
      {
          $spreadsheet = $this->getParentWriter()->getSpreadsheet(); // @var $spreadsheet Spreadsheet
  
          $sheetCount = $spreadsheet->getSheetCount();
          for ($i = 0; $i < $sheetCount; ++$i) {
              $objWriter->startElement('table:table');
              $objWriter->writeAttribute('table:name', $spreadsheet->getSheet($i)->getTitle());
              $objWriter->writeElement('office:forms');
              $objWriter->startElement('table:table-column');
              $objWriter->writeAttribute('table:number-columns-repeated', self::NUMBER_COLS_REPEATED_MAX);
              $objWriter->endElement();
              $this->writeRows($objWriter, $spreadsheet->getSheet($i));
              $objWriter->endElement();
          }
      }
docs: Write sheets.
  
  @param XMLWriter $objWriter