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

18 lines
435 B
TypeScript
Raw Normal View History

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(): 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
}