RelationshipsManager

RelationshipsManager

Übersicht über die

RelationshipsManager ist eine Klasse in Aspose.Slides FOSS für C++.

Verwaltet die mit einem bestimmten OPC-Teil assoziierten .rels Datei. Lade vorhandene Beziehungen auf Konstruktion und bietet Methoden zur Abfrage, Hinzufügen und Entfernen von Beziehung. Ruft Save ((() an, um Änderungen zu erhalten.

SignatureDescription
RelationshipsManager(package: OpcPackage, source_part: std::string_view)Construct a relationships manager for the given part. Empty string for root relationships (_rels/.rels).
get_relationship(rel_id: std::string_view)std::optional<Relationship>Get a relationship by ID.
get_relationships_by_type(type: std::string_view)std::vector<Relationship>Get all relationships filtered by type.
get_all_relationships()std::vector<Relationship>Get all relationships.
add_relationship(rel_type: std::string_view, target: std::string_view, rel_id: std::string_view, target_mode: std::optional<std::string_view>)std::stringAdd a new relationship.
remove_relationship(rel_id: std::string_view)boolRemove a relationship by ID.
save()Manages the .rels file associated with a given OPC part. Loads existing relationships on construction and provides methods to
get_rels_part_name(source_part: std::string_view)std::stringCompute the .rels part name for any given part path. Examples: "" -> “_rels/.rels” “ppt/presentation.xml” -> “ppt/_rels/presentation.xml.rels” “ppt/slides/slide1.xml” -> “ppt/slides/_rels/slide1.xml.rels”
part_name()std::stringGet the .rels file part name.
 Deutsch