added relationships
This commit is contained in:
11
ts/relationships/attributes.ts
Normal file
11
ts/relationships/attributes.ts
Normal 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
14
ts/relationships/index.ts
Normal 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());
|
||||||
|
}
|
||||||
|
}
|
0
ts/relationships/relationship.ts
Normal file
0
ts/relationships/relationship.ts
Normal file
Reference in New Issue
Block a user