Files
docx-js/src/file/xml-components/base.ts

19 lines
476 B
TypeScript
Raw Normal View History

import { IViewWrapper } from "../document-wrapper";
2021-03-11 01:06:55 +00:00
import { File } from "../file";
import { IXmlableObject } from "./xmlable-object";
2021-03-11 01:06:55 +00:00
export interface IContext {
readonly file: File;
readonly viewWrapper: IViewWrapper;
}
export abstract class BaseXmlComponent {
protected readonly rootKey: string;
2022-08-31 07:52:27 +01:00
public constructor(rootKey: string) {
this.rootKey = rootKey;
}
2021-03-11 01:06:55 +00:00
public abstract prepForXml(context: IContext): IXmlableObject | undefined;
2017-03-08 21:49:41 +00:00
}