devexpress-richedit
Version:
DevExpress Rich Text Editor is an advanced word-processing tool designed for working with rich text documents.
13 lines (12 loc) • 930 B
JavaScript
import { __awaiter } from "tslib";
import { TableCellPropertyDescriptor } from '../../../../../../../../common/model/tables/properties/table-cell-properties';
import { TextDirection } from '../../../../../../../../common/model/tables/secondary-structures/table-base-structures';
import { TranslationTables } from '../../../../../translation-table/translation-tables';
import { TableCellPropertiesLeafElementDestination } from './table-cell-properties-leaf-element-destination';
export class TableCellTextDirectionDestination extends TableCellPropertiesLeafElementDestination {
processElementOpen(reader) {
return __awaiter(this, void 0, void 0, function* () {
this.cell.properties.setValue(TableCellPropertyDescriptor.textDirection, this.data.readerHelper.getWpEnumValue(reader, 'val', TranslationTables.textDirectionTable.importMap, TextDirection.LeftToRightTopToBottom));
});
}
}