devexpress-richedit
Version:
DevExpress Rich Text Editor is an advanced word-processing tool designed for working with rich text documents.
24 lines (23 loc) • 972 B
JavaScript
import { ParagraphFrame } from '../../../../layout/main-structures/layout-column';
import { Pair } from '@devexpress/utils/lib/class/pair';
import { BaseFormatter, StdProps } from '../base-formatter';
export class CCF_ParagraphFrame extends BaseFormatter {
isHandleObject(obj) {
return obj instanceof ParagraphFrame;
}
getShortDescription(_config) {
return this.stdShow(new StdProps([
new Pair("color", BaseFormatter.getColorBoxNode(this.curr.paragraphColor)),
]).showAsLine());
}
availableFullDescription(_config) {
return true;
}
getFullDescription(_config) {
return this.stdShow(new StdProps([
new Pair("color", BaseFormatter.getColorBoxNode(this.curr.paragraphColor)),
new Pair("bounds", this.curr.createRectangle()),
]).showAsColumn());
}
}
CCF_ParagraphFrame._foo = BaseFormatter.addToFormattersList(new CCF_ParagraphFrame());