added bullet

This commit is contained in:
Dolan Miu
2016-03-30 02:55:11 +01:00
parent 099da3d90c
commit b749e42671
7 changed files with 106 additions and 15 deletions

View File

@ -3,17 +3,9 @@ import {ThematicBreak} from "./border";
import {PageBreak} from "./page-break";
import {TextRun} from "./text-run";
import {ParagraphProperties} from "./properties";
class Style {
private pStyle: Array<XmlComponent>;
constructor(type: string) {
this.pStyle = new Array<XmlComponent>();
this.pStyle.push(new Attributes({
val: type
}));
}
}
import {TabStop} from "../tab-stop";
import {Style} from "./style";
import {NumberProperties} from "./unordered-list";
class Alignment {
private jc: Array<XmlComponent>;
@ -102,4 +94,15 @@ export class Paragraph {
this.properties.push(new PageBreak());
return this;
}
addTabStop(tabStop: TabStop) {
this.properties.push(tabStop);
return this;
}
bullet() {
this.properties.push(new Style("ListParagraph"));
this.properties.push(new NumberProperties());
return this;
}
}