Commit Graph
5896 Commits
Author SHA1 Message Date
aiongg ce2a7b061c panels-w2: a right click fires a component popup's Trigger::Context
PopupHandle::trigger took only the ContextMenu intent (Menu key, Shift+F10,
AccessKit) for Trigger::Context, so a secondary click on a component never
opened its context popup. It now also fires on a secondary release over the
enabled component, the same right click record_context records as a context
request; both read one secondary_click predicate.
2026-11-14 17:56:00 +00:00
aiongg 0186228a72 panels-w2: review fixes (review-4) 2026-11-14 17:56:00 +00:00
aiongg 9d845436fa panels-w2: review fixes (review-3) 2026-11-14 17:56:00 +00:00
aiongg 80f8719cd4 panels-w2: review fixes (review-2) 2026-11-14 17:56:00 +00:00
aiongg d7ed431c5c panels-w2: review fixes (review-2) 2026-11-14 17:56:00 +00:00
aiongg db29b49895 panels-w2: written from its sheet 2026-11-14 17:56:00 +00:00
aiongg ce1b8b108a panels-w1: review fixes (review-2) 2026-11-14 17:56:00 +00:00
aiongg 7138583aef panels-w1: child viewport renderer takes ImmediateViewport 2026-11-14 17:56:00 +00:00
aiongg ac5fc71ed0 panels-w1: review fixes (racheck-fix) 2026-11-14 17:56:00 +00:00
aiongg 7bd99818ec panels-w1: export WholeWindow 2026-11-14 17:56:00 +00:00
aiongg be96f04af2 panels-w1: review fixes (review-1) 2026-11-14 17:56:00 +00:00
aiongg ee5be1ccdd panels-w1: written from its sheet 2026-11-14 17:55:58 +00:00
Dylan M. Taylor b6b222afb0 fix(prepress): address PDF/X review findings 2026-11-14 17:45:53 +00:00
kiwi4boy 0f944f62d5 craft-xlsx: review fixes: names using a left-out name are left out; quoted sheet-scoped calls
- A name whose formula uses a name that is left out (another workbook, a
  skipped sheet, an unreadable formula) was still published, so a cell using
  it decoded and would calculate to #NAME?. Each name's formula now records
  the names it uses, and every name reached from a left-out one is left out
  too, whatever their order: once each, so a long chain costs no more than
  its uses. A cell using one keeps its saved result.
- A sheet-scoped name called as a function through PtgNameX prints its sheet
  quoted where needed ('My Sheet'!Fn(1)), as a sheet-qualified name does.
2026-11-14 12:45:29 -05:00
kiwi4boy 88287a6b46 craft-xlsx: review fixes: styles caps are too large, differential format strings are charged
- A styles table past 65,536 entries, or a gradient past 1,024 stops, is past
  a fixed cap: Error::TooLarge, as the error's contract and the other caps
  have it, not a damaged part that is skipped with a warning.
- A differential format's font name and number format are charged to
  binary_text, as the other string-bearing style records are.
2026-11-14 12:40:55 -05:00
kiwi4boy eca1698ef1 craft-xlsx: review fix: skipped column records count toward the column cap
A sheet of 16,385 reversed or out-of-grid BrtColInfo ranges was skipped one
by one without reaching the cap, since only kept columns were counted. Every
column record now counts.
2026-11-14 12:38:58 -05:00
kiwi4boy cba5007f1b Merge branch 'xlsb-formulas' into xlsb-tables
# Conflicts:
#	crates/xlsx/tests/xlsb.rs
2026-11-14 12:38:17 -05:00
kiwi4boy bf4a2897e7 Merge branch 'xlsb-formulas' into xlsb-names
# Conflicts:
#	crates/xlsx/tests/xlsb.rs
2026-11-14 12:37:51 -05:00
kiwi4boy 0d68e0c36d Merge branch 'xlsb-formulas' into xlsb-sizes
# Conflicts:
#	crates/xlsx/README.md
2026-11-14 12:37:26 -05:00
Dylan M. Taylor f5720d8f69 refactor(xml): share bounded tree-node validation 2026-11-14 17:36:14 +00:00
kiwi4boy 14e516edf4 Merge branch 'xlsb-formulas' into xlsb-styles 2026-11-14 12:36:13 -05:00
kiwi4boy fa5457bed6 craft-xlsx: review fixes: array constants bounded per formula, a spent allowance skips decoding
- A formula's array constants share one allowance of 65,536 values, each
  array charged before its rows are allocated. Before, the cap was per
  array, so a formula of many arrays could hold gigabytes before the formula
  text allowance was checked.
- Once binary_formula_text is spent, a formula is not decoded only to be
  dropped: it keeps its saved result straight away.
