UNPKG

devexpress-richedit

Version:

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

27 lines (26 loc) 1.08 kB
import { LayoutColumn } from '../../../../layout/main-structures/layout-column'; import { Pair } from '@devexpress/utils/lib/class/pair'; import { BaseFormatter, StdProps } from '../base-formatter'; export class CCF_LayoutColumn extends BaseFormatter { isHandleObject(obj) { return obj instanceof LayoutColumn; } getShortDescription(_config) { return this.stdShow(new StdProps([ new Pair("offset", this.curr.pageAreaOffset), ]).showAsLine()); } availableFullDescription(_config) { return true; } getFullDescription(_config) { return this.stdShow(new StdProps([ new Pair("offset", this.curr.pageAreaOffset), new Pair("bounds", this.curr.createRectangle()), new Pair("rows", this.curr.rows), new Pair("paragraphFrames", this.curr.paragraphFrames), new Pair("tablesInfo", this.curr.tablesInfo), ]).showAsColumn()); } } CCF_LayoutColumn._foo = BaseFormatter.addToFormattersList(new CCF_LayoutColumn());