devexpress-richedit
Version:
DevExpress Rich Text Editor is an advanced word-processing tool designed for working with rich text documents.
26 lines (25 loc) • 1.02 kB
JavaScript
import { LayoutPageArea } from '../../../../layout/main-structures/layout-page-area';
import { Pair } from '@devexpress/utils/lib/class/pair';
import { BaseFormatter, StdProps } from '../base-formatter';
export class CCF_LayoutPageArea extends BaseFormatter {
isHandleObject(obj) {
return obj instanceof LayoutPageArea;
}
getShortDescription(_config) {
return this.stdShow(new StdProps([
new Pair("subDoc", this.curr.subDocument)
]).showAsLine());
}
availableFullDescription(_config) {
return true;
}
getFullDescription(_config) {
return this.stdShow(new StdProps([
new Pair("offset", this.curr.pageOffset),
new Pair("columns", this.curr.columns),
new Pair("subDocument", this.curr.subDocument),
new Pair("bounds", this.curr.createRectangle())
]).showAsColumn());
}
}
CCF_LayoutPageArea._foo = BaseFormatter.addToFormattersList(new CCF_LayoutPageArea());