added more styles

This commit is contained in:
Dolan Miu
2016-05-07 20:17:18 +01:00
parent b86d292c64
commit 7cf6006c1c
3 changed files with 16 additions and 2 deletions

View File

@ -0,0 +1,41 @@
import {XmlComponent, Attributes} from "../../docx/xml-components";
export class Bold extends XmlComponent {
constructor() {
super("w:b");
this.root.push(new Attributes({
val: true
}));
}
}
export class Italics extends XmlComponent {
constructor() {
super("w:i");
this.root.push(new Attributes({
val: true
}));
}
}
export class Underline extends XmlComponent {
constructor() {
super("w:u");
this.root.push(new Attributes({
val: true
}));
}
}
export class Caps extends XmlComponent {
constructor() {
super("w:u");
this.root.push(new Attributes({
val: true
}));
}
}