Commit Graph

565 Commits

Author SHA1 Message Date
oleibman 25cea15700 Update Change Log (#3563)
A few changes not yet included since update on April 8.
2023-05-11 23:53:00 -07:00
MarkBaker 6cc2bb4e02 Minor update the change log 2023-04-13 18:03:54 +02:00
oleibman ffc6f307d3 Change Log (#3516)
* Change Log

Catch up some undocumented changes.

* Missed One

Add it now.
2023-04-08 23:28:48 -07:00
MarkBaker 44c74f8eca Update change log 2023-04-06 10:18:22 +02:00
MarkBaker 8e3f385224 Resolve Issue #3504
Cached result for a this row range with structured references
2023-04-02 20:22:51 +02:00
MarkBaker 41fd431acc Allow CellRange and CellAddress objects for the range argument in the rangeToArray() method. 2023-03-30 22:03:25 +02:00
MarkBaker e1b73dcaf5 Provide an Ignore/Return Hidden rows/columns option to the toArray() methods 2023-03-30 22:00:34 +02:00
MarkBaker e5ed056b81 Provide an Ignore/Return Hidden rows/columns option to the toArray() methods 2023-03-30 18:18:46 +02:00
oleibman 0e6866d6f0 Font/Effects/Theme Support for Chart Data Labels and Axis (#3476)
* Font and Effects Support for Chart Data Labels and Axis

Addresses some remaining issues with 32readwriteLineChart5 (see issue #1797). Font size is covered. So are effects, although the results are a bit odd. For the new spreadsheet 32readwriteLineChart6, the Axis labels have a yellow-ish glow, but reading and writing the spreadsheet in PhpSpreadsheet gives them a purple-ish glow. Nevertheless, the new test shows that the output file uses schemeClr accent4, as does the input file. So the effect is handled correctly, but it seems there is likely to be a difference between theme colors (Writer/Xlsx/Theme appears to write hard-coded color schemes, and, in any case, Reader/Xlsx does not appear to handle schemeClr). Fixing that will be a great deal more difficult, with a large chance of regression, and will need to happen in a separate PR (one that I am not currently investigating, but I will open a new issue). Effects using srgbClr (and probably sysclr) should be okay.

* Better Theme Support

When reading Xlsx, the theme colors will now also be used for writing. This means that a file can be loaded and saved and its chart colors will now be preserved. If the spreadsheet is created new, Excel 2007-2010 colors are used. The writer is currently hard-coded to use them, so this avoids making this a breaking change. The theme colors can be explicitly changed if desired, and Excel 2013+ colors can be introduced very easily.
```php
$spreadsheet->getTheme()
    ->setThemeColorName(Theme::COLOR_SCHEME_2013_PLUS_NAME);
```
Likewise, if the old behavior of changing to the 2007-2010 scheme rather than using the input values is desired, that is easy to achieve after the load has taken place.
```php
$spreadsheet->getTheme()
    ->setThemeColorName(Theme::COLOR_SCHEME_2007_2010_NAME);
```
The new Theme class introduced by this change can easily be extended to include Fonts and Effects. Unlike Colors, I am unsure what the practical effects of changing those to, say, the 2013+ defaults would be.

* Scrutinizer

Use an alias in a use statement.

* Update Change Log

Due to potential behavior change.
2023-03-26 03:19:34 -07:00
MarkBaker 0c0fa705db Duration NumberFormat Wizard 2023-03-23 16:29:24 +01:00
MarkBaker 58ac4ca288 Update to Change Log 2023-03-22 13:38:00 +01:00
MarkBaker 8888c58eaa Inline documentation updates 2023-03-22 13:02:18 +01:00
Mark Baker 00ece21e40 Merge branch 'master' into Issue-3473_Shared-Formula-Chunked-Read-no-attribute-set 2023-03-22 02:42:43 +01:00
MarkBaker c77360fe47 ChangeLog 2023-03-22 02:25:45 +01:00
oleibman 514fcff904 Catch Up Change Log (#3475)
Some changes missing since release 28.
2023-03-21 17:25:47 -07:00
MarkBaker a085835eb5 Fix for Issue 3439 - Getting a style for a CellAddress instance fails if the worksheet is set in the CellAddress instance 2023-03-19 17:33:00 +01:00
Mark Baker cea9c4dce7 Merge branch 'master' into NumberFormat-Wizards-Date-Time-Duration 2023-03-17 13:26:47 +01:00
MarkBaker e58d51fdb9 Issue 3461 - Establish boundary for function prefix regexp to prevent NETWORKDAYS being picked up by DAYS 2023-03-17 08:13:22 +01:00
MarkBaker 7a0c18f3e7 Refinements to Date, Time and DateTime NumberFormat Wizards 2023-03-16 10:53:01 +01:00
MarkBaker ca05f69b4a Initial work on Date, Time and DateTime NumberFormat Wizards 2023-03-16 02:25:10 +01:00
MarkBaker 9006d2a3f4 Fix for Issue #3436 - Result from Excel's EDATE() and EOMONTH() should always be rounded to 0 decimal 2023-03-06 17:22:30 +01:00
MarkBaker d01577dfeb Update Change log 2023-02-27 17:28:35 +01:00
MarkBaker 03275330e6 Prepare Change Log for next release 2023-02-25 13:31:04 +01:00
MarkBaker 6e81cf39bb Update Change Log for release 2023-02-25 13:24:49 +01:00
MarkBaker 6409af4dcc When a Worksheet has an AutoFilter, make allowance for Center Alignment in the filter heading when calculating AutoFit column widths. 2023-02-24 21:24:46 +01:00
oleibman 4e2bca19ff Update Change Log (#3398)
Add some recent changes.
2023-02-24 07:48:47 -08:00
MarkBaker f468e78b66 Improved handling for ? placeholder in Number Format Masks 2023-02-22 12:55:21 +01:00
MarkBaker c0b60fcb76 Issue 3381 - Fix decimal precision for Scientific Number Format Mask 2023-02-20 12:20:49 +01:00
MarkBaker 292dd9073f Adjust CURRENCY_USD and CURRENCY_EUR constants to rationalise and eliminate quoted currency symbols in favour of bracketed symbols 2023-02-18 01:39:29 +01:00
MarkBaker 22aa65d802 Additional unit tests 2023-02-17 13:31:45 +01:00
MarkBaker f9ef1e0e7d Additional unit tests 2023-02-17 13:29:21 +01:00
MarkBaker 5072ffb23a Improve support for locale settings and currency identification in the Advanced Value Binder 2023-02-17 12:37:18 +01:00
MarkBaker 3d7964f568 Improve support for locale settings in the Calculation Engine formatted number matcher 2023-02-17 08:03:28 +01:00
MarkBaker b40e131b78 Allow override of the Value Binder when setting a Cell value 2023-02-14 10:13:35 +01:00
oleibman c95a8b7aa5 Update Change Log (#3360)
Catch up.
2023-02-11 23:24:49 -08:00
MarkBaker 35347e7228 Update Change Log 2023-02-12 02:38:45 +01:00
MarkBaker 3e74e56207 Update Change Log 2023-02-09 12:42:07 +01:00
MarkBaker cd181abd3c Updating Change Log for interim 1.27.1 release 2023-02-08 08:09:43 +01:00
MarkBaker 393514d4f0 Improved handling of @ format mask 2023-02-04 13:33:11 +01:00
Mark Baker 777a230765 Merge branch 'master' into NumberFormat_Wizards 2023-02-03 17:29:43 +01:00
MarkBaker e2c5014c43 Wizards for defining Number Format masks for Numbers, Percentages, Scientific, Currency, and Accounting 2023-02-03 17:14:28 +01:00
MarkBaker c47af2a344 Support for fixed value divisor in fractional Number Format Masks 2023-02-02 12:00:50 +01:00
MarkBaker ea3be3b53b Unit tests for evaluation of defined name with a quote-prefixed cell 2023-02-01 21:10:19 +01:00
Jonathan Goode fc8966e38d Support for configuring a Chart Title's overlay (#3325)
* Update PR template

* Trim trailing space

* Support for configuring a Chart Title's overlay

* Provide test coverage for getting/setting a Chart Legend's overlay
Add missing docblock
2023-01-30 18:37:18 -08:00
oleibman 1cdc6cd2fb Breaking Change to toFormattedString and 3 toArray Methods (#3304)
* Breaking Change to toFormattedString and 3 toArray Methods

DocBlock says `toFormattedString` returns string, but code can return int, float, bool, null, or RichText. I think the DocBlock is correct (function name clearly indicates "to string"), and the code needs to change to match it. This is not that big a deal on its own. However, some methods in `Worksheet` call this function by default - `rangeToArray`, `toArray`, and `namedRangeToArray`. All 3 can be called with a parameter so that they don't call `toFormattedString`, but, by default, they do call, and so are affected by this change. Some unit test results are changed as a result of this code change. In all those cases, an additional test is added which would match the previous result.

* Update Change Log

I often skip this till later, but, since it's a breaking change ...

* Scrutinizer, Plus Strange Cast to -0

Avoid Scrutinizer complaint by casting string to float, but ... Php decides resulted should sometimes be `-0`? That caused test failures. Very odd.
2023-01-30 00:54:48 -08:00
MarkBaker 030a8e2664 Prepare ChangeLog for next release 2023-01-24 21:17:11 +01:00
MarkBaker eeb8582f9c Update ChangeLog 2023-01-24 21:07:45 +01:00
MarkBaker 4b72546050 Option to specify a range of columns/rows for the Row/Column isEmpty() methods 2023-01-23 11:35:19 +01:00
MarkBaker 27bdda2aa7 Update Change Log 2023-01-21 17:40:30 +01:00
oleibman 84e4896192 Catch Up Change Log (#3313)
Prior to release 1.27.
2023-01-20 17:41:30 -08:00