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

31 lines
575 B
TypeScript
Raw Normal View History

2016-03-30 04:30:58 +01:00
import {XmlComponent, Attributes} from "../xml-components";
2016-04-09 20:16:35 +01:00
export class Bold extends XmlComponent {
2016-03-30 04:30:58 +01:00
constructor() {
2016-04-09 20:16:35 +01:00
super("w:b");
this.root.push(new Attributes({
2016-03-30 04:30:58 +01:00
val: true
}));
}
}
2016-04-09 20:16:35 +01:00
export class Italics extends XmlComponent {
2016-04-03 01:44:18 +01:00
2016-03-30 04:30:58 +01:00
constructor() {
2016-04-09 20:16:35 +01:00
super("w:i");
this.root.push(new Attributes({
2016-03-30 04:30:58 +01:00
val: true
}));
}
}
2016-04-09 20:16:35 +01:00
export class Underline extends XmlComponent {
2016-04-03 01:44:18 +01:00
2016-03-30 04:30:58 +01:00
constructor() {
2016-04-09 20:16:35 +01:00
super("w:u");
this.root.push(new Attributes({
2016-03-30 04:30:58 +01:00
val: true
}));
}
}