Re-name PageRef to PageReference
This commit is contained in:
@ -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 }));
|
||||
|
||||
|
Reference in New Issue
Block a user