Adrien Loison
73d5d0ea17
Remove text suffix in XLSX date formats ( #341 )
...
Some date formats have a text suffix, e.g. "mm/dd/yy;@". We should remove the ";...@" part.
2016-10-18 11:55:36 -07:00
Adrien Loison
687c321363
Refactor SharedStringsHelper::extractSharedStrings ( #340 )
2016-10-18 00:03:15 -07:00
Adrien Loison
2fa01cd838
Remove unused SimpleXMLElement::children() method ( #339 )
2016-10-17 22:49:37 -07:00
Adrien Loison
752f4bf64e
Add ReaderOptions for all readers ( #338 )
...
Instead of passing every single option down the chain
2016-10-17 22:41:36 -07:00
Adrien Loison
b61323d7d2
Remove XLSX references in ODS Writer ( #337 )
2016-10-17 11:54:49 -07:00
Adrien Loison
179ab483d6
Empty rows do not need to be written for XLSX files ( #336 )
2016-10-17 11:40:52 -07:00
Adrien Loison
2fafb63115
ODS Reader should support num-rows-repeated for non empty rows ( #335 )
2016-10-17 10:51:12 -07:00
Adrien Loison
5ef5647558
Make getConcreteSheetIterator() protected ( #334 )
2016-10-17 10:26:37 -07:00
Adrien Loison
0978d340f0
Option to keep empty rows ( #331 )
...
* Add option to preserve empty rows when reading an XLSX file
* Add option to preserve empty rows when reading a CSV file
* Add option to preserve empty rows when reading an ODS file
2016-10-17 10:20:02 -07:00
Adrien Loison
77178122c3
Fix output file deletion after exception thrown on write ( #328 )
...
For relative paths, it would not work as the FileSystemHelper would not allow deleting a file that's not part of its base folder.
2016-10-12 11:15:07 -07:00
Adrien Loison
23f8cc4f05
Temp files should be deleted when an exception is thrown ( #327 )
...
If an exception is thrown while writing data, instead of letting the developer handle this situation gracefully, Spout can attempt to delete all the temporary files that were created so far, as well as the output file as it won't be completed and therefore corrupted.
2016-10-11 15:08:37 -07:00
Adrien Loison
442a9837f1
Removing license badge ( #320 )
...
As Github now provides this information in the project's header
2016-09-30 10:11:05 -07:00
Adrien Loison
cc07072cbb
Better support for Date custom format ( #316 )
...
- To determine if a style should apply a date format, the presence of "applyNumberFormat" attribute on the "cellXfs" section of styles.xml is now optional. We only look at the "numFmtId" attribute (but early return if "applyNumberFormat" is set to "0").
- The format code can contain lowercase AND now uppercase characters as its pattern.
- "General" format code used as a custom format is now supported. It seems to be used by a bunch of programs...
2016-09-24 10:46:42 -07:00
Hastegan
30aa1b87e2
Fix boolean notation in PHPDoc ( #314 )
2016-09-16 15:12:58 -07:00
Hastegan
ddb7365a79
Add a way to disable text wrapping through the api ( Fix #247 ) ( #311 )
...
* Add a way to disable text wrapping (Fix #247 )
* Fix PHPDoc boolean notation
* Fix PHPDoc param notation
2016-09-16 11:24:36 -07:00
Adrien Loison
a07a96f523
Bump dev-master version ( #309 )
...
Bump to `2.7.x-dev` as 2.6.0 just got released
2016-09-08 09:34:43 -07:00
Adrien Loison
3e0afd858f
Apply custom style to empty cells if needed ( #307 )
...
Fixes #295
If a row should be written with a custom style, the handling of empty cells should change.
Instead of being skipped entirely, empty cells will be applied the custom style, if this style has custom background color or borders.
If not, then the cell definition can still be skipped.
v2.6.0
2016-09-07 17:04:31 -07:00
Adrien Loison
d4e57b1f0d
Add consistency using getCellXML() ( #306 )
2016-09-06 19:47:18 -07:00
Adrien Loison
435a9a016e
Improve XLSX Escaper performance ( #305 )
2016-09-03 11:04:25 -07:00
Stefan
5e7a1745ac
Initial extraction of method getCellXml from addRow ( #302 )
2016-09-02 19:48:10 -07:00
madflow
277c353984
Fix #297 ( #299 )
2016-08-30 10:56:52 -07:00
madflow
ff2d54cc8d
Fix #276 , some general refinement ( #289 )
...
* Fix #276 , some general refinement
* Failing test #267
* Fixed shared border definitions across different styles #267
* Fix finding the correct borderId
2016-08-23 19:57:57 -07:00
Adrien Loison
c94694cb60
API to set default row style ( #290 )
2016-08-16 21:18:44 -07:00
madflow
584121d478
Add background-color to styles ( #211 )
...
Removed default background color, cosmetics
Remove default background color
reuse bg colors
Cosmetics
Moved reusing fills to XLSX StyleHelper
Tests and inline doc
2016-08-10 13:11:47 -07:00
Adrien Loison
b2dc0c3fa9
Fix tests on Windows ( #288 )
2016-08-10 12:09:37 -07:00
Adrien Loison
7f65993c87
Spout should be able to read prefixed styles.xml ( #287 )
2016-08-09 20:53:40 -07:00
Adrien Loison
b75a3e34fc
XLSX cells containing date values should respect shouldFormatDate option ( #282 )
...
Return the ISO 8601 date string directly if option is set
2016-07-20 20:12:00 -07:00
Adrien Loison
82605ab57b
Do not return anything from constructor ( #275 )
2016-07-14 10:53:44 -07:00
madflow
7a613eed8c
Border ordering ( #273 )
...
* Fix #271
* Minor fix for quick copy+paste
* Added link to issue #271
2016-07-13 11:45:37 -07:00
Adrien Loison
54a1a09e29
Bump dev-master version ( #270 )
2016-07-11 20:07:56 +02:00
Adrien Loison
a8eb7ad39c
Shared strings table without uniqueCount and count should work ( #269 )
...
Use file based strategy in this case
v2.5.0
2016-07-11 19:03:37 +02:00
Adrien Loison
ffea8871a6
Add support for missing cell reference ( #268 )
...
When describing a cell, the cell reference (r="A1") is optional.
When not present, we should just increment the index of the last processed row.
2016-07-11 18:15:55 +02:00
Marie
b02d13cd40
Set BOM as optional on CSV writer ( #265 )
2016-07-07 15:21:41 +02:00
rlukasz
aa25678a83
Update RowIterator.php ( #263 )
2016-07-04 11:31:03 +02:00
Adrien Loison
192659cb24
Update README.md ( #256 )
2016-06-19 20:20:49 -07:00
madflow
e30bc37448
First stab at #135 - Add borders ( #200 )
...
Fixes #135
Added border support for ODS and XLSX files.
Updated README.
2016-06-18 23:36:10 -07:00
Adrien Loison
1891c0b053
Fix XLSX reading when shared strings is missing the uniqueCount attribute ( #255 )
...
Use "count" attribute as a fallback
2016-06-16 10:06:11 -07:00
madflow
a43c13a36f
Fix #252 ( #253 )
2016-06-14 10:02:01 -07:00
Adrien Loison
dc31d6e8c2
Update .scrutinizer.yml ( #248 )
2016-06-09 10:52:01 -07:00
Adrien Loison
8edd8e2401
Clear previous output when openToBrowser() called ( #243 )
...
If any character has been outputted before, the generated file will be corrupted.
2016-06-08 13:53:41 -07:00
madflow
cd38ba093e
Fix #245 ( #246 )
2016-06-08 09:50:00 -07:00
Pavel Zyukin
70c81e809f
Add the ability to pass an array with various keys to addRows() ( #240 )
2016-06-03 08:09:37 -07:00
Adrien Loison
1d3a9f939c
Convert escapers to singletons ( #239 )
2016-05-30 13:55:21 -07:00
Ingmar Runge
efebfb2bc2
CellValueFormatterTest: fix expectations for 32bit PHP ( #234 )
2016-05-30 10:25:30 -07:00
Adrien Loison
251c0bebc1
Adding open_file_in_zip() helper function to XMLReader ( #238 )
2016-05-29 23:22:57 -07:00
Adrien Loison
03866a6604
Support XLSX with prefixed XML files ( #237 )
...
While the standard is not to have prefixes, some XLSX files have XML files containing a prefix.
Microsoft has a tool that generates such files: https://msdn.microsoft.com/en-us/library/office/gg278316.aspx
2016-05-29 22:16:59 -07:00
Adrien Loison
2ed30321b4
ODS Writer should accept associative arrays ( #232 )
2016-05-25 19:59:18 -07:00
Adrien Loison
2c80b1f23a
XLSX Reader should add a space between text nodes ( #229 )
...
When a cell contains multiple text nodes, the cell value is currently obtained by concatenating the value of each text node.
Instead, values should still be concatenated but a space should be added in between.
2016-05-23 14:15:48 -07:00
Adrien Loison
a24e794177
Update README.md ( #228 )
...
Fixed the amount of memory used by Spout, as it used to take into account the memory used by PHPUnit.
2016-05-23 13:36:07 -07:00
Adrien Loison
104cd9b811
Option to return formatted dates instead of PHP objects ( #226 )
...
When reading spreadsheets, Spout should be able to return formatted dates, as shown when opened with Excel for instance.
It currently only returns DateTime/DateInterval objects, making it impossible to read + write, as the Writer does not accept objects.
2016-05-20 16:08:35 -07:00