added settings.xml back
This commit is contained in:
19
src/file/settings/update-fields.ts
Normal file
19
src/file/settings/update-fields.ts
Normal file
@ -0,0 +1,19 @@
|
||||
import { XmlAttributeComponent, XmlComponent } from "file/xml-components";
|
||||
export interface IUpdateFieldsAttributesProperties {
|
||||
enabled: boolean;
|
||||
}
|
||||
export class UpdateFieldsAttributes extends XmlAttributeComponent<IUpdateFieldsAttributesProperties> {
|
||||
protected xmlKeys = {
|
||||
enabled: "w:val",
|
||||
};
|
||||
}
|
||||
export class UpdateFields extends XmlComponent {
|
||||
constructor(enabled: boolean = true) {
|
||||
super("w:updateFields");
|
||||
this.root.push(
|
||||
new UpdateFieldsAttributes({
|
||||
enabled,
|
||||
}),
|
||||
);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user