Commit Graph

5922 Commits

Author SHA1 Message Date
oleibman 467eada7ba Merge pull request #4714 from RobinvanderVliet/patch-1
Update changelog
2025-11-14 23:52:28 +00:00
Robin van der Vliet bd1a08a477 Update changelog 2025-11-14 23:47:21 +01:00
oleibman ee2d4e8e39 Merge pull request #4711 from oleibman/printarea
Limited PrintArea Support for Html/Pdf
2025-11-14 06:17:44 +00:00
oleibman 8108c12c35 Update CHANGELOG.md 2025-11-13 22:14:54 -08:00
oleibman dcf475eec1 Merge pull request #4713 from oleibman/calcvalue
Use `calculateFormula` Rather Than `_calculateFormulaValue` in Tests
2025-11-14 05:37:48 +00:00
oleibman 827121e6a1 Merge pull request #4708 from RobinvanderVliet/simplify-code
Apply small code style improvements
2025-11-14 05:30:07 +00:00
oleibman 965e51ccd2 Merge branch 'master' into simplify-code 2025-11-13 21:27:10 -08:00
oleibman f6f3daaac4 Merge pull request #4709 from RobinvanderVliet/add-info-function
Implement missing `INFO` function
2025-11-14 05:10:23 +00:00
oleibman 55098edf99 Minor Touchup 2025-11-13 21:07:19 -08:00
oleibman 70b4ecd4d3 Use calculateFormula Rather Than _calculateFormulaValue in Tests
They aren't quite interchangeable. Both are used in the test suite, with no indication of why one or the other. I think we'd be best off being consistent. Based on the names, I think `_calculateFormulaValue` was intended as a private, or at least internal, method, so favor `calculateFormula`. I do not intend to rename or re-categorize `_calculateFormulaValue`, just remove its usage when it isn't clearly warranted.
2025-11-13 20:48:46 -08:00
Robin van der Vliet 70802fafe6 Add another test 2025-11-13 20:43:41 +01:00
Robin van der Vliet 07d68b3bc8 Add support for remaining types 2025-11-13 19:03:21 +01:00
Robin van der Vliet 536c63e100 Implement ìnfoSupported 2025-11-12 18:15:11 +01:00
oleibman ed00f8e14f Limited PrintArea Support for Html/Pdf
Fix #3941. Html and Pdf Writers will show PrintArea if specified rather than the entire sheet. Html Writer, which needs to handle both screen and print views, will use PrintArea through CSS; PDF, which needs to handle only print view, will use it by not including rows and columns which are not in the PrintArea. The support is limited because:
- PrintArea can consist of several different ranges. The writers will use the PrintArea only if it consists of a single range.
- Html use will be effective only if `useInlineCSS` is set to `false`, which is its default value.
- Other aspects of page setup, e.g. horizontal centered, remain unsupported, with or without PrintArea.

