Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/docxml/src/files/Numbering.ts>Numbering

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

Properties

private
readonly
abstracts: NumberMap<AbstractNumbering>

The abstract numbering rules.

Each item correlates with <w:abstractNum>

private
readonly
concretes: 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.

Not meant for public use.

addAbstract(style: AbstractNumberingWithOptionalId): number

Register a new abstract numberign style and return the identifier.

Not meant for public use.

Static Methods

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