2017-12-30 20:25:16 +00:00
|
|
|
import { XmlComponent } from "file/xml-components";
|
2018-01-24 00:01:38 +00:00
|
|
|
import { SectionProperties } from "./section-properties/section-properties";
|
2017-09-19 15:39:14 +01:00
|
|
|
|
|
|
|
export class Body extends XmlComponent {
|
|
|
|
constructor() {
|
|
|
|
super("w:body");
|
|
|
|
}
|
|
|
|
|
|
|
|
public push(component: XmlComponent): void {
|
|
|
|
this.root.push(component);
|
2018-01-24 00:01:38 +00:00
|
|
|
|
|
|
|
this.root.push(
|
|
|
|
new SectionProperties({
|
|
|
|
width: 11906,
|
|
|
|
height: 16838,
|
|
|
|
top: 1440,
|
|
|
|
right: 1440,
|
|
|
|
bottom: 1440,
|
|
|
|
left: 1440,
|
|
|
|
header: 708,
|
|
|
|
footer: 708,
|
|
|
|
gutter: 0,
|
|
|
|
space: 708,
|
|
|
|
linePitch: 360,
|
|
|
|
}),
|
|
|
|
);
|
2017-09-19 15:39:14 +01:00
|
|
|
}
|
|
|
|
}
|