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) 788 B
import { NumberingListBase } from '../../../../../../common/model/numbering-lists/numbering-list'; import { Constants } from '@devexpress/utils/lib/constants'; import { LeafElementDestination } from '../destination'; export class ParagraphNumberingReferenceNumberingIdDestination extends LeafElementDestination { parentDestination; constructor(data, parentDestination) { super(data); this.parentDestination = parentDestination; } async processElementOpen(reader) { let numberingId = this.data.readerHelper.getWpSTIntegerValue(reader, 'val', Constants.MIN_SAFE_INTEGER); if (numberingId == 0) numberingId = NumberingListBase.NoNumberingListIndex; this.parentDestination.numberingId = numberingId; } }