added xmlKeys to xmlcomponent
This commit is contained in:
@ -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({
|
||||
|
Reference in New Issue
Block a user