Add footnotes scaffolding
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
9
src/file/footnotes/footnotes.ts
Normal file
9
src/file/footnotes/footnotes.ts
Normal file
@ -0,0 +1,9 @@
|
||||
export class FootNotes {
|
||||
public createFootNote(): void {
|
||||
// TODO
|
||||
}
|
||||
|
||||
public getFootNote(): void {
|
||||
// TODO
|
||||
}
|
||||
}
|
1
src/file/footnotes/index.ts
Normal file
1
src/file/footnotes/index.ts
Normal file
@ -0,0 +1 @@
|
||||
export * from "./footnotes";
|
Reference in New Issue
Block a user