2016-03-31 23:01:20 +01:00
|
|
|
import {XmlComponent, Attributes} from "../../xml-components";
|
|
|
|
import {SectionProperties} from "./section-properties";
|
|
|
|
import {PageSize} from "./page-size";
|
|
|
|
import {PageMargin} from "./page-margin";
|
|
|
|
import {Columns} from "./columns";
|
|
|
|
import {DocumentGrid} from "./doc-grid";
|
|
|
|
|
|
|
|
export class Body {
|
|
|
|
private body: Array<XmlComponent>;
|
|
|
|
|
|
|
|
constructor() {
|
|
|
|
this.body = new Array<XmlComponent>();
|
|
|
|
this.body.push(new SectionProperties());
|
|
|
|
this.body.push(new PageSize());
|
|
|
|
this.body.push(new PageMargin());
|
|
|
|
this.body.push(new Columns());
|
|
|
|
this.body.push(new DocumentGrid());
|
|
|
|
}
|
2016-04-01 04:09:24 +01:00
|
|
|
|
|
|
|
push(component: XmlComponent) {
|
|
|
|
this.body.push(component);
|
|
|
|
}
|
2016-03-31 23:01:20 +01:00
|
|
|
}
|