Files
docx-js/ts/styles/style/index.ts

19 lines
479 B
TypeScript
Raw Normal View History

2016-04-09 04:27:49 +01:00
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);
}
}