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

@ -8,7 +8,7 @@ interface LatentStyleExceptionAttributesProperties {
unhideWhenUsed?: string
}
export class LatentStyleExceptionAttributes implements XmlComponent {
export class LatentStyleExceptionAttributes extends XmlComponent {
private _attr: Object;
xmlKeys = {
@ -20,6 +20,7 @@ export class LatentStyleExceptionAttributes implements XmlComponent {
};
constructor(properties?: LatentStyleExceptionAttributesProperties) {
super("_attr");
this._attr = properties
if (!properties) {

View File

@ -1,15 +1,10 @@
import {XmlComponent} from "../../../docx/xml-components";
import {LatentStyleExceptionAttributes} from "./attributes";
export class LatentStyleException implements XmlComponent {
private lsdException: Array<XmlComponent>;
xmlKeys = {
lsdException: "w:lsdException"
}
export class LatentStyleException extends XmlComponent {
constructor(attributes: LatentStyleExceptionAttributes) {
this.lsdException = new Array<XmlComponent>();
this.lsdException.push(attributes);
super("w:lsdException");
this.root.push(attributes);
}
}