Support for missing styles XML file in XLSX
Some files don't have a "styles.xml" file. Excel supports these files, Spout should do too.
This commit is contained in:
1 parent
6c4086cf97
commit
1bbfd45b82
5 files changed
+37
-3
No files matched your search
@@ -75,7 +75,17 @@ class WorkbookRelationshipsManager
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string|null The path of the styles XML file
|
||||
* @return bool Whether the XLSX file contains a styles XML file
|
||||
*/
|
||||
public function hasStylesXMLFile()
|
||||
{
|
||||
$workbookRelationships = $this->getWorkbookRelationships();
|
||||
|
||||
return isset($workbookRelationships[self::RELATIONSHIP_TYPE_STYLES]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string The path of the styles XML file
|
||||
*/
|
||||
public function getStylesXMLFilePath()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user