2017-03-09 09:46:12 +01:00
|
|
|
import { XmlAttributeComponent, XmlComponent } from "../xml-components";
|
2016-05-21 00:02:46 +01:00
|
|
|
|
|
|
|
interface IndentAttributesProperties {
|
2016-05-26 15:08:34 +01:00
|
|
|
left: number;
|
|
|
|
hanging: number;
|
2016-05-21 00:02:46 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
class IndentAttributes extends XmlAttributeComponent {
|
2016-05-26 15:08:34 +01:00
|
|
|
|
2016-05-21 00:02:46 +01:00
|
|
|
constructor(properties: IndentAttributesProperties) {
|
|
|
|
super({
|
|
|
|
left: "w:left",
|
2017-03-08 17:15:46 +01:00
|
|
|
hanging: "w:hanging",
|
2016-05-21 00:02:46 +01:00
|
|
|
}, properties);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export class Indent extends XmlComponent {
|
2016-05-26 15:08:34 +01:00
|
|
|
|
2017-03-09 09:18:17 +01:00
|
|
|
constructor(left: number, hanging?: number) {
|
2016-05-21 00:02:46 +01:00
|
|
|
super("w:ind");
|
|
|
|
this.root.push(new IndentAttributes({
|
|
|
|
left: left,
|
2017-03-08 17:15:46 +01:00
|
|
|
hanging: hanging,
|
2016-05-21 00:02:46 +01:00
|
|
|
}));
|
|
|
|
}
|
2017-03-08 17:15:46 +01:00
|
|
|
}
|