ShapeXmlSaver
Overview
ShapeXmlSaver is a class in Aspose.Cells FOSS for Python.
Generates drawing XML and relationship XML for worksheet shapes.
Methods
| Signature | Description |
|---|---|
__init__(escape_xml_fn) | Args: |
escape_xml_fn: Callable that XML-escapes a string (provided by
the parent saver so this module doesn't duplicate it). |
| collect_shape_refs(worksheet) | Builds the list of shape reference dicts needed for drawing XML
generation. |
| assign_hyperlink_rel_ids(shape_refs, start_rel_id) | Assigns relationship IDs to shapes that have hyperlink URLs. |
| format_shape_anchors_xml(shape_refs, chart_count, picture_count) | Returns concatenated xdr:twoCellAnchor XML strings for all shapes. |
| format_shape_relationships_xml(shape_refs, chart_count, picture_count) | Returns Relationship XML entries for shapes that have hyperlinks. |