Skip to main content
Module

x/docxml/mod.ts>NumberingXml

TypeScript (component) library for building and parsing a DOCX file
Go to Latest
class NumberingXml
extends XmlFile
import { NumberingXml } from "https://deno.land/x/docxml@5.9.0/mod.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(): Document
add(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[]

Static Methods

fromArchive(archive: Archive, location: string): Promise<NumberingXml>
fromNode(dom: Document, location: string): NumberingXml