added relationships

This commit is contained in:
Dolan Miu
2017-03-27 01:28:52 +01:00
parent 68fe380575
commit ad462dfe10
3 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,11 @@
import { XmlAttributeComponent } from "../docx/xml-components";
interface IRelationshipsAttributesProperties {
xmlns: string;
}
export class RelationshipsAttributes extends XmlAttributeComponent<IRelationshipsAttributesProperties> {
protected xmlKeys = {
xmlns: "xmlns",
};
}

14
ts/relationships/index.ts Normal file
View File

@ -0,0 +1,14 @@
import { XmlComponent } from "../docx/xml-components";
import { RelationshipsAttributes } from "./attributes";
export class Relationships extends XmlComponent {
constructor() {
super("Relationships");
this.root.push(new RelationshipsAttributes({
xmlns: "http://schemas.openxmlformats.org/package/2006/relationships",
}));
// this.root.push(new Created());
}
}

View File