Materialised XLSX drawing groups
Version 2.384.520 introduces local transform editing for supported retained OOXML drawing groups, covering nested groups, chart and image occurrences and retained shape XML
Materialisation gives each occurrence an explicit local coordinate space and preserves its existing chart or image payload identity; it does not flatten the complete group into unrelated standalone objects
Entry points and occurrence identity
function TXLSXWorksheet.MaterializeDrawingObject(Index: Integer): TXLSXDrawingObject; function TXLSXWorksheet.GroupDrawingObjects(const Indexes: array of Integer): TXLSXDrawingObject; function TXLSXWorksheet.UngroupDrawingObject(Index: Integer): Integer;
Index identifies a top-level entry in DrawingObject; materialisation prepares the complete selected tree before publishing it and returns the original root instance
Materialized reports the represented occurrence state, Parent and Children describe its actual hierarchy, and Chart or Image continues to identify the same typed payload
The appended xlsxDrawingShape kind represents residual shape XML with a local transform; this does not imply that every residual shape has a modelled TextBox or a complete shape-specific editing API
RawXml shows the retained occurrence and its current transform, preserving its XML namespaces and any residual content
Local transforms and units
TXLSXDrawingTransform = record Present, GroupCoordinates, RotationPresent, FlipHPresent, FlipVPresent: Boolean; OffsetX, OffsetY, ExtentX, ExtentY: Int64; ChildOffsetX, ChildOffsetY, ChildExtentX, ChildExtentY: Int64; Rotation: Integer; FlipH, FlipV: Boolean; end;
Read and write the record through Drawing.Transform; offsets and extents are local drawing coordinates measured in EMUs, with 12,700 EMUs to the point
The child offset and child extent of a group define how its child coordinate space maps to the outer extent; rely on the complete group transform, not on a nested child's offset as if it were a worksheet position
Rotation is expressed in 60,000ths of a degree, whilst the presence flags retain the distinction between absent attributes and explicitly stated zero rotation or false flips
Read, modify, then assign the existing record so that unrelated coordinates and attribute-presence flags stay intact; represented transforms that are invalid or cannot be inverted are refused
Root := Sheet.MaterializeDrawingObject(0); Transform := Root.Transform; Inc(Transform.ChildOffsetX, 1270); Root.Transform := Transform; Child := Root.Children[0]; Transform := Child.Transform; Inc(Transform.OffsetX, 12700); Child.Transform := Transform;
Local transforms carry an ownership contract distinct from that of the legacy worksheet-position setters; an inherited Left, Top or size setter edits the represented local transform
Splitting, regrouping and rollback
A supported split keeps the parent's coordinate mapping inside explicit compensation wrappers, which are exposed through TransformWrapper, instead of dropping that mapping when its children become roots
Regrouping materialised roots that share an exact anchor context preserves that original context, including an implicit worksheet grid; distinct absolute anchors can be combined using their exact EMU rectangles
Roots with different cell-anchor contexts cannot be regrouped without an extra exact worksheet-grid mapping; that case is refused before publication rather than converted with approximate row or column distances
A neutral regroup's inverse brings back the previous root occurrences and their local transforms; ordering, typed resources and parent links stay within the transaction
If preparation or publication fails, the previous occurrence graph, raw-anchor ownership and model generation are restored, so the same instances can be retried
Copying and saving
Sheets.AddCopy copies the complete materialised occurrence graph, owned chart and image resources, retained XML and namespace context, target identities and relationship aliases
The copied worksheet remains saveable after the source workbook is released; same-workbook copying retains unrelated worksheet, table and defined-name dependencies whilst rebinding names owned by the copied root
XLSX output writes one current occurrence for each materialised root and retires its old raw slot, whilst preserving other retained raw occurrences and their rebased ownership
After reopening the physical XLSX, use MaterializeDrawingObject again when further local transform editing is required
Copied worksheet column grids
When explicit or implicit column widths have to be written for the destination workbook, copied OOXML worksheets keep the base column width and Normal-font width context of their source
That prevents the native width from changing merely because the destination Normal font differs, and avoids inventing an explicit default width from a generic character-width estimate
The representative Windows Excel acceptance covers the shared-anchor edit, split, regroup, inverse and source-free copy sequence, together with scalar worksheets in Calibri 18 and Consolas 11 Normal-font contexts
This does not qualify arbitrary later font mutation, every theme or font-substitution profile, or a universal grid mapping across different cell anchors and portable rendering
Copied worksheet default row formats
Version 2.384.521 preserves StandardHeight together with CustomHeight, ZeroHeight, OutlineLevelRow and OutlineLevelCol through worksheet copy preparation and transactional publication
A numeric default row height on its own does not make a height manually fixed: native consumers may recompute it when the associated manual-height flag is absent
Copies keep the default flags across failed-publication rollback, retry on the same instance, source workbook release, saving and physical reopening
The actual Windows Excel acceptance covers ten source-free copies with fixed and fractional default heights, individual hidden rows and columns, variable sizes and one-cell drawing anchors, preserving the complete typed leaf geometry and chart contents at the original tolerance
Retention of default-hidden rows and outline levels also has model and saved-XML verification, failure rollback included; that is separate from full native qualification of every default-hidden-row layout
Automatic row-height calculation and exact mappings between different cell anchors stay separate work; this copy repair does not extend the regroup profiles described above
Default-hidden rows and explicit visibility
Version 2.384.528 keeps a worksheet's default-hidden state distinct from the visibility of each stored row. When XLSX is read, an absent row inherits ZeroHeight, whilst a present row with an omitted, zero or false hidden attribute remains visible
An explicit true hidden attribute keeps that row hidden, including rows with a declared height
RowHidden reports that effective visibility. Setting it to false keeps a row explicitly visible even where the worksheet default is hidden. Enabling ZeroHeight keeps the visibility of existing stored rows and applies the hidden default to rows that are newly represented
ClearRowHidden restores a visible default and clears hidden row state whilst retaining actual stored empty-row presence
These visibility owners follow worksheet copying, row insertion and deletion, metadata tiling, supported transactional rollback, saving and reopening. Filter application that resets visible matches can leave those matches visible under a hidden worksheet default
The change neither calculates automatic text heights nor defines application font fallback, and it does not admit regrouping between different cell-anchor grids
Loaded automatic row-height caches
Version 2.384.523 keeps an XLSX row's cached height distinct from a manually fixed height when customHeight is missing or false
The automatic-height state follows its row through saving, physical reopening, worksheet copies, row insertion/deletion, metadata tiling and publication rollback, whilst explicitly setting or clearing a row height updates that state with the numeric owner
RowHeight still returns the declared or cached number; the preservation does not make that getter a universal native calculator for automatic heights
For instance, a stored 24-point cache with a false manual-height flag may display at 14.4 points in a real consumer; saving it as manually fixed alters the grid and its anchored objects
The actual Excel checks cover missing, zero and false flag forms, fixed-height controls, mixed automatic and manual rows, source-free copies and repeat saving, including complete row-height vectors and typed drawing geometry
Conversions needing fixed geometry leave automatic cache values out of their fixed-row evidence until the actual text-layout owner is available; general ODS optimal-row-height mapping, XLSB cache-height representation and different-cell-anchor regroup stay separate work
OpenDocument projection of current occurrences
Internal version 2.384.859 adds OpenDocument output for bounded materialised image and plain-text occurrences, including nested axis-aligned image groups and workbooks that also hold retained raw groups
The conversion draws on each occurrence’s current worksheet anchor, local transform and complete parent mapping; legacy image position fields never override that materialised geometry
Supported worksheet roots keep their actual cell host and offsets, or a bounded nonnegative absolute position; scaling inside a nested image must resolve to exact representable target lengths
Plain text keeps its represented uniform typography and paint through the existing text-box conversion profile; non-unit parent scaling of text needs more typography support and is refused
Call GetConversionReport(xlsConversionOpenDocument) before settling on a SaveAsChecked policy: two-cell resizing turns into a fixed current frame, nonvisual metadata may be dropped, and a standalone materialised picture uses a neutral target group so that exact frame lengths survive
The report records the added group as a change to target grouping and editing structure, while the picture name, media occurrence, cell host and drawing order are retained
Checked saving with AAllowLossy=False refuses any reported losses; turning on lossy output still refuses unsupported effects, rotations, flips, charts, connectors, crops, SVG companions, camera ranges, unowned metadata and non-exact geometry
File and stream saves consume the checked prepared target representation, revalidate source state after callbacks and before publication, and leave the original occurrence tree available for later XLSX output
Supported empty preset ellipses also keep their actual ellipse identity, explicit fill and outline paint, represented outline width and exact nested geometry through OpenDocument conversion
Current boundaries
Inherited group properties that cannot be partitioned, nonvisual dependencies, richer effects and transforms, mixed ordinary and materialised regrouping, connector and creation identities and wider vendor-specific contexts need further ownership support
OpenDocument support stops at the occurrence projection above; wider XLSB, semantic-snapshot and portable-rendering projections keep their own ownership requirements, and unsupported conversions are refused without replacing checked output destinations
Existing supported raw drawing conversion profiles remain separate; successful materialisation is not evidence that every retained raw group can be split, converted or rendered
See owned drawing groups in XLSB for that format's separately qualified profiles and qualified defined-name validation for copied formula dependencies