devexpress-richedit
Version:
DevExpress Rich Text Editor is an advanced word-processing tool designed for working with rich text documents.
20 lines (19 loc) • 747 B
JavaScript
import { __awaiter } from "tslib";
import { OpenXmlRelation } from '../../../utils/open-xml-relation';
import { ElementDestination } from '../destination';
export class RelationDestination extends ElementDestination {
constructor(data, relations) {
super(data);
this.relations = relations;
}
get elementHandlerTable() {
return {};
}
processElementOpen(reader) {
return __awaiter(this, void 0, void 0, function* () {
const rel = new OpenXmlRelation(reader.getAttribute('Id'), reader.getAttribute('Target'), reader.getAttribute('Type'), reader.getAttribute('TargetMode'));
if (!rel.isEmpty())
this.relations.add(rel);
});
}
}