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

@ -3,6 +3,10 @@ import {XmlComponent, Attributes} from "../xml-components";
class Border implements XmlComponent {
private bottom: Array<XmlComponent>;
xmlKeys = {
bottom: 'w:bottom'
}
constructor() {
this.bottom = new Array<XmlComponent>();
this.bottom.push(new Attributes({
@ -14,9 +18,13 @@ class Border implements XmlComponent {
}
}
export class ThematicBreak {
export class ThematicBreak implements XmlComponent {
private pBdr: Array<XmlComponent>;
xmlKeys = {
pBdr: 'w:pBdr'
}
constructor() {
this.pBdr = new Array<XmlComponent>();
this.pBdr.push(new Border());