Adrien Crivelli
c96e2dae02
Update to PHP-CS-Fixer 2.10
2018-01-28 15:59:38 +09:00
MaxTingle
49775bd972
Fix cell ranges causing coordinate merge error
...
Fixes #319
Closes #328
2018-01-22 12:26:37 +09:00
Michael Bollman
4e0344c3af
Use line width for data series when rendering Xlsx
...
Closes #329
2018-01-22 11:50:53 +09:00
Adrien Crivelli
481fc4a7c6
Support XML file without styles
...
Closes #331
Closes https://github.com/PHPOffice/PHPExcel/pull/559
Fixes https://github.com/PHPOffice/PHPExcel/issues/558
2018-01-14 17:08:50 +09:00
Adrien Crivelli
bf2dbbaf10
COLUMNS and ROWS functions crashed in some cases
...
Fixes #336
Fixes https://github.com/PHPOffice/PHPExcel/issues/1383
2018-01-13 18:01:50 +09:00
Adrien Crivelli
25bc54f9eb
Freeze Panes takes wrong coordinates for XLSX
...
Fixes #322
2018-01-09 00:42:30 +09:00
Steffen Breiler
653adf8e10
Adding option to stop at a conditional styling, if it matches
...
This would be used like `$conditonal->setStopIfTrue()` and is only supported
for XLSX format for now.
Closes #292
2018-01-07 22:45:51 +09:00
Christoph "criztovyl" Schulz
cdbf3347cb
Support for cell comments in HTML writer and reader
...
The behavior is similar to what is done in LibreOffice. That means if there is a
comment it will be shown with a small indicator and the actual comment will be
revealed when mouse hover over the indicator.
Fixes #308
Closes #310
2018-01-07 21:51:48 +09:00
Adrien Crivelli
4f1fae5298
Test classes must ends with `Test`
2018-01-02 00:53:28 +09:00
Adrien Crivelli
36441da330
Fix unit tests for 2018
...
Closes #311
2018-01-02 00:39:38 +09:00
Adrien Crivelli
4dd486fb94
Clean up very obsolete links
2017-12-30 19:07:22 +09:00
Adrien Crivelli
139d85d874
Better auto-detection of CSV separators
...
Closes #305
2017-12-28 12:25:37 +09:00
Adrien Crivelli
fb5f8d4763
Support DateTimeImmutable as cell value
2017-12-23 21:50:07 +09:00
Adrien Crivelli
32a55a3f13
Introduce identical functional tests across several formats
2017-12-17 16:35:20 +09:00
Adrien Cohen
11b055b29f
Able to set the `topLeftCell` in freeze panes
...
Fixes #260
Closes #261
2017-12-17 13:32:16 +09:00
Adrien Crivelli
eb58563b4b
Written DataValidation was corrupted
...
Fixes #290
2017-12-16 17:15:13 +09:00
Adrien Crivelli
08e860b993
Uncomment test cases
2017-12-11 12:22:49 +09:00
Adrien Crivelli
96f3f666d6
Support to write merged cells in ODS format
...
Fixes #287
2017-12-11 12:17:40 +09:00
Adrien Crivelli
962367c95f
Can read very small HTML files
...
Fixes #194
2017-12-11 11:09:25 +09:00
Gabriel Caruso
dfcab0c13f
Use assertInstanceOf ( #286 )
2017-12-06 18:46:31 +09:00
MarkBaker
90366f9dd1
style fixes
2017-11-26 23:18:11 +00:00
MarkBaker
19fd27811d
Improved GCD() evaluation and additional tests
2017-11-26 22:13:29 +00:00
Adrien Crivelli
8d76020590
Consistent `stringFromColumnIndex()` and `columnIndexFromString()`
...
Column indexes are always based on 1 everywhere in PhpSpreadsheet.
This is consistent with rows starting at 1, as well as Excel
function `COLUMN()`. It should also make it easier to reason about
columns and rows and remove any doubts whether a specific method is
expecting 0 based or 1 based indexes.
Fixes #273
Fixes https://github.com/PHPOffice/PHPExcel/issues/307
Fixes https://github.com/PHPOffice/PHPExcel/issues/476
2017-11-26 15:29:08 +09:00
Adrien Crivelli
e0150fd43e
Extract coordinate methods to `Coordinate` class
2017-11-18 23:52:38 +09:00
Gabriel Caruso
aed27a0bed
Use PHPUnit\Framework\TestCase instead of PHPUnit_Framework_TestCase ( #271 )
...
Use the `PHPUnit\Framework\TestCase` notation instead of `PHPUnit_Framework_TestCase` while extending our TestCases. This will help us migrate to PHPUnit 6, that [no longer support snake case class names](https://github.com/sebastianbergmann/phpunit/blob/master/ChangeLog-6.0.md#changed-1 ).
2017-11-09 00:48:01 +09:00
Adrien Crivelli
40efcd2fdd
Rename tests according to the class the class they are testing
2017-11-03 12:47:19 +09:00
Maxim Bulygin
6561494e32
Add possibility to check validity of a cell value, based on data validation rules
...
`$cell->hasValidValue()` returns true if the cell has a value which conform to the
rules defined in `$cell->getDataValidation()`.
Closes #257
2017-10-31 14:07:24 +09:00
Adrien Crivelli
557e80dc03
Rename classes to keep them in their related namespaces
2017-10-29 17:39:42 +09:00
Adrien Crivelli
3982ce2944
Remove unused variables and parameters
2017-10-29 14:09:38 +09:00
Adrien Crivelli
782b4e4fae
Upgrade chart rendering support to be composer based
...
This allow to get rid of manual class loading and have simpler
usage of the library.
2017-10-29 01:58:42 +09:00
Adrien Crivelli
25ff914aa6
Simplify IOFactory to rely on autoloading
2017-10-22 01:54:14 +09:00
mosa
ee700f7c7d
change array_push() to $array[] ( #254 )
...
http://php.net/manual/en/function.array-push.php#refsect1-function.array-push-description
> Note: If you use array_push() to add one element to the array it's better to use $array[] = because in that way there is no overhead of calling a function.
2017-10-19 11:07:31 +09:00
Adrien Crivelli
bd3285b4fa
Avoid underscore in property names
2017-10-08 14:37:11 +09:00
Adrien Crivelli
483f3c98ff
More fixes from PhpStorm warnings
2017-10-08 02:00:30 +09:00
Maxim
4b4bac53aa
INDEX(): fix getting row and col numbers from references ( #239 )
...
Allow to use cell references as row and column in function INDEX(). Eg:
```
=INDEX(A1:B5, A9)
```
2017-10-06 14:01:20 +09:00
Maxim
088a76737e
Fix DAY() function with 0<x<1 input ( #230 )
...
Also bring support for OpenOffice DATE() calculation method
2017-10-04 12:57:01 +09:00
Adrien Crivelli
440bfe637f
Don't use short list syntax to keep PHP 5.6 compatibility
2017-10-01 21:50:40 +09:00
Adrien Crivelli
4fd8e742e7
Upgrade to PHP-CS-Fixer 2.7
2017-10-01 20:07:04 +09:00
Adrien Crivelli
e95e4dfd13
Re-enable tests on samples
2017-10-01 18:18:45 +09:00
Adrien Crivelli
50a0ec58af
Merge all examples together
...
Closes #17
2017-10-01 17:48:59 +09:00
Adrien Crivelli
68bb90bb6e
Remove PHPUnit group fail19, because it has no use anymore
2017-09-30 12:18:14 +09:00
Maxim
810f174d6e
Fix INDEX() function when rows count less than row number ( #233 )
2017-09-30 12:13:20 +09:00
GreatHumorist
2abe56b946
Support missing attribute `r` in `c` node when reading xlsx
...
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.
Fixes #201
Closes #225
2017-09-22 14:49:38 +09:00
GreatHumorist
7aa6233185
Added xml reader hyperlink support
...
Closes #223
2017-09-22 14:40:47 +09:00
Adrien Crivelli
aef4d711f5
Use `self::assert*()` instead of `$this->assert*()`
...
Because even if it doesn't make a difference in practice, it is
technically more correct to call static methods statically. It
also better advertise that those methods can be used from any context.
2017-09-22 14:22:44 +09:00
GreatHumorist
0477e6fcfe
In Xml reader throw exception in case of invalid XML ( #222 )
...
When the xml file is not a standard xml file, the `simplexml_load_string` will return false, this will cause an error on "$xml->getNamespaces(true);" . So instead of showing the error, we throw an exception.
2017-09-20 14:20:12 +09:00
all-lala
81c1b14048
Re-use original palette color when possible
...
This is to prevent color changing when copy/pasting xls files written by
PhpSpreadsheet to another file.
Closes #218
2017-09-11 14:28:49 +09:00
Adrien Crivelli
1cf119dd0b
Escape control characters in cell values
...
Control characters in cell values are automatically escaped without
the need to excplicitly call `StringHelper::buildCharacterSets()` beforehand.
Fixes #212
2017-09-09 19:29:08 +09:00
Adrien Crivelli
1c5db4e170
Standardize keys used for styling
...
Array keys used for styling have been standardized for a more coherent experience.
It now uses the same wording and casing as the getter and setter methods.
Closes #189
2017-09-09 02:56:23 +09:00
Bill Blume
2761773b3d
Merge data-validation collections to reduce the final file size
...
Closes #131
Closes #193
2017-09-08 02:27:18 +09:00