ddn.odf.settings
ODF document settings support.
Parses and serializes the settings.xml stream inside an ODF package. Represents configuration item sets, typed values, view settings, and preserves unknown settings losslessly.
enum ConfigItemType
Types 4
enumConfigItemType
Discriminant for the ODF config:type attribute.
STRING
INT
DOUBLE
BOOLEAN
LONG
structConfigItem
A single <config:config-item> entry with name, raw value, and declared type.
Methods
ConfigItemType parseType(string t) @safe pure nothrowMaps an ODF type string to a ConfigItemType value.structConfigItemSet
A <config:config-item-set> containing items and optional nested sets.
structOdfSettings
Top-level representation of settings.xml inside an ODF package.
Functions 8
fn
string serializeSettings(const ref OdfSettings settings)Serializes settings to an XML string for `settings.xml`.fn
const(ConfigItemSet) * findItemSet(const ref OdfSettings settings,
string name)Finds a config item set by name.fn
const(ConfigItem) * findItem(const ref OdfSettings settings,
string setName, string itemName)Finds a config item by set name and item name.fn
void parseSettingsElement(XmlElement settingsElem,
ref OdfSettings settings)fn
void serializeItemSet(XmlElement parent, ref const ConfigItemSet set)