2016-04-09 04:27:49 +01:00
|
|
|
import {XmlComponent} from "../../docx/xml-components";
|
|
|
|
|
|
|
|
interface StyleAttributesProperties {
|
|
|
|
type?: string;
|
|
|
|
styleId?: string;
|
|
|
|
default?: string;
|
|
|
|
customStyle?: string;
|
|
|
|
}
|
|
|
|
|
2016-04-09 20:16:35 +01:00
|
|
|
export class StyleAttributes extends XmlComponent {
|
2016-04-09 04:27:49 +01:00
|
|
|
private _attr: Object;
|
|
|
|
|
|
|
|
xmlKeys = {
|
|
|
|
type: "w:type",
|
|
|
|
styleId: "w:styleId",
|
|
|
|
default: "w:default",
|
|
|
|
customStyle: "w:customStyle"
|
|
|
|
};
|
|
|
|
|
|
|
|
constructor(properties?: StyleAttributesProperties) {
|
2016-04-09 20:16:35 +01:00
|
|
|
super("_attr");
|
2016-04-09 04:27:49 +01:00
|
|
|
this._attr = properties
|
|
|
|
|
|
|
|
if (!properties) {
|
|
|
|
this._attr = {};
|
|
|
|
}
|
|
|
|
this._attr["xmlKeys"] = this.xmlKeys;
|
|
|
|
}
|
|
|
|
}
|