added place holders for style and properties

This commit is contained in:
Dolan Miu
2016-04-01 04:09:24 +01:00
parent 620f275cf5
commit a70e82a7d0
5 changed files with 13 additions and 4 deletions

View File

@ -1,16 +1,19 @@
import {XmlComponent, Attributes} from "../xml-components";
import {Body} from "./body";
import {Paragraph} from "../paragraph";
export class Document {
private document: Array<XmlComponent>;
private body: Body;
constructor() {
this.document = new Array<XmlComponent>();
this.document.push(new Attributes({}));
this.document.push(new Body());
this.body = new Body();
this.document.push(this.body);
}
test() {
return "hello";
addParagraph(paragraph: Paragraph) {
this.body.push(paragraph);
}
}