2026-11-14 12:35:54 -05:00
Cédric Legrand 1a4e11926c refactor(dwg): apply behavior-preserving cleanups 2026-11-14 18:26:23 +01:00
kiwi4boy b5eda42a33 craft-xlsx: VBA function names and macro descriptions in binary workbooks
An Excel probe with VBA enabled showed two things the names reader got
wrong:

- Excel writes a VBA function a cell calls as a BrtName with fFunc, fOB and
  fProc, no formula, and none of the four strings fProc names otherwise
  carry. The reader refused it, which dropped every name and left every
  formula as its saved result. Such a name now ends after its comment; it
  stays out of the names, as .xlsm lists none, and cells calling it spell it.
- The two middle strings of a macro's name are its description and help
  topic, as .xlsm writes them (description="Function A" help="!0"), not the
  custom menu and description the specification's labels say.
2026-11-14 12:21:06 -05:00
aiongg c1d35a3e47 Doc examples of the gradient palette and the slice tools follow the current API 2026-11-14 17:19:12 +00:00
kiwi4boy 4a25088802 craft-xlsx: read the tables of a binary workbook
Package::tables reads a sheet's tableN.bin parts, through its BrtListParts,
into the Table the XML reader builds, as Excel writes the table in .xlsx:
BrtBeginList and its columns, the calculated and totals formulas decoded as
cell formulas are, an XML map's column properties, the table style, and the
AutoFilter and sort state built as the autoFilter and sortState elements. A
filter column whose criteria are in an extension (date groups) or on a
Boolean value is left out with a warning, as is a sort by stroke or PinYin
order.

