now extends XmlComponent
This commit is contained in:
@ -4,23 +4,18 @@ import {PageMargin} from "./page-margin";
|
||||
import {Columns} from "./columns";
|
||||
import {DocumentGrid} from "./doc-grid";
|
||||
|
||||
export class SectionProperties implements XmlComponent {
|
||||
private sectPr: Array<XmlComponent>;
|
||||
|
||||
xmlKeys = {
|
||||
sectPr: 'w:sectPr'
|
||||
}
|
||||
export class SectionProperties extends XmlComponent {
|
||||
|
||||
constructor() {
|
||||
this.sectPr = new Array<XmlComponent>();
|
||||
this.sectPr.push(new Attributes({
|
||||
super("w:sectPr");
|
||||
this.root.push(new Attributes({
|
||||
rsidR: "00B64E8F",
|
||||
rsidRPr: "00D842E4",
|
||||
rsidSect: "000A6AD0"
|
||||
}));
|
||||
this.sectPr.push(new PageSize());
|
||||
this.sectPr.push(new PageMargin());
|
||||
this.sectPr.push(new Columns());
|
||||
this.sectPr.push(new DocumentGrid());
|
||||
this.root.push(new PageSize());
|
||||
this.root.push(new PageMargin());
|
||||
this.root.push(new Columns());
|
||||
this.root.push(new DocumentGrid());
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user