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

19 lines
506 B
TypeScript
Raw Normal View History

import { IViewWrapper } from "../document-wrapper";
import { IXmlableObject } from "./xmlable-object";
export abstract class BaseXmlComponent {
protected readonly rootKey: string;
// tslint:disable-next-line:readonly-keyword
protected deleted: boolean = false;
constructor(rootKey: string) {
this.rootKey = rootKey;
}
public abstract prepForXml(file?: IViewWrapper): IXmlableObject | undefined;
2018-08-07 01:25:28 +01:00
public get IsDeleted(): boolean {
return this.deleted;
}
2017-03-08 21:49:41 +00:00
}