implement sample version of Comment feature.

This commit is contained in:
Chen Yuncai
2022-03-03 09:59:09 +08:00
parent dc7f199345
commit b2a09b512f
12 changed files with 300 additions and 12 deletions

View File

@ -1,3 +1,4 @@
import { Comments } from "./../file/paragraph/run/comment-run";
import * as JSZip from "jszip";
import { Element as XMLElement, ElementCompact as XMLElementCompact, xml2js } from "xml-js";
@ -37,11 +38,12 @@ interface IRelationshipFileInfo {
// https://fileinfo.com/extension/dotx
export interface IDocumentTemplate {
readonly currentRelationshipId: number;
readonly headers: IDocumentHeader[];
readonly footers: IDocumentFooter[];
readonly styles: string;
readonly titlePageIsDefined: boolean;
readonly media: Media;
readonly headers?: IDocumentHeader[];
readonly footers?: IDocumentFooter[];
readonly styles?: string;
readonly titlePageIsDefined?: boolean;
readonly media?: Media;
readonly comments?: Comments;
}
export class ImportDotx {