UNPKG

devexpress-richedit

Version:

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

16 lines (15 loc) 723 B
import { __awaiter } from "tslib"; import { StringUtils } from '@devexpress/utils/lib/utils/string'; import { LeafElementDestination } from '../../destination'; export class ParagraphStyleReferenceBaseDestination extends LeafElementDestination { processElementOpen(reader) { return __awaiter(this, void 0, void 0, function* () { const value = reader.getAttributeNS('val', this.data.constants.wordProcessingNamespaceConst); if (!StringUtils.isNullOrEmpty(value)) { const style = this.data.stylesImporter.paragraphManager.getStyleById(value); if (style) this.assignParagraphStyle(style); } }); } }