2018-10-19 16:50:51 -03:00
|
|
|
// http://officeopenxml.com/WPfieldInstructions.php
|
2018-11-02 02:51:57 +00:00
|
|
|
import { SpaceType } from "file/space-type";
|
2022-06-15 00:07:12 +01:00
|
|
|
import { XmlComponent } from "file/xml-components";
|
2018-10-19 16:50:51 -03:00
|
|
|
|
2022-06-15 00:07:12 +01:00
|
|
|
import { TextAttributes } from "./text-attributes";
|
2018-10-19 16:50:51 -03:00
|
|
|
|
|
|
|
export class SequentialIdentifierInstruction extends XmlComponent {
|
|
|
|
constructor(identifier: string) {
|
|
|
|
super("w:instrText");
|
|
|
|
this.root.push(new TextAttributes({ space: SpaceType.PRESERVE }));
|
|
|
|
this.root.push(`SEQ ${identifier}`);
|
|
|
|
}
|
|
|
|
}
|