devexpress-richedit 24.1.8-build-24316-0102 → 24.2.2-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/gulpfile.js +1 -1
- package/bin/index-custom.js +1 -1
- package/bin/localization-builder.js +1 -1
- package/bin/nspell-index.js +1 -1
- package/bin/nspell.webpack.config.js +1 -1
- package/bin/webpack-externals.js +1 -1
- package/bin/webpack.config.js +1 -1
- package/dist/dx.richedit.d.ts +12 -1
- package/dist/dx.richedit.js +1174 -907
- package/dist/dx.richedit.min.js +2 -2
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/lib/client/api/loading-panel.js +3 -3
- package/lib/client/bars/rich-edit-ribbon/ribbon-items-data.d.ts +2 -2
- package/lib/client/bars/rich-edit-ribbon/ribbon-items-data.js +2 -1
- package/lib/client/client-rich-edit.d.ts +1 -0
- package/lib/client/client-rich-edit.js +15 -11
- package/lib/client/commands/commands.js +3 -0
- package/lib/client/commands/new-document-command.js +2 -1
- package/lib/client/commands/open-document-command.d.ts +1 -1
- package/lib/client/default-localization.js +2 -0
- package/lib/client/dialogs/dialog-base.js +3 -3
- package/lib/client/document-processor/public/processor.js +3 -3
- package/lib/client/formats/docx/export/data.js +5 -5
- package/lib/client/formats/docx/export/exporters/base/sections.js +4 -4
- package/lib/client/formats/docx/export/exporters/base.js +1 -1
- package/lib/client/formats/docx/export/exporters/content-types.js +4 -4
- package/lib/client/formats/docx/export/exporters/relations/relation-collection.js +1 -1
- package/lib/client/formats/docx/export/exporters/sub-document/base-sub-document.d.ts +1 -1
- package/lib/client/formats/docx/export/exporters/sub-document/base-sub-document.js +3 -3
- package/lib/client/formats/docx/export/exporters/sub-document/header-footer-sub-document-exporter.js +1 -1
- package/lib/client/formats/docx/import/data.js +2 -2
- package/lib/client/formats/docx/import/destination/character-properties/run-properties-base-destination.js +1 -1
- package/lib/client/formats/docx/import/destination/destination.d.ts +2 -2
- package/lib/client/formats/docx/import/destination/destination.js +7 -7
- package/lib/client/formats/docx/import/destination/drawing/drawing-anchor-position-destination.js +9 -9
- package/lib/client/formats/docx/import/destination/drawing/drawing-anchor-relative-size-destination.js +6 -6
- package/lib/client/formats/docx/import/destination/drawing/drawing-destination.js +38 -38
- package/lib/client/formats/docx/import/destination/drawing/non-visual-pucture-properties-destination.js +3 -3
- package/lib/client/formats/docx/import/destination/drawing/shape-properties-destination.js +9 -9
- package/lib/client/formats/docx/import/destination/notes/note-destination.d.ts +1 -1
- package/lib/client/formats/docx/import/destination/notes/note-properties-destination.js +3 -3
- package/lib/client/formats/docx/import/destination/numbering/numberings-destination.js +15 -15
- package/lib/client/formats/docx/import/destination/paragraph/paragraph-destination.js +3 -3
- package/lib/client/formats/docx/import/destination/paragraph-properties/paragraph-numbering-reference-destination.js +5 -5
- package/lib/client/formats/docx/import/destination/paragraph-properties/paragraph-properties-base-destination.js +3 -3
- package/lib/client/formats/docx/import/destination/paragraph-properties/paragraph-properties-destination.js +7 -7
- package/lib/client/formats/docx/import/destination/relationships/relationships-destination.js +3 -3
- package/lib/client/formats/docx/import/destination/runs/inline-object-destination.js +3 -3
- package/lib/client/formats/docx/import/destination/style/destinations/style-paragraph-properties-destination.js +4 -4
- package/lib/client/formats/docx/import/destination/table/cell/properties/table-cell-properties-destination-core.js +3 -3
- package/lib/client/formats/docx/import/destination/table/cell/table-cell-destination.js +3 -3
- package/lib/client/formats/docx/import/destination/table/row/properties/table-row-properties-destination.js +3 -3
- package/lib/client/formats/docx/import/destination/table/row/table-row-destination.js +3 -3
- package/lib/client/formats/docx/import/destination/table/table/properties/table-cell-margins-destination.d.ts +1 -1
- package/lib/client/formats/docx/import/destination/table/table/properties/table-properties-destination-core.js +3 -3
- package/lib/client/formats/docx/import/destination/table/table/properties/table-properties-destination.js +3 -3
- package/lib/client/formats/docx/import/destination/table/table/properties/table-properties-leaf-element-destination.js +3 -3
- package/lib/client/formats/docx/import/destination/table/table/table-destination.js +3 -3
- package/lib/client/formats/docx/import/destination/themes/color/drawing-color-properties-destination-base.js +3 -3
- package/lib/client/formats/docx/import/destination/themes/font/office-theme-font-collection-scheme-destination.js +7 -7
- package/lib/client/formats/docx/import/destination/vml/v-mlshape-destination.js +7 -7
- package/lib/client/formats/docx/import/importers/character-importer.js +6 -6
- package/lib/client/formats/docx/import/importers/comments-importer.js +1 -1
- package/lib/client/formats/docx/import/importers/field-importer.js +2 -2
- package/lib/client/formats/docx/import/importers/table-importer.js +1 -1
- package/lib/client/formats/docx/import/list/open-xml-list-level-override.js +3 -3
- package/lib/client/formats/docx/import/list/open-xml-numbering-list-info.d.ts +1 -1
- package/lib/client/formats/docx/utils/constants.js +6 -6
- package/lib/client/formats/docx/zip/xml-reader.js +10 -10
- package/lib/client/i-rich-constructor-settings.d.ts +2 -1
- package/lib/client/model-api/api-utils/parameter-checker.d.ts +1 -1
- package/lib/client/model-api/collections/drawing-object-collection.js +1 -1
- package/lib/client/model-api/fonts/control-font.js +4 -4
- package/lib/client/model-api/images/image-iterator.js +3 -3
- package/lib/client/model-api/interval.js +1 -1
- package/lib/client/public/api/authentication-options.js +3 -3
- package/lib/client/public/api/range-permission-options.js +3 -3
- package/lib/client/public/client-events.d.ts +2 -1
- package/lib/client/public/client-events.js +3 -1
- package/lib/client/public/commands/enum.d.ts +2 -1
- package/lib/client/public/commands/enum.js +1 -0
- package/lib/client/public/context-menu/menu.js +5 -5
- package/lib/client/public/events.d.ts +6 -0
- package/lib/client/public/events.js +8 -0
- package/lib/client/public/nusa/external-types.d.ts +2 -2
- package/lib/client/public/nusa/settings.js +1 -1
- package/lib/client/public/options.d.ts +1 -0
- package/lib/client/public/ribbon/item-ids.d.ts +2 -1
- package/lib/client/public/ribbon/item-ids.js +1 -0
- package/lib/client/public/ribbon/tab.d.ts +4 -4
- package/lib/client/public/ribbon/tab.js +2 -2
- package/lib/client/public/rich-edit.js +2 -2
- package/lib/client/ribbon/i-toolbar-item-options.d.ts +1 -1
- package/lib/client/ribbon/ribbon.d.ts +3 -3
- package/lib/client/ribbon/ribbon.js +1 -1
- package/lib/client/ribbon/toolbar-items/toolbar-interactive-item.d.ts +2 -2
- package/lib/client/settings.js +2 -0
- package/lib/client/utils/devextreme/devextreme-types.d.ts +17 -17
- package/lib/client/utils/devextreme/dxt-utils.d.ts +1 -1
- package/lib/common/auto-correct/auto-correct-providers.js +1 -1
- package/lib/common/bars/base.js +1 -1
- package/lib/common/canvas/canvas-manager.js +3 -3
- package/lib/common/canvas/canvas-scroll-manager.js +2 -2
- package/lib/common/canvas/listeners/anchor-listener.js +3 -3
- package/lib/common/canvas/listeners/resize-box-listener.js +5 -5
- package/lib/common/canvas/renderes/canvas-listener/canvas-listener.js +1 -1
- package/lib/common/canvas/renderes/change-active-sub-document/renderer.js +10 -10
- package/lib/common/canvas/renderes/common/document-renderer.d.ts +1 -1
- package/lib/common/canvas/renderes/common/document-renderer.js +1 -1
- package/lib/common/canvas/renderes/view-manager.js +3 -3
- package/lib/common/client-side-events.d.ts +1 -0
- package/lib/common/client-side-events.js +3 -0
- package/lib/common/commands/client-command.d.ts +2 -1
- package/lib/common/commands/client-command.js +1 -0
- package/lib/common/commands/command-base.js +10 -10
- package/lib/common/commands/command-manager.js +2 -1
- package/lib/common/commands/command-states.js +3 -3
- package/lib/common/commands/dialogs/dialog-spell-checker-command.js +3 -3
- package/lib/common/commands/document/print-document-on-client-command.js +4 -4
- package/lib/common/commands/fields/create-field-command.d.ts +4 -0
- package/lib/common/commands/fields/create-field-command.js +8 -0
- package/lib/common/commands/fields/open-hyperlink-command.js +3 -2
- package/lib/common/commands/floating-objects/floating-object-drag-drop-change-position-command.js +1 -1
- package/lib/common/commands/floating-objects/insert-anchored-text-box-command.js +1 -1
- package/lib/common/commands/ruler/toggle-show-horizontal-ruler-command.js +3 -1
- package/lib/common/commands/text/change-text-case-commands.d.ts +1 -1
- package/lib/common/event-manager.js +4 -4
- package/lib/common/formats/html/export/html-document-exporter.js +1 -1
- package/lib/common/formats/html/export/html-export.d.ts +7 -1
- package/lib/common/formats/html/export/html-export.js +38 -38
- package/lib/common/formats/html/import/html-importer.d.ts +1 -1
- package/lib/common/formats/html/import/html-importer.js +12 -12
- package/lib/common/formats/html/import/html-model-inserter.js +4 -4
- package/lib/common/formats/html/import/importers/base.js +1 -1
- package/lib/common/formats/html/import/importers/list-base.js +4 -4
- package/lib/common/formats/html/import/utils/character-properties-utils.js +4 -4
- package/lib/common/formats/i-document-importer.d.ts +2 -2
- package/lib/common/formats/pdf/exporter.js +3 -3
- package/lib/common/formats/pdf/interfaces.d.ts +2 -2
- package/lib/common/formats/rtf/export/exporter.js +1 -1
- package/lib/common/formats/rtf/export/exporters/rtf-anchored-picture-run-exporter.js +5 -5
- package/lib/common/formats/rtf/export/exporters/rtf-content-exporter.d.ts +1 -1
- package/lib/common/formats/rtf/export/exporters/rtf-content-exporter.js +2 -2
- package/lib/common/formats/rtf/export/rtf-builder.d.ts +2 -2
- package/lib/common/formats/rtf/import/destination/base/destination.d.ts +4 -4
- package/lib/common/formats/rtf/import/destination/base/destination.js +1 -1
- package/lib/common/formats/rtf/import/destination/base/skip-destination.js +3 -3
- package/lib/common/formats/rtf/import/destination/base/string-property-base-destination.js +2 -2
- package/lib/common/formats/rtf/import/destination/base/string-property-destination.js +2 -2
- package/lib/common/formats/rtf/import/destination/base/unicode-destination.js +2 -2
- package/lib/common/formats/rtf/import/destination/fields/field-sub-destination.js +1 -1
- package/lib/common/formats/rtf/import/destination/fields/table-content-field-destination.js +1 -1
- package/lib/common/formats/rtf/import/destination/font-table-destination.js +3 -3
- package/lib/common/formats/rtf/import/destination/numbering-list/destination-old-paragraph-numbering.js +1 -1
- package/lib/common/formats/rtf/import/destination/numbering-list/destination-old-section-numbering-level.js +1 -1
- package/lib/common/formats/rtf/import/destination/picture/picture-destination.js +4 -4
- package/lib/common/formats/rtf/import/destination/shape/shape-properties-destination-base.js +2 -2
- package/lib/common/formats/rtf/import/destination/shape/shape-property-destination.js +2 -2
- package/lib/common/formats/rtf/import/destination/shape/shape-property-hsv-value-destination.js +2 -2
- package/lib/common/formats/rtf/import/destination/styles/character-style-destination.js +5 -5
- package/lib/common/formats/rtf/import/destination/styles/style-sheet-destination.js +3 -3
- package/lib/common/formats/rtf/import/destination/styles/table-style-destination.js +7 -7
- package/lib/common/formats/rtf/import/destination/sub-document/destination-sub-document.js +2 -2
- package/lib/common/formats/rtf/import/destination/sub-document/section-header-footer-destination-base.js +1 -1
- package/lib/common/formats/rtf/import/importers/character-importer.js +1 -1
- package/lib/common/formats/rtf/import/importers/field-importer.js +2 -2
- package/lib/common/formats/rtf/import/importers/paragraph-importer.js +4 -4
- package/lib/common/formats/rtf/import/importers/range-permission-importer.js +1 -1
- package/lib/common/formats/rtf/import/importers/section-importer.js +4 -4
- package/lib/common/formats/rtf/import/importers/styles/paragraph-style-importer.js +4 -4
- package/lib/common/formats/rtf/import/model/numbering-lists/rtf-old-list-level-info.js +10 -10
- package/lib/common/formats/rtf/import/rtf-import-data.js +13 -13
- package/lib/common/formats/txt/txt-exporter.js +1 -1
- package/lib/common/global-event-dispatcher.d.ts +1 -1
- package/lib/common/input-controller.d.ts +14 -1
- package/lib/common/input-controller.js +58 -20
- package/lib/common/interfaces/i-control-owner.d.ts +1 -0
- package/lib/common/layout/document-layout.js +1 -1
- package/lib/common/layout/main-structures/layout-boxes/layout-anchored-object-box.d.ts +1 -1
- package/lib/common/layout/main-structures/layout-boxes/layout-dash-box.js +1 -1
- package/lib/common/layout/main-structures/layout-boxes/layout-line-break-box.js +4 -4
- package/lib/common/layout/main-structures/layout-boxes/layout-numbering-list-box.js +10 -10
- package/lib/common/layout/main-structures/layout-boxes/layout-page-break-box.js +4 -4
- package/lib/common/layout/main-structures/layout-boxes/layout-space-box.js +1 -1
- package/lib/common/layout/main-structures/layout-row.js +1 -1
- package/lib/common/layout/table/table-cell-iterator.js +6 -6
- package/lib/common/layout-engine/hit-test-manager/hit-test-result.d.ts +1 -1
- package/lib/common/layout-engine/selection/selection-formatter.js +1 -1
- package/lib/common/layout-formatter/box/generator/box-infos-generator.js +3 -3
- package/lib/common/layout-formatter/changes/changes/layout-change-base.js +12 -12
- package/lib/common/layout-formatter/invalidator/layout-invalidator.js +3 -3
- package/lib/common/layout-formatter/managers/formatter-manager.d.ts +1 -1
- package/lib/common/layout-formatter/managers/formatter-manager.js +2 -2
- package/lib/common/layout-formatter/row/result.js +3 -3
- package/lib/common/layout-formatter/row/size-engine/row-formatting-info.js +2 -2
- package/lib/common/layout-formatter/row/size-engine/row-height-calculator.js +3 -3
- package/lib/common/layout-formatter/row/tab-info.js +8 -8
- package/lib/common/layout-formatter/table/borders/border-helper.d.ts +1 -1
- package/lib/common/layout-formatter/table/borders/border-helper.js +5 -5
- package/lib/common/layout-formatter/table/formatter.js +12 -12
- package/lib/common/layout-formatter/table/grid-engine/calculators/column-interval.js +3 -3
- package/lib/common/layout-formatter/table/grid-engine/calculators/grid-calculator.js +3 -3
- package/lib/common/layout-formatter/table/grid-engine/calculators/table-properties-cache.js +7 -7
- package/lib/common/layout-formatter/table/info/cell-info.js +8 -8
- package/lib/common/layout-formatter/table/info/row-info.js +1 -1
- package/lib/common/layout-formatter/table/info/table-info.js +17 -17
- package/lib/common/model/bookmarks.js +7 -7
- package/lib/common/model/borders/border-base.js +3 -3
- package/lib/common/model/caches/hash-based-cache.d.ts +1 -1
- package/lib/common/model/caches/hash-based-cache.js +2 -2
- package/lib/common/model/caches/images.js +11 -11
- package/lib/common/model/changes/change.d.ts +1 -1
- package/lib/common/model/changes/sub-document/list/paragraph-numbering-list-changed.js +1 -1
- package/lib/common/model/changes/sub-document/table/cell-property-changed.js +1 -1
- package/lib/common/model/changes/sub-document/table/property-changed.js +1 -1
- package/lib/common/model/changes/sub-document/table/row-property-changed.js +1 -1
- package/lib/common/model/character/character-property-descriptor.d.ts +1 -1
- package/lib/common/model/color/color-model-info.js +6 -6
- package/lib/common/model/creator/font-corrector.js +5 -5
- package/lib/common/model/document-model.js +10 -10
- package/lib/common/model/fields/field-request-manager.d.ts +1 -1
- package/lib/common/model/fields/field-request-manager.js +2 -2
- package/lib/common/model/fields/names.d.ts +2 -1
- package/lib/common/model/fields/names.js +1 -0
- package/lib/common/model/fields/parsers/field-code-parser-client-updating-base.js +1 -1
- package/lib/common/model/fields/parsers/field-code-parser-doc-variable.js +1 -1
- package/lib/common/model/fields/parsers/field-code-parser-hyperlink.js +1 -1
- package/lib/common/model/fields/parsers/field-code-parser-if.d.ts +39 -0
- package/lib/common/model/fields/parsers/field-code-parser-if.js +138 -0
- package/lib/common/model/fields/parsers/field-code-parser-merge-field.js +1 -1
- package/lib/common/model/fields/parsers/field-code-parser.d.ts +5 -4
- package/lib/common/model/fields/parsers/field-code-parser.js +6 -12
- package/lib/common/model/fields/tree-creator.js +3 -1
- package/lib/common/model/floating-objects/sizes.js +2 -2
- package/lib/common/model/fonts/control-font.js +9 -9
- package/lib/common/model/fonts/loader.js +1 -1
- package/lib/common/model/footnotes/footnote.d.ts +1 -1
- package/lib/common/model/history/base/history-item.js +6 -6
- package/lib/common/model/history/base/interval-based-history-item.js +2 -2
- package/lib/common/model/history/base/position-based-history-item.js +2 -2
- package/lib/common/model/history/items/floating-objects/insert-anchored-picture-history-item.js +1 -0
- package/lib/common/model/history/items/insert-text-history-item.js +3 -3
- package/lib/common/model/history/items/switch-text-box-sub-documents-state-history-item.js +0 -1
- package/lib/common/model/history/selection/scroll-history-item.js +3 -3
- package/lib/common/model/history/selection/selection-history-item.js +3 -3
- package/lib/common/model/json/importers/sub-document/run-importers.d.ts +2 -2
- package/lib/common/model/manipulators/base-manipulator.js +2 -2
- package/lib/common/model/manipulators/document/sub-document-inserter.js +6 -6
- package/lib/common/model/manipulators/model-manipulator.js +1 -1
- package/lib/common/model/manipulators/picture-manipulator/insert-picture-manipulator-params.js +1 -1
- package/lib/common/model/manipulators/picture-manipulator/loader/image-loading-options.d.ts +1 -1
- package/lib/common/model/manipulators/picture-manipulator/loader/picture-loader.d.ts +1 -1
- package/lib/common/model/manipulators/picture-manipulator/loader/picture-loader.js +1 -1
- package/lib/common/model/manipulators/range/create-range-copy-operation.js +3 -3
- package/lib/common/model/manipulators/range/remove-interval-operation.js +8 -2
- package/lib/common/model/manipulators/tables/insert-table-cell-operation.js +1 -1
- package/lib/common/model/manipulators/tables/insert-table-row-operation.js +1 -1
- package/lib/common/model/manipulators/tables/merge-table-cells-operation.js +1 -1
- package/lib/common/model/manipulators/tables/table-normalizator.d.ts +2 -2
- package/lib/common/model/manipulators/text-box-manipulator.d.ts +1 -1
- package/lib/common/model/manipulators/text-box-manipulator.js +2 -1
- package/lib/common/model/options/fields.d.ts +1 -0
- package/lib/common/model/options/fields.js +3 -1
- package/lib/common/model/options/pdf.d.ts +2 -2
- package/lib/common/model/options/rich-options.js +3 -3
- package/lib/common/model/paragraph/paragraph-property-descriptors.d.ts +1 -1
- package/lib/common/model/paragraph/paragraph.js +1 -1
- package/lib/common/model/position/linked-interval.js +4 -4
- package/lib/common/model/range-permissions.js +3 -3
- package/lib/common/model/runs/anchored-picture-run.js +4 -4
- package/lib/common/model/runs/inline-picture-run.d.ts +1 -1
- package/lib/common/model/runs/inline-picture-run.js +1 -1
- package/lib/common/model/runs/run-base.js +4 -4
- package/lib/common/model/section/section-property-descriptor.d.ts +1 -1
- package/lib/common/model/shadings/shading-info.js +3 -3
- package/lib/common/model/styles-manager.d.ts +1 -1
- package/lib/common/model/tables/main-structures/table-row.js +1 -1
- package/lib/common/mouse-handler/base/manipulator-handler-state-base.js +2 -2
- package/lib/common/mouse-handler/mouse-handler/mouse-handler-drag-column-or-row-state.d.ts +1 -1
- package/lib/common/rich-edit-core.js +11 -11
- package/lib/common/rich-utils/debug/runtime-template-model-creator.js +6 -6
- package/lib/common/scroll/model-states.d.ts +1 -1
- package/lib/common/scroll/model-states.js +4 -4
- package/lib/common/selection/selected-cells-engine.js +12 -12
- package/lib/common/selection/selection-intervals-info.js +7 -7
- package/lib/common/selection/selection-state.js +5 -5
- package/lib/common/selection/selection.js +15 -14
- package/lib/common/ui/quick-search-panel.js +1 -1
- package/lib/common/ui/ruler/controls/base.js +1 -1
- package/lib/common/ui/ruler/controls/column.js +1 -1
- package/lib/common/ui/ruler/controls/divisions.js +1 -1
- package/lib/common/ui/ruler/controls/indent/first-line.js +7 -7
- package/lib/common/ui/ruler/controls/indent/left.js +6 -6
- package/lib/common/ui/ruler/controls/indent/right.js +7 -7
- package/lib/common/ui/ruler/controls/margin/left.js +4 -4
- package/lib/common/ui/ruler/controls/margin/right.js +1 -1
- package/lib/common/ui/ruler/controls/owner.js +1 -1
- package/lib/common/ui/ruler/controls/ruler.js +5 -5
- package/lib/common/ui/ruler/controls/tab/tab-type.js +5 -5
- package/lib/common/ui/ruler/controls/tab/tab.js +7 -7
- package/lib/common/ui/ruler/controls/tab/utils.d.ts +2 -2
- package/lib/common/ui/ruler/controls/tab/utils.js +5 -5
- package/lib/common/ui/ruler/controls/table.js +1 -1
- package/lib/common/ui/ruler/controls/vertical-line.d.ts +1 -2
- package/lib/common/ui/ruler/controls/vertical-line.js +2 -2
- package/lib/common/ui/ruler/controls/wrapper.js +1 -1
- package/lib/common/ui/ruler/manager.js +19 -19
- package/lib/common/ui/ruler/model-data.d.ts +8 -2
- package/lib/common/ui/ruler/model-data.js +10 -4
- package/lib/common/ui/ruler/ruler.js +4 -3
- package/lib/common/utils/utils.d.ts +8 -1
- package/lib/common/utils/utils.js +39 -8
- package/lib/common/view-settings/views-settings.js +6 -6
- package/package.json +3 -3
@@ -3,15 +3,15 @@ import { RtfFontInfo } from '../model/character/rtf-font-info';
|
|
3
3
|
import { DestinationBase } from './base/destination';
|
4
4
|
import { DestinationType } from './utils/destination-type';
|
5
5
|
export class FontTableDestination extends DestinationBase {
|
6
|
+
get destinationType() { return DestinationType.FontTableDestination; }
|
7
|
+
get controlCharHT() { return null; }
|
8
|
+
get keywordHT() { return null; }
|
6
9
|
constructor(importer, nestedState = false) {
|
7
10
|
super(importer);
|
8
11
|
this.nestedState = nestedState;
|
9
12
|
this.fontInfo = new RtfFontInfo();
|
10
13
|
this.emptyFontInfo = true;
|
11
14
|
}
|
12
|
-
get destinationType() { return DestinationType.FontTableDestination; }
|
13
|
-
get controlCharHT() { return null; }
|
14
|
-
get keywordHT() { return null; }
|
15
15
|
processKeywordCore(keyword, parameterValue, hasParameter) {
|
16
16
|
if (!hasParameter)
|
17
17
|
parameterValue = 0;
|
@@ -8,6 +8,7 @@ import { RtfOldListLevelInfo } from '../../model/numbering-lists/rtf-old-list-le
|
|
8
8
|
import { DestinationType } from '../utils/destination-type';
|
9
9
|
import { DestinationOldParagraphNumberingBase } from './destination-old-paragraph-numbering-base';
|
10
10
|
export class DestinationOldParagraphNumbering extends DestinationOldParagraphNumberingBase {
|
11
|
+
get destinationType() { return DestinationType.DestinationOldParagraphNumbering; }
|
11
12
|
constructor(importer) {
|
12
13
|
super(importer);
|
13
14
|
this.oldLevelNumber = -1;
|
@@ -17,7 +18,6 @@ export class DestinationOldParagraphNumbering extends DestinationOldParagraphNum
|
|
17
18
|
this.multiLevelListIndex = NumberingListIndexConstants.listIndexNotSetted;
|
18
19
|
this.simpleListIndex = NumberingListIndexConstants.listIndexNotSetted;
|
19
20
|
}
|
20
|
-
get destinationType() { return DestinationType.DestinationOldParagraphNumbering; }
|
21
21
|
static onParagraphLevelKeyword(importer, parameterValue, hasParameter) {
|
22
22
|
if (hasParameter && parameterValue == 10) {
|
23
23
|
DestinationOldParagraphNumbering.onSimpleNumberingKeyword(importer, 0, false);
|
@@ -2,12 +2,12 @@ import { RtfOldListLevelInfo } from '../../model/numbering-lists/rtf-old-list-le
|
|
2
2
|
import { DestinationType } from '../utils/destination-type';
|
3
3
|
import { DestinationOldParagraphNumberingBase } from './destination-old-paragraph-numbering-base';
|
4
4
|
export class DestinationOldSectionNumberingLevel extends DestinationOldParagraphNumberingBase {
|
5
|
+
get destinationType() { return DestinationType.DestinationOldSectionNumberingLevel; }
|
5
6
|
constructor(importer, levelNumber) {
|
6
7
|
super(importer);
|
7
8
|
importer.importers.numbering.oldListLevelInfo = new RtfOldListLevelInfo();
|
8
9
|
this.levelNumber = levelNumber;
|
9
10
|
}
|
10
|
-
get destinationType() { return DestinationType.DestinationOldSectionNumberingLevel; }
|
11
11
|
createClone() {
|
12
12
|
const result = new DestinationOldSectionNumberingLevel(this.importer, this.levelNumber);
|
13
13
|
return result;
|
@@ -12,16 +12,16 @@ import { PictureSourceType } from '../utils/enums';
|
|
12
12
|
import { RtfHundredthsOfMillimeterConverter, RtfPixelsToTwipsConverter } from './picture-units-converter';
|
13
13
|
import { SkipDestination } from '../base/skip-destination';
|
14
14
|
export class PictureDestination extends HexContentDestination {
|
15
|
+
get destinationType() { return DestinationType.PictureDestination; }
|
16
|
+
;
|
17
|
+
get controlCharHT() { return null; }
|
18
|
+
;
|
15
19
|
constructor(importer) {
|
16
20
|
super(importer);
|
17
21
|
this.info = new PictureDestinationInfo();
|
18
22
|
this.oldDecoder = this.importer.importers.character.characterFormatting.rtfFormattingInfo.activeDecoder;
|
19
23
|
this.importer.importers.character.characterFormatting.rtfFormattingInfo.activeDecoder = new EmptyCharacterDecoder();
|
20
24
|
}
|
21
|
-
get destinationType() { return DestinationType.PictureDestination; }
|
22
|
-
;
|
23
|
-
get controlCharHT() { return null; }
|
24
|
-
;
|
25
25
|
static getThis(rtfImporter) {
|
26
26
|
return rtfImporter.destination;
|
27
27
|
}
|
package/lib/common/formats/rtf/import/destination/shape/shape-properties-destination-base.js
CHANGED
@@ -12,12 +12,12 @@ import { DrawingObjectHorizontalPositionType, DrawingObjectVerticalPositionType
|
|
12
12
|
import { ShapePropertyDestination } from './shape-property-destination';
|
13
13
|
import { ShapeTextDestination } from './shape-text-destination';
|
14
14
|
export class ShapePropertiesDestinationBase extends DestinationBase {
|
15
|
+
get destinationType() { return DestinationType.ShapePropertiesDestinationBase; }
|
16
|
+
get controlCharHT() { return null; }
|
15
17
|
constructor(importer, shapeProperties = new RtfShapePropertiesInfo()) {
|
16
18
|
super(importer);
|
17
19
|
this.shapeProperties = shapeProperties;
|
18
20
|
}
|
19
|
-
get destinationType() { return DestinationType.ShapePropertiesDestinationBase; }
|
20
|
-
get controlCharHT() { return null; }
|
21
21
|
static getThis(rtfImporter) {
|
22
22
|
return rtfImporter.destination;
|
23
23
|
}
|
@@ -5,12 +5,12 @@ import { ShapePropertyHsvValueDestination } from './shape-property-hsv-value-des
|
|
5
5
|
import { ShapePropertyNameDestination } from './shape-property-name-destination';
|
6
6
|
import { ShapePropertyValueDestination } from './shape-property-value-destination';
|
7
7
|
export class ShapePropertyDestination extends DestinationBase {
|
8
|
+
get destinationType() { return DestinationType.ShapePropertyDestination; }
|
9
|
+
get controlCharHT() { return null; }
|
8
10
|
constructor(rtfImporter, properties) {
|
9
11
|
super(rtfImporter);
|
10
12
|
this.properties = properties;
|
11
13
|
}
|
12
|
-
get destinationType() { return DestinationType.ShapePropertyDestination; }
|
13
|
-
get controlCharHT() { return null; }
|
14
14
|
processControlCharCore(_ch) { }
|
15
15
|
processKeywordCore(keyword, parameterValue, hasParameter) {
|
16
16
|
const translator = this.keywordHT[keyword];
|
package/lib/common/formats/rtf/import/destination/shape/shape-property-hsv-value-destination.js
CHANGED
@@ -3,12 +3,12 @@ import { HsvInfo } from '../../model/color-collections';
|
|
3
3
|
import { DestinationBase } from '../base/destination';
|
4
4
|
import { DestinationType } from '../utils/destination-type';
|
5
5
|
export class ShapePropertyHsvValueDestination extends DestinationBase {
|
6
|
+
get destinationType() { return DestinationType.ShapePropertyHsvValueDestination; }
|
7
|
+
get controlCharHT() { return null; }
|
6
8
|
constructor(importer, hsvInfo = new HsvInfo()) {
|
7
9
|
super(importer);
|
8
10
|
this.hsvInfo = hsvInfo;
|
9
11
|
}
|
10
|
-
get destinationType() { return DestinationType.ShapePropertyHsvValueDestination; }
|
11
|
-
get controlCharHT() { return null; }
|
12
12
|
static getThis(importer) {
|
13
13
|
return importer.destination;
|
14
14
|
}
|
@@ -4,11 +4,6 @@ import { DestinationSubDocument } from '../sub-document/destination-sub-document
|
|
4
4
|
import { DestinationType } from '../utils/destination-type';
|
5
5
|
import { StyleSheetDestination } from './style-sheet-destination';
|
6
6
|
export class CharacterStyleDestination extends DestinationSubDocument {
|
7
|
-
constructor(importer, styleIndex) {
|
8
|
-
super(importer, importer.subDocument);
|
9
|
-
importer.importers.style.character.rtfStyleIndex = styleIndex;
|
10
|
-
this.styleName = '';
|
11
|
-
}
|
12
7
|
get destinationType() { return DestinationType.CharacterStyleDestination; }
|
13
8
|
get controlCharHT() { return null; }
|
14
9
|
static onParentStyleIndex(importer, parameterValue, _hasParameter) {
|
@@ -21,6 +16,11 @@ export class CharacterStyleDestination extends DestinationSubDocument {
|
|
21
16
|
importer.destination.qFormat = true;
|
22
17
|
importer.importers.style.character.rtfParentStyleIndex = parameterValue;
|
23
18
|
}
|
19
|
+
constructor(importer, styleIndex) {
|
20
|
+
super(importer, importer.subDocument);
|
21
|
+
importer.importers.style.character.rtfStyleIndex = styleIndex;
|
22
|
+
this.styleName = '';
|
23
|
+
}
|
24
24
|
get canAppendText() {
|
25
25
|
return false;
|
26
26
|
}
|
@@ -8,14 +8,14 @@ import { DestinationType } from '../utils/destination-type';
|
|
8
8
|
import { CharacterStyleDestination } from './character-style-destination';
|
9
9
|
import { TableStyleDestination } from './table-style-destination';
|
10
10
|
export class StyleSheetDestination extends DestinationSubDocument {
|
11
|
+
get destinationType() { return DestinationType.StyleSheetDestination; }
|
12
|
+
get controlCharHT() { return null; }
|
13
|
+
get canAppendText() { return false; }
|
11
14
|
constructor(importer) {
|
12
15
|
super(importer, importer.subDocument);
|
13
16
|
this.styleName = "";
|
14
17
|
importer.rtfDocumentModelType = RtfDocumentModelType.WithStyle;
|
15
18
|
}
|
16
|
-
get destinationType() { return DestinationType.StyleSheetDestination; }
|
17
|
-
get controlCharHT() { return null; }
|
18
|
-
get canAppendText() { return false; }
|
19
19
|
static onStyleQFormatKeyword(importer, _parameterValue, _hasParameter) {
|
20
20
|
importer.destination.qFormat = true;
|
21
21
|
}
|
@@ -9,13 +9,6 @@ import { RtfTableRowPropertiesMerger } from '../../../utils/mergers/rtf-table-ro
|
|
9
9
|
import { DestinationSubDocument } from '../sub-document/destination-sub-document';
|
10
10
|
import { DestinationType } from '../utils/destination-type';
|
11
11
|
export class TableStyleDestination extends DestinationSubDocument {
|
12
|
-
constructor(importer, styleIndex) {
|
13
|
-
super(importer, importer.subDocument);
|
14
|
-
this.conditionalTableStyleFormattingType = ConditionalTableStyleFormatting.WholeTable;
|
15
|
-
this.styleName = '';
|
16
|
-
this.rtfStyleIndex = styleIndex;
|
17
|
-
this.importer.importers.character.characterFormatting.coreProperties.setUseValue(CharacterPropertiesMask.UseAll, false);
|
18
|
-
}
|
19
12
|
get destinationType() { return DestinationType.TableStyleDestination; }
|
20
13
|
get controlCharHT() { return null; }
|
21
14
|
static onStyleQFormatKeyword(importer, _parameterValue, _hasParameter) {
|
@@ -69,6 +62,13 @@ export class TableStyleDestination extends DestinationSubDocument {
|
|
69
62
|
get rtfStyleIndex() { return this.importer.importers.style.table.rtfStyleIndex; }
|
70
63
|
set rtfStyleIndex(value) { this.importer.importers.style.table.rtfStyleIndex = value; }
|
71
64
|
get rtfParentStyleIndex() { return this.importer.importers.style.table.rtfParentStyleIndex; }
|
65
|
+
constructor(importer, styleIndex) {
|
66
|
+
super(importer, importer.subDocument);
|
67
|
+
this.conditionalTableStyleFormattingType = ConditionalTableStyleFormatting.WholeTable;
|
68
|
+
this.styleName = '';
|
69
|
+
this.rtfStyleIndex = styleIndex;
|
70
|
+
this.importer.importers.character.characterFormatting.coreProperties.setUseValue(CharacterPropertiesMask.UseAll, false);
|
71
|
+
}
|
72
72
|
beforePopRtfState() {
|
73
73
|
const name = this.styleName.trim();
|
74
74
|
let style = null;
|
@@ -32,12 +32,12 @@ import { DestinationType } from '../utils/destination-type';
|
|
32
32
|
import { ParagraphFrameHorizontalPositionType, ParagraphFrameTextWrapType, ParagraphFrameVerticalPositionType } from '../utils/enums';
|
33
33
|
import { TableCellPropertyDescriptor } from '../../../../../model/tables/properties/table-cell-properties';
|
34
34
|
export class DestinationSubDocument extends DestinationBase {
|
35
|
+
get destinationType() { return DestinationType.DestinationSubDocument; }
|
36
|
+
get controlCharHT() { return DestinationSubDocument.controlCharHT; }
|
35
37
|
constructor(importer, targetSubDocument) {
|
36
38
|
super(importer);
|
37
39
|
this.subDocument = targetSubDocument;
|
38
40
|
}
|
39
|
-
get destinationType() { return DestinationType.DestinationSubDocument; }
|
40
|
-
get controlCharHT() { return DestinationSubDocument.controlCharHT; }
|
41
41
|
get canAppendText() { return true; }
|
42
42
|
canProcessSpecialHexChar() { return true; }
|
43
43
|
get documentModel() { return this.subDocument.documentModel; }
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { DestinationType } from '../utils/destination-type';
|
2
2
|
import { DestinationSubDocument } from './destination-sub-document';
|
3
3
|
export class SectionHeaderFooterDestinationBase extends DestinationSubDocument {
|
4
|
+
get destinationType() { return DestinationType.SectionHeaderFooterDestinationBase; }
|
4
5
|
constructor(importer, section, subDocument) {
|
5
6
|
super(importer, subDocument);
|
6
7
|
this.section = section;
|
7
8
|
}
|
8
|
-
get destinationType() { return DestinationType.SectionHeaderFooterDestinationBase; }
|
9
9
|
}
|
@@ -14,6 +14,7 @@ class RtfCharacterImporterState {
|
|
14
14
|
}
|
15
15
|
}
|
16
16
|
export class RtfCharacterImporter extends RtfBaseImporter {
|
17
|
+
get characterFormatting() { return this.states.last.characterFormatting; }
|
17
18
|
constructor(data) {
|
18
19
|
super(data);
|
19
20
|
this.states = new Stack();
|
@@ -22,7 +23,6 @@ export class RtfCharacterImporter extends RtfBaseImporter {
|
|
22
23
|
this.states.push(new RtfCharacterImporterState(defaultCharacterProperties));
|
23
24
|
this.logPosition = 0;
|
24
25
|
}
|
25
|
-
get characterFormatting() { return this.states.last.characterFormatting; }
|
26
26
|
static getOnlyOwnCharacterProperties(source, parentCharacterStyle) {
|
27
27
|
const parentPropertiesMerger = new CharacterPropertiesMerger();
|
28
28
|
parentPropertiesMerger.mergeCharacterStyle(parentCharacterStyle);
|
@@ -4,12 +4,12 @@ import { FieldCodeEndRun, FieldCodeStartRun, FieldResultEndRun } from '../../../
|
|
4
4
|
import { RtfFieldInfo } from '../model/fields/rtf-field-info';
|
5
5
|
import { RtfBaseImporter } from './importer-base';
|
6
6
|
export class RtfFieldImporter extends RtfBaseImporter {
|
7
|
+
get fields() { return this.data.positionStates.last.fields; }
|
8
|
+
get currentField() { return this.fields.last; }
|
7
9
|
constructor(data) {
|
8
10
|
super(data);
|
9
11
|
this.updateFieldsOnPaste = true;
|
10
12
|
}
|
11
|
-
get fields() { return this.data.positionStates.last.fields; }
|
12
|
-
get currentField() { return this.fields.last; }
|
13
13
|
startField() {
|
14
14
|
this.fields.push(new RtfFieldInfo());
|
15
15
|
}
|
@@ -15,15 +15,15 @@ class RtfParagraphImporterState {
|
|
15
15
|
}
|
16
16
|
}
|
17
17
|
export class RtfParagraphImporter extends RtfBaseImporter {
|
18
|
+
get paragraph() { return this.data.positionStates.last.paragraph; }
|
19
|
+
set paragraph(value) { this.data.positionStates.last.paragraph = value; }
|
20
|
+
get paragraphFormatting() { return this.states.last.paragraphFormatting; }
|
21
|
+
set paragraphFormatting(value) { this.states.last.paragraphFormatting = value; }
|
18
22
|
constructor(data) {
|
19
23
|
super(data);
|
20
24
|
this.states = new Stack();
|
21
25
|
this.states.push(new RtfParagraphImporterState(new RtfParagraphProperties()));
|
22
26
|
}
|
23
|
-
get paragraph() { return this.data.positionStates.last.paragraph; }
|
24
|
-
set paragraph(value) { this.data.positionStates.last.paragraph = value; }
|
25
|
-
get paragraphFormatting() { return this.states.last.paragraphFormatting; }
|
26
|
-
set paragraphFormatting(value) { this.states.last.paragraphFormatting = value; }
|
27
27
|
static getOnlyOwnCharacterProperties(source, parentStyle) {
|
28
28
|
const parentParagraphPropertiesMerger = new ParagraphPropertiesMerger();
|
29
29
|
parentParagraphPropertiesMerger.mergeParagraphStyle(parentStyle);
|
@@ -4,12 +4,12 @@ import { StringMapUtils } from '@devexpress/utils/lib/utils/map/string';
|
|
4
4
|
import { RtfRevisionAuthors } from '../model/rtf-revision-authors';
|
5
5
|
import { RtfBaseImporter } from './importer-base';
|
6
6
|
export class RtfRangePermissionImporter extends RtfBaseImporter {
|
7
|
+
get rangePermissions() { return this.data.positionStates.last.rangePermissions; }
|
7
8
|
constructor(data) {
|
8
9
|
super(data);
|
9
10
|
this.revisionAuthors = new RtfRevisionAuthors();
|
10
11
|
this.userNames = [];
|
11
12
|
}
|
12
|
-
get rangePermissions() { return this.data.positionStates.last.rangePermissions; }
|
13
13
|
insertRangePermissions() {
|
14
14
|
StringMapUtils.forEach(this.data.importers.rangePermission.rangePermissions, (rangePermission, _name) => {
|
15
15
|
if (rangePermission.validate(this.subDocument))
|
@@ -9,16 +9,16 @@ import { SectionPageHeaderDestination } from '../destination/sub-document/sectio
|
|
9
9
|
import { RtfSectionProperties } from '../model/section/rtf-section-properties';
|
10
10
|
import { RtfBaseImporter } from './importer-base';
|
11
11
|
export class RtfSectionImporter extends RtfBaseImporter {
|
12
|
-
constructor(data) {
|
13
|
-
super(data);
|
14
|
-
this.defaultSectionProperties = new RtfSectionProperties();
|
15
|
-
}
|
16
12
|
get states() { return this.data.positionStates.last.sectionProperties; }
|
17
13
|
get currentProperties() {
|
18
14
|
if (!this.states.count)
|
19
15
|
this.states.push(new RtfSectionProperties());
|
20
16
|
return this.states.last;
|
21
17
|
}
|
18
|
+
constructor(data) {
|
19
|
+
super(data);
|
20
|
+
this.defaultSectionProperties = new RtfSectionProperties();
|
21
|
+
}
|
22
22
|
insertSection() {
|
23
23
|
const paragraphFormatting = this.data.importers.paragraph.paragraphFormatting;
|
24
24
|
paragraphFormatting.coreProperties.setValue(ParagraphPropertyDescriptor.lineSpacing, paragraphFormatting.calcLineSpacing());
|
@@ -5,10 +5,6 @@ import { ParagraphStyle, TabProperties } from '../../../../../model/paragraph/pa
|
|
5
5
|
import { RtfBaseStyleImporter } from './base-style-importer';
|
6
6
|
import { StylesManager } from '../../../../../model/styles-manager';
|
7
7
|
export class RtfParagraphStyleImporter extends RtfBaseStyleImporter {
|
8
|
-
constructor(data) {
|
9
|
-
super(data, false);
|
10
|
-
this.paragraphTableStyles = {};
|
11
|
-
}
|
12
8
|
addStyle(style) {
|
13
9
|
const result = this.documentModel.stylesManager.addParagraphStyle(style);
|
14
10
|
result.localizedName = StylesManager.getPresetParagraphStyleLocalizedName(style.styleName);
|
@@ -18,6 +14,10 @@ export class RtfParagraphStyleImporter extends RtfBaseStyleImporter {
|
|
18
14
|
this.rtfStyleIndex = Math.max(0, this.rtfStyleIndex);
|
19
15
|
this.rtfParentStyleIndex = Math.max(0, this.rtfParentStyleIndex);
|
20
16
|
}
|
17
|
+
constructor(data) {
|
18
|
+
super(data, false);
|
19
|
+
this.paragraphTableStyles = {};
|
20
|
+
}
|
21
21
|
get styleCollection() { return this.data.documentModel.paragraphStyles; }
|
22
22
|
;
|
23
23
|
createEmpty() {
|
@@ -2,16 +2,6 @@ import { MaskedCharacterProperties } from '../../../../../model/character/charac
|
|
2
2
|
import { FontInfo } from '../../../../../model/fonts/font-info';
|
3
3
|
import { ListLevelProperties } from '../../../../../model/numbering-lists/list-level-properties';
|
4
4
|
export class RtfOldListLevelInfo {
|
5
|
-
constructor() {
|
6
|
-
this.characterProperties = new MaskedCharacterProperties();
|
7
|
-
this.characterProperties.fontInfo = new FontInfo();
|
8
|
-
this.characterProperties.fontSize = 12;
|
9
|
-
this.characterProperties.setAllUse();
|
10
|
-
this.listLevelProperties = new ListLevelProperties();
|
11
|
-
this.textBefore = "";
|
12
|
-
this.textAfter = "";
|
13
|
-
this.indent = 0;
|
14
|
-
}
|
15
5
|
clone() {
|
16
6
|
const result = new RtfOldListLevelInfo();
|
17
7
|
result.copyFrom(this);
|
@@ -26,4 +16,14 @@ export class RtfOldListLevelInfo {
|
|
26
16
|
this.textAfter = _obj.textAfter;
|
27
17
|
this.indent = _obj.indent;
|
28
18
|
}
|
19
|
+
constructor() {
|
20
|
+
this.characterProperties = new MaskedCharacterProperties();
|
21
|
+
this.characterProperties.fontInfo = new FontInfo();
|
22
|
+
this.characterProperties.fontSize = 12;
|
23
|
+
this.characterProperties.setAllUse();
|
24
|
+
this.listLevelProperties = new ListLevelProperties();
|
25
|
+
this.textBefore = "";
|
26
|
+
this.textAfter = "";
|
27
|
+
this.indent = 0;
|
28
|
+
}
|
29
29
|
}
|
@@ -30,6 +30,19 @@ export class RtfPositionState {
|
|
30
30
|
}
|
31
31
|
}
|
32
32
|
export class RtfImportData {
|
33
|
+
get destination() { return this._destination; }
|
34
|
+
set destination(newDestination) {
|
35
|
+
if (newDestination.subDocument !== this.destination.subDocument) {
|
36
|
+
this.beforeChangeSubDocument(newDestination.subDocument);
|
37
|
+
this.subDocument = newDestination.subDocument;
|
38
|
+
this.onChangeSubDocument();
|
39
|
+
}
|
40
|
+
this._destination = newDestination;
|
41
|
+
}
|
42
|
+
get savedStatesCount() { return this.savedDestinations.count; }
|
43
|
+
get formattingInfo() {
|
44
|
+
return this.importers.character.characterFormatting.rtfFormattingInfo;
|
45
|
+
}
|
33
46
|
constructor(rtfText, importOptions, documentModel, richOptions) {
|
34
47
|
this.intervalsToDelete = [];
|
35
48
|
this.documentModel = documentModel;
|
@@ -52,19 +65,6 @@ export class RtfImportData {
|
|
52
65
|
this.positionStates = new Stack();
|
53
66
|
this.addEmptyPositionState();
|
54
67
|
}
|
55
|
-
get destination() { return this._destination; }
|
56
|
-
set destination(newDestination) {
|
57
|
-
if (newDestination.subDocument !== this.destination.subDocument) {
|
58
|
-
this.beforeChangeSubDocument(newDestination.subDocument);
|
59
|
-
this.subDocument = newDestination.subDocument;
|
60
|
-
this.onChangeSubDocument();
|
61
|
-
}
|
62
|
-
this._destination = newDestination;
|
63
|
-
}
|
64
|
-
get savedStatesCount() { return this.savedDestinations.count; }
|
65
|
-
get formattingInfo() {
|
66
|
-
return this.importers.character.characterFormatting.rtfFormattingInfo;
|
67
|
-
}
|
68
68
|
beforeChangeSubDocument(newSubDocument) {
|
69
69
|
if (this.positionStates.count == 1)
|
70
70
|
return;
|
@@ -2,11 +2,11 @@ import { FixedInterval } from '@devexpress/utils/lib/intervals/fixed';
|
|
2
2
|
import { Base64Utils } from '@devexpress/utils/lib/utils/base64';
|
3
3
|
import { PlainTextMimeType } from '@devexpress/utils/lib/utils/mime-type';
|
4
4
|
export class TxtExporter {
|
5
|
+
get model() { return this.modelManipulator.model; }
|
5
6
|
constructor(modelManipulator, options) {
|
6
7
|
this.modelManipulator = modelManipulator;
|
7
8
|
this.options = options;
|
8
9
|
}
|
9
|
-
get model() { return this.modelManipulator.model; }
|
10
10
|
exportToBlob(callback) {
|
11
11
|
this.getBlob(callback);
|
12
12
|
}
|
@@ -7,7 +7,7 @@ import { IRichEditControl } from './interfaces/i-rich-edit-core';
|
|
7
7
|
import { ISelectionChangesListener } from './selection/i-selection-changes-listener';
|
8
8
|
import { Selection } from './selection/selection';
|
9
9
|
import { ContentInsertedSubDocumentChange } from './model/changes/change-base';
|
10
|
-
|
10
|
+
type EventAction = () => void;
|
11
11
|
declare enum PublicApiEventType {
|
12
12
|
None = 0,
|
13
13
|
DocumentLoaded = 1,
|
@@ -4,6 +4,11 @@ import { IEventManager } from './interfaces/i-event-manager';
|
|
4
4
|
import { IRichEditControl } from './interfaces/i-rich-edit-core';
|
5
5
|
import { HtmlBuilder } from './formats/html/export/html-builder';
|
6
6
|
export declare const INPUT_CLASS_NAME = "dxreInputTarget";
|
7
|
+
declare enum IMEState {
|
8
|
+
None = 0,
|
9
|
+
Start = 1,
|
10
|
+
Process = 2
|
11
|
+
}
|
7
12
|
export declare abstract class InputEditorBase<TInpElement extends HTMLElement> {
|
8
13
|
private newLineRegexp;
|
9
14
|
eventManager: IEventManager;
|
@@ -14,7 +19,7 @@ export declare abstract class InputEditorBase<TInpElement extends HTMLElement> {
|
|
14
19
|
needProcessShortcut: boolean;
|
15
20
|
initializedIfNotReadOnly: boolean;
|
16
21
|
prevKeyCode: number;
|
17
|
-
|
22
|
+
IMEState: IMEState;
|
18
23
|
private inputWithAlt;
|
19
24
|
private processTextOnKeyPress;
|
20
25
|
protected evtHandlersHolder: DomEventHandlersHolder;
|
@@ -68,11 +73,15 @@ export declare class DivInputEditor extends InputEditorBase<HTMLElement> {
|
|
68
73
|
private cursorWasSetOnLastPosition;
|
69
74
|
private clearInputTimerId;
|
70
75
|
private lastCursorPosition;
|
76
|
+
private composUpdateTimerId;
|
77
|
+
private composEndTimerId;
|
78
|
+
private onTextInputTimerId;
|
71
79
|
constructor(control: IRichEditControl, eventManager: IEventManager, parent: HTMLElement);
|
72
80
|
dispose(): void;
|
73
81
|
initializeIfNotReadOnlyCore(): void;
|
74
82
|
setPosition(left: number, top: number): void;
|
75
83
|
createInputElement(): HTMLElement;
|
84
|
+
initEvents(): void;
|
76
85
|
onKeyDown(evt: KeyboardEvent): void;
|
77
86
|
onKeyUp(evt: KeyboardEvent): void;
|
78
87
|
onInput(evt: InputEvent): void;
|
@@ -93,6 +102,9 @@ export declare class DivInputEditor extends InputEditorBase<HTMLElement> {
|
|
93
102
|
getEditableDocumentContent(): string | NodeListOf<ChildNode>;
|
94
103
|
getEditableDocumentCursorPosition(): number;
|
95
104
|
selectEditableDocumentContent(): void;
|
105
|
+
onCompositionStart(_evt: KeyboardEvent): void;
|
106
|
+
onCompositionUpdate(_evt: KeyboardEvent): void;
|
107
|
+
onCompositionEnd(_evt: KeyboardEvent): void;
|
96
108
|
}
|
97
109
|
export declare class IFrameInputEditor extends InputEditorBase<HTMLIFrameElement> {
|
98
110
|
editableDocument: Document;
|
@@ -145,3 +157,4 @@ export declare class InputController {
|
|
145
157
|
getEditableDocumentContent(): string | NodeListOf<ChildNode>;
|
146
158
|
selectEditableDocumentContent(): void;
|
147
159
|
}
|
160
|
+
export {};
|