2016-03-30 02:55:11 +01:00
|
|
|
import {XmlComponent, Attributes} from "../xml-components";
|
|
|
|
import {Style} from "./style";
|
|
|
|
|
|
|
|
export class NumberProperties implements XmlComponent {
|
|
|
|
private numPr: Array<XmlComponent>;
|
|
|
|
|
2016-04-03 01:44:18 +01:00
|
|
|
xmlKeys = {
|
|
|
|
numPr: 'w:numPr'
|
|
|
|
}
|
|
|
|
|
2016-03-30 02:55:11 +01:00
|
|
|
constructor() {
|
|
|
|
this.numPr = new Array<XmlComponent>();
|
|
|
|
this.numPr.push(new IndentLevel(0));
|
|
|
|
this.numPr.push(new NumberId(1));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export class IndentLevel implements XmlComponent {
|
|
|
|
private ilvl: Array<XmlComponent>;
|
2016-04-03 01:44:18 +01:00
|
|
|
|
|
|
|
xmlKeys = {
|
|
|
|
ilvl: 'w:ilvl'
|
|
|
|
}
|
|
|
|
|
2016-03-30 02:55:11 +01:00
|
|
|
constructor(level: number) {
|
|
|
|
this.ilvl = new Array<XmlComponent>();
|
|
|
|
this.ilvl.push(new Attributes({
|
|
|
|
val: level
|
|
|
|
}));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export class NumberId implements XmlComponent {
|
|
|
|
private ilvl: Array<XmlComponent>;
|
2016-04-03 01:44:18 +01:00
|
|
|
|
|
|
|
xmlKeys = {
|
|
|
|
ilvl: 'w:ilvl'
|
|
|
|
}
|
|
|
|
|
2016-03-30 02:55:11 +01:00
|
|
|
constructor(id: number) {
|
|
|
|
this.ilvl = new Array<XmlComponent>();
|
|
|
|
this.ilvl.push(new Attributes({
|
|
|
|
val: id
|
|
|
|
}));
|
|
|
|
}
|
|
|
|
}
|