now extends XmlComponent

This commit is contained in:
Dolan Miu
2016-04-09 20:16:35 +01:00
parent 84610bd72f
commit f68a2aff56
33 changed files with 180 additions and 371 deletions

View File

@ -1,18 +1,13 @@
import {XmlComponent} from "../../docx/xml-components";
import {LatentStyleException} from "./exceptions";
export class LatentStyles implements XmlComponent {
private latentStyles: Array<XmlComponent>;
xmlKeys = {
latentStyles: "w:latentStyles"
}
export class LatentStyles extends XmlComponent {
constructor() {
this.latentStyles = new Array<XmlComponent>();
super("w:latentStyles");
}
push(latentException: LatentStyleException): void {
this.latentStyles.push(latentException);
this.root.push(latentException);
}
}