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

@ -1,5 +1,6 @@
import { Document } from "./document";
import { SectionPropertiesOptions } from "./document/body/section-properties/section-properties";
import { Footer } from "./footer/footer";
import { Header } from "./header/header";
import { Media } from "./media";
import { Numbering } from "./numbering";
@ -18,6 +19,7 @@ export class File {
private readonly media: Media;
private readonly relationships: Relationships;
private readonly header: Header;
private readonly footer: Footer;
constructor(options?: IPropertiesOptions, sectionPropertiesOptions?: SectionPropertiesOptions) {
this.document = new Document(sectionPropertiesOptions);
@ -37,6 +39,7 @@ export class File {
this.relationships = new Relationships();
this.media = new Media();
this.header = new Header();
this.footer = new Footer();
}
public addParagraph(paragraph: Paragraph): void {
@ -92,4 +95,8 @@ export class File {
public get Header(): Header {
return this.header;
}
public get Footer(): Footer {
return this.footer;
}
}