Rename OOCalc and OpenDocument into Ods

FIX #6
This commit is contained in:
Adrien Crivelli 2016-10-06 21:07:57 +09:00
parent 4337de4930
commit e2e982f98a
No known key found for this signature in database
GPG Key ID: B182FD79DC6DE92E
36 changed files with 54 additions and 52 deletions

View File

@ -39,8 +39,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
| `PHPExcel` | `PhpOffice\PhpSpreadsheet\Spreadsheet` | | `PHPExcel` | `PhpOffice\PhpSpreadsheet\Spreadsheet` |
| `PHPExcel_Reader_Excel2007` | `PhpOffice\PhpSpreadsheet\Reader\Xlsx` | | `PHPExcel_Reader_Excel2007` | `PhpOffice\PhpSpreadsheet\Reader\Xlsx` |
| `PHPExcel_Reader_Excel5` | `PhpOffice\PhpSpreadsheet\Reader\Xls` | | `PHPExcel_Reader_Excel5` | `PhpOffice\PhpSpreadsheet\Reader\Xls` |
| `PHPExcel_Reader_OOcalc` | `PhpOffice\PhpSpreadsheet\Reader\Ods` |
| `PHPExcel_Writer_Excel2007` | `PhpOffice\PhpSpreadsheet\Writer\Xlsx` | | `PHPExcel_Writer_Excel2007` | `PhpOffice\PhpSpreadsheet\Writer\Xlsx` |
| `PHPExcel_Writer_Excel5` | `PhpOffice\PhpSpreadsheet\Writer\Xls` | | `PHPExcel_Writer_Excel5` | `PhpOffice\PhpSpreadsheet\Writer\Xls` |
| `PHPExcel_Writer_OpenOffice` | `PhpOffice\PhpSpreadsheet\Writer\Ods` |
- Some methods were renamed for clarity and/or consistency: - Some methods were renamed for clarity and/or consistency:

View File

@ -29,7 +29,7 @@ include 'PHPExcel/IOFactory.php';
$inputFileType = 'Xls'; $inputFileType = 'Xls';
// $inputFileType = 'Xlsx'; // $inputFileType = 'Xlsx';
// $inputFileType = 'Excel2003XML'; // $inputFileType = 'Excel2003XML';
// $inputFileType = 'OOCalc'; // $inputFileType = 'Ods';
// $inputFileType = 'SYLK'; // $inputFileType = 'SYLK';
// $inputFileType = 'Gnumeric'; // $inputFileType = 'Gnumeric';
// $inputFileType = 'CSV'; // $inputFileType = 'CSV';

View File

@ -29,7 +29,7 @@ include 'PHPExcel/IOFactory.php';
$inputFileType = 'Xls'; $inputFileType = 'Xls';
// $inputFileType = 'Xlsx'; // $inputFileType = 'Xlsx';
// $inputFileType = 'Excel2003XML'; // $inputFileType = 'Excel2003XML';
// $inputFileType = 'OOCalc'; // $inputFileType = 'Ods';
// $inputFileType = 'Gnumeric'; // $inputFileType = 'Gnumeric';
$inputFileName = './sampleData/example1.xls'; $inputFileName = './sampleData/example1.xls';

View File

@ -29,7 +29,7 @@ include 'PHPExcel/IOFactory.php';
$inputFileType = 'Xls'; $inputFileType = 'Xls';
// $inputFileType = 'Xlsx'; // $inputFileType = 'Xlsx';
// $inputFileType = 'Excel2003XML'; // $inputFileType = 'Excel2003XML';
// $inputFileType = 'OOCalc'; // $inputFileType = 'Ods';
// $inputFileType = 'Gnumeric'; // $inputFileType = 'Gnumeric';
$inputFileName = './sampleData/example1.xls'; $inputFileName = './sampleData/example1.xls';

View File

