2022-06-26 23:26:42 +01:00
|
|
|
import { XmlAttributeComponent, XmlComponent } from "@file/xml-components";
|
2017-03-10 14:30:32 +01:00
|
|
|
|
2017-07-07 14:31:08 +01:00
|
|
|
export interface ILatentStyleExceptionAttributesProperties {
|
2018-11-02 02:51:57 +00:00
|
|
|
readonly name?: string;
|
|
|
|
readonly uiPriority?: string;
|
|
|
|
readonly qFormat?: string;
|
|
|
|
readonly semiHidden?: string;
|
|
|
|
readonly unhideWhenUsed?: string;
|
2017-03-10 14:30:32 +01:00
|
|
|
}
|
|
|
|
|
2017-07-07 14:31:08 +01:00
|
|
|
export class LatentStyleExceptionAttributes extends XmlAttributeComponent<ILatentStyleExceptionAttributesProperties> {
|
2018-11-02 02:51:57 +00:00
|
|
|
protected readonly xmlKeys = {
|
2017-03-10 14:30:32 +01:00
|
|
|
name: "w:name",
|
|
|
|
uiPriority: "w:uiPriority",
|
|
|
|
qFormat: "w:qFormat",
|
|
|
|
semiHidden: "w:semiHidden",
|
|
|
|
unhideWhenUsed: "w:unhideWhenUsed",
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export class LatentStyleException extends XmlComponent {
|
2022-08-31 07:52:27 +01:00
|
|
|
public constructor(attributes: ILatentStyleExceptionAttributesProperties) {
|
2017-03-10 14:30:32 +01:00
|
|
|
super("w:lsdException");
|
|
|
|
this.root.push(new LatentStyleExceptionAttributes(attributes));
|
|
|
|
}
|
|
|
|
}
|