UNPKG

devexpress-richedit

Version:

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

24 lines (23 loc) 935 B
import { TableCellProperties } from '../../../../../common/model/tables/properties/table-cell-properties'; import { TableProperties } from '../../../../../common/model/tables/properties/table-properties'; import { TableRowProperties } from '../../../../../common/model/tables/properties/table-row-properties'; export class TableImporter { get isInsideTable() { return this.data.subDocumentInfo.tableStack.count > 0; } constructor(data) { this.data = data; } cancelTable(table) { const tables = this.data.subDocument.tables; tables.splice(tables.indexOf(table), 1); this.data.subDocumentInfo.tableStack.pop(); } createDefaultTableProperties() { return new TableProperties(); } createDefaultRowProperties() { return new TableRowProperties(); } createDefaultCellProperties() { return new TableCellProperties(); } }