Skip to content

feat(cell): add Excel-style cell checkboxes#28

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

feat(cell): add Excel-style cell checkboxes#28
juliusknorr wants to merge 1 commit into
mainfrom
feat/spreadsheet-checkbox

Conversation

@juliusknorr

Copy link
Copy Markdown
Member

Adds Excel-style cell checkboxes to the spreadsheet SDK.

  • New checkbox flag on the cell xf: model, binary serialization (c_oSerXfsTypes.Checkbox), history/undo-redo.
  • Render boolean checkbox cells as a clickable glyph in the draw path; toggle on click and on Space (read-only/formula cells excluded).
  • asc_insertCheckbox applies the format to the selection and sets blank cells to FALSE, in one history transaction.

Verified live: checkbox cells render, click and Space toggle TRUE↔FALSE, undo works. Caught and fixed a crash where the draw path passes a Range (not a Cell) to the checkbox check — uses getXfs(true) instead of the Cell-only getCompiledStyle().

Note: independent/alternative implementation; an existing feature/checkbox branch also implements this. Opened for comparison.

Add a checkbox flag to the cell xf (model, binary serialization, history/
undo-redo), render boolean checkbox cells as a clickable glyph, toggle on
click and Space, and expose asc_insertCheckbox which applies the format and
sets blank cells to FALSE.

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