Files
docx-js/ts/docx/run/emphasis.ts

46 lines
817 B
TypeScript
Raw Normal View History

2016-03-30 04:30:58 +01:00
import {XmlComponent, Attributes} from "../xml-components";
2016-04-03 01:44:18 +01:00
export class Bold implements XmlComponent {
2016-03-30 04:30:58 +01:00
private b: Array<XmlComponent>;
2016-04-03 01:44:18 +01:00
xmlKeys = {
b: 'w:b'
}
2016-03-30 04:30:58 +01:00
constructor() {
this.b = new Array<XmlComponent>();
this.b.push(new Attributes({
val: true
}));
}
}
export class Italics {
private i: Array<XmlComponent>;
2016-04-03 01:44:18 +01:00
xmlKeys = {
i: 'w:i'
}
2016-03-30 04:30:58 +01:00
constructor() {
this.i = new Array<XmlComponent>();
this.i.push(new Attributes({
val: true
}));
}
}
export class Underline {
private u: Array<XmlComponent>;
2016-04-03 01:44:18 +01:00
xmlKeys = {
u: 'w:u'
}
2016-03-30 04:30:58 +01:00
constructor() {
this.u = new Array<XmlComponent>();
this.u.push(new Attributes({
val: true
}));
}
}