added style components

This commit is contained in:
Dolan Miu
2016-04-09 04:27:49 +01:00
parent bf928393b5
commit aed59754cc
7 changed files with 68 additions and 5 deletions

View File

@ -0,0 +1,28 @@
import {XmlComponent} from "../../docx/xml-components";
interface StyleAttributesProperties {
type?: string;
styleId?: string;
default?: string;
customStyle?: string;
}
export class StyleAttributes implements XmlComponent {
private _attr: Object;
xmlKeys = {
type: "w:type",
styleId: "w:styleId",
default: "w:default",
customStyle: "w:customStyle"
};
constructor(properties?: StyleAttributesProperties) {
this._attr = properties
if (!properties) {
this._attr = {};
}
this._attr["xmlKeys"] = this.xmlKeys;
}
}