Add file class
This commit is contained in:
26
src/docx/file.ts
Normal file
26
src/docx/file.ts
Normal file
@ -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();
|
||||||
|
}
|
||||||
|
}
|
@ -2,3 +2,4 @@ export * from "./document";
|
|||||||
export * from "./paragraph";
|
export * from "./paragraph";
|
||||||
export * from "./run";
|
export * from "./run";
|
||||||
export { Table } from "./table";
|
export { Table } from "./table";
|
||||||
|
export { File } from "./file";
|
||||||
|
Reference in New Issue
Block a user