now extends XmlComponent
This commit is contained in:
@ -2,16 +2,11 @@ import {XmlComponent} from "../../docx/xml-components";
|
||||
import {ParagraphPropertiesDefaults} from "./paragraph-properties";
|
||||
import {RunPropertiesDefaults} from "./run-properties";
|
||||
|
||||
export class DocumentDefaults implements XmlComponent {
|
||||
private docDefaults: Array<XmlComponent>;
|
||||
|
||||
xmlKeys = {
|
||||
docDefaults: "w:docDefaults"
|
||||
}
|
||||
export class DocumentDefaults extends XmlComponent {
|
||||
|
||||
constructor() {
|
||||
this.docDefaults = new Array<XmlComponent>();
|
||||
this.docDefaults.push(new RunPropertiesDefaults());
|
||||
this.docDefaults.push(new ParagraphPropertiesDefaults());
|
||||
super("w:docDefaults");
|
||||
this.root.push(new RunPropertiesDefaults());
|
||||
this.root.push(new ParagraphPropertiesDefaults());
|
||||
}
|
||||
}
|
@ -1,15 +1,10 @@
|
||||
import {XmlComponent} from "../../docx/xml-components";
|
||||
import {ParagraphProperties} from "../../docx/paragraph/properties";
|
||||
|
||||
export class ParagraphPropertiesDefaults implements XmlComponent {
|
||||
private pPrDefault: Array<XmlComponent>;
|
||||
|
||||
xmlKeys = {
|
||||
pPrDefault: "w:pPrDefault"
|
||||
}
|
||||
export class ParagraphPropertiesDefaults extends XmlComponent {
|
||||
|
||||
constructor() {
|
||||
this.pPrDefault = new Array<XmlComponent>();
|
||||
this.pPrDefault.push(new ParagraphProperties());
|
||||
super("w:pPrDefault");
|
||||
this.root.push(new ParagraphProperties());
|
||||
}
|
||||
}
|
@ -1,15 +1,10 @@
|
||||
import {XmlComponent} from "../../docx/xml-components";
|
||||
import {RunProperties} from "../../docx/run/properties";
|
||||
|
||||
export class RunPropertiesDefaults implements XmlComponent {
|
||||
private rPrDefault: Array<XmlComponent>;
|
||||
|
||||
xmlKeys = {
|
||||
rPrDefault: "w:rPrDefault"
|
||||
}
|
||||
|
||||
export class RunPropertiesDefaults extends XmlComponent {
|
||||
|
||||
constructor() {
|
||||
this.rPrDefault = new Array<XmlComponent>();
|
||||
this.rPrDefault.push(new RunProperties());
|
||||
super("w:rPrDefault");
|
||||
this.root.push(new RunProperties());
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user