ddn.odf.embedded

ODF embedded object support.

Provides APIs for enumerating, tracking, and accessing embedded ODF objects (charts, spreadsheets, formulas, images, drawings, text) inside host packages. Tracks object relationships between host XML references, package paths, manifest entries, and embedded streams.

Limitations:

  • Object type detection relies on manifest media types; embedded objects without a media type are reported as NONE.
  • The scanner only recognises ./Object <N>/ directories. The ./Embedding <N>/ pattern used for OLE packages is not detected.
  • Typed content access (parsing the sub-document) is not provided by this module; consumers should open the sub-document's content.xml stream from the host package reader.

Types 3

Fields
string name
string packagePath
string mediaType
OdfDocumentType objectType
string styleName
string drawId
string x
string y
string width
string height
Methods
bool isEmpty() const @safe pure nothrow
Fields
string name
string packagePath
string mediaType
string width
string height
Methods
bool isEmpty() const @safe pure nothrow
Fields
EmbeddedObject[] objects
EmbeddedImage[] images
Methods
size_t length() const @safe pure nothrow
bool isEmpty() const @safe pure nothrow

Functions 4

fnOdfDocumentType objectTypeFromPath(string packagePath, string mediaType = "") @safe pure nothrow
fnbool startsWith(string s, string prefix) @safe pure nothrow
fnbool canFind(string s, string needle) @safe pure nothrow