28 lines
854 B
TypeScript
28 lines
854 B
TypeScript
import { TextAttributes } from "file/paragraph/run/text-attributes";
|
|
import { SpaceType } from "file/space-type";
|
|
import { XmlComponent } from "file/xml-components";
|
|
|
|
export class DeletedPage extends XmlComponent {
|
|
constructor() {
|
|
super("w:delInstrText");
|
|
this.root.push(new TextAttributes({ space: SpaceType.PRESERVE }));
|
|
this.root.push("PAGE");
|
|
}
|
|
}
|
|
|
|
export class DeletedNumberOfPages extends XmlComponent {
|
|
constructor() {
|
|
super("w:delInstrText");
|
|
this.root.push(new TextAttributes({ space: SpaceType.PRESERVE }));
|
|
this.root.push("NUMPAGES");
|
|
}
|
|
}
|
|
|
|
export class DeletedNumberOfPagesSection extends XmlComponent {
|
|
constructor() {
|
|
super("w:delInstrText");
|
|
this.root.push(new TextAttributes({ space: SpaceType.PRESERVE }));
|
|
this.root.push("SECTIONPAGES");
|
|
}
|
|
}
|