diff --git a/ts/relationships/attributes.ts b/ts/relationships/attributes.ts new file mode 100644 index 0000000000..4aae08248d --- /dev/null +++ b/ts/relationships/attributes.ts @@ -0,0 +1,11 @@ +import { XmlAttributeComponent } from "../docx/xml-components"; + +interface IRelationshipsAttributesProperties { + xmlns: string; +} + +export class RelationshipsAttributes extends XmlAttributeComponent { + protected xmlKeys = { + xmlns: "xmlns", + }; +} diff --git a/ts/relationships/index.ts b/ts/relationships/index.ts new file mode 100644 index 0000000000..e2c27f36e8 --- /dev/null +++ b/ts/relationships/index.ts @@ -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()); + } +} diff --git a/ts/relationships/relationship.ts b/ts/relationships/relationship.ts new file mode 100644 index 0000000000..e69de29bb2