UNPKG

devexpress-richedit

Version:

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

17 lines (16 loc) 772 B
import { RtfDrawingKeywords } from '../../../translation-table/rtf-drawing-keywords'; import { RtfExportSR } from '../../../translation-table/rtf-export-sr'; import { RtfPictureExportStrategy } from './rtf-picture-export-strategy'; export class RtfFloatingObjectPictureExportStrategy extends RtfPictureExportStrategy { exportShapePicturePrefix(rtfBuilder) { rtfBuilder.openGroup(); rtfBuilder.writeCommand(RtfExportSR.ShapeProperty); rtfBuilder.writeShapePropertyName(RtfDrawingKeywords.PictureBinaryData); rtfBuilder.openGroup(); rtfBuilder.writeCommand(RtfExportSR.ShapePropertyValue); } exportShapePicturePostfix(rtfBuilder) { rtfBuilder.closeGroup(); rtfBuilder.closeGroup(); } }