added more styles
This commit is contained in:
41
ts/styles/formatting/run.ts
Normal file
41
ts/styles/formatting/run.ts
Normal file
@ -0,0 +1,41 @@
|
||||
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
|
||||
}));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user