UNPKG

devexpress-richedit

Version:

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

178 lines (177 loc) 4.76 kB
import { TableCellPropertiesMask } from './table-cell-properties'; export class TableCellPropertiesTopBorderDescriptor { setProp(props, newValue) { props.borders.top = newValue; } getProp(props) { return props.borders.top; } maskValue() { return TableCellPropertiesMask.UseTopBorder; } } export class TableCellPropertiesRightBorderDescriptor { setProp(props, newValue) { props.borders.right = newValue; } getProp(props) { return props.borders.right; } maskValue() { return TableCellPropertiesMask.UseRightBorder; } } export class TableCellPropertiesBottomBorderDescriptor { setProp(props, newValue) { props.borders.bottom = newValue; } getProp(props) { return props.borders.bottom; } maskValue() { return TableCellPropertiesMask.UseBottomBorder; } } export class TableCellPropertiesLeftBorderDescriptor { setProp(props, newValue) { props.borders.left = newValue; } getProp(props) { return props.borders.left; } maskValue() { return TableCellPropertiesMask.UseLeftBorder; } } export class TableCellPropertiesTopLeftDiagonalBorderDescriptor { setProp(props, newValue) { props.borders.topLeftDiagonal = newValue; } getProp(props) { return props.borders.topLeftDiagonal; } maskValue() { return TableCellPropertiesMask.UseTopLeftDiagonalBorder; } } export class TableCellPropertiesTopRightDiagonalBorderDescriptor { setProp(props, newValue) { props.borders.topRightDiagonal = newValue; } getProp(props) { return props.borders.topRightDiagonal; } maskValue() { return TableCellPropertiesMask.UseTopRightDiagonalBorder; } } export class TableCellPropertiesTopMarginDescriptor { setProp(props, newValue) { props.cellMargins.top = newValue; } getProp(props) { return props.cellMargins.top; } maskValue() { return TableCellPropertiesMask.UseTopMargin; } } export class TableCellPropertiesRightMarginDescriptor { setProp(props, newValue) { props.cellMargins.right = newValue; } getProp(props) { return props.cellMargins.right; } maskValue() { return TableCellPropertiesMask.UseRightMargin; } } export class TableCellPropertiesBottomMarginDescriptor { setProp(props, newValue) { props.cellMargins.bottom = newValue; } getProp(props) { return props.cellMargins.bottom; } maskValue() { return TableCellPropertiesMask.UseBottomMargin; } } export class TableCellPropertiesLeftMarginDescriptor { setProp(props, newValue) { props.cellMargins.left = newValue; } getProp(props) { return props.cellMargins.left; } maskValue() { return TableCellPropertiesMask.UseLeftMargin; } } export class TableCellPropertiesFitTextDescriptor { setProp(props, newValue) { props.fitText = newValue; } getProp(props) { return props.fitText; } maskValue() { return TableCellPropertiesMask.UseFitText; } } export class TableCellPropertiesHideCellMarkDescriptor { setProp(props, newValue) { props.hideCellMark = newValue; } getProp(props) { return props.hideCellMark; } maskValue() { return TableCellPropertiesMask.UseHideCellMark; } } export class TableCellPropertiesNoWrapDescriptor { setProp(props, newValue) { props.noWrap = newValue; } getProp(props) { return props.noWrap; } maskValue() { return TableCellPropertiesMask.UseNoWrap; } } export class TableCellPropertiesShadingInfoDescriptor { setProp(props, newValue) { props.shadingInfo = newValue; } getProp(props) { return props.shadingInfo; } maskValue() { return TableCellPropertiesMask.UseShadingInfoIndex; } } export class TableCellPropertiesTextDirectionDescriptor { setProp(props, newValue) { props.textDirection = newValue; } getProp(props) { return props.textDirection; } maskValue() { return TableCellPropertiesMask.UseTextDirection; } } export class TableCellPropertiesVerticalAlignmentDescriptor { setProp(props, newValue) { props.verticalAlignment = newValue; } getProp(props) { return props.verticalAlignment; } maskValue() { return TableCellPropertiesMask.UseVerticalAlignment; } }