* craft-xlsx: typed external links, read from .xlsx and .xlsb; external references in binary formulas
ExternalLink (another workbook as ExternalBook: its target, sheet names,
defined names with refersTo and sheetId, and cached cells; a DDE or OLE link
as Other) reads from externalLinkN.xml and externalLinkN.bin alike.
Package::external_links gives one entry per Workbook::external_references,
which is now a typed field, read from externalReferences or the binary
workbook's BrtSupBookSrc records and written back from the field.
A binary formula's reference to another workbook decodes as .xlsx spells it:
[1]Data!$A$1, '[1]Other Sheet'!A1, '[1]A:C'!A1, [1]!ExtName, [1]Data!Local
for a sheet-scoped name, a DDE item [2]!'R1C1'. The link parts are read when
the workbook part is; one that can't be read, a deleted sheet of it or a name
it lacks keeps the cell's saved result.
Closes#1252.
* craft-xlsx: review fixes: external links keep their numbers, are read once, and deleted sheets keep values
- An externalReference without an r:id, or a BrtSupBookSrc whose id can't be
read, keeps its place as an empty id, so the links after it keep their
[n]; it is written back without r:id.
- A binary workbook's external link parts are read once, with its workbook
part: the formulas' index and Package::external_links share that read, so
cached cells are charged to binary_cells once.
- PtgNameX through a deleted sheet of another workbook (-1) keeps the cell's
saved result instead of falling back to the name's own scope.
* craft-xlsx: deduplicate binary external links against budget and add cache-cap test
* craft-xlsx: avoid cloning ExternalLink on duplicate binary external references
---------
Co-authored-by: kiwi4boy <kiwi4boy@gmail.com>
Co-authored-by: FredApps <FredApps@users.noreply.github.com>
Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
craft-common-actions' select-platforms selects the tests: the crates that
own a changed file, the crates that declare a read of it, and every
crate that depends on them. Every nextest run gets the filter; the build
and the doctests stay whole-workspace. The build setup, a crate's own
Cargo.toml and files outside the crates other than docs run every test;
docs alone run none. pdf, svg and the fonts-build consumer declare the
files of other crates that their tests read.
An empty agent folder setting meant no file access, so an agent reached
through the launcher's MCP entry could neither open nor save a file, and
nothing told it where to put files.
- default_folder(app): Documents/ArtCraft/Agents/<App> (dirs::document_dir,
else ~/Documents), only for plain app names.
- AgentSettings::folders / folders_with: the person's own folders win; an
empty setting falls back to the default, created on first use.
- The live client's headless sessions use it (LiveConfig::default_folder).
- FOLDERS_TOOL, folders_tool, folders_answer: the tool each app offers so an
agent learns the folders it may use.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Whether a shape's text is upright was decided from the quarter-turns
before shape::geometry ran, but geometry gives a mirrored trapezoid a
half-turn of its own, so its text turned upside down with it. The text
is now upright, at its own angle, whenever the shape ends at any other
angle. Probes of trapezoids turned and flipped before and after their
text was typed all end at the text's own angle, as PowerPoint 95 drew
them.
A stream cut just after the SlideAtom's header left an atom with no
body, which counted as kept: the slide read blank and nothing was named
lost. A slide is now kept only when its atom gives its id and its
master's.
The samples test's WMF reader took a polygon's points and a rectangle's
sides at fixed offsets, so a record shorter than its count read on into
the next one. Each record is now sliced to its stated size and skipped
when its values don't fit.
The outline matcher merged neighbouring vertices within the pen's
tolerance before comparing, so a narrow rectangle drawn with a wide pen
lost the corners of its short edges. Only exact repeats are dropped now;
the tolerance is for the comparison.
The footer row's look came from its first run, so an empty footer, date
or slide number placeholder (no runs once normalized) gave none. It now
falls back to the paragraph's end mark. This is the shared helper, so
both paths take it.
PowerPoint 95 point spacing was capped at 4000 pt, but DrawingML holds at
most 1584 and the writer clamps to that, so a larger value changed on
export. It is now capped at 1584.
PowerPoint 95 writes a slide's SlideAtom first. A slide record without
one is what a file cut just after the slide's header leaves; it read as
a blank slide, and import_checked reported nothing lost. It is now left
out, as the PowerPoint 97 path leaves out the slides it lost, and named
by its position.
PowerPoint 95 lays a shape's text out in the box the geometry holds,
turned by the text's own angle (4003 +16, the geometry's own angle in
every probe). Quarter-turns folded into that box don't turn the text: a
shape turned a quarter before its text was typed draws it upright, and
one turned on to 120 degrees after that draws it at 30 (probes wrap-before,
wrap-mix, wrap-arrow, with word wrap set in the Text Anchor dialog).
When the shape's box is turned back, its text is now upright at that
angle, with its insets on the held box's edges. That replaces remapping
the insets: in PowerPoint 16, upright text with these insets breaks into
the same lines at the same places as PowerPoint 95's renderings, while
remapped insets put an up arrow's text 18 pt off. A balloon's body cut is
taken from whichever edge of the held box its tail is on.
Both paths gave a paragraph's end mark the formatting of its first
character. PowerPoint reads it from the character run at the CR (or at
the text's end for the last paragraph): a .ppt PowerPoint 16 saved, with
'AB\rCD' at 24 pt and only the first CR at 40, opens with that paragraph's
endParaRPr at 40. PowerPoint 95 gives the CR a run of its own when it
differs, so its path reads the same position.