Skip to content

Add Checkbox Style (Xlsx and Html only)#4781

Merged
oleibman merged 6 commits intoPHPOffice:masterfrom
oleibman:checkbox
Jan 19, 2026
Merged

Add Checkbox Style (Xlsx and Html only)#4781
oleibman merged 6 commits intoPHPOffice:masterfrom
oleibman:checkbox

Conversation

@oleibman
Copy link
Collaborator

@oleibman oleibman commented Jan 16, 2026

Fix #4280, an issue with many problems; this is the last one (PR #4281 and PR #4677 dealt with other aspects of the problem). New releases of Excel allow representing TRUE/FALSE as a checked/unchecked checkbox. This requires a change to Styles, as expected. But Excel has implemented it in such a manner that changes are also required to Content_Types and workbook.xml.rels; and a new xml file propertyFeatureBag is also required. Seems like a lot of work for such a small change. A new property is added to Style, but only Xlsx and Html Reader and Writer support it; no other format does.

This is:

  • a bugfix
  • a new feature
  • refactoring
  • additional unit tests

Checklist:

  • Changes are covered by unit tests
    • Changes are covered by existing unit tests
    • New unit tests have been added
  • Code style is respected
  • Commit message explains why the change is made (see https://github.com/erlang/otp/wiki/Writing-good-commit-messages)
  • CHANGELOG.md contains a short summary of the change and a link to the pull request if applicable
  • Documentation is updated as necessary

Fix PHPOffice#4280, an issue with many problems; this is the last one (PR PHPOffice#4281 and PR PHPOffice#4677 dealt with other aspects of the problem). New releases of Excel allow representing TRUE/FALSE as a checked/unchecked checkbox. This requires a change to Styles, as expected. But Excel has implemented it in such a manner that changes are also required to Content_Types and workbook.xml.rels; and a new xml file propertyFeatureBag is also required. Seems like a lot of work for such a small change. A new property is added to Style, but only Xlsx Reader and Writer support it; no other format does.
Use Unicode characters U+2610 (Ballot Box) and U+2611 (Ballot Box with Check).
@oleibman oleibman changed the title Add Checkbox Style (Xlsx only) Add Checkbox Style (Xlsx and Html only) Jan 18, 2026
@oleibman oleibman added this pull request to the merge queue Jan 19, 2026
Merged via the queue into PHPOffice:master with commit 4b0bdd6 Jan 19, 2026
15 checks passed
@oleibman oleibman deleted the checkbox branch January 19, 2026 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Images, formulas and checkboxes disappear

1 participant