added place holders for style and properties
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user