added xmlKeys to xmlcomponent

This commit is contained in:
Dolan Miu
2016-04-03 01:44:18 +01:00
parent a70e82a7d0
commit 69edfcc0c9
24 changed files with 137 additions and 59 deletions

View File

@ -1,8 +1,12 @@
import {XmlComponent, Attributes} from "../xml-components";
export class Bold {
export class Bold implements XmlComponent {
private b: Array<XmlComponent>;
xmlKeys = {
b: 'w:b'
}
constructor() {
this.b = new Array<XmlComponent>();
this.b.push(new Attributes({
@ -13,7 +17,11 @@ export class Bold {
export class Italics {
private i: Array<XmlComponent>;
xmlKeys = {
i: 'w:i'
}
constructor() {
this.i = new Array<XmlComponent>();
this.i.push(new Attributes({
@ -24,7 +32,11 @@ export class Italics {
export class Underline {
private u: Array<XmlComponent>;
xmlKeys = {
u: 'w:u'
}
constructor() {
this.u = new Array<XmlComponent>();
this.u.push(new Attributes({