Files
docx-js/src/file/track-revision/track-revision-components/deleted-page-number.ts

28 lines
874 B
TypeScript
Raw Normal View History

import { TextAttributes } from "@file/paragraph/run/text-attributes";
2022-10-29 03:10:29 +01:00
import { SpaceType } from "@file/shared";
import { XmlComponent } from "@file/xml-components";
export class DeletedPage extends XmlComponent {
2022-08-31 07:52:27 +01:00
public constructor() {
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() {
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() {
super("w:delInstrText");
this.root.push(new TextAttributes({ space: SpaceType.PRESERVE }));
this.root.push("SECTIONPAGES");
}
}