Use context in prep xml
This commit is contained in:
@ -1,6 +1,12 @@
|
||||
import { IViewWrapper } from "../document-wrapper";
|
||||
import { File } from "../file";
|
||||
import { IXmlableObject } from "./xmlable-object";
|
||||
|
||||
export interface IContext {
|
||||
readonly file: File;
|
||||
readonly viewWrapper: IViewWrapper;
|
||||
}
|
||||
|
||||
export abstract class BaseXmlComponent {
|
||||
protected readonly rootKey: string;
|
||||
// tslint:disable-next-line:readonly-keyword
|
||||
@ -10,7 +16,7 @@ export abstract class BaseXmlComponent {
|
||||
this.rootKey = rootKey;
|
||||
}
|
||||
|
||||
public abstract prepForXml(file?: IViewWrapper): IXmlableObject | undefined;
|
||||
public abstract prepForXml(context: IContext): IXmlableObject | undefined;
|
||||
|
||||
public get IsDeleted(): boolean {
|
||||
return this.deleted;
|
||||
|
Reference in New Issue
Block a user