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

32 lines
820 B
TypeScript
Raw Normal View History

2016-04-09 02:04:53 +01:00
import {XmlComponent} from "../../../docx/xml-components";
2017-03-09 09:45:01 +01:00
interface ILatentStyleExceptionAttributesProperties {
2016-04-09 02:04:53 +01:00
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 {
2017-03-09 09:45:01 +01:00
private _attr: ILatentStyleExceptionAttributesProperties;
2016-04-09 02:04:53 +01:00
2017-03-09 09:45:01 +01:00
private xmlKeys = {
2016-04-09 02:04:53 +01:00
name: "w:name",
uiPriority: "w:uiPriority",
qFormat: "w:qFormat",
semiHidden: "w:semiHidden",
2017-03-09 09:45:01 +01:00
unhideWhenUsed: "w:unhideWhenUsed",
2016-04-09 02:04:53 +01:00
};
2017-03-09 09:45:01 +01:00
constructor(properties?: ILatentStyleExceptionAttributesProperties) {
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 = {};
}
2017-03-09 09:45:01 +01:00
//this._attr.xmlKeys = this.xmlKeys;
2016-04-09 02:04:53 +01:00
}
2017-03-09 09:45:01 +01:00
}