@ -29,7 +29,7 @@ include 'PHPExcel/IOFactory.php';
$inputFileType = 'Xls'; $inputFileType = 'Xls';
// $inputFileType = 'Xlsx'; // $inputFileType = 'Xlsx';
// $inputFileType = 'Excel2003XML'; // $inputFileType = 'Excel2003XML';
// $inputFileType = 'OOCalc'; // $inputFileType = 'Ods';
// $inputFileType = 'Gnumeric'; // $inputFileType = 'Gnumeric';
$inputFileName = './sampleData/example1.xls'; $inputFileName = './sampleData/example1.xls';
$sheetname = 'Data Sheet #2'; $sheetname = 'Data Sheet #2';

View File

@ -29,7 +29,7 @@ include 'PHPExcel/IOFactory.php';
$inputFileType = 'Xls'; $inputFileType = 'Xls';
// $inputFileType = 'Xlsx'; // $inputFileType = 'Xlsx';
// $inputFileType = 'Excel2003XML'; // $inputFileType = 'Excel2003XML';
// $inputFileType = 'OOCalc'; // $inputFileType = 'Ods';
// $inputFileType = 'Gnumeric'; // $inputFileType = 'Gnumeric';
$inputFileName = './sampleData/example1.xls'; $inputFileName = './sampleData/example1.xls';
$sheetnames = array('Data Sheet #1','Data Sheet #3'); $sheetnames = array('Data Sheet #1','Data Sheet #3');

View File

@ -29,7 +29,7 @@ include 'PHPExcel/IOFactory.php';
$inputFileType = 'Xls'; $inputFileType = 'Xls';
// $inputFileType = 'Xlsx'; // $inputFileType = 'Xlsx';
// $inputFileType = 'Excel2003XML'; // $inputFileType = 'Excel2003XML';
// $inputFileType = 'OOCalc'; // $inputFileType = 'Ods';
// $inputFileType = 'Gnumeric'; // $inputFileType = 'Gnumeric';
$inputFileName = './sampleData/example1.xls'; $inputFileName = './sampleData/example1.xls';
$sheetname = 'Data Sheet #3'; $sheetname = 'Data Sheet #3';

View File

@ -29,7 +29,7 @@ include 'PHPExcel/IOFactory.php';
$inputFileType = 'Xls'; $inputFileType = 'Xls';
// $inputFileType = 'Xlsx'; // $inputFileType = 'Xlsx';
// $inputFileType = 'Excel2003XML'; // $inputFileType = 'Excel2003XML';
// $inputFileType = 'OOCalc'; // $inputFileType = 'Ods';
// $inputFileType = 'Gnumeric'; // $inputFileType = 'Gnumeric';
$inputFileName = './sampleData/example1.xls'; $inputFileName = './sampleData/example1.xls';
$sheetname = 'Data Sheet #3'; $sheetname = 'Data Sheet #3';

View File

@ -29,7 +29,7 @@ include 'PHPExcel/IOFactory.php';
$inputFileType = 'Xls'; $inputFileType = 'Xls';
// $inputFileType = 'Xlsx'; // $inputFileType = 'Xlsx';
// $inputFileType = 'Excel2003XML'; // $inputFileType = 'Excel2003XML';
// $inputFileType = 'OOCalc'; // $inputFileType = 'Ods';
// $inputFileType = 'Gnumeric'; // $inputFileType = 'Gnumeric';
$inputFileName = './sampleData/example2.xls'; $inputFileName = './sampleData/example2.xls';

View File

@ -29,7 +29,7 @@ include 'PHPExcel/IOFactory.php';
$inputFileType = 'Xls'; $inputFileType = 'Xls';
// $inputFileType = 'Xlsx'; // $inputFileType = 'Xlsx';
// $inputFileType = 'Excel2003XML'; // $inputFileType = 'Excel2003XML';
// $inputFileType = 'OOCalc'; // $inputFileType = 'Ods';
// $inputFileType = 'Gnumeric'; // $inputFileType = 'Gnumeric';
$inputFileName = './sampleData/example2.xls'; $inputFileName = './sampleData/example2.xls';