Html Writer will also set a `data-printarea` attribute on the `table` declaration for a worksheet when appropriate. Html Reader will recognize and process that attribute. This usage does not require that the PrintArea consist of a single range.
2025-11-11 22:28:41 -08:00
Robin van der Vliet 92eacbeef6 Update changelog 2025-11-11 23:44:44 +01:00
Robin van der Vliet 99d24e2b6b Remove unused imports 2025-11-11 23:35:01 +01:00
Robin van der Vliet ec9d343e8a Remove test for unimplemented function, because it is implemented now 2025-11-11 23:29:19 +01:00
Robin van der Vliet e929a94ef6 Fix tests 2025-11-11 23:17:46 +01:00
Robin van der Vliet e18bf2a2ef Fix tests 2025-11-10 22:45:43 +01:00
Robin van der Vliet 4fd2f4d551 Fix issues 2025-11-10 22:00:38 +01:00
Robin van der Vliet 92a3bb8a9e Fix issues 2025-11-10 21:54:17 +01:00
Robin van der Vliet e9ec166018 Add tests 2025-11-10 21:50:15 +01:00
Robin van der Vliet bfb694a73e Implement missing INFO function 2025-11-10 21:31:05 +01:00
Robin van der Vliet ee062e4ce6 Update CHANGELOG.md 2025-11-10 19:32:26 +01:00
Robin van der Vliet 19a92fa024 Use ltrim instead of preg_replace 2025-11-10 19:29:19 +01:00
Robin van der Vliet 38edcfc8b6 Use max instead 2025-11-10 19:29:04 +01:00
Robin van der Vliet 790613d3ef Use ?? operator instead 2025-11-10 19:28:51 +01:00
Robin van der Vliet eb4697ff51 Use ?-> operator instead 2025-11-10 19:28:36 +01:00
Robin van der Vliet c48c10728d Use str_starts_with and str_ends_with instead 2025-11-10 19:28:35 +01:00
oleibman fc48bce36d Merge pull request #4707 from RobinvanderVliet/update-translation-file
Add missing Dutch translation to translation file
2025-11-10 02:15:36 +00:00
oleibman c5c9f24592 Merge branch 'master' into update-translation-file 2025-11-09 18:12:37 -08:00
oleibman 4e6908587d Merge pull request #4705 from RobinvanderVliet/fix-typos
Fix lots of typos throughout codebase
2025-11-10 01:35:48 +00:00
Robin van der Vliet 6389ec3ee1 Update changelog 2025-11-09 23:38:43 +01:00
Robin van der Vliet 662070271c Run generate-locales.php 2025-11-09 23:35:50 +01:00
Robin van der Vliet 96d32eaa1a Add missing Dutch translation 2025-11-09 23:35:36 +01:00
Robin van der Vliet d004c2c3b8 Fix word 2025-11-09 23:21:32 +01:00
Robin van der Vliet f10d4fd766 Fix grammar error 2025-11-09 23:19:05 +01:00
Robin van der Vliet 8475cfdf13 Fix single typo 2025-11-09 21:19:41 +01:00
Robin van der Vliet 235b808ad0 Update changelog 2025-11-09 17:15:08 +01:00
Robin van der Vliet 603b92e827 Fix lots of typos throughout codebase 2025-11-09 17:10:55 +01:00
oleibman 58fd5cac62 Merge pull request #4702 from oleibman/issue4695
Protected Ranges and Insert/Delete Columns/Rows
2025-11-07 16:31:27 +00:00
oleibman 2bc326bb16 Merge branch 'master' into issue4695 2025-11-07 08:28:30 -08:00
oleibman 4833efc65f Update CHANGELOG.md 2025-11-07 08:27:28 -08:00
oleibman 4f6c850a23 Merge pull request #4703 from oleibman/issue1764
Documentation for Excel Date/timestamp Format
2025-11-03 04:03:59 +00:00
oleibman dc2d89e233 Documentation for Excel Date/timestamp Format
Fix #1764.
2025-11-02 19:58:25 -08:00
oleibman c944b1a162 Merge pull request #4697 from oleibman/issue4696
Unexpected Exception in Php DateTime
2025-11-02 07:02:47 +00:00
oleibman 938ba72eb1 Coverage Tweak 2025-11-01 23:39:14 -07:00
oleibman 96f783c0ac Update CHANGELOG.md 2025-11-01 22:41:06 -07:00
oleibman f1562c967b Protected Ranges and Insert/Delete Columns/Rows
Fix #4695. PhpSpreadsheet has assumed that each Protected Range on a Worksheet is defined in the Xml using a single range. However, Excel itself will often combine ranges together. So, in the xml for the spreadsheet supplied with the issue, we see:
```xml
<protectedRange name="Champs_non_bloqués_2" sqref="B2:D4 J2:L4 F2:H4"/>
```

When inserting or deleting rows or columns, ReferenceHelper is used to adjust (among other things) Protected Ranges. The existing code (probably) works well enough if there is only one range in `sqref`, but fails to parse correctly and throws an Exception when there is more than one. It is replaced with a fairly straightforward manner of updating when rows/columns are inserted, and a slightly more convoluted manner of updating when rows/columns are deleted.
2025-11-01 21:58:23 -07:00
oleibman a61f9f1b66 Merge pull request #4701 from oleibman/phpstan2131
Upgrade Phpstan
2025-11-01 15:29:21 +00:00