PtgList now decodes to the structured reference .xlsx holds (Sales[Val],
Sales[[#Headers],[Key]], escaped column names, Excel's spacing flags), from
the workbook's tables, indexed when the workbook part is read. A reference
to a table that can't be read, a deleted table or another workbook keeps
the cell's saved result.

Closes #1251.
2026-11-14 12:16:33 -05:00
Dylan M. Taylor bac1a19d93 fix(xml): harden DTD validation bounds and parsing 2026-11-14 17:10:03 +00:00
kiwi4boy b11a5a38b8 Merge branch 'xlsb-formulas' into xlsb-names
# Conflicts:
#	crates/xlsx/README.md
#	crates/xlsx/tests/xlsb.rs
2026-11-14 12:08:55 -05:00
kiwi4boy 6c364459f3 Merge branch 'xlsb-formulas' into xlsb-sizes
# Conflicts:
#	crates/xlsx/README.md
#	crates/xlsx/tests/xlsb.rs
2026-11-14 12:07:25 -05:00
kiwi4boy 259afde541 Merge branch 'xlsb-formulas' into xlsb-styles
# Conflicts:
#	crates/xlsx/README.md
#	crates/xlsx/tests/xlsb.rs
2026-11-14 12:04:49 -05:00
kiwi4boy 5742279729 craft-xlsx: binary formulas name macro sheets and span chart sheets
An Excel probe showed two references the decoder refused that .xlsx spells:

- A reference to an XLM macro sheet (Macro1!$A$1): macro sheets have cells,
  so the sheet links now name them.
- A 3-D span with a chart sheet between its ends ('Data:After Sheet'!$A$1):
  a span is spelled by its ends, as .xlsx has it. An end with no cells is
  still refused.
2026-11-14 12:01:46 -05:00
kiwi4boy abceed3f17 craft-xlsx: binary formulas keep typed spacing and Excel's number spelling
Checked against a wider Excel probe (every worksheet function Excel
accepts, operators, references, constants, spacing, shared and array
formulas), three differences from the .xlsx text are fixed:

- PtgAttrSpace: the spaces and line breaks typed in a formula are kept
  where Excel writes them in .xlsx (before an operand, an operator's
  symbol or a call, after a parenthesis's or call's opening and before its
  closing), and the text is trimmed as the .xlsx reader trims it.
- Numbers are written out in full when that takes at most 21 characters
  (100000000000000000000, 0.0000000000000000001), scientific past that
  (1E+21, 1.5E-19, 1.23456789012345E-06), as Excel spells them.
- ISO.CEILING, ECMA.CEILING, NETWORKDAYS.INTL and WORKDAY.INTL are called
  through hidden _xlfn. names in .xlsb, but .xlsx names them bare.
2026-11-14 11:56:51 -05:00
Cédric Legrand 271a2a7296 style: remove review churn 2026-11-14 17:49:47 +01:00
Cédric Legrand 99223e1972 refactor(i18n): satisfy Clippy pedantic lints 2026-11-14 17:49:46 +01:00
Dylan M. Taylor 7ad4765ee5 Merge pull request #1325 from storytold/codex/docx-level-presence
docx: retain explicitly defined numbering levels
2026-11-14 11:48:48 -05:00
Dylan M. Taylor 3e399149a8 Merge pull request #1316 from storytold/sonar/s4790-format-hash-exclusions
sonar: ignore the weak hashes the encrypted formats require (SonarCloud S4790)
2026-11-14 11:47:14 -05:00
Dylan M. Taylor c9bf4a34a6 Merge pull request #1242 from alehel/claude/issue-1230-c0c8eb
craft-audio: write AAC, ALAC, MP3, AC-3 and E-AC-3 files
2026-11-14 11:46:38 -05:00
Dylan M. Taylor 874c94f2b1 Merge pull request #1311 from pakiat/fix/field-results-complex-script
craft-docx: a field's Thai result takes the complex-script formatting only where Word does
2026-11-14 11:43:58 -05:00
Dylan M. Taylor 9053f5389f Merge pull request #1225 from Bra1nZ/fix/7230-legacy-v3-driver-zero-media-side
fix(print): trust one side of a legacy V3 driver's paper metric
2026-11-14 11:43:38 -05:00
Dylan M. Taylor d542e68c5b Merge pull request #1305 from TrevorBrown-dev/fix/web-jpeg-oversized-xmp
image-codecs: the web JPEG encoder trims or leaves out an XMP packet past one segment
2026-11-14 11:40:56 -05:00
Dylan M. Taylor 1f96d6b6bb Merge pull request #1278 from naxvog/docx/cell-margins-without-table-style
craft-docx: a file with no default table style gives its tables no cell margins
2026-11-14 11:36:33 -05:00
Dylan M. Taylor 689bd18cb6 Merge pull request #147 from midasmatterhorn/fix/r4-print-shrink-zero-scale
print: shrink-to-fit refuses a sheet the written matrix cannot represent
2026-11-14 11:34:07 -05:00
kiwi4boy d2b6416db9 craft-xlsx: binary styles: legacy number formats, automatic font colours, tinted fills
A broader Excel probe found three differences from the styles.xml Excel
writes for the same workbook:

- A number format with a newer locale tag ([$-ja-JP-x-gannen]) is only in
  alternate content: the newer spelling in a block for later versions, and
  the one .xlsx keeps as formatCode in a block listing version 12 onwards.
  The styles part now reads the alternate content meant for Excel 2007
  (version 12), so the format is no longer lost.
- A font whose colour is automatic has no <color> in .xlsx.
- A pattern fill whose pattern colour has a tint states the system
  background (bgColor indexed 65), as Excel's .xlsx does for any pattern.
2026-11-14 11:32:40 -05:00
kiwi4boy 2a786e27a2 craft-xlsx: names on macro sheets, spans over chart sheets, formula-less built-ins
A second Excel probe showed three cases where the .xlsb reader left out what
.xlsx has:

- Macro names point at an XLM macro sheet (Macro1!$A$1), which the sheet
  links treated as a sheet with no cells, so every such name was left out.
  Macro sheets have cells; references to them are now named.
- A 3-D span over a chart sheet ('Data:After Sheet'!$A$1) was refused. A
  span is spelled by its ends; a sheet with no cells between them adds
  nothing, and .xlsx spells it the same.
- Excel writes a workbook-level built-in with no formula (Database) beside
  a sheet's own. .xlsx leaves it out of definedNames, but formulas using it
  spell _xlnm.Database; they now do instead of keeping their saved results.
2026-11-14 11:30:32 -05:00
Dylan M. Taylor 29fb8f8e86 Merge pull request #1216 from dotCooCoo/feat/craft-texture-planes
craft-texture: add bounded float image planes and texture sampling
2026-11-14 11:28:44 -05:00
aiongg a6dc55e4ed Gallery overview tests: classify the OS appearance source for the measuring-run guard, list the Layers panel's own stories before its filter stories, open a hosted dialog story in the dialog trial 2026-11-14 16:22:31 +00:00
Cédric Legrand 12656b3d0f docs(dxf): describe configurable tag limit 2026-11-14 17:20:40 +01:00
Dylan M. Taylor 15b013b305 Merge pull request #637 from dotCooCoo/fix/linesweeper-sweep-doc-left-scan
linesweeper: the left intersection scan in docs/sweep.typ compares with alpha^(i+1)
2026-11-14 11:19:24 -05:00
aiongg ed867e1c3d Contract stubs: Component::ESCAPE (EscapeEdit), Escape commits a running gesture where a component asks (panels-w7) 2026-11-14 16:18:31 +00:00
Dylan M. Taylor 553d10d5a4 Merge pull request #1221 from dotCooCoo/fix/hdr-isize-bound
craft-hdr: refuse buffers past isize::MAX bytes when limits are raised
2026-11-14 11:17:00 -05:00