2021-03-01 03:28:35 +00:00
|
|
|
import { IViewWrapper } from "../document-wrapper";
|
2021-03-11 01:06:55 +00:00
|
|
|
import { File } from "../file";
|
2017-07-08 20:45:19 +01:00
|
|
|
import { IXmlableObject } from "./xmlable-object";
|
|
|
|
|
2021-03-11 01:06:55 +00:00
|
|
|
export interface IContext {
|
|
|
|
readonly file: File;
|
|
|
|
readonly viewWrapper: IViewWrapper;
|
|
|
|
}
|
|
|
|
|
2016-05-20 00:40:31 +01:00
|
|
|
export abstract class BaseXmlComponent {
|
2018-11-02 02:51:57 +00:00
|
|
|
protected readonly rootKey: string;
|
2016-05-20 00:40:31 +01:00
|
|
|
|
|
|
|
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
|
|
|
}
|