2017-03-09 09:46:12 +01:00
|
|
|
import { XmlAttributeComponent, XmlComponent } from "../xml-components";
|
2016-05-21 00:02:46 +01:00
|
|
|
|
2017-03-10 10:42:24 +01:00
|
|
|
interface IIndentAttributesProperties {
|
2017-03-10 14:30:07 +01:00
|
|
|
left?: number;
|
|
|
|
hanging?: number;
|
2017-09-16 12:31:31 -06:00
|
|
|
firstLine?: number;
|
|
|
|
start?: number;
|
|
|
|
end?: number;
|
2016-05-21 00:02:46 +01:00
|
|
|
}
|
|
|
|
|
2017-03-10 10:42:24 +01:00
|
|
|
class IndentAttributes extends XmlAttributeComponent<IIndentAttributesProperties> {
|
|
|
|
protected xmlKeys = {
|
|
|
|
left: "w:left",
|
|
|
|
hanging: "w:hanging",
|
2017-09-16 12:31:31 -06:00
|
|
|
firstLine: "w:firstLine",
|
|
|
|
start: "w:start",
|
|
|
|
end: "w:end",
|
2017-03-10 10:42:24 +01:00
|
|
|
};
|
2016-05-21 00:02:46 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
export class Indent extends XmlComponent {
|
2016-05-26 15:08:34 +01:00
|
|
|
|
2017-09-16 12:31:31 -06:00
|
|
|
constructor(attrs: object) {
|
2016-05-21 00:02:46 +01:00
|
|
|
super("w:ind");
|
2017-09-16 12:31:31 -06:00
|
|
|
this.root.push(new IndentAttributes(attrs));
|
2016-05-21 00:02:46 +01:00
|
|
|
}
|
2017-03-08 17:15:46 +01:00
|
|
|
}
|