View File

@ -29,7 +29,7 @@ include 'PHPExcel/IOFactory.php';
$inputFileType = 'Xls'; $inputFileType = 'Xls';
// $inputFileType = 'Xlsx'; // $inputFileType = 'Xlsx';
// $inputFileType = 'Excel2003XML'; // $inputFileType = 'Excel2003XML';
// $inputFileType = 'OOCalc'; // $inputFileType = 'Ods';
// $inputFileType = 'Gnumeric'; // $inputFileType = 'Gnumeric';
$inputFileName = './sampleData/example1.xls'; $inputFileName = './sampleData/example1.xls';

View File

@ -29,7 +29,7 @@ include 'PHPExcel/IOFactory.php';
$inputFileType = 'Xls'; $inputFileType = 'Xls';
// $inputFileType = 'Xlsx'; // $inputFileType = 'Xlsx';
// $inputFileType = 'Excel2003XML'; // $inputFileType = 'Excel2003XML';
// $inputFileType = 'OOCalc'; // $inputFileType = 'Ods';
// $inputFileType = 'Gnumeric'; // $inputFileType = 'Gnumeric';
$inputFileName = './sampleData/example1.xls'; $inputFileName = './sampleData/example1.xls';

View File

@ -29,7 +29,7 @@ include 'PHPExcel/IOFactory.php';
$inputFileType = 'Xls'; $inputFileType = 'Xls';
// $inputFileType = 'Xlsx'; // $inputFileType = 'Xlsx';
// $inputFileType = 'Excel2003XML'; // $inputFileType = 'Excel2003XML';
// $inputFileType = 'OOCalc'; // $inputFileType = 'Ods';
// $inputFileType = 'Gnumeric'; // $inputFileType = 'Gnumeric';
$inputFileName = './sampleData/example1.xls'; $inputFileName = './sampleData/example1.xls';

View File

@ -73,7 +73,7 @@ It is necessary to use UTF-8 encoding for all texts in PHPExcel. If the script u
Make sure you meet all requirements, especially php_zip extension should be enabled. Make sure you meet all requirements, especially php_zip extension should be enabled.
The ZipArchive class is only required when reading or writing formats that use Zip compression (Xlsx and OOCalc). Since version 1.7.6 the PCLZip library has been bundled with PHPExcel as an alternative to the ZipArchive class. The ZipArchive class is only required when reading or writing formats that use Zip compression (Xlsx and Ods). Since version 1.7.6 the PCLZip library has been bundled with PHPExcel as an alternative to the ZipArchive class.
This can be enabled by calling: This can be enabled by calling:
```php ```php
@ -85,7 +85,7 @@ You can revert to using ZipArchive by calling:
```php ```php
PHPExcel_Settings::setZipClass(PHPExcel_Settings::ZIPARCHIVE); PHPExcel_Settings::setZipClass(PHPExcel_Settings::ZIPARCHIVE);
``` ```
At present, this only allows you to write Xlsx files without the need for ZipArchive (not to read Xlsx or OOCalc) At present, this only allows you to write Xlsx files without the need for ZipArchive (not to read Xlsx or Ods)
##### Excel 2007 cannot open the file generated by PHPExcel_Writer_2007 on Windows ##### Excel 2007 cannot open the file generated by PHPExcel_Writer_2007 on Windows

View File

