2016-03-31 23:01:20 +01:00
|
|
|
import {XmlComponent, Attributes} from "../../xml-components";
|
|
|
|
import {SectionProperties} from "./section-properties";
|
|
|
|
|
2016-04-03 01:44:18 +01:00
|
|
|
export class Body implements XmlComponent {
|
2016-03-31 23:01:20 +01:00
|
|
|
private body: Array<XmlComponent>;
|
2016-04-03 01:44:18 +01:00
|
|
|
|
|
|
|
xmlKeys = {
|
|
|
|
body: 'w:body'
|
|
|
|
}
|
|
|
|
|
2016-03-31 23:01:20 +01:00
|
|
|
constructor() {
|
|
|
|
this.body = new Array<XmlComponent>();
|
2016-04-08 23:01:18 +01:00
|
|
|
//this.body.push(new SectionProperties()); not actually needed
|
2016-03-31 23:01:20 +01:00
|
|
|
}
|
2016-04-03 01:44:18 +01:00
|
|
|
|
2016-04-01 04:09:24 +01:00
|
|
|
push(component: XmlComponent) {
|
2016-04-09 04:53:42 +01:00
|
|
|
//this.body.splice(this.body.length - 1, 0, component);
|
|
|
|
this.body.push(component);
|
2016-04-01 04:09:24 +01:00
|
|
|
}
|
2016-03-31 23:01:20 +01:00
|
|
|
}
|