added styles
This commit is contained in:
30
ts/styles/latent-styles/exceptions/attributes.ts
Normal file
30
ts/styles/latent-styles/exceptions/attributes.ts
Normal file
@ -0,0 +1,30 @@
|
||||
import {XmlComponent} from "../../../docx/xml-components";
|
||||
|
||||
interface LatentStyleExceptionAttributesProperties {
|
||||
name?: string;
|
||||
uiPriority?: string,
|
||||
qFormat?: string,
|
||||
semiHidden?: string,
|
||||
unhideWhenUsed?: string
|
||||
}
|
||||
|
||||
export class LatentStyleExceptionAttributes implements XmlComponent {
|
||||
private _attr: Object;
|
||||
|
||||
xmlKeys = {
|
||||
name: "w:name",
|
||||
uiPriority: "w:uiPriority",
|
||||
qFormat: "w:qFormat",
|
||||
semiHidden: "w:semiHidden",
|
||||
unhideWhenUsed: "w:unhideWhenUsed"
|
||||
};
|
||||
|
||||
constructor(properties?: LatentStyleExceptionAttributesProperties) {
|
||||
this._attr = properties
|
||||
|
||||
if (!properties) {
|
||||
this._attr = {};
|
||||
}
|
||||
this._attr["xmlKeys"] = this.xmlKeys;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user