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

26 lines
770 B
TypeScript
Raw Normal View History

2016-03-31 23:01:20 +01:00
import {XmlComponent, Attributes} from "../../xml-components";
2016-04-06 01:08:53 +01:00
import {PageSize} from "./page-size";
import {PageMargin} from "./page-margin";
import {Columns} from "./columns";
import {DocumentGrid} from "./doc-grid";
2016-03-31 23:01:20 +01:00
2016-04-03 01:44:18 +01:00
export class SectionProperties implements XmlComponent {
2016-03-31 23:01:20 +01:00
private sectPr: Array<XmlComponent>;
2016-04-06 01:08:53 +01:00
2016-04-03 01:44:18 +01:00
xmlKeys = {
2016-04-05 01:49:12 +01:00
sectPr: 'w:sectPr'
2016-04-03 01:44:18 +01:00
}
2016-04-06 01:08:53 +01:00
2016-03-31 23:01:20 +01:00
constructor() {
this.sectPr = new Array<XmlComponent>();
this.sectPr.push(new Attributes({
rsidR: "00B64E8F",
rsidRPr: "00D842E4",
rsidSect: "000A6AD0"
}));
2016-04-06 01:08:53 +01:00
this.sectPr.push(new PageSize());
this.sectPr.push(new PageMargin());
this.sectPr.push(new Columns());
this.sectPr.push(new DocumentGrid());
2016-03-31 23:01:20 +01:00
}
}