Re-name PageRef to PageReference

This commit is contained in:
Dolan Miu
2021-09-08 00:41:40 +01:00
parent 76e7f40bd2
commit ce2a949176
7 changed files with 20 additions and 20 deletions

View File

@ -1,13 +1,13 @@
import { SpaceType } from "file/space-type";
import { XmlAttributeComponent, XmlComponent } from "file/xml-components";
import { IPageRefOptions } from "./pageref-properties";
import { IPageReferenceOptions } from "./pageref-properties";
class TextAttributes extends XmlAttributeComponent<{ readonly space: SpaceType }> {
protected readonly xmlKeys = { space: "xml:space" };
}
export class PageRefFieldInstruction extends XmlComponent {
constructor(bookmarkId: string, options: IPageRefOptions = {}) {
export class PageReferenceFieldInstruction extends XmlComponent {
constructor(bookmarkId: string, options: IPageReferenceOptions = {}) {
super("w:instrText");
this.root.push(new TextAttributes({ space: SpaceType.PRESERVE }));