now extends XmlComponent

This commit is contained in:
Dolan Miu
2016-04-09 20:16:35 +01:00
parent 84610bd72f
commit f68a2aff56
33 changed files with 180 additions and 371 deletions

View File

@ -2,18 +2,14 @@ import {XmlComponent, Attributes} from "../xml-components";
import {RunProperties} from "./properties";
import {Bold, Italics, Underline} from "./emphasis";
export class Run implements XmlComponent {
protected r: Array<XmlComponent>;
export class Run extends XmlComponent {
private properties: RunProperties;
xmlKeys = {
r: 'w:r'
}
constructor() {
this.r = new Array<XmlComponent>();
super("w:r");
this.properties = new RunProperties();
this.r.push(this.properties);
this.root.push(this.properties);
}
bold(): Run {