2016-04-09 04:27:49 +01:00
|
|
|
import {XmlComponent} from "../../docx/xml-components";
|
|
|
|
import {StyleAttributes} from "./attributes";
|
|
|
|
|
2016-04-09 20:16:35 +01:00
|
|
|
export class Style extends XmlComponent {
|
2016-04-09 04:27:49 +01:00
|
|
|
|
|
|
|
constructor(attributes: StyleAttributes) {
|
2016-04-09 20:16:35 +01:00
|
|
|
super("w:style");
|
|
|
|
this.root.push(attributes);
|
2016-04-09 04:27:49 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
push(styleSegment: XmlComponent): void {
|
2016-04-09 20:16:35 +01:00
|
|
|
this.root.push(styleSegment);
|
2016-04-09 04:27:49 +01:00
|
|
|
}
|
|
|
|
}
|