2022-06-26 23:26:42 +01:00
|
|
|
import { TextAttributes } from "@file/paragraph/run/text-attributes";
|
2022-10-29 03:10:29 +01:00
|
|
|
import { SpaceType } from "@file/shared";
|
2022-06-26 23:26:42 +01:00
|
|
|
import { XmlComponent } from "@file/xml-components";
|
2020-10-07 11:44:23 +02:00
|
|
|
|
|
|
|
export class DeletedPage extends XmlComponent {
|
2022-08-31 07:52:27 +01:00
|
|
|
public constructor() {
|
2020-10-07 11:44:23 +02:00
|
|
|
super("w:delInstrText");
|
|
|
|
this.root.push(new TextAttributes({ space: SpaceType.PRESERVE }));
|
|
|
|
this.root.push("PAGE");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export class DeletedNumberOfPages extends XmlComponent {
|
2022-08-31 07:52:27 +01:00
|
|
|
public constructor() {
|
2020-10-07 11:44:23 +02:00
|
|
|
super("w:delInstrText");
|
|
|
|
this.root.push(new TextAttributes({ space: SpaceType.PRESERVE }));
|
|
|
|
this.root.push("NUMPAGES");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export class DeletedNumberOfPagesSection extends XmlComponent {
|
2022-08-31 07:52:27 +01:00
|
|
|
public constructor() {
|
2020-10-07 11:44:23 +02:00
|
|
|
super("w:delInstrText");
|
|
|
|
this.root.push(new TextAttributes({ space: SpaceType.PRESERVE }));
|
|
|
|
this.root.push("SECTIONPAGES");
|
|
|
|
}
|
|
|
|
}
|