Add footnotes scaffolding

This commit is contained in:
Dolan Miu
2018-06-03 02:11:21 +01:00
parent 5de6617d10
commit b5b96506ae
3 changed files with 17 additions and 0 deletions

View File

@ -5,6 +5,7 @@ import { CoreProperties, IPropertiesOptions } from "./core-properties";
import { Document } from "./document";
import { SectionPropertiesOptions } from "./document/body/section-properties/section-properties";
import { FooterWrapper } from "./footer-wrapper";
import { FootNotes } from "./footnotes";
import { FirstPageHeaderWrapper, HeaderWrapper } from "./header-wrapper";
import { Media } from "./media";
import { Numbering } from "./numbering";
@ -24,6 +25,7 @@ export class File {
private readonly docRelationships: Relationships;
private readonly fileRelationships: Relationships;
private readonly headerWrapper: HeaderWrapper;
private readonly footNotes: FootNotes;
private readonly firstPageHeaderWrapper: FirstPageHeaderWrapper;
@ -104,6 +106,7 @@ export class File {
"docProps/app.xml",
);
this.appProperties = new AppProperties();
this.footNotes = new FootNotes();
}
public addParagraph(paragraph: Paragraph): void {
@ -201,4 +204,8 @@ export class File {
public get AppProperties(): AppProperties {
return this.appProperties;
}
public get FootNotes(): FootNotes {
return this.footNotes;
}
}

View File

@ -0,0 +1,9 @@
export class FootNotes {
public createFootNote(): void {
// TODO
}
public getFootNote(): void {
// TODO
}
}

View File

@ -0,0 +1 @@
export * from "./footnotes";