2016-07-12 08:25:53 +01:00
|
|
|
import {XmlComponent, Attributes} from "../xml-components";
|
|
|
|
|
|
|
|
abstract class VerticalAlign extends XmlComponent {
|
|
|
|
|
|
|
|
constructor(type: string) {
|
|
|
|
super("w:vertAlign");
|
|
|
|
this.root.push(new Attributes({
|
2016-07-18 19:17:19 +01:00
|
|
|
val: type
|
2016-07-12 08:25:53 +01:00
|
|
|
}));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export class SuperScript extends VerticalAlign {
|
|
|
|
|
|
|
|
constructor() {
|
|
|
|
super("superscript");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export class SubScript extends VerticalAlign {
|
|
|
|
|
|
|
|
constructor() {
|
|
|
|
super("subscript");
|
|
|
|
}
|
|
|
|
}
|