now extends XmlComponent

This commit is contained in:
Dolan Miu
2016-04-09 20:16:35 +01:00
parent 84610bd72f
commit f68a2aff56
33 changed files with 180 additions and 371 deletions

View File

@ -2,16 +2,11 @@ import {XmlComponent} from "../../docx/xml-components";
import {ParagraphPropertiesDefaults} from "./paragraph-properties";
import {RunPropertiesDefaults} from "./run-properties";
export class DocumentDefaults implements XmlComponent {
private docDefaults: Array<XmlComponent>;
xmlKeys = {
docDefaults: "w:docDefaults"
}
export class DocumentDefaults extends XmlComponent {
constructor() {
this.docDefaults = new Array<XmlComponent>();
this.docDefaults.push(new RunPropertiesDefaults());
this.docDefaults.push(new ParagraphPropertiesDefaults());
super("w:docDefaults");
this.root.push(new RunPropertiesDefaults());
this.root.push(new ParagraphPropertiesDefaults());
}
}