2017-12-30 20:25:16 +00:00
|
|
|
import { XmlComponent } from "file/xml-components";
|
2018-01-24 13:09:34 +00:00
|
|
|
import { SectionProperties, SectionPropertiesOptions } from "./section-properties/section-properties";
|
2017-09-19 15:39:14 +01:00
|
|
|
|
|
|
|
export class Body extends XmlComponent {
|
2018-01-24 13:09:34 +00:00
|
|
|
constructor(sectionPropertiesOptions?: SectionPropertiesOptions) {
|
2017-09-19 15:39:14 +01:00
|
|
|
super("w:body");
|
2018-01-25 01:21:03 +00:00
|
|
|
|
|
|
|
this.root.push(
|
|
|
|
new SectionProperties(sectionPropertiesOptions),
|
|
|
|
);
|
2017-09-19 15:39:14 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public push(component: XmlComponent): void {
|
|
|
|
this.root.push(component);
|
|
|
|
}
|
|
|
|
}
|