ddn.odf.container.asset
ODF package asset and embedded object handling.
Provides package-level abstractions for binary and XML streams within an ODF ZIP container. Supports pictures, thumbnails, embedded objects, scripts, and arbitrary binary payloads at a preservation level.
Types 3
Classification of an asset within an ODF package.
Each member corresponds to a well-known ODF path convention (pictures, thumbnails, embedded objects, scripts, etc.).
Describes a single binary or XML stream inside an ODF package.
Holds the path, MIME type, classification, and preservation flags needed to handle the entry during read-modify-write cycles.
string fullPathstring mediaTypeOdfAssetKind kindbool compressionEnabledbool preservationRequiredbool isThumbnail() @property const @safe pure nothrow @nogcReturns `true` if this asset is a thumbnail.bool isEmbeddedObject() @property const @safe pure nothrow @nogcReturns `true` if this asset is an embedded object or embedded package.bool isScript() @property const @safe pure nothrow @nogcReturns `true` if this asset is a macro script.bool isDirectory() @property const @safe pure nothrow @nogcReturns `true` if this asset is a directory entry.OdfAssetKind classifyKind(string path, string mediaType) @safe pure nothrowDetermines the asset kind from its path and MIME media type.An indexed collection of OdfAsset entries keyed by path.
Provides lookup, enumeration, and filtering by OdfAssetKind. Duplicates (same path) are silently skipped on insertion.
bool contains(string path) const @safe pure nothrow @nogcChecks whether an asset with the given path exists.const(OdfAsset) * get(string path) const @safe pure nothrowRetrieves a pointer to the asset at the given path.void add(string path, string mediaType)Adds an asset for the given path and media type.void addFromManifest(ManifestModel manifest)Populates the index from all entries in a manifest model.this()Constructs an empty asset index.