added style components
This commit is contained in:
19
ts/styles/style/index.ts
Normal file
19
ts/styles/style/index.ts
Normal file
@ -0,0 +1,19 @@
|
||||
import {XmlComponent} from "../../docx/xml-components";
|
||||
import {StyleAttributes} from "./attributes";
|
||||
|
||||
export class Style implements XmlComponent {
|
||||
private style: Array<XmlComponent>;
|
||||
|
||||
xmlKeys = {
|
||||
style: "w:style"
|
||||
}
|
||||
|
||||
constructor(attributes: StyleAttributes) {
|
||||
this.style = new Array<XmlComponent>();
|
||||
this.style.push(attributes);
|
||||
}
|
||||
|
||||
push(styleSegment: XmlComponent): void {
|
||||
this.style.push(styleSegment);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user