2017-03-08 20:35:26 +00:00
|
|
|
import { Attributes, XmlComponent } from "../../xml-components";
|
2017-03-08 21:36:09 +00:00
|
|
|
import { SectionProperties } from "./section-properties";
|
2016-03-31 23:01:20 +01:00
|
|
|
|
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
|
|
|
|
2017-03-08 21:36:09 +00:00
|
|
|
public push(component: XmlComponent): void {
|
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
|
|
|
}
|