Add footer

This commit is contained in:
Dolan
2018-01-29 21:53:22 +00:00
parent 8b8c664f0f
commit 5e921f1dfc
13 changed files with 210 additions and 19 deletions

View File

@ -9,7 +9,8 @@ export type RelationshipType =
| "http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable"
| "http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings"
| "http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering"
| "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header";
| "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header"
| "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer";
export class Relationship extends XmlComponent {
constructor(id: string, type: RelationshipType, target: string) {

View File

@ -14,6 +14,7 @@ export class Relationships extends XmlComponent {
this.createRelationship(1, "http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles", "styles.xml");
this.createRelationship(2, "http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering", "numbering.xml");
this.createRelationship(3, "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header", "header1.xml");
this.createRelationship(4, "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer", "footer1.xml");
}
public addRelationship(relationship: Relationship): void {