devexpress-richedit
Version:
DevExpress Rich Text Editor is an advanced word-processing tool designed for working with rich text documents.
14 lines (13 loc) • 573 B
JavaScript
import { __awaiter } from "tslib";
import { LeafElementDestination } from '../destination';
export class ParagraphNumberingReferenceLevelDestination extends LeafElementDestination {
constructor(data, parentDestination) {
super(data);
this.parentDestination = parentDestination;
}
processElementOpen(reader) {
return __awaiter(this, void 0, void 0, function* () {
this.parentDestination.listLevelIndex = Math.max(0, Math.min(8, this.data.readerHelper.getWpSTIntegerValue(reader, 'val', -1)));
});
}
}