14 lines
472 B
TypeScript
14 lines
472 B
TypeScript
// http://officeopenxml.com/WPfieldInstructions.php
|
|
import { SpaceType } from "@file/shared";
|
|
import { XmlComponent } from "@file/xml-components";
|
|
|
|
import { TextAttributes } from "./text-attributes";
|
|
|
|
export class SequentialIdentifierInstruction extends XmlComponent {
|
|
public constructor(identifier: string) {
|
|
super("w:instrText");
|
|
this.root.push(new TextAttributes({ space: SpaceType.PRESERVE }));
|
|
this.root.push(`SEQ ${identifier}`);
|
|
}
|
|
}
|