diff --git a/src/file/content-types/content-types-attributes.ts b/src/file/content-types/content-types-attributes.ts new file mode 100644 index 0000000000..932d00a67d --- /dev/null +++ b/src/file/content-types/content-types-attributes.ts @@ -0,0 +1,11 @@ +import { XmlAttributeComponent } from "file/xml-components"; + +export interface IContentTypeAttributes { + xmlns?: string; +} + +export class ContentTypeAttributes extends XmlAttributeComponent { + protected xmlKeys = { + xmlns: "xmlns", + }; +} diff --git a/src/file/content-types/content-types.ts b/src/file/content-types/content-types.ts new file mode 100644 index 0000000000..2eca99b864 --- /dev/null +++ b/src/file/content-types/content-types.ts @@ -0,0 +1,14 @@ +import { XmlComponent } from "file/xml-components"; +import { ContentTypeAttributes } from "./content-types-attributes"; + +export class ContentTypes extends XmlComponent { + constructor() { + super("Types"); + + this.root.push( + new ContentTypeAttributes({ + xmlns: "http://schemas.openxmlformats.org/package/2006/content-types", + }), + ); + } +} diff --git a/src/file/content-types/default/default.ts b/src/file/content-types/default/default.ts new file mode 100644 index 0000000000..1897e85e93 --- /dev/null +++ b/src/file/content-types/default/default.ts @@ -0,0 +1,9 @@ +import { XmlComponent } from "file/xml-components"; + +export class Default extends XmlComponent { + constructor() { + super("Types"); + + this.root.push(); + } +}