added stdPr and stdContent to table of contents

This commit is contained in:
Sergio Mendonça
2018-09-19 11:01:07 -03:00
parent baf0f17bd6
commit 7cd8864fb9
6 changed files with 49 additions and 8 deletions

View File

@ -0,0 +1,12 @@
import { Paragraph } from "file/paragraph";
import { XmlComponent } from "file/xml-components";
export class StdContent extends XmlComponent {
constructor() {
super("w:stdContent");
}
public addGeneratedContent(paragraph: Paragraph): void {
this.root.splice(this.root.length - 1, 0, paragraph);
}
}