2016-05-07 20:17:18 +01:00
|
|
|
import {XmlComponent, Attributes} from "../../docx/xml-components";
|
2016-03-30 04:30:58 +01:00
|
|
|
|
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-05-07 20:40:18 +01:00
|
|
|
// needs work. add more types of underline
|
2016-04-09 20:16:35 +01:00
|
|
|
export class Underline extends XmlComponent {
|
2016-04-03 01:44:18 +01:00
|
|
|
|
2016-05-07 20:17:18 +01:00
|
|
|
constructor() {
|
|
|
|
super("w:u");
|
|
|
|
this.root.push(new Attributes({
|
|
|
|
val: true
|
|
|
|
}));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export class Caps extends XmlComponent {
|
|
|
|
|
2016-03-30 04:30:58 +01:00
|
|
|
constructor() {
|
2016-05-07 20:40:18 +01:00
|
|
|
super("w:caps");
|
|
|
|
this.root.push(new Attributes({
|
|
|
|
val: true
|
|
|
|
}));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export class Color extends XmlComponent {
|
|
|
|
|
|
|
|
constructor(color: string) {
|
|
|
|
super("w:color");
|
|
|
|
this.root.push(new Attributes({
|
|
|
|
val: color
|
|
|
|
}));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export class DoubleStrike extends XmlComponent {
|
|
|
|
|
|
|
|
constructor() {
|
|
|
|
super("w:dstrike");
|
|
|
|
this.root.push(new Attributes({
|
|
|
|
val: true
|
|
|
|
}));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export class Emboss extends XmlComponent {
|
|
|
|
|
|
|
|
constructor() {
|
|
|
|
super("w:emboss");
|
|
|
|
this.root.push(new Attributes({
|
|
|
|
val: true
|
|
|
|
}));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export class Imprint extends XmlComponent {
|
|
|
|
|
|
|
|
constructor() {
|
|
|
|
super("w:imprint");
|
|
|
|
this.root.push(new Attributes({
|
|
|
|
val: true
|
|
|
|
}));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export class Shadow extends XmlComponent {
|
|
|
|
|
|
|
|
constructor() {
|
|
|
|
super("w:shadow");
|
|
|
|
this.root.push(new Attributes({
|
|
|
|
val: true
|
|
|
|
}));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export class SmallCaps extends XmlComponent {
|
|
|
|
|
|
|
|
constructor() {
|
|
|
|
super("w:smallCaps");
|
|
|
|
this.root.push(new Attributes({
|
|
|
|
val: true
|
|
|
|
}));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export class Strike extends XmlComponent {
|
|
|
|
|
|
|
|
constructor() {
|
|
|
|
super("w:strike");
|
2016-04-09 20:16:35 +01:00
|
|
|
this.root.push(new Attributes({
|
2016-03-30 04:30:58 +01:00
|
|
|
val: true
|
|
|
|
}));
|
|
|
|
}
|
2016-05-07 20:40:18 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
export class Size extends XmlComponent {
|
|
|
|
|
|
|
|
constructor(size: number) {
|
|
|
|
super("w:sz");
|
|
|
|
this.root.push(new Attributes({
|
|
|
|
val: size
|
|
|
|
}));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// needs work
|
|
|
|
export class VerticalAlign extends XmlComponent {
|
|
|
|
|
|
|
|
constructor() {
|
|
|
|
super("w:vertAlign");
|
|
|
|
this.root.push(new Attributes({
|
|
|
|
val: "superscript"
|
|
|
|
}));
|
|
|
|
}
|
2016-03-30 04:30:58 +01:00
|
|
|
}
|