Files
docx-js/src/file/styles/latent-styles/exceptions.ts
2022-08-31 07:52:27 +01:00

27 lines
890 B
TypeScript

import { XmlAttributeComponent, XmlComponent } from "@file/xml-components";
export interface ILatentStyleExceptionAttributesProperties {
readonly name?: string;
readonly uiPriority?: string;
readonly qFormat?: string;
readonly semiHidden?: string;
readonly unhideWhenUsed?: string;
}
export class LatentStyleExceptionAttributes extends XmlAttributeComponent<ILatentStyleExceptionAttributesProperties> {
protected readonly xmlKeys = {
name: "w:name",
uiPriority: "w:uiPriority",
qFormat: "w:qFormat",
semiHidden: "w:semiHidden",
unhideWhenUsed: "w:unhideWhenUsed",
};
}
export class LatentStyleException extends XmlComponent {
public constructor(attributes: ILatentStyleExceptionAttributesProperties) {
super("w:lsdException");
this.root.push(new LatentStyleExceptionAttributes(attributes));
}
}