clean up settings; BREAKING: TableOfContents requires Document features.updateFields = true setting

This commit is contained in:
Tom Hunkapiller
2021-05-26 08:36:05 +03:00
parent da61a30eb8
commit 60b7ce4785
20 changed files with 389 additions and 350 deletions

View File

@ -1,5 +1,15 @@
import { XmlAttributeComponent, XmlComponent } from "file/xml-components";
// Currently, this is hard-coded for Microsoft word compatSettings.
// Theoretically, we could add compatSettings for other programs, but
// currently there isn't a need.
// <xsd:complexType name="CT_CompatSetting">
// <xsd:attribute name="name" type="s:ST_String"/>
// <xsd:attribute name="uri" type="s:ST_String"/>
// <xsd:attribute name="val" type="s:ST_String"/>
// </xsd:complexType>
export class CompatibilitySettingAttributes extends XmlAttributeComponent<{
readonly version: number;
readonly name: string;
@ -12,6 +22,8 @@ export class CompatibilitySettingAttributes extends XmlAttributeComponent<{
};
}
// https://docs.microsoft.com/en-us/openspecs/office_standards/ms-docx/90138c4d-eb18-4edc-aa6c-dfb799cb1d0d
export class CompatibilitySetting extends XmlComponent {
constructor(version: number) {
super("w:compatSetting");