UNPKG

devexpress-richedit

Version:

DevExpress Rich Text Editor is an advanced word-processing tool designed for working with rich text documents.

17 lines (16 loc) 637 B
import { __awaiter } from "tslib"; import { LeafElementDestination } from '../../../destination'; export class TableCellStyleDestination extends LeafElementDestination { constructor(data, cell) { super(data); this.cell = cell; } processElementOpen(reader) { return __awaiter(this, void 0, void 0, function* () { const styleName = reader.getAttributeNS('val', this.data.constants.wordProcessingNamespaceConst); const style = this.data.stylesImporter.tableCellStyles[styleName]; if (style) this.cell.style = style; }); } }