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";
|
2018-05-12 20:04:54 -04:00
|
|
|
|
2022-06-15 00:07:12 +01:00
|
|
|
import { TextAttributes } from "./text-attributes";
|
2018-05-12 20:04:54 -04:00
|
|
|
|
|
|
|
export class Page extends XmlComponent {
|
2022-08-31 07:52:27 +01:00
|
|
|
public constructor() {
|
2018-05-12 20:04:54 -04:00
|
|
|
super("w:instrText");
|
2018-11-02 02:51:57 +00:00
|
|
|
this.root.push(new TextAttributes({ space: SpaceType.PRESERVE }));
|
2018-05-12 20:04:54 -04:00
|
|
|
this.root.push("PAGE");
|
|
|
|
}
|
|
|
|
}
|
2019-01-15 02:09:38 +00:00
|
|
|
|
|
|
|
export class NumberOfPages extends XmlComponent {
|
2022-08-31 07:52:27 +01:00
|
|
|
public constructor() {
|
2019-01-15 02:09:38 +00:00
|
|
|
super("w:instrText");
|
|
|
|
this.root.push(new TextAttributes({ space: SpaceType.PRESERVE }));
|
|
|
|
this.root.push("NUMPAGES");
|
|
|
|
}
|
|
|
|
}
|
2019-08-09 11:56:22 +03:00
|
|
|
|
|
|
|
export class NumberOfPagesSection extends XmlComponent {
|
2022-08-31 07:52:27 +01:00
|
|
|
public constructor() {
|
2019-08-09 11:56:22 +03:00
|
|
|
super("w:instrText");
|
|
|
|
this.root.push(new TextAttributes({ space: SpaceType.PRESERVE }));
|
|
|
|
this.root.push("SECTIONPAGES");
|
|
|
|
}
|
|
|
|
}
|
2023-12-25 22:29:32 +00:00
|
|
|
|
2023-12-29 23:52:43 +00:00
|
|
|
export class CurrentSection extends XmlComponent {
|
2023-12-25 22:29:32 +00:00
|
|
|
public constructor() {
|
|
|
|
super("w:instrText");
|
|
|
|
this.root.push(new TextAttributes({ space: SpaceType.PRESERVE }));
|
|
|
|
this.root.push("SECTION");
|
|
|
|
}
|
|
|
|
}
|