Skip to main content
Module

x/docxml/mod.ts>SettingsXml

TypeScript library for parsing and building a DOCXML file
Go to Latest
class SettingsXml
implements SettingsI
extends XmlFile
import { SettingsXml } from "https://deno.land/x/docxml@5.1.1/mod.ts";

Constructors

new
SettingsXml(
location: string,
relationships?,
settings?: SettingsI,
)

Properties

isTrackChangesEnabled
readonly
relationships: Relationships

Methods

protected
toNode(): Document
get(key: keyof SettingsI): SettingsI[key]

Get a setting.

Get all XmlFile instances related to this one, including self. This helps the system serialize itself back to DOCX fullly. Probably not useful for consumers of the library.

By default only returns the instance itself but no other related instances.

set(key: keyof SettingsI, value: SettingsI[key]): void

Set a setting.

Static Methods

fromArchive(archive: Archive, location: string): Promise<Settings>

Instantiate this class by looking at the DOCX XML for it.