2017-12-30 20:25:16 +00: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 {
|
|
|
|
constructor(attributes: ILatentStyleExceptionAttributesProperties) {
|
|
|
|
super("w:lsdException");
|
|
|
|
this.root.push(new LatentStyleExceptionAttributes(attributes));
|
|
|
|
}
|
|
|
|
}
|