From d19ff1e300d552d32fca56ee51b1a594da7505c8 Mon Sep 17 00:00:00 2001 From: Dolan Date: Fri, 15 Dec 2017 01:16:04 +0000 Subject: [PATCH] Add file class --- src/docx/file.ts | 26 ++++++++++++++++++++++++++ src/docx/index.ts | 1 + 2 files changed, 27 insertions(+) create mode 100644 src/docx/file.ts diff --git a/src/docx/file.ts b/src/docx/file.ts new file mode 100644 index 0000000000..e0053cc691 --- /dev/null +++ b/src/docx/file.ts @@ -0,0 +1,26 @@ +import { Media } from "../media"; +import { Numbering } from "../numbering"; +import { Properties } from "../properties"; +import { Styles } from "../styles"; +import { Document } from "./document"; + +export class File { + + private document: Document; + private styles: Styles; + private properties: Properties; + private numbering: Numbering; + private media: Media; + + constructor() { + this.document = new Document(); + this.styles = new Styles(); + this.properties = new Properties({ + creator: "Un-named", + revision: "1", + lastModifiedBy: "Un-named", + }); + this.numbering = new Numbering(); + this.media = new Media(); + } +} diff --git a/src/docx/index.ts b/src/docx/index.ts index 9e7f554a4e..c11178fda4 100644 --- a/src/docx/index.ts +++ b/src/docx/index.ts @@ -2,3 +2,4 @@ export * from "./document"; export * from "./paragraph"; export * from "./run"; export { Table } from "./table"; +export { File } from "./file";