UNPKG

devexpress-richedit

Version:

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

21 lines (20 loc) 913 B
import { Errors } from '@devexpress/utils/lib/errors'; import { FixedInterval } from '@devexpress/utils/lib/intervals/fixed'; import { SingleSubDocumentExoprter } from './base-sub-document'; export class TextBoxSubDocumentExporter extends SingleSubDocumentExoprter { get rootElement() { throw new Error(Errors.NotImplemented); } constructor(data, subDocument) { super(data, subDocument, ''); } exportTextBoxContent() { this.data.subDocumentExporterStack.push(this); this.fillWriterCore(); this.data.subDocumentExporterStack.pop(); } createRelationExporter() { throw new Error(Errors.NotImplemented); } fillWriter() { throw new Error(Errors.NotImplemented); } fillWriterCore() { this.init(); this.exportSection(this.data.model.sections[0], new FixedInterval(0, this.subDocument.getDocumentEndPosition())); } }