UNPKG

devexpress-richedit

Version:

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

29 lines (28 loc) 1.19 kB
import { ParagraphLineSpacingType, ParagraphPropertyDescriptor } from '../../model/paragraph/paragraph-properties'; import { LineSpacingParagraphCommandBase } from './add-spacing-after-paragraph-command'; export class SetParagraphSpacingTypeCommandBase extends LineSpacingParagraphCommandBase { getDescriptor() { return ParagraphPropertyDescriptor.lineSpacingType; } getValueForState(val) { return val == this.getSpacingType(); } DEPRECATEDConvertOptionsParameter(parameter) { return this.convertBooleanParameterToEnumType(parameter, this.getSpacingType(), this.getSpacingType()); } } export class SetSingleParagraphSpacingCommand extends SetParagraphSpacingTypeCommandBase { getSpacingType() { return ParagraphLineSpacingType.Single; } } export class SetSesquialteralParagraphSpacingCommand extends SetParagraphSpacingTypeCommandBase { getSpacingType() { return ParagraphLineSpacingType.Sesquialteral; } } export class SetDoubleParagraphSpacingCommand extends SetParagraphSpacingTypeCommandBase { getSpacingType() { return ParagraphLineSpacingType.Double; } }