Skip to content

feat(xlsx): support Excel cell checkboxes in conversion#90

Draft
juliusknorr wants to merge 1 commit into
mainfrom
feat/spreadsheet-checkbox
Draft

feat(xlsx): support Excel cell checkboxes in conversion#90
juliusknorr wants to merge 1 commit into
mainfrom
feat/spreadsheet-checkbox

Conversation

@juliusknorr

Copy link
Copy Markdown
Member

Adds xlsx ↔ Editor.bin support for Excel's modern cell checkbox feature.

  • Parse xl/featurePropertyBag/featurePropertyBag.xml and resolve the per-xf xfComplement chain into a boolean checkbox flag on the cell xf.
  • Carry the flag through Editor.bin as a new xf property (c_oSerXfsTypes::CellControl).
  • On write, regenerate the canonical featurePropertyBag part + per-xf extLst (cellXfs and cellStyleXfs).

Verified by round-tripping a checkbox file (D8) xlsx → bin → xlsx: the part, relationship, content-type and xf extLst all survive (confirmed absent on the pre-change build).

Note: independent/alternative implementation; an existing feature/checkbox branch also implements this (with ODF support). Opened for comparison. xlsb path intentionally out of scope.

Resolve the featurePropertyBag xfComplement chain into a per-xf checkbox
flag on read, carry it through Editor.bin (c_oSerXfsTypes::CellControl),
and regenerate the canonical featurePropertyBag part plus xf extLst on
write so checkbox cells round-trip xlsx <-> bin.

AI-assistant: Claude Code 2.1.163 (claude-opus-4-8)
Signed-off-by: Julius Knorr <jus@bitgrid.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant