added xmlKeys to xmlcomponent

This commit is contained in:
Dolan Miu
2016-04-03 01:44:18 +01:00
parent a70e82a7d0
commit 69edfcc0c9
24 changed files with 137 additions and 59 deletions

View File

@ -5,9 +5,13 @@ import {PageMargin} from "./page-margin";
import {Columns} from "./columns";
import {DocumentGrid} from "./doc-grid";
export class Body {
export class Body implements XmlComponent {
private body: Array<XmlComponent>;
xmlKeys = {
body: 'w:body'
}
constructor() {
this.body = new Array<XmlComponent>();
this.body.push(new SectionProperties());
@ -16,7 +20,7 @@ export class Body {
this.body.push(new Columns());
this.body.push(new DocumentGrid());
}
push(component: XmlComponent) {
this.body.push(component);
}