2017-12-30 20:25:16 +00:00
|
|
|
import { XmlAttributeComponent, XmlComponent } from "file/xml-components";
|
2017-03-12 17:35:15 +01:00
|
|
|
|
2018-01-23 01:33:12 +00:00
|
|
|
class StyleAttributes extends XmlAttributeComponent<{ val: string }> {
|
|
|
|
protected xmlKeys = { val: "w:val" };
|
2017-03-12 17:35:15 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
export class Style extends XmlComponent {
|
|
|
|
constructor(styleId: string) {
|
|
|
|
super("w:rStyle");
|
2018-01-23 01:33:12 +00:00
|
|
|
this.root.push(new StyleAttributes({ val: styleId }));
|
2017-03-12 17:35:15 +01:00
|
|
|
}
|
|
|
|
}
|