Files
docx-js/ts/styles/latent-styles/exceptions/attributes.ts

31 lines
774 B
TypeScript
Raw Normal View History

2016-04-09 02:04:53 +01:00
import {XmlComponent} from "../../../docx/xml-components";
interface LatentStyleExceptionAttributesProperties {
name?: string;
2016-05-26 15:08:34 +01:00
uiPriority?: string;
qFormat?: string;
semiHidden?: string;
unhideWhenUsed?: string;
2016-04-09 02:04:53 +01:00
}
2016-04-09 20:16:35 +01:00
export class LatentStyleExceptionAttributes extends XmlComponent {
2016-04-09 02:04:53 +01:00
private _attr: Object;
xmlKeys = {
name: "w:name",
uiPriority: "w:uiPriority",
qFormat: "w:qFormat",
semiHidden: "w:semiHidden",
unhideWhenUsed: "w:unhideWhenUsed"
};
constructor(properties?: LatentStyleExceptionAttributesProperties) {
2016-04-09 20:16:35 +01:00
super("_attr");
2016-05-26 15:08:34 +01:00
this._attr = properties;
2016-04-09 02:04:53 +01:00
if (!properties) {
this._attr = {};
}
this._attr["xmlKeys"] = this.xmlKeys;
}
}