ShapeXmlSaver

Overview

ShapeXmlSaver is a class in Aspose.Cells FOSS for Python.

Generates drawing XML and relationship XML for worksheet shapes.

This class declares 5 methods for ShapeXmlSaver objects in Python programs. Available methods include: __init__, assign_hyperlink_rel_ids, collect_shape_refs, format_shape_anchors_xml, format_shape_relationships_xml. Public members are accessible to any Python application after installing the Aspose.Cells FOSS for Python package.

Methods

SignatureDescription
__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.

See Also

 English