devexpress-richedit
Version:
DevExpress Rich Text Editor is an advanced word-processing tool designed for working with rich text documents.
31 lines (30 loc) • 1.38 kB
JavaScript
import { LayoutRow, LayoutRowStateFlags } from '../../../../layout/main-structures/layout-row';
import { Log } from '../../logger/base-logger/log';
import { Pair } from '@devexpress/utils/lib/class/pair';
import { BaseFormatter, StdProps } from '../base-formatter';
export class CCF_LayoutRow extends BaseFormatter {
isHandleObject(obj) {
return obj instanceof LayoutRow;
}
getShortDescription(_config) {
return this.stdShow(new StdProps([
new Pair("offset", this.curr.columnOffset),
]).showAsLine());
}
availableFullDescription(_config) {
return true;
}
getFullDescription(_config) {
return this.stdShow(new StdProps([
new Pair("offset", this.curr.columnOffset),
new Pair("bounds", this.curr.createRectangle()),
new Pair("boxes", this.curr.boxes),
new Pair("tableCellInfo", this.curr.tableCellInfo),
new Pair("numberingListBox", this.curr.numberingListBox),
new Pair("flags", Log.mask(LayoutRowStateFlags, this.curr.flags.getValue(), LayoutRowStateFlags.NormallyEnd)),
new Pair("bookmarkBoxes", this.curr.bookmarkBoxes),
new Pair("baseLine", this.curr.baseLine),
]).showAsColumn());
}
}
CCF_LayoutRow._foo = BaseFormatter.addToFormattersList(new CCF_LayoutRow());