2016-03-31 23:01:20 +01:00
|
|
|
import {XmlComponent, Attributes} from "../../xml-components";
|
|
|
|
import {SectionProperties} from "./section-properties";
|
|
|
|
|
2016-04-09 20:16:35 +01:00
|
|
|
export class Body extends XmlComponent {
|
2016-04-03 01:44:18 +01:00
|
|
|
|
2016-03-31 23:01:20 +01:00
|
|
|
constructor() {
|
2016-04-09 20:16:35 +01:00
|
|
|
super("w:body");
|
2016-05-26 15:08:34 +01:00
|
|
|
// this.root.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-05-26 15:08:34 +01:00
|
|
|
// this.root.splice(this.body.length - 1, 0, component);
|
2016-04-09 20:16:35 +01:00
|
|
|
this.root.push(component);
|
2016-04-01 04:09:24 +01:00
|
|
|
}
|
2016-03-31 23:01:20 +01:00
|
|
|
}
|