added more styles

This commit is contained in:
Dolan Miu
2016-05-07 20:17:18 +01:00
parent b86d292c64
commit 7cf6006c1c
3 changed files with 16 additions and 2 deletions

View File

@ -1,6 +1,6 @@
import {XmlComponent, Attributes} from "../xml-components"; import {XmlComponent, Attributes} from "../xml-components";
import {RunProperties} from "./properties"; import {RunProperties} from "./properties";
import {Bold, Italics, Underline} from "./emphasis"; import {Bold, Italics, Underline} from "../../styles/formatting/run";
export class Run extends XmlComponent { export class Run extends XmlComponent {
private properties: RunProperties; private properties: RunProperties;

View File

@ -1,4 +1,4 @@
import {XmlComponent, Attributes} from "../xml-components"; import {XmlComponent, Attributes} from "../../docx/xml-components";
export class Bold extends XmlComponent { export class Bold extends XmlComponent {
@ -29,3 +29,13 @@ export class Underline extends XmlComponent {
})); }));
} }
} }
export class Caps extends XmlComponent {
constructor() {
super("w:u");
this.root.push(new Attributes({
val: true
}));
}
}

View File

@ -12,3 +12,7 @@ export class Style extends XmlComponent {
this.root.push(styleSegment); this.root.push(styleSegment);
} }
} }
export class ParagraphStyle extends XmlComponent {
}