now extends XmlComponent
This commit is contained in:
@ -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) {
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user