devexpress-richedit
Version:
DevExpress Rich Text Editor is an advanced word-processing tool designed for working with rich text documents.
12 lines (11 loc) • 920 B
JavaScript
import { TableRowPropertyDescriptor } from '../../../../../../../../common/model/tables/properties/table-row-property-descriptor';
import { TableRowAlignment } from '../../../../../../../../common/model/tables/secondary-structures/table-base-structures';
import { TranslationTables } from '../../../../../translation-table/translation-tables';
import { TableRowPropertiesLeafElementDestination } from './table-row-properties-leaf-element-destination';
export class TableRowAlignmentDestination extends TableRowPropertiesLeafElementDestination {
async processElementOpen(reader) {
this.row.properties.setValue(TableRowPropertyDescriptor.rowAlignment, this.data.readerHelper.getWpEnumValue(reader, 'val', (this.data.constants.strictMode ?
TranslationTables.strictTableRowAlignmentTable :
TranslationTables.tableRowAlignmentTable).importMap, TableRowAlignment.Left));
}
}