2020-02-27 20:12:36 +02:00
|
|
|
import { StylesJSON } from "./styles";
|
2020-02-13 10:02:08 +02:00
|
|
|
import { DocumentJSON } from "./document";
|
2020-02-27 20:12:36 +02:00
|
|
|
import { NumberingsJSON } from "./numbering";
|
2020-12-15 15:33:01 +02:00
|
|
|
import { CommentJSON } from "./comment";
|
2021-04-09 05:30:50 +03:00
|
|
|
import { WebSettingsJSON } from "./web-settings";
|
2020-02-13 09:14:06 +02:00
|
|
|
|
2022-01-28 08:36:03 +02:00
|
|
|
import { Theme as ThemeJSON } from "./bindings/Theme";
|
2023-06-23 07:41:36 +03:00
|
|
|
import { CharacterSpacingValues } from "../settings";
|
2022-01-28 08:36:03 +02:00
|
|
|
|
2020-02-13 09:14:06 +02:00
|
|
|
export type DocxJSON = {
|
|
|
|
contentType: {
|
|
|
|
types: {
|
|
|
|
[k: string]: string;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
rels: [string, string, string][];
|
|
|
|
documentRels: {
|
|
|
|
hasComments: boolean;
|
|
|
|
hasNumberings: boolean;
|
|
|
|
};
|
|
|
|
docProps: {
|
|
|
|
app: {};
|
|
|
|
core: {
|
|
|
|
config: {
|
|
|
|
creator: string | null;
|
|
|
|
description: string | null;
|
|
|
|
language: string | null;
|
|
|
|
lastModifiedBy: string | null;
|
|
|
|
modified: string | null;
|
|
|
|
revision: string | null;
|
|
|
|
subject: string | null;
|
|
|
|
title: string | null;
|
|
|
|
};
|
|
|
|
};
|
2021-06-23 12:39:01 +03:00
|
|
|
custom: {
|
2021-06-23 13:55:21 +03:00
|
|
|
properties: {
|
|
|
|
[key: string]: string;
|
|
|
|
};
|
2021-06-23 12:39:01 +03:00
|
|
|
};
|
2020-02-13 09:14:06 +02:00
|
|
|
};
|
2020-02-27 20:12:36 +02:00
|
|
|
styles: StylesJSON;
|
2020-02-13 10:02:08 +02:00
|
|
|
document: DocumentJSON;
|
2020-02-13 09:14:06 +02:00
|
|
|
comments: {
|
2020-12-15 15:33:01 +02:00
|
|
|
comments: CommentJSON[];
|
2020-02-13 10:02:08 +02:00
|
|
|
};
|
2020-02-27 20:12:36 +02:00
|
|
|
numberings: NumberingsJSON;
|
2021-03-26 04:01:43 +02:00
|
|
|
settings: SettingsJSON;
|
2021-04-09 05:30:50 +03:00
|
|
|
webSettings: WebSettingsJSON;
|
2020-02-13 09:14:06 +02:00
|
|
|
fontTable: {};
|
2022-01-28 08:36:03 +02:00
|
|
|
themes: ThemeJSON[];
|
2022-06-14 12:11:52 +03:00
|
|
|
//(id, path, base64 encoded original image data, base64 encoded png image data)
|
|
|
|
images: [string, string, string, string][];
|
2022-08-09 09:32:17 +03:00
|
|
|
hyperlinks: [string, string, string][];
|
2020-02-13 09:14:06 +02:00
|
|
|
};
|
|
|
|
|
2021-03-26 04:01:43 +02:00
|
|
|
export type SettingsJSON = {
|
|
|
|
// w15:docId
|
|
|
|
docId: string | null;
|
|
|
|
defaultTabStop: number;
|
2022-08-25 10:27:55 +03:00
|
|
|
adjustLineHeightInTable: boolean;
|
2023-06-23 07:41:36 +03:00
|
|
|
characterSpacingControl?: CharacterSpacingValues | null;
|
2024-02-09 14:04:42 +02:00
|
|
|
evenAndOddHeaders: boolean;
|
2021-03-26 04:01:43 +02:00
|
|
|
zoom: number;
|
|
|
|
docVars: { name: string; val: string }[];
|
|
|
|
};
|
|
|
|
|
2023-06-23 07:41:36 +03:00
|
|
|
export * from "../settings";
|
2020-02-13 09:14:06 +02:00
|
|
|
export * from "./styles";
|
|
|
|
export * from "./border";
|
|
|
|
export * from "./document";
|
|
|
|
export * from "./paragraph";
|
|
|
|
export * from "./run";
|
|
|
|
export * from "./table";
|
2020-02-13 10:02:08 +02:00
|
|
|
export * from "./numbering";
|
2020-04-07 04:24:56 +03:00
|
|
|
export * from "./drawing";
|
2021-03-19 05:31:36 +02:00
|
|
|
export * from "./shading";
|
2021-04-09 05:30:50 +03:00
|
|
|
export * from "./web-settings";
|
2020-12-15 15:33:01 +02:00
|
|
|
export * from "./comment";
|
2020-04-07 04:24:56 +03:00
|
|
|
export * from "./textbox-content";
|
2020-10-12 11:51:28 +03:00
|
|
|
export * from "./section-property";
|
2022-01-28 08:36:03 +02:00
|
|
|
|
|
|
|
export { ThemeJSON };
|