Files
docx-js/ts/styles/formatting/run.ts
2016-05-07 20:17:18 +01:00

41 lines
751 B
TypeScript

import {XmlComponent, Attributes} from "../../docx/xml-components";
export class Bold extends XmlComponent {
constructor() {
super("w:b");
this.root.push(new Attributes({
val: true
}));
}
}
export class Italics extends XmlComponent {
constructor() {
super("w:i");
this.root.push(new Attributes({
val: true
}));
}
}
export class Underline extends XmlComponent {
constructor() {
super("w:u");
this.root.push(new Attributes({
val: true
}));
}
}
export class Caps extends XmlComponent {
constructor() {
super("w:u");
this.root.push(new Attributes({
val: true
}));
}
}