Files
docx-js/src/file/table-of-contents/table-of-contents.ts

18 lines
689 B
TypeScript
Raw Normal View History

2018-08-31 10:22:40 -03:00
// import { TableOfContentsProperties } from "./properties";
2018-09-03 11:20:36 -03:00
import { Paragraph } from "file/paragraph";
import { Begin, End, Separate } from "file/paragraph/run/field";
import { TableOfContentsInstruction } from "./instruction";
2018-08-21 07:19:46 -03:00
2018-08-31 10:22:40 -03:00
export class TableOfContents extends Paragraph {
// private readonly tocProperties: TableOfContentsProperties;
2018-08-29 12:06:01 -03:00
2018-08-31 10:22:40 -03:00
constructor(/*tocProperties?: TableOfContentsProperties*/) {
super();
// this.tocProperties = tocProperties || new TableOfContentsProperties();
2018-09-03 11:20:36 -03:00
this.root.push(new Begin());
this.root.push(new Separate());
this.root.push(new TableOfContentsInstruction());
this.root.push(new End());
2018-08-29 12:06:01 -03:00
}
}