added more styles
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
import {XmlComponent, Attributes} from "../xml-components";
|
||||
import {RunProperties} from "./properties";
|
||||
import {Bold, Italics, Underline} from "./emphasis";
|
||||
import {Bold, Italics, Underline} from "../../styles/formatting/run";
|
||||
|
||||
export class Run extends XmlComponent {
|
||||
private properties: RunProperties;
|
||||
|
@ -1,4 +1,4 @@
|
||||
import {XmlComponent, Attributes} from "../xml-components";
|
||||
import {XmlComponent, Attributes} from "../../docx/xml-components";
|
||||
|
||||
export class Bold extends XmlComponent {
|
||||
|
||||
@ -22,6 +22,16 @@ export class Italics extends XmlComponent {
|
||||
|
||||
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({
|
@ -11,4 +11,8 @@ export class Style extends XmlComponent {
|
||||
push(styleSegment: XmlComponent): void {
|
||||
this.root.push(styleSegment);
|
||||
}
|
||||
}
|
||||
|
||||
export class ParagraphStyle extends XmlComponent {
|
||||
|
||||
}
|
Reference in New Issue
Block a user