2021-02-28 16:04:21 +00:00
|
|
|
import { Document, IDocumentOptions } from "./document";
|
2021-03-25 15:01:11 +11:00
|
|
|
import { Footer } from "./footer/footer";
|
2021-03-01 23:35:52 +00:00
|
|
|
import { FootNotes } from "./footnotes";
|
2021-02-28 16:04:21 +00:00
|
|
|
import { Header } from "./header/header";
|
|
|
|
import { Relationships } from "./relationships";
|
|
|
|
|
|
|
|
export interface IViewWrapper {
|
2021-03-01 23:35:52 +00:00
|
|
|
readonly View: Document | Footer | Header | FootNotes;
|
2021-02-28 16:04:21 +00:00
|
|
|
readonly Relationships: Relationships;
|
|
|
|
}
|
|
|
|
|
|
|
|
export class DocumentWrapper implements IViewWrapper {
|
|
|
|
private readonly document: Document;
|
|
|
|
private readonly relationships: Relationships;
|
|
|
|
|
2022-08-31 07:52:27 +01:00
|
|
|
public constructor(options: IDocumentOptions) {
|
2021-02-28 16:04:21 +00:00
|
|
|
this.document = new Document(options);
|
|
|
|
this.relationships = new Relationships();
|
|
|
|
}
|
|
|
|
|
|
|
|
public get View(): Document {
|
|
|
|
return this.document;
|
|
|
|
}
|
|
|
|
|
|
|
|
public get Relationships(): Relationships {
|
|
|
|
return this.relationships;
|
|
|
|
}
|
|
|
|
}
|