added styles
This commit is contained in:
17
ts/styles/defaults/index.ts
Normal file
17
ts/styles/defaults/index.ts
Normal file
@ -0,0 +1,17 @@
|
||||
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"
|
||||
}
|
||||
|
||||
constructor() {
|
||||
this.docDefaults = new Array<XmlComponent>();
|
||||
this.docDefaults.push(new RunPropertiesDefaults());
|
||||
this.docDefaults.push(new ParagraphPropertiesDefaults());
|
||||
}
|
||||
}
|
15
ts/styles/defaults/paragraph-properties.ts
Normal file
15
ts/styles/defaults/paragraph-properties.ts
Normal file
@ -0,0 +1,15 @@
|
||||
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"
|
||||
}
|
||||
|
||||
constructor() {
|
||||
this.pPrDefault = new Array<XmlComponent>();
|
||||
this.pPrDefault.push(new ParagraphProperties());
|
||||
}
|
||||
}
|
15
ts/styles/defaults/run-properties.ts
Normal file
15
ts/styles/defaults/run-properties.ts
Normal file
@ -0,0 +1,15 @@
|
||||
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"
|
||||
}
|
||||
|
||||
constructor() {
|
||||
this.rPrDefault = new Array<XmlComponent>();
|
||||
this.rPrDefault.push(new RunProperties());
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user