class NumberingXml
extends XmlFile
import { NumberingXml } from "https://deno.land/x/docxml@5.15.3/src/files/NumberingXml.ts";
Properties
private
readonly
abstracts: NumberMap<AbstractNumbering>The abstract numbering rules.
Each item correlates with <w:abstractNum>
private
readonly
implementations: NumberMap<ConcreteNumbering>Concrete numbering rules, the ones that are directly associated with zero or more paragraphs.
Each item correlates with <w:num>
Methods
protected
toNode(): Documentadd(abstract: number | AbstractNumberingWithOptionalId): number
Register a concrete implementation of an abstract numbering style and return the concrete identifier. Create the abstract numbering style if the passed argument is an object rather than a reference to an existing abstract.
Not meant for public use.
addAbstract(style: AbstractNumberingWithOptionalId): number
Register a new abstract numberign style and return the identifier.
Not meant for public use.
addImplementation(abstract: number): number
Register a concrete implementation of an abstract numbering style and return the concrete identifier.
getAbstracts(): AbstractNumbering[]
getImplementations(): ConcreteNumbering[]
isEmpty()
Static Methods
fromArchive(archive: Archive, location: string): Promise<NumberingXml>
fromNode(dom: Document, location: string): NumberingXml