Files
docx-js/ts/docx/document/body/section-properties.ts

22 lines
656 B
TypeScript
Raw Normal View History

2017-03-08 20:35:26 +00:00
import { Attributes, XmlComponent } from "../../xml-components";
2017-03-08 21:59:27 +00:00
import { Columns } from "./columns";
import { DocumentGrid } from "./doc-grid";
import { PageMargin } from "./page-margin";
import { PageSize } from "./page-size";
2016-03-31 23:01:20 +01:00
2016-04-09 20:16:35 +01:00
export class SectionProperties extends XmlComponent {
2016-04-06 01:08:53 +01:00
2016-03-31 23:01:20 +01:00
constructor() {
2016-04-09 20:16:35 +01:00
super("w:sectPr");
this.root.push(new Attributes({
2016-03-31 23:01:20 +01:00
rsidR: "00B64E8F",
rsidRPr: "00D842E4",
2017-03-08 21:59:27 +00:00
rsidSect: "000A6AD0",
2016-03-31 23:01:20 +01:00
}));
2016-04-09 20:16:35 +01:00
this.root.push(new PageSize());
this.root.push(new PageMargin());
this.root.push(new Columns());
this.root.push(new DocumentGrid());
2016-03-31 23:01:20 +01:00
}
2017-03-08 21:59:27 +00:00
}