2017-03-08 20:35:26 +00:00
|
|
|
import { Attributes, XmlComponent } from "../xml-components";
|
2016-05-18 17:06:21 +01:00
|
|
|
|
|
|
|
class TabStop extends XmlComponent {
|
|
|
|
|
|
|
|
constructor(tab: Tab) {
|
|
|
|
super("w:tabs");
|
|
|
|
this.root.push(tab);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
class Tab extends XmlComponent {
|
|
|
|
|
2017-03-08 21:40:21 +00:00
|
|
|
constructor(value: string, position: any) {
|
2016-05-18 17:06:21 +01:00
|
|
|
super("w:tab");
|
|
|
|
this.root.push(new Attributes({
|
|
|
|
val: value,
|
2017-03-08 21:40:21 +00:00
|
|
|
pos: position,
|
2016-05-18 17:06:21 +01:00
|
|
|
}));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export class MaxRightTabStop extends TabStop {
|
|
|
|
constructor() {
|
2016-06-10 15:03:44 +01:00
|
|
|
super(new Tab("right", 9026));
|
2016-05-18 17:06:21 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export class LeftTabStop extends TabStop {
|
|
|
|
constructor(position: number) {
|
|
|
|
super(new Tab("left", position));
|
|
|
|
}
|
|
|
|
}
|