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

@ -1,18 +1,13 @@
import {XmlComponent, Attributes} from "../xml-components";
export class ParagraphProperties implements XmlComponent {
private pPr: Array<XmlComponent>;
xmlKeys = {
pPr: 'w:rPr'
}
export class ParagraphProperties extends XmlComponent {
constructor() {
this.pPr = new Array<XmlComponent>();
this.pPr.push(new Attributes());
super("w:rPr");
this.root.push(new Attributes());
}
push(item: XmlComponent): void {
this.pPr.push(item);
this.root.push(item);
}
}