29 lines
821 B
TypeScript
29 lines
821 B
TypeScript
import { Document, IDocumentOptions } from "./document";
|
|
import { Footer } from "./footer";
|
|
import { FootNotes } from "./footnotes";
|
|
import { Header } from "./header/header";
|
|
import { Relationships } from "./relationships";
|
|
|
|
export interface IViewWrapper {
|
|
readonly View: Document | Footer | Header | FootNotes;
|
|
readonly Relationships: Relationships;
|
|
}
|
|
|
|
export class DocumentWrapper implements IViewWrapper {
|
|
private readonly document: Document;
|
|
private readonly relationships: Relationships;
|
|
|
|
constructor(options: IDocumentOptions) {
|
|
this.document = new Document(options);
|
|
this.relationships = new Relationships();
|
|
}
|
|
|
|
public get View(): Document {
|
|
return this.document;
|
|
}
|
|
|
|
public get Relationships(): Relationships {
|
|
return this.relationships;
|
|
}
|
|
}
|