2018-09-03 10:54:53 -03:00
|
|
|
import { XmlAttributeComponent, XmlComponent } from "file/xml-components";
|
|
|
|
|
2018-09-21 10:26:28 -03:00
|
|
|
class FidCharAttrs extends XmlAttributeComponent<{ type: "begin" | "end" | "separate"; dirty?: boolean }> {
|
|
|
|
protected xmlKeys = { type: "w:fldCharType", dirty: "w:dirty" };
|
2018-09-03 10:54:53 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
export class Begin extends XmlComponent {
|
2018-09-21 10:26:28 -03:00
|
|
|
constructor(dirty?: boolean) {
|
2018-09-03 10:54:53 -03:00
|
|
|
super("w:fldChar");
|
2018-09-21 10:26:28 -03:00
|
|
|
this.root.push(new FidCharAttrs({ type: "begin", dirty }));
|
2018-09-03 10:54:53 -03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export class Separate extends XmlComponent {
|
2018-09-21 10:26:28 -03:00
|
|
|
constructor(dirty?: boolean) {
|
2018-09-03 10:54:53 -03:00
|
|
|
super("w:fldChar");
|
2018-09-21 10:26:28 -03:00
|
|
|
this.root.push(new FidCharAttrs({ type: "separate", dirty }));
|
2018-09-03 10:54:53 -03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export class End extends XmlComponent {
|
2018-09-21 10:26:28 -03:00
|
|
|
constructor(dirty?: boolean) {
|
2018-09-03 10:54:53 -03:00
|
|
|
super("w:fldChar");
|
2018-09-21 10:26:28 -03:00
|
|
|
this.root.push(new FidCharAttrs({ type: "end", dirty }));
|
2018-09-03 10:54:53 -03:00
|
|
|
}
|
|
|
|
}
|