@ -19,7 +19,7 @@ Microsoft Excel™ 2003 included options for a file format called SpreadsheetML.
Microsoft Excel™ 2007 shipped with a new file format, namely Microsoft Office Open XML SpreadsheetML, and Excel 2010 extended this still further with its new features such as sparklines. These files typically have an extension of .xlsx. This format is based around a zipped collection of eXtensible Markup Language (XML) files. Microsoft Office Open XML SpreadsheetML is mostly standardized in ECMA 376 ([http://www.ecma-international.org/news/TC45_current_work/TC45_available_docs.htm][4]) and ISO 29500. Microsoft Excel™ 2007 shipped with a new file format, namely Microsoft Office Open XML SpreadsheetML, and Excel 2010 extended this still further with its new features such as sparklines. These files typically have an extension of .xlsx. This format is based around a zipped collection of eXtensible Markup Language (XML) files. Microsoft Office Open XML SpreadsheetML is mostly standardized in ECMA 376 ([http://www.ecma-international.org/news/TC45_current_work/TC45_available_docs.htm][4]) and ISO 29500.
### OOCalc ### Ods
aka Open Document Format (ODF) or OASIS, this is the OpenOffice.org XML File Format for spreadsheets. It comprises a zip archive including several components all of which are text files, most of these with markup in the eXtensible Markup Language (XML). It is the standard file format for OpenOffice.org Calc and StarCalc, and files typically have an extension of .ods. The published specification for the file format is available from the OASIS Open Office XML Format Technical Committee web page ([http://www.oasis-open.org/committees/tc_home.php?wg_abbrev=office#technical][5]). Other information is available from the OpenOffice.org XML File Format web page ([http://xml.openoffice.org/general.html][6]), part of the OpenOffice.org project. aka Open Document Format (ODF) or OASIS, this is the OpenOffice.org XML File Format for spreadsheets. It comprises a zip archive including several components all of which are text files, most of these with markup in the eXtensible Markup Language (XML). It is the standard file format for OpenOffice.org Calc and StarCalc, and files typically have an extension of .ods. The published specification for the file format is available from the OASIS Open Office XML Format Technical Committee web page ([http://www.oasis-open.org/committees/tc_home.php?wg_abbrev=office#technical][5]). Other information is available from the OpenOffice.org XML File Format web page ([http://xml.openoffice.org/general.html][6]), part of the OpenOffice.org project.

View File

@ -27,7 +27,7 @@ Alternatively, you can use the IO Factory's createReader() method to instantiate
$inputFileType = 'Xls'; $inputFileType = 'Xls';
// $inputFileType = 'Xlsx'; // $inputFileType = 'Xlsx';
// $inputFileType = 'Excel2003XML'; // $inputFileType = 'Excel2003XML';
// $inputFileType = 'OOCalc'; // $inputFileType = 'Ods';
// $inputFileType = 'SYLK'; // $inputFileType = 'SYLK';
// $inputFileType = 'Gnumeric'; // $inputFileType = 'Gnumeric';
// $inputFileType = 'CSV'; // $inputFileType = 'CSV';

View File

@ -30,7 +30,7 @@ Reading Only Data from a Spreadsheet File applies to Readers:
Reader | Y/N |Reader | Y/N |Reader | Y/N | Reader | Y/N |Reader | Y/N |Reader | Y/N |
----------|:---:|--------|:---:|--------------|:---:| ----------|:---:|--------|:---:|--------------|:---:|
Xlsx | YES | Xls | YES | Excel2003XML | YES | Xlsx | YES | Xls | YES | Excel2003XML | YES |
OOCalc | YES | SYLK | NO | Gnumeric | YES | Ods | YES | SYLK | NO | Gnumeric | YES |
CSV | NO | HTML | NO CSV | NO | HTML | NO
### Reading Only Named WorkSheets from a File ### Reading Only Named WorkSheets from a File
@ -89,7 +89,7 @@ Reading Only Named WorkSheets from a File applies to Readers:
Reader | Y/N |Reader | Y/N |Reader | Y/N | Reader | Y/N |Reader | Y/N |Reader | Y/N |
----------|:---:|--------|:---:|--------------|:---:| ----------|:---:|--------|:---:|--------------|:---:|
Xlsx | YES | Xls | YES | Excel2003XML | YES | Xlsx | YES | Xls | YES | Excel2003XML | YES |
OOCalc | YES | SYLK | NO | Gnumeric | YES | Ods | YES | SYLK | NO | Gnumeric | YES |
CSV | NO | HTML | NO CSV | NO | HTML | NO
### Reading Only Specific Columns and Rows from a File (Read Filters) ### Reading Only Specific Columns and Rows from a File (Read Filters)
@ -218,7 +218,7 @@ Using Read Filters applies to:
Reader | Y/N |Reader | Y/N |Reader | Y/N | Reader | Y/N |Reader | Y/N |Reader | Y/N |
----------|:---:|--------|:---:|--------------|:---:| ----------|:---:|--------|:---:|--------------|:---:|
Xlsx | YES | Xls | YES | Excel2003XML | YES | Xlsx | YES | Xls | YES | Excel2003XML | YES |
OOCalc | YES | SYLK | NO | Gnumeric | YES | Ods | YES | SYLK | NO | Gnumeric | YES |
CSV | YES | HTML | NO CSV | YES | HTML | NO
### Combining Multiple Files into a Single PHPExcel Object ### Combining Multiple Files into a Single PHPExcel Object
@ -265,7 +265,7 @@ Combining Multiple Files into a Single PHPExcel Object applies to:
Reader | Y/N |Reader | Y/N |Reader | Y/N | Reader | Y/N |Reader | Y/N |Reader | Y/N |
----------|:---:|--------|:---:|--------------|:---:| ----------|:---:|--------|:---:|--------------|:---:|
Xlsx | NO | Xls | NO | Excel2003XML | NO | Xlsx | NO | Xls | NO | Excel2003XML | NO |
OOCalc | NO | SYLK | YES | Gnumeric | NO | Ods | NO | SYLK | YES | Gnumeric | NO |
CSV | YES | HTML | NO CSV | YES | HTML | NO
### Combining Read Filters with the setSheetIndex() method to split a large CSV file across multiple Worksheets ### Combining Read Filters with the setSheetIndex() method to split a large CSV file across multiple Worksheets
@ -326,7 +326,7 @@ Splitting a single loaded file across multiple worksheets applies to:
Reader | Y/N |Reader | Y/N |Reader | Y/N | Reader | Y/N |Reader | Y/N |Reader | Y/N |
----------|:---:|--------|:---:|--------------|:---:| ----------|:---:|--------|:---:|--------------|:---:|
Xlsx | NO | Xls | NO | Excel2003XML | NO | Xlsx | NO | Xls | NO | Excel2003XML | NO |
OOCalc | NO | SYLK | NO | Gnumeric | NO | Ods | NO | SYLK | NO | Gnumeric | NO |
CSV | YES | HTML | NO CSV | YES | HTML | NO
### Pipe or Tab Separated Value Files ### Pipe or Tab Separated Value Files
@ -358,7 +358,7 @@ Setting CSV delimiter applies to:
Reader | Y/N |Reader | Y/N |Reader | Y/N | Reader | Y/N |Reader | Y/N |Reader | Y/N |
----------|:---:|--------|:---:|--------------|:---:| ----------|:---:|--------|:---:|--------------|:---:|
Xlsx | NO | Xls | NO | Excel2003XML | NO | Xlsx | NO | Xls | NO | Excel2003XML | NO |
OOCalc | NO | SYLK | NO | Gnumeric | NO | Ods | NO | SYLK | NO | Gnumeric | NO |
CSV | YES | HTML | NO CSV | YES | HTML | NO
### A Brief Word about the Advanced Value Binder ### A Brief Word about the Advanced Value Binder
@ -387,6 +387,6 @@ Loading using a Value Binder applies to:
Reader | Y/N |Reader | Y/N |Reader | Y/N | Reader | Y/N |Reader | Y/N |Reader | Y/N |
----------|:---:|--------|:---:|--------------|:---:| ----------|:---:|--------|:---:|--------------|:---:|
Xlsx | NO | Xls | NO | Excel2003XML | NO | Xlsx | NO | Xls | NO | Excel2003XML | NO |
OOCalc | NO | SYLK | NO | Gnumeric | NO | Ods | NO | SYLK | NO | Gnumeric | NO |
CSV | YES | HTML | YES CSV | YES | HTML | YES

View File

@ -39,7 +39,7 @@ $spreadsheet->getActiveSheet()->setTitle('Simple');
// Set active sheet index to the first sheet, so Excel opens this as the first sheet // Set active sheet index to the first sheet, so Excel opens this as the first sheet
$spreadsheet->setActiveSheetIndex(0); $spreadsheet->setActiveSheetIndex(0);
// Redirect output to a clients web browser (OpenDocument) // Redirect output to a clients web browser (Ods)
header('Content-Type: application/vnd.oasis.opendocument.spreadsheet'); header('Content-Type: application/vnd.oasis.opendocument.spreadsheet');
header('Content-Disposition: attachment;filename="01simple.ods"'); header('Content-Disposition: attachment;filename="01simple.ods"');
header('Cache-Control: max-age=0'); header('Cache-Control: max-age=0');
@ -52,6 +52,6 @@ header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); // always modifie
header('Cache-Control: cache, must-revalidate'); // HTTP/1.1 header('Cache-Control: cache, must-revalidate'); // HTTP/1.1
header('Pragma: public'); // HTTP/1.0 header('Pragma: public'); // HTTP/1.0
$writer = \PhpOffice\PhpSpreadsheet\IOFactory::createWriter($spreadsheet, 'OpenDocument'); $writer = \PhpOffice\PhpSpreadsheet\IOFactory::createWriter($spreadsheet, 'Ods');
$writer->save('php://output'); $writer->save('php://output');
exit; exit;

View File

@ -5,7 +5,7 @@ require __DIR__ . '/Header.php';
$filename = __DIR__ . '/templates/OOCalcTest.ods'; $filename = __DIR__ . '/templates/OOCalcTest.ods';
$callStartTime = microtime(true); $callStartTime = microtime(true);
$spreadsheet = \PhpOffice\PhpSpreadsheet\IOFactory::load($filename); $spreadsheet = \PhpOffice\PhpSpreadsheet\IOFactory::load($filename);
$helper->logRead('OOCalc', $filename, $callStartTime); $helper->logRead('Ods', $filename, $callStartTime);
// Save // Save
$helper->write($spreadsheet, __FILE__); $helper->write($spreadsheet, __FILE__);

View File

@ -8,7 +8,7 @@ require __DIR__ . '/Header.php';
$filename = __DIR__ . '/templates/OOCalcTest.ods'; $filename = __DIR__ . '/templates/OOCalcTest.ods';
$callStartTime = microtime(true); $callStartTime = microtime(true);
$spreadsheet = \PhpOffice\PhpSpreadsheet\IOFactory::load($filename); $spreadsheet = \PhpOffice\PhpSpreadsheet\IOFactory::load($filename);
$helper->logRead('OOCalc', $filename, $callStartTime); $helper->logRead('Ods', $filename, $callStartTime);
// Save // Save
$helper->write($spreadsheet, __FILE__); $helper->write($spreadsheet, __FILE__);

View File

@ -47,7 +47,7 @@ class IOFactory
'Xlsx', 'Xlsx',
'Xls', 'Xls',
'Excel2003XML', 'Excel2003XML',
'OOCalc', 'Ods',
'SYLK', 'SYLK',
'Gnumeric', 'Gnumeric',
'HTML', 'HTML',
@ -221,7 +221,7 @@ class IOFactory
break; break;
case 'ods': // Open/Libre Offic Calc case 'ods': // Open/Libre Offic Calc
case 'ots': // Open/Libre Offic Calc Template case 'ots': // Open/Libre Offic Calc Template
$extensionType = 'OOCalc'; $extensionType = 'Ods';
break; break;
case 'slk': case 'slk':
$extensionType = 'SYLK'; $extensionType = 'SYLK';

View File

@ -27,7 +27,7 @@ use DateTimeZone;
* @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
* @version ##VERSION##, ##DATE## * @version ##VERSION##, ##DATE##
*/ */
class OOCalc extends BaseReader implements IReader class Ods extends BaseReader implements IReader
{ {
/** /**
* Formats * Formats
@ -37,7 +37,7 @@ class OOCalc extends BaseReader implements IReader
private $styles = []; private $styles = [];
/** /**
* Create a new OOCalc Reader instance * Create a new Ods Reader instance
*/ */
public function __construct() public function __construct()
{ {

View File

@ -26,12 +26,12 @@ use PhpOffice\PhpSpreadsheet\Spreadsheet;
* @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
* @version ##VERSION##, ##DATE## * @version ##VERSION##, ##DATE##
*/ */
class OpenDocument extends BaseWriter implements IWriter class Ods extends BaseWriter implements IWriter
{ {
/** /**
* Private writer parts * Private writer parts
* *
* @var OpenDocument\WriterPart[] * @var Ods\WriterPart[]
*/ */
private $writerParts = []; private $writerParts = [];
@ -43,7 +43,7 @@ class OpenDocument extends BaseWriter implements IWriter
private $spreadSheet; private $spreadSheet;
/** /**
* Create a new OpenDocument * Create a new Ods
* *
* @param \PhpOffice\PhpSpreadsheet\SpreadSheet $spreadsheet * @param \PhpOffice\PhpSpreadsheet\SpreadSheet $spreadsheet
*/ */
@ -52,13 +52,13 @@ class OpenDocument extends BaseWriter implements IWriter
$this->setSpreadsheet($spreadsheet); $this->setSpreadsheet($spreadsheet);
$writerPartsArray = [ $writerPartsArray = [
'content' => \PhpOffice\PhpSpreadsheet\Writer\OpenDocument\Content::class, 'content' => \PhpOffice\PhpSpreadsheet\Writer\Ods\Content::class,
'meta' => \PhpOffice\PhpSpreadsheet\Writer\OpenDocument\Meta::class, 'meta' => \PhpOffice\PhpSpreadsheet\Writer\Ods\Meta::class,
'meta_inf' => \PhpOffice\PhpSpreadsheet\Writer\OpenDocument\MetaInf::class, 'meta_inf' => \PhpOffice\PhpSpreadsheet\Writer\Ods\MetaInf::class,
'mimetype' => \PhpOffice\PhpSpreadsheet\Writer\OpenDocument\Mimetype::class, 'mimetype' => \PhpOffice\PhpSpreadsheet\Writer\Ods\Mimetype::class,
'settings' => \PhpOffice\PhpSpreadsheet\Writer\OpenDocument\Settings::class, 'settings' => \PhpOffice\PhpSpreadsheet\Writer\Ods\Settings::class,
'styles' => \PhpOffice\PhpSpreadsheet\Writer\OpenDocument\Styles::class, 'styles' => \PhpOffice\PhpSpreadsheet\Writer\Ods\Styles::class,
'thumbnails' => \PhpOffice\PhpSpreadsheet\Writer\OpenDocument\Thumbnails::class, 'thumbnails' => \PhpOffice\PhpSpreadsheet\Writer\Ods\Thumbnails::class,
]; ];
foreach ($writerPartsArray as $writer => $class) { foreach ($writerPartsArray as $writer => $class) {
@ -70,7 +70,7 @@ class OpenDocument extends BaseWriter implements IWriter
* Get writer part * Get writer part
* *
* @param string $pPartName Writer part name * @param string $pPartName Writer part name
* @return OpenDocument\WriterPart|null * @return Ods\WriterPart|null
*/ */
public function getWriterPart($pPartName = '') public function getWriterPart($pPartName = '')
{ {

View File

@ -1,6 +1,6 @@
<?php <?php
namespace PhpOffice\PhpSpreadsheet\Writer\OpenDocument\Cell; namespace PhpOffice\PhpSpreadsheet\Writer\Ods\Cell;
/** /**
* PhpSpreadsheet * PhpSpreadsheet

View File

@ -1,6 +1,6 @@
<?php <?php
namespace PhpOffice\PhpSpreadsheet\Writer\OpenDocument; namespace PhpOffice\PhpSpreadsheet\Writer\Ods;
/** /**
* PhpSpreadsheet * PhpSpreadsheet

View File

@ -1,6 +1,6 @@
<?php <?php
namespace PhpOffice\PhpSpreadsheet\Writer\OpenDocument; namespace PhpOffice\PhpSpreadsheet\Writer\Ods;
/** /**
* Copyright (c) 2006 - 2015 PhpSpreadsheet * Copyright (c) 2006 - 2015 PhpSpreadsheet

View File

@ -1,6 +1,6 @@
<?php <?php
namespace PhpOffice\PhpSpreadsheet\Writer\OpenDocument; namespace PhpOffice\PhpSpreadsheet\Writer\Ods;
/** /**
* Copyright (c) 2006 - 2015 PhpSpreadsheet * Copyright (c) 2006 - 2015 PhpSpreadsheet

View File

@ -1,6 +1,6 @@
<?php <?php
namespace PhpOffice\PhpSpreadsheet\Writer\OpenDocument; namespace PhpOffice\PhpSpreadsheet\Writer\Ods;
/** /**
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or

View File

@ -1,6 +1,6 @@
<?php <?php
namespace PhpOffice\PhpSpreadsheet\Writer\OpenDocument; namespace PhpOffice\PhpSpreadsheet\Writer\Ods;
/** /**
* Copyright (c) 2006 - 2015 PhpSpreadsheet * Copyright (c) 2006 - 2015 PhpSpreadsheet

View File

@ -1,6 +1,6 @@
<?php <?php
namespace PhpOffice\PhpSpreadsheet\Writer\OpenDocument; namespace PhpOffice\PhpSpreadsheet\Writer\Ods;
/** /**
* Copyright (c) 2006 - 2015 PhpSpreadsheet * Copyright (c) 2006 - 2015 PhpSpreadsheet

View File

@ -1,6 +1,6 @@
<?php <?php
namespace PhpOffice\PhpSpreadsheet\Writer\OpenDocument; namespace PhpOffice\PhpSpreadsheet\Writer\Ods;
/** /**
* Copyright (c) 2006 - 2015 PhpSpreadsheet * Copyright (c) 2006 - 2015 PhpSpreadsheet

View File

@ -1,6 +1,6 @@
<?php <?php
namespace PhpOffice\PhpSpreadsheet\Writer\OpenDocument; namespace PhpOffice\PhpSpreadsheet\Writer\Ods;
/** /**
* Copyright (c) 2006 - 2015 PhpSpreadsheet * Copyright (c) 2006 - 2015 PhpSpreadsheet

View File

@ -22,7 +22,7 @@ class SampleTest extends \PHPUnit_Framework_TestCase
{ {
$skipped = [ $skipped = [
'07 Reader PCLZip', // Xlsx cannot load file, leading to OpenOffice trying to and crashing. This is a bug that should be fixed '07 Reader PCLZip', // Xlsx cannot load file, leading to OpenOffice trying to and crashing. This is a bug that should be fixed
'20 Read OOCalc with PCLZip', // Crash: Call to undefined method \PhpOffice\PhpSpreadsheet\Shared\ZipArchive::statName() '20 Read Ods with PCLZip', // Crash: Call to undefined method \PhpOffice\PhpSpreadsheet\Shared\ZipArchive::statName()
'21 Pdf', // for now we don't have 3rdparty libs to tests PDF, but it should be added '21 Pdf', // for now we don't have 3rdparty libs to tests PDF, but it should be added
]; ];