Add content types initial files

This commit is contained in:
Dolan
2018-02-02 01:57:50 +00:00
parent ee958dc351
commit cfd3505414
3 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,11 @@
import { XmlAttributeComponent } from "file/xml-components";
export interface IContentTypeAttributes {
xmlns?: string;
}
export class ContentTypeAttributes extends XmlAttributeComponent<IContentTypeAttributes> {
protected xmlKeys = {
xmlns: "xmlns",
};
}

View File

@ -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",
}),
);
}
}

View File

@ -0,0 +1,9 @@
import { XmlComponent } from "file/xml-components";
export class Default extends XmlComponent {
constructor() {
super("Types");
this.root.push();
}
}