devexpress-richedit 24.1.6-build-24232-0102 → 24.2.1-alpha-24260-0102

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.
Files changed (273) hide show
  1. package/bin/gulpfile.js +1 -1
  2. package/bin/index-custom.js +1 -1
  3. package/bin/localization-builder.js +1 -1
  4. package/bin/nspell-index.js +1 -1
  5. package/bin/nspell.webpack.config.js +1 -1
  6. package/bin/webpack-externals.js +1 -1
  7. package/bin/webpack.config.js +1 -1
  8. package/dist/dx.richedit.d.ts +1 -1
  9. package/dist/dx.richedit.js +860 -788
  10. package/dist/dx.richedit.min.js +2 -2
  11. package/index.d.ts +1 -1
  12. package/index.js +1 -1
  13. package/lib/client/api/loading-panel.js +3 -3
  14. package/lib/client/bars/rich-edit-ribbon/ribbon-items-data.d.ts +2 -2
  15. package/lib/client/client-rich-edit.d.ts +1 -0
  16. package/lib/client/client-rich-edit.js +15 -11
  17. package/lib/client/commands/open-document-command.d.ts +1 -1
  18. package/lib/client/dialogs/dialog-base.js +3 -3
  19. package/lib/client/document-processor/public/processor.js +3 -3
  20. package/lib/client/formats/docx/export/data.js +5 -5
  21. package/lib/client/formats/docx/export/exporters/base/sections.js +4 -4
  22. package/lib/client/formats/docx/export/exporters/base.js +1 -1
  23. package/lib/client/formats/docx/export/exporters/content-types.js +4 -4
  24. package/lib/client/formats/docx/export/exporters/relations/relation-collection.js +1 -1
  25. package/lib/client/formats/docx/export/exporters/sub-document/base-sub-document.d.ts +1 -1
  26. package/lib/client/formats/docx/export/exporters/sub-document/base-sub-document.js +3 -3
  27. package/lib/client/formats/docx/export/exporters/sub-document/header-footer-sub-document-exporter.js +1 -1
  28. package/lib/client/formats/docx/import/data.js +2 -2
  29. package/lib/client/formats/docx/import/destination/character-properties/run-properties-base-destination.js +1 -1
  30. package/lib/client/formats/docx/import/destination/destination.d.ts +2 -2
  31. package/lib/client/formats/docx/import/destination/destination.js +7 -7
  32. package/lib/client/formats/docx/import/destination/drawing/drawing-anchor-position-destination.js +9 -9
  33. package/lib/client/formats/docx/import/destination/drawing/drawing-anchor-relative-size-destination.js +6 -6
  34. package/lib/client/formats/docx/import/destination/drawing/drawing-destination.js +38 -38
  35. package/lib/client/formats/docx/import/destination/drawing/non-visual-pucture-properties-destination.js +3 -3
  36. package/lib/client/formats/docx/import/destination/drawing/shape-properties-destination.js +9 -9
  37. package/lib/client/formats/docx/import/destination/notes/note-destination.d.ts +1 -1
  38. package/lib/client/formats/docx/import/destination/notes/note-properties-destination.js +3 -3
  39. package/lib/client/formats/docx/import/destination/numbering/numberings-destination.js +15 -15
  40. package/lib/client/formats/docx/import/destination/paragraph/paragraph-destination.js +3 -3
  41. package/lib/client/formats/docx/import/destination/paragraph-properties/paragraph-numbering-reference-destination.js +5 -5
  42. package/lib/client/formats/docx/import/destination/paragraph-properties/paragraph-properties-base-destination.js +3 -3
  43. package/lib/client/formats/docx/import/destination/paragraph-properties/paragraph-properties-destination.js +7 -7
  44. package/lib/client/formats/docx/import/destination/relationships/relationships-destination.js +3 -3
  45. package/lib/client/formats/docx/import/destination/runs/inline-object-destination.js +3 -3
  46. package/lib/client/formats/docx/import/destination/style/destinations/style-paragraph-properties-destination.js +4 -4
  47. package/lib/client/formats/docx/import/destination/table/cell/properties/table-cell-properties-destination-core.js +3 -3
  48. package/lib/client/formats/docx/import/destination/table/cell/table-cell-destination.js +3 -3
  49. package/lib/client/formats/docx/import/destination/table/row/properties/table-row-properties-destination.js +3 -3
  50. package/lib/client/formats/docx/import/destination/table/row/table-row-destination.js +3 -3
  51. package/lib/client/formats/docx/import/destination/table/table/properties/table-cell-margins-destination.d.ts +1 -1
  52. package/lib/client/formats/docx/import/destination/table/table/properties/table-properties-destination-core.js +3 -3
  53. package/lib/client/formats/docx/import/destination/table/table/properties/table-properties-destination.js +3 -3
  54. package/lib/client/formats/docx/import/destination/table/table/properties/table-properties-leaf-element-destination.js +3 -3
  55. package/lib/client/formats/docx/import/destination/table/table/table-destination.js +3 -3
  56. package/lib/client/formats/docx/import/destination/themes/color/drawing-color-properties-destination-base.js +3 -3
  57. package/lib/client/formats/docx/import/destination/themes/font/office-theme-font-collection-scheme-destination.js +7 -7
  58. package/lib/client/formats/docx/import/destination/vml/v-mlshape-destination.js +7 -7
  59. package/lib/client/formats/docx/import/importers/character-importer.js +6 -6
  60. package/lib/client/formats/docx/import/importers/comments-importer.js +1 -1
  61. package/lib/client/formats/docx/import/importers/field-importer.js +2 -2
  62. package/lib/client/formats/docx/import/importers/table-importer.js +1 -1
  63. package/lib/client/formats/docx/import/list/open-xml-list-level-override.js +3 -3
  64. package/lib/client/formats/docx/import/list/open-xml-numbering-list-info.d.ts +1 -1
  65. package/lib/client/formats/docx/utils/constants.js +6 -6
  66. package/lib/client/formats/docx/zip/xml-reader.js +10 -10
  67. package/lib/client/i-rich-constructor-settings.d.ts +3 -1
  68. package/lib/client/model-api/api-utils/parameter-checker.d.ts +1 -1
  69. package/lib/client/model-api/fonts/control-font.js +4 -4
  70. package/lib/client/model-api/images/image-iterator.js +3 -3
  71. package/lib/client/model-api/interval.js +1 -1
  72. package/lib/client/public/api/authentication-options.js +3 -3
  73. package/lib/client/public/api/range-permission-options.js +3 -3
  74. package/lib/client/public/client-events.d.ts +2 -1
  75. package/lib/client/public/client-events.js +3 -1
  76. package/lib/client/public/commands/enum.d.ts +1 -1
  77. package/lib/client/public/context-menu/menu.js +5 -5
  78. package/lib/client/public/events.d.ts +6 -0
  79. package/lib/client/public/events.js +8 -0
  80. package/lib/client/public/nusa/external-types.d.ts +2 -2
  81. package/lib/client/public/nusa/settings.js +1 -1
  82. package/lib/client/public/options.d.ts +2 -0
  83. package/lib/client/public/ribbon/item-ids.d.ts +1 -1
  84. package/lib/client/public/ribbon/tab.d.ts +4 -4
  85. package/lib/client/public/ribbon/tab.js +2 -2
  86. package/lib/client/public/rich-edit.js +1 -1
  87. package/lib/client/ribbon/i-toolbar-item-options.d.ts +1 -1
  88. package/lib/client/ribbon/ribbon.d.ts +3 -3
  89. package/lib/client/ribbon/ribbon.js +1 -1
  90. package/lib/client/ribbon/toolbar-items/toolbar-interactive-item.d.ts +2 -2
  91. package/lib/client/settings.js +4 -0
  92. package/lib/client/utils/devextreme/devextreme-types.d.ts +17 -17
  93. package/lib/client/utils/devextreme/dxt-utils.d.ts +1 -1
  94. package/lib/common/auto-correct/auto-correct-providers.js +1 -1
  95. package/lib/common/bars/base.js +1 -1
  96. package/lib/common/canvas/canvas-manager.js +3 -3
  97. package/lib/common/canvas/canvas-scroll-manager.js +2 -2
  98. package/lib/common/canvas/listeners/anchor-listener.js +3 -3
  99. package/lib/common/canvas/listeners/resize-box-listener.js +5 -5
  100. package/lib/common/canvas/renderes/canvas-listener/canvas-listener.js +1 -1
  101. package/lib/common/canvas/renderes/change-active-sub-document/renderer.js +10 -10
  102. package/lib/common/canvas/renderes/common/document-renderer.d.ts +1 -1
  103. package/lib/common/canvas/renderes/common/document-renderer.js +1 -1
  104. package/lib/common/canvas/renderes/view-manager.js +3 -3
  105. package/lib/common/client-side-events.d.ts +1 -0
  106. package/lib/common/client-side-events.js +3 -0
  107. package/lib/common/commands/command-base.js +10 -10
  108. package/lib/common/commands/command-states.js +3 -3
  109. package/lib/common/commands/dialogs/dialog-spell-checker-command.js +3 -3
  110. package/lib/common/commands/document/print-document-on-client-command.js +4 -4
  111. package/lib/common/commands/fields/open-hyperlink-command.js +6 -2
  112. package/lib/common/commands/ruler/toggle-show-horizontal-ruler-command.js +3 -1
  113. package/lib/common/commands/text/change-text-case-commands.d.ts +1 -1
  114. package/lib/common/event-manager.js +4 -4
  115. package/lib/common/formats/html/export/html-document-exporter.js +1 -1
  116. package/lib/common/formats/html/export/html-export.js +4 -4
  117. package/lib/common/formats/html/import/html-importer.d.ts +1 -1
  118. package/lib/common/formats/html/import/html-importer.js +12 -12
  119. package/lib/common/formats/html/import/html-model-inserter.js +4 -4
  120. package/lib/common/formats/html/import/importers/base.js +1 -1
  121. package/lib/common/formats/html/import/utils/character-properties-utils.js +4 -4
  122. package/lib/common/formats/i-document-importer.d.ts +2 -2
  123. package/lib/common/formats/pdf/exporter.js +3 -3
  124. package/lib/common/formats/pdf/interfaces.d.ts +2 -2
  125. package/lib/common/formats/rtf/export/exporter.js +1 -1
  126. package/lib/common/formats/rtf/export/exporters/rtf-anchored-picture-run-exporter.js +5 -5
  127. package/lib/common/formats/rtf/export/exporters/rtf-content-exporter.d.ts +1 -1
  128. package/lib/common/formats/rtf/export/exporters/rtf-content-exporter.js +2 -2
  129. package/lib/common/formats/rtf/export/rtf-builder.d.ts +2 -2
  130. package/lib/common/formats/rtf/import/destination/base/destination.d.ts +4 -4
  131. package/lib/common/formats/rtf/import/destination/base/destination.js +1 -1
  132. package/lib/common/formats/rtf/import/destination/base/skip-destination.js +3 -3
  133. package/lib/common/formats/rtf/import/destination/base/string-property-base-destination.js +2 -2
  134. package/lib/common/formats/rtf/import/destination/base/string-property-destination.js +2 -2
  135. package/lib/common/formats/rtf/import/destination/base/unicode-destination.js +2 -2
  136. package/lib/common/formats/rtf/import/destination/fields/field-sub-destination.js +1 -1
  137. package/lib/common/formats/rtf/import/destination/fields/table-content-field-destination.js +1 -1
  138. package/lib/common/formats/rtf/import/destination/font-table-destination.js +3 -3
  139. package/lib/common/formats/rtf/import/destination/numbering-list/destination-old-paragraph-numbering.js +1 -1
  140. package/lib/common/formats/rtf/import/destination/numbering-list/destination-old-section-numbering-level.js +1 -1
  141. package/lib/common/formats/rtf/import/destination/picture/picture-destination.js +4 -4
  142. package/lib/common/formats/rtf/import/destination/shape/shape-properties-destination-base.js +2 -2
  143. package/lib/common/formats/rtf/import/destination/shape/shape-property-destination.js +2 -2
  144. package/lib/common/formats/rtf/import/destination/shape/shape-property-hsv-value-destination.js +2 -2
  145. package/lib/common/formats/rtf/import/destination/styles/character-style-destination.js +5 -5
  146. package/lib/common/formats/rtf/import/destination/styles/style-sheet-destination.js +3 -3
  147. package/lib/common/formats/rtf/import/destination/styles/table-style-destination.js +7 -7
  148. package/lib/common/formats/rtf/import/destination/sub-document/destination-sub-document.js +2 -2
  149. package/lib/common/formats/rtf/import/destination/sub-document/section-header-footer-destination-base.js +1 -1
  150. package/lib/common/formats/rtf/import/importers/character-importer.js +1 -1
  151. package/lib/common/formats/rtf/import/importers/field-importer.js +2 -2
  152. package/lib/common/formats/rtf/import/importers/paragraph-importer.js +4 -4
  153. package/lib/common/formats/rtf/import/importers/range-permission-importer.js +1 -1
  154. package/lib/common/formats/rtf/import/importers/section-importer.js +4 -4
  155. package/lib/common/formats/rtf/import/importers/styles/paragraph-style-importer.js +4 -4
  156. package/lib/common/formats/rtf/import/model/numbering-lists/rtf-old-list-level-info.js +10 -10
  157. package/lib/common/formats/rtf/import/rtf-import-data.js +13 -13
  158. package/lib/common/formats/txt/txt-exporter.js +1 -1
  159. package/lib/common/global-event-dispatcher.d.ts +1 -1
  160. package/lib/common/interfaces/i-control-owner.d.ts +1 -0
  161. package/lib/common/layout/main-structures/layout-boxes/layout-anchored-object-box.d.ts +1 -1
  162. package/lib/common/layout/main-structures/layout-boxes/layout-dash-box.js +1 -1
  163. package/lib/common/layout/main-structures/layout-boxes/layout-line-break-box.js +4 -4
  164. package/lib/common/layout/main-structures/layout-boxes/layout-numbering-list-box.js +10 -10
  165. package/lib/common/layout/main-structures/layout-boxes/layout-page-break-box.js +4 -4
  166. package/lib/common/layout/main-structures/layout-row.js +1 -1
  167. package/lib/common/layout/table/table-cell-iterator.js +6 -6
  168. package/lib/common/layout-engine/hit-test-manager/hit-test-result.d.ts +1 -1
  169. package/lib/common/layout-engine/selection/selection-formatter.js +1 -1
  170. package/lib/common/layout-formatter/box/generator/box-infos-generator.js +3 -3
  171. package/lib/common/layout-formatter/changes/changes/layout-change-base.js +12 -12
  172. package/lib/common/layout-formatter/invalidator/layout-invalidator.js +3 -3
  173. package/lib/common/layout-formatter/managers/formatter-manager.d.ts +1 -1
  174. package/lib/common/layout-formatter/managers/formatter-manager.js +2 -2
  175. package/lib/common/layout-formatter/row/result.js +3 -3
  176. package/lib/common/layout-formatter/row/size-engine/row-formatting-info.js +2 -2
  177. package/lib/common/layout-formatter/row/size-engine/row-height-calculator.js +3 -3
  178. package/lib/common/layout-formatter/row/tab-info.js +8 -8
  179. package/lib/common/layout-formatter/table/borders/border-helper.d.ts +1 -1
  180. package/lib/common/layout-formatter/table/borders/border-helper.js +5 -5
  181. package/lib/common/layout-formatter/table/formatter.js +12 -12
  182. package/lib/common/layout-formatter/table/grid-engine/calculators/column-interval.js +3 -3
  183. package/lib/common/layout-formatter/table/grid-engine/calculators/grid-calculator.js +3 -3
  184. package/lib/common/layout-formatter/table/grid-engine/calculators/table-properties-cache.js +7 -7
  185. package/lib/common/layout-formatter/table/info/cell-info.js +8 -8
  186. package/lib/common/layout-formatter/table/info/row-info.js +1 -1
  187. package/lib/common/layout-formatter/table/info/table-info.js +17 -17
  188. package/lib/common/model/bookmarks.js +7 -7
  189. package/lib/common/model/borders/border-base.js +3 -3
  190. package/lib/common/model/caches/hash-based-cache.d.ts +1 -1
  191. package/lib/common/model/caches/hash-based-cache.js +2 -2
  192. package/lib/common/model/caches/images.js +11 -11
  193. package/lib/common/model/changes/change.d.ts +1 -1
  194. package/lib/common/model/changes/sub-document/list/paragraph-numbering-list-changed.js +1 -1
  195. package/lib/common/model/changes/sub-document/table/cell-property-changed.js +1 -1
  196. package/lib/common/model/changes/sub-document/table/property-changed.js +1 -1
  197. package/lib/common/model/changes/sub-document/table/row-property-changed.js +1 -1
  198. package/lib/common/model/character/character-property-descriptor.d.ts +1 -1
  199. package/lib/common/model/color/color-model-info.js +6 -6
  200. package/lib/common/model/creator/font-corrector.js +5 -5
  201. package/lib/common/model/document-model.js +10 -10
  202. package/lib/common/model/fields/field-request-manager.d.ts +1 -1
  203. package/lib/common/model/fields/field-request-manager.js +2 -2
  204. package/lib/common/model/fields/parsers/field-code-parser.d.ts +2 -2
  205. package/lib/common/model/fields/tree-creator.js +1 -1
  206. package/lib/common/model/floating-objects/sizes.js +2 -2
  207. package/lib/common/model/fonts/control-font.js +9 -9
  208. package/lib/common/model/fonts/loader.js +1 -1
  209. package/lib/common/model/footnotes/footnote.d.ts +1 -1
  210. package/lib/common/model/history/base/history-item.js +6 -6
  211. package/lib/common/model/history/base/interval-based-history-item.js +2 -2
  212. package/lib/common/model/history/base/position-based-history-item.js +2 -2
  213. package/lib/common/model/history/items/insert-text-history-item.js +3 -3
  214. package/lib/common/model/history/selection/scroll-history-item.js +3 -3
  215. package/lib/common/model/history/selection/selection-history-item.js +3 -3
  216. package/lib/common/model/json/importers/sub-document/run-importers.d.ts +2 -2
  217. package/lib/common/model/manipulators/base-manipulator.js +2 -2
  218. package/lib/common/model/manipulators/document/sub-document-inserter.js +6 -6
  219. package/lib/common/model/manipulators/model-manipulator.js +1 -1
  220. package/lib/common/model/manipulators/picture-manipulator/insert-picture-manipulator-params.js +1 -1
  221. package/lib/common/model/manipulators/picture-manipulator/loader/image-loading-options.d.ts +1 -1
  222. package/lib/common/model/manipulators/picture-manipulator/loader/picture-loader.d.ts +1 -1
  223. package/lib/common/model/manipulators/picture-manipulator/loader/picture-loader.js +1 -1
  224. package/lib/common/model/manipulators/range/create-range-copy-operation.js +3 -3
  225. package/lib/common/model/manipulators/tables/insert-table-cell-operation.js +1 -1
  226. package/lib/common/model/manipulators/tables/insert-table-row-operation.js +1 -1
  227. package/lib/common/model/manipulators/tables/merge-table-cells-operation.js +1 -1
  228. package/lib/common/model/manipulators/tables/table-normalizator.d.ts +2 -2
  229. package/lib/common/model/options/fields.d.ts +2 -0
  230. package/lib/common/model/options/fields.js +7 -3
  231. package/lib/common/model/options/pdf.d.ts +2 -2
  232. package/lib/common/model/options/rich-options.js +3 -3
  233. package/lib/common/model/paragraph/paragraph-property-descriptors.d.ts +1 -1
  234. package/lib/common/model/paragraph/paragraph.js +1 -1
  235. package/lib/common/model/position/linked-interval.js +4 -4
  236. package/lib/common/model/range-permissions.js +3 -3
  237. package/lib/common/model/runs/anchored-picture-run.js +4 -4
  238. package/lib/common/model/runs/inline-picture-run.d.ts +1 -1
  239. package/lib/common/model/runs/inline-picture-run.js +1 -1
  240. package/lib/common/model/runs/run-base.js +4 -4
  241. package/lib/common/model/section/section-property-descriptor.d.ts +1 -1
  242. package/lib/common/model/shadings/shading-info.js +3 -3
  243. package/lib/common/model/styles-manager.d.ts +1 -1
  244. package/lib/common/model/tables/main-structures/table-row.js +1 -1
  245. package/lib/common/mouse-handler/base/manipulator-handler-state-base.js +2 -2
  246. package/lib/common/mouse-handler/mouse-handler/mouse-handler-drag-column-or-row-state.d.ts +1 -1
  247. package/lib/common/rich-edit-core.js +11 -11
  248. package/lib/common/rich-utils/debug/runtime-template-model-creator.js +6 -6
  249. package/lib/common/scroll/model-states.d.ts +1 -1
  250. package/lib/common/scroll/model-states.js +4 -4
  251. package/lib/common/selection/input-position.js +17 -6
  252. package/lib/common/selection/selected-cells-engine.js +12 -12
  253. package/lib/common/selection/selection-intervals-info.js +7 -7
  254. package/lib/common/selection/selection-state.js +5 -5
  255. package/lib/common/selection/selection.js +13 -13
  256. package/lib/common/ui/quick-search-panel.js +1 -1
  257. package/lib/common/ui/ruler/controls/base.js +1 -1
  258. package/lib/common/ui/ruler/controls/column.js +1 -1
  259. package/lib/common/ui/ruler/controls/divisions.js +1 -1
  260. package/lib/common/ui/ruler/controls/indent/first-line.js +5 -5
  261. package/lib/common/ui/ruler/controls/indent/left.js +2 -2
  262. package/lib/common/ui/ruler/controls/indent/right.js +5 -5
  263. package/lib/common/ui/ruler/controls/margin/left.js +3 -3
  264. package/lib/common/ui/ruler/controls/owner.js +1 -1
  265. package/lib/common/ui/ruler/controls/ruler.js +4 -4
  266. package/lib/common/ui/ruler/controls/tab/tab-type.js +2 -2
  267. package/lib/common/ui/ruler/manager.js +18 -18
  268. package/lib/common/ui/ruler/model-data.js +4 -4
  269. package/lib/common/ui/ruler/ruler.js +2 -2
  270. package/lib/common/utils/utils.d.ts +7 -0
  271. package/lib/common/utils/utils.js +26 -0
  272. package/lib/common/view-settings/views-settings.js +6 -6
  273. package/package.json +3 -3
@@ -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
- declare type EventAction = () => void;
10
+ type EventAction = () => void;
11
11
  declare enum PublicApiEventType {
12
12
  None = 0,
13
13
  DocumentLoaded = 1,
@@ -37,6 +37,7 @@ export interface IControlOwner {
37
37
  raiseSelectionChanged(): any;
38
38
  raiseCustomCommandExecuted(command: any, parameter: any): any;
39
39
  raiseFloatingObjectMovedObject(args: FloatingObjectMovedArgumentInner): any;
40
+ raiseHorizontalRulerVisibleChanged(horizontalRulerVisible: boolean): any;
40
41
  showPopupMenu(getPoint: (contextMenuBar: ContextMenuBarBase) => Point): any;
41
42
  hidePopupMenu(): any;
42
43
  isRibbon(element: HTMLElement): boolean;
@@ -15,7 +15,7 @@ export declare enum AnchoredObjectLevelType {
15
15
  InText = 1,
16
16
  BeforeText = 2
17
17
  }
18
- export declare type LayoutAnchoredObjectBoxTypes = LayoutAnchoredPictureBox | LayoutAnchoredTextBox;
18
+ export type LayoutAnchoredObjectBoxTypes = LayoutAnchoredPictureBox | LayoutAnchoredTextBox;
19
19
  export declare abstract class LayoutAnchoredObjectBox extends LayoutBox {
20
20
  belongsToSubDocId: number;
21
21
  rotationInRadians: number;
@@ -1,11 +1,11 @@
1
1
  import { MeasureInfoNonText } from '../../../measurer/measure-info';
2
2
  import { LayoutBox, LayoutBoxType } from './layout-box';
3
3
  export class LayoutDashBox extends LayoutBox {
4
+ get isDashBox() { return true; }
4
5
  constructor(characterProperties, colorInfo, text) {
5
6
  super(characterProperties, colorInfo);
6
7
  this.text = text;
7
8
  }
8
- get isDashBox() { return true; }
9
9
  equals(obj) {
10
10
  return super.equals(obj) &&
11
11
  this.text == obj.text;
@@ -3,6 +3,10 @@ import { CharacterProperties } from '../../../model/character/character-properti
3
3
  import { RichUtils } from '../../../model/rich-utils';
4
4
  import { LayoutBox, LayoutBoxType, LayoutRenderCharacterProperties } from './layout-box';
5
5
  export class LayoutLineBreakBox extends LayoutBox {
6
+ equals(obj) {
7
+ return super.equals(obj) &&
8
+ this.lineBreakSymbol == obj.lineBreakSymbol;
9
+ }
6
10
  constructor(characterProperties, colorInfo) {
7
11
  super(characterProperties, colorInfo);
8
12
  if (!LayoutLineBreakBox.renderCharacterProperties && characterProperties) {
@@ -15,10 +19,6 @@ export class LayoutLineBreakBox extends LayoutBox {
15
19
  LayoutLineBreakBox.renderCharacterProperties.fontInfo.scriptMultiplier = 0.65;
16
20
  }
17
21
  }
18
- equals(obj) {
19
- return super.equals(obj) &&
20
- this.lineBreakSymbol == obj.lineBreakSymbol;
21
- }
22
22
  clone() {
23
23
  const newObj = new LayoutLineBreakBox(this.characterProperties, this.colorInfo);
24
24
  newObj.copyFrom(this);
@@ -6,6 +6,16 @@ import { LayoutSpaceBox } from './layout-space-box';
6
6
  import { LayoutTabSpaceBoxJustForBoxIterator, TabLeaderType } from './layout-tab-space-box';
7
7
  import { LayoutTextBox } from './layout-text-box';
8
8
  export class LayoutNumberingListBox extends LayoutBox {
9
+ getFont(fontInfoCache) {
10
+ let fontInfo = fontInfoCache.getItemByName('Arial');
11
+ if (!fontInfo) {
12
+ fontInfo = fontInfoCache.getItemByName('Times New Roman');
13
+ if (!fontInfo) {
14
+ fontInfo = fontInfoCache.getItemByName('Calibri');
15
+ }
16
+ }
17
+ return fontInfo;
18
+ }
9
19
  constructor(characterProperties, colorInfo, text, separatorChar, mergedCharacterPropertiesCache, alignment = ListNumberAlignment.Left, fontInfoCache) {
10
20
  super(characterProperties, colorInfo);
11
21
  this.textBox = new LayoutTextBox(characterProperties, colorInfo, text);
@@ -38,16 +48,6 @@ export class LayoutNumberingListBox extends LayoutBox {
38
48
  }
39
49
  }
40
50
  }
41
- getFont(fontInfoCache) {
42
- let fontInfo = fontInfoCache.getItemByName('Arial');
43
- if (!fontInfo) {
44
- fontInfo = fontInfoCache.getItemByName('Times New Roman');
45
- if (!fontInfo) {
46
- fontInfo = fontInfoCache.getItemByName('Calibri');
47
- }
48
- }
49
- return fontInfo;
50
- }
51
51
  equals(obj) {
52
52
  return obj &&
53
53
  super.equals(obj) &&
@@ -2,6 +2,10 @@ import { MeasureInfoText } from '../../../measurer/measure-info';
2
2
  import { CharacterProperties } from '../../../model/character/character-properties';
3
3
  import { LayoutBox, LayoutBoxType, LayoutRenderCharacterProperties } from './layout-box';
4
4
  export class LayoutPageBreakBox extends LayoutBox {
5
+ equals(obj) {
6
+ return super.equals(obj) &&
7
+ this.text == obj.text;
8
+ }
5
9
  constructor(characterProperties, colorInfo) {
6
10
  super(characterProperties, colorInfo);
7
11
  if (!LayoutPageBreakBox.renderCharacterProperties && characterProperties) {
@@ -14,10 +18,6 @@ export class LayoutPageBreakBox extends LayoutBox {
14
18
  LayoutPageBreakBox.renderCharacterProperties.fontInfo.scriptMultiplier = 0.65;
15
19
  }
16
20
  }
17
- equals(obj) {
18
- return super.equals(obj) &&
19
- this.text == obj.text;
20
- }
21
21
  clone() {
22
22
  const newObj = new LayoutPageBreakBox(this.characterProperties, this.colorInfo);
23
23
  newObj.copyFrom(this);
@@ -14,6 +14,7 @@ export var LayoutRowStateFlags;
14
14
  LayoutRowStateFlags[LayoutRowStateFlags["PageBreakBefore"] = 128] = "PageBreakBefore";
15
15
  })(LayoutRowStateFlags || (LayoutRowStateFlags = {}));
16
16
  export class LayoutRow extends Rectangle {
17
+ get hasEffectToPageHeight() { return this.boxes.length != 1 || !this.boxes[0].isSectionBreakBox; }
17
18
  constructor(minY = Number.MAX_SAFE_INTEGER) {
18
19
  super(0, 0, 0, 0);
19
20
  this.boxes = [];
@@ -22,7 +23,6 @@ export class LayoutRow extends Rectangle {
22
23
  this.flags = new Flag(LayoutRowStateFlags.NormallyEnd);
23
24
  this.initialY = minY;
24
25
  }
25
- get hasEffectToPageHeight() { return this.boxes.length != 1 || !this.boxes[0].isSectionBreakBox; }
26
26
  getEndPosition() {
27
27
  return this.columnOffset + this.getLastBoxEndPositionInRow();
28
28
  }
@@ -19,6 +19,12 @@ export class ParentLinkTableCell {
19
19
  }
20
20
  }
21
21
  export class TableCellIterator {
22
+ get tableCellInfo() {
23
+ return this.tableCellInfoInternal;
24
+ }
25
+ get isInTable() {
26
+ return this.layoutRowIndexInCell > -1;
27
+ }
22
28
  constructor(position, layout, measurer) {
23
29
  this.tableIndex = -1;
24
30
  this.tableRowIndex = -1;
@@ -43,12 +49,6 @@ export class TableCellIterator {
43
49
  }
44
50
  }
45
51
  }
46
- get tableCellInfo() {
47
- return this.tableCellInfoInternal;
48
- }
49
- get isInTable() {
50
- return this.layoutRowIndexInCell > -1;
51
- }
52
52
  readTables(tables, parentCell = null, layountIndex = -1) {
53
53
  for (let tableIndex = 0, table; table = tables[tableIndex]; tableIndex++) {
54
54
  for (let rowIndex = 0, row; row = table.tableRows[rowIndex]; rowIndex++) {
@@ -3,7 +3,7 @@ import { LayoutPosition } from '../../layout/layout-position';
3
3
  import { LayoutAnchoredObjectBox } from '../../layout/main-structures/layout-boxes/layout-anchored-object-box';
4
4
  import { SubDocument } from '../../model/sub-document';
5
5
  import { HitTestDeviation } from '@devexpress/utils/lib/geometry/rectangle';
6
- export declare type HitTestResultDeviations = Record<number, HitTestDeviation>;
6
+ export type HitTestResultDeviations = Record<number, HitTestDeviation>;
7
7
  export declare class HitTestResult extends LayoutPosition {
8
8
  subDocument: SubDocument;
9
9
  deviations: HitTestResultDeviations;
@@ -33,6 +33,7 @@ export var SimpleSelectionLayoutType;
33
33
  SimpleSelectionLayoutType[SimpleSelectionLayoutType["RangePermission"] = 2] = "RangePermission";
34
34
  })(SimpleSelectionLayoutType || (SimpleSelectionLayoutType = {}));
35
35
  export class SelectionFormatter extends BatchUpdatableObject {
36
+ get highlightRanges() { return this.documentProtectionSettings.highlightRanges; }
36
37
  constructor(selection, measurer, layoutSelection, documentProtectionSettings) {
37
38
  super();
38
39
  this.onSelectionLayoutChanged = new EventDispatcher();
@@ -41,7 +42,6 @@ export class SelectionFormatter extends BatchUpdatableObject {
41
42
  this.layoutSelection = layoutSelection;
42
43
  this.documentProtectionSettings = documentProtectionSettings;
43
44
  }
44
- get highlightRanges() { return this.documentProtectionSettings.highlightRanges; }
45
45
  modelChanged(change) {
46
46
  if (change.type == ModelChangeType.RangePermissionsPropertiesChanged)
47
47
  this.onRangePermissionPropertiesChanged();
@@ -41,6 +41,9 @@ import { FieldIterator, TableIterator } from './recursive-objects-iterators';
41
41
  import { ColorModelInfo } from '../../../model/color/color-model-info';
42
42
  import { ColorUtils } from '@devexpress/utils/lib/utils/color';
43
43
  export class BoxGenerator {
44
+ static get MAX_NUM_NEW_BOXES() { return BoxWrapsHolder.AVERAGE_BOXES_ON_PAGE; }
45
+ ;
46
+ get colorProvider() { return this.manager.model.colorProvider; }
44
47
  constructor(manager, boxesHolder) {
45
48
  this.positionFromStartGenerate = -1;
46
49
  this.waitForMoreChunks = false;
@@ -61,9 +64,6 @@ export class BoxGenerator {
61
64
  this.manager = manager;
62
65
  this.boxWrapsHolder = boxesHolder;
63
66
  }
64
- static get MAX_NUM_NEW_BOXES() { return BoxWrapsHolder.AVERAGE_BOXES_ON_PAGE; }
65
- ;
66
- get colorProvider() { return this.manager.model.colorProvider; }
67
67
  isNotEmptyParagraphOrSectionRunBeforeTable(box) {
68
68
  const hasNewWrappers = this.newWrappers && this.newWrappers.length;
69
69
  const lastWrapperNotInsideTable = hasNewWrappers && !ListUtils.last(this.newWrappers).info.tablePosition;
@@ -6,14 +6,14 @@ export var LayoutChangeType;
6
6
  LayoutChangeType[LayoutChangeType["Inserted"] = 3] = "Inserted";
7
7
  })(LayoutChangeType || (LayoutChangeType = {}));
8
8
  export class LayoutChangeBase {
9
- constructor(index, changeType = LayoutChangeType.Updated) {
10
- this.index = index;
11
- this.changeType = changeType;
12
- }
13
9
  get layoutIndex() { return this.index; }
14
10
  ;
15
11
  get canvasIndex() { return this.index; }
16
12
  ;
13
+ constructor(index, changeType = LayoutChangeType.Updated) {
14
+ this.index = index;
15
+ this.changeType = changeType;
16
+ }
17
17
  summarizeChanges(_change) {
18
18
  }
19
19
  }
@@ -38,32 +38,32 @@ export class TableChange extends LayoutChangeBase {
38
38
  }
39
39
  }
40
40
  export class RowChangeSV extends RowChange {
41
- constructor(layoutIndex, canvasIndex, changeType) {
42
- super(canvasIndex, changeType);
43
- this._layoutIndex = layoutIndex;
44
- }
45
41
  get layoutIndex() { return this._layoutIndex; }
46
42
  ;
47
43
  get canvasIndex() { return this.index; }
48
44
  ;
49
- }
50
- export class TableChangeSV extends TableChange {
51
45
  constructor(layoutIndex, canvasIndex, changeType) {
52
46
  super(canvasIndex, changeType);
53
47
  this._layoutIndex = layoutIndex;
54
48
  }
49
+ }
50
+ export class TableChangeSV extends TableChange {
55
51
  get layoutIndex() { return this._layoutIndex; }
56
52
  ;
57
53
  get canvasIndex() { return this.index; }
58
54
  ;
59
- }
60
- export class ParagraphFrameChangeSV extends ParagraphFrameChange {
61
55
  constructor(layoutIndex, canvasIndex, changeType) {
62
56
  super(canvasIndex, changeType);
63
57
  this._layoutIndex = layoutIndex;
64
58
  }
59
+ }
60
+ export class ParagraphFrameChangeSV extends ParagraphFrameChange {
65
61
  get layoutIndex() { return this._layoutIndex; }
66
62
  ;
67
63
  get canvasIndex() { return this.index; }
68
64
  ;
65
+ constructor(layoutIndex, canvasIndex, changeType) {
66
+ super(canvasIndex, changeType);
67
+ this._layoutIndex = layoutIndex;
68
+ }
69
69
  }
@@ -13,12 +13,12 @@ import { LogSource } from '../../rich-utils/debug/logger/base-logger/log-source'
13
13
  import { HeaderFooterInvalidatorHelper } from './header-footer-invalidator-helper';
14
14
  import { RemoveContentHelper } from './remove-content-helper';
15
15
  export class LayoutInvalidator {
16
- constructor(manager) {
17
- this.manager = manager;
18
- }
19
16
  get model() { return this.manager.model; }
20
17
  get layout() { return this.manager.layout; }
21
18
  get mainSubDoc() { return this.model.mainSubDocument; }
19
+ constructor(manager) {
20
+ this.manager = manager;
21
+ }
22
22
  onContentInserted(subDocumentId, logPosition, length, restartFromParagraphStart) {
23
23
  const subDocument = this.model.subDocuments[subDocumentId];
24
24
  const pages = this.layout.pages;
@@ -26,7 +26,7 @@ import { RestartManager } from './restart-manager';
26
26
  export interface ILayoutFormatterManagerHolder {
27
27
  layoutFormatterManager: FormatterManager;
28
28
  }
29
- export declare type BrowserUtils = {
29
+ export type BrowserUtils = {
30
30
  MacOSPlatform: boolean;
31
31
  };
32
32
  export declare class FormatterManager extends BatchUpdatableObject {
@@ -18,6 +18,8 @@ import { LayoutInvalidator } from '../invalidator/layout-invalidator';
18
18
  import { RestartManager } from './restart-manager';
19
19
  import { Browser } from '@devexpress/utils/lib/browser';
20
20
  export class FormatterManager extends BatchUpdatableObject {
21
+ get activeSubDocument() { return this.activeSubDocumentHolder.activeSubDocument; }
22
+ get isDocumentOpened() { return this._isDocumentOpened; }
21
23
  constructor(measurer, innerClientProperties, model, layout, activeSubDocumentHolder, bookmarksSettings, documentProtectionSettings, controlHeightProvider, stringResources, layoutChangesListeners, browserUtils) {
22
24
  super();
23
25
  this.formatterProcessID = null;
@@ -49,8 +51,6 @@ export class FormatterManager extends BatchUpdatableObject {
49
51
  this.anchoredObjectsManager = new AnchoredObjectsManager(this);
50
52
  this.browserUtils = browserUtils !== null && browserUtils !== void 0 ? browserUtils : { MacOSPlatform: Browser.MacOSPlatform };
51
53
  }
52
- get activeSubDocument() { return this.activeSubDocumentHolder.activeSubDocument; }
53
- get isDocumentOpened() { return this._isDocumentOpened; }
54
54
  dispose() {
55
55
  clearTimeout(this.formatterProcessID);
56
56
  clearTimeout(this.unhideProcessID);
@@ -21,15 +21,15 @@ export var BoxBracketsType;
21
21
  BoxBracketsType[BoxBracketsType["Close"] = 2] = "Close";
22
22
  })(BoxBracketsType || (BoxBracketsType = {}));
23
23
  export class RowFormatterResult {
24
+ get rowStartPos() {
25
+ return this.rowFormatter.rowSizesManager.rowStartPos;
26
+ }
24
27
  constructor(rowFormatter, minY) {
25
28
  this.rowFormatter = rowFormatter;
26
29
  this.newAnchoredObjects = [];
27
30
  this.row = new LayoutRow(minY);
28
31
  this.startRowFormatting(true);
29
32
  }
30
- get rowStartPos() {
31
- return this.rowFormatter.rowSizesManager.rowStartPos;
32
- }
33
33
  startRowFormatting(deleteAnchoredObjects) {
34
34
  this.flags = new Flag(RowFormatterResultFlag.None);
35
35
  this.row.boxes = [];
@@ -22,6 +22,8 @@ export class RowIntervalInfo extends FixedInterval {
22
22
  }
23
23
  }
24
24
  export class RowFormattingInfo {
25
+ get isFloatingIntersectRow() { return !!this.intersectsObjects.length; }
26
+ get lastNonEmptyInterval() { return this.intervals[this.lastNonEmptyIntervalIndex]; }
25
27
  constructor(minY, height, outerHorizontalRowContentBounds, boundsOfAnchoredOblectsOnThisColumn, tableCell) {
26
28
  this.intervals = [];
27
29
  this.busyIntervals = [];
@@ -33,8 +35,6 @@ export class RowFormattingInfo {
33
35
  this.tableCell = tableCell;
34
36
  this.lastNonEmptyIntervalIndex = 0;
35
37
  }
36
- get isFloatingIntersectRow() { return !!this.intersectsObjects.length; }
37
- get lastNonEmptyInterval() { return this.intervals[this.lastNonEmptyIntervalIndex]; }
38
38
  get currInterval() {
39
39
  return this.intervals[this.currIndex];
40
40
  }
@@ -5,6 +5,9 @@ import { ParagraphLineSpacingType } from '../../../model/paragraph/paragraph-pro
5
5
  import { LineSpacingCalculator } from '../utils/line-spacing-calculator';
6
6
  import { RowHeightState } from './row-height-state';
7
7
  export class RowHeightCalculator {
8
+ get row() {
9
+ return this.rowFormatter.row;
10
+ }
8
11
  constructor(rowFormatter, rowSpacingBeforeApplier) {
9
12
  this.rowFormatter = rowFormatter;
10
13
  this.rowSpacingBeforeApplier = rowSpacingBeforeApplier;
@@ -15,9 +18,6 @@ export class RowHeightCalculator {
15
18
  this.currState.spacingBefore = 0;
16
19
  this.applyState(this.getState(this.rowFormatter.currBox));
17
20
  }
18
- get row() {
19
- return this.rowFormatter.row;
20
- }
21
21
  getState(box) {
22
22
  let info;
23
23
  switch (box.getType()) {
@@ -16,6 +16,14 @@ import { CompatibilityMode } from '../../model/document-model';
16
16
  import { IntervalAlgorithms } from '@devexpress/utils/lib/intervals/algorithms';
17
17
  import { FixedInterval } from '@devexpress/utils/lib/intervals/fixed';
18
18
  export class RowTabInfo {
19
+ get row() {
20
+ return this.rowFormatter.row;
21
+ }
22
+ get currIntervalOrLastNonEmpty() {
23
+ const currInterval = this.rowFormatter.rowSizesManager.rowFormattingInfo.currInterval;
24
+ return currInterval ? currInterval : this.rowFormatter.rowSizesManager.rowFormattingInfo.lastNonEmptyInterval;
25
+ }
26
+ get currInterval() { return this.rowFormatter.rowSizesManager.rowFormattingInfo.currInterval; }
19
27
  constructor(rowFormatter, paragraphHorizontalBoundsStart) {
20
28
  this.rowFormatter = rowFormatter;
21
29
  this.paragraphHorizontalBoundsStart = paragraphHorizontalBoundsStart;
@@ -36,14 +44,6 @@ export class RowTabInfo {
36
44
  pos.position += this.paragraphHorizontalBoundsStart;
37
45
  this.restart();
38
46
  }
39
- get row() {
40
- return this.rowFormatter.row;
41
- }
42
- get currIntervalOrLastNonEmpty() {
43
- const currInterval = this.rowFormatter.rowSizesManager.rowFormattingInfo.currInterval;
44
- return currInterval ? currInterval : this.rowFormatter.rowSizesManager.rowFormattingInfo.lastNonEmptyInterval;
45
- }
46
- get currInterval() { return this.rowFormatter.rowSizesManager.rowFormattingInfo.currInterval; }
47
47
  restart() {
48
48
  this.lastTabPosition = null;
49
49
  this.lastTabBoxIndex = -1;
@@ -22,7 +22,7 @@ export declare class TableBorderInfoProvider {
22
22
  constructor(model: DocumentModel, table: Table, converter: SimpleConverter<number>);
23
23
  static borderConvertToPixels(brdInfo: BorderInfo, converter: SimpleConverter<number>): BorderInfo;
24
24
  }
25
- export declare type CellBorderConstructor = new (tablePropertiesException: TableProperties, isOutsideBorder: boolean) => TableCellPropertiesMergerBorderBase;
25
+ export type CellBorderConstructor = new (tablePropertiesException: TableProperties, isOutsideBorder: boolean) => TableCellPropertiesMergerBorderBase;
26
26
  export declare class BorderHelper {
27
27
  private colorProvider;
28
28
  private tableInfo;
@@ -35,11 +35,6 @@ export class TableBorderInfoProvider {
35
35
  }
36
36
  }
37
37
  export class BorderHelper {
38
- constructor(tableInfo, model) {
39
- this.colorProvider = model.colorProvider;
40
- this.tableInfo = tableInfo;
41
- this.tblbrdProvider = new TableBorderInfoProvider(model, tableInfo.table, UnitConverter.twipsToPixels);
42
- }
43
38
  rowCellSpacing(rowIndex) {
44
39
  return this.tblbrdProvider.cellSpacings[rowIndex];
45
40
  }
@@ -48,6 +43,11 @@ export class BorderHelper {
48
43
  }
49
44
  get grid() { return this.tableInfo.grid; }
50
45
  get tblStyle() { return this.tableInfo.table.style; }
46
+ constructor(tableInfo, model) {
47
+ this.colorProvider = model.colorProvider;
48
+ this.tableInfo = tableInfo;
49
+ this.tblbrdProvider = new TableBorderInfoProvider(model, tableInfo.table, UnitConverter.twipsToPixels);
50
+ }
51
51
  getVerticalBorders() {
52
52
  const verticalBorders = [];
53
53
  const rows = this.grid.table.rows;
@@ -25,18 +25,6 @@ export var AddRowToTableResult;
25
25
  AddRowToTableResult[AddRowToTableResult["GoToNextColumn"] = 4] = "GoToNextColumn";
26
26
  })(AddRowToTableResult || (AddRowToTableResult = {}));
27
27
  export class Formatter {
28
- constructor(rowFormatter, tablePositions, column, tableMaxWidth, offset, parentCell, index, avaliableHeight, parentFormatter, pageIndexFromWhichTableWasMoved = null) {
29
- this._posToWaitingContinuedFormatterMap = [];
30
- this.isFullyFormatted = false;
31
- this.parentFormatter = parentFormatter;
32
- const tblPos = tablePositions[index];
33
- if (tblPos.rowIndex != 0 || tblPos.cellIndex != 0)
34
- throw new Error(Errors.InternalException);
35
- this.tableInfo = new TableInfo(rowFormatter, tblPos.table, tableMaxWidth, offset.x, offset.y, pageIndexFromWhichTableWasMoved);
36
- this.initColumn(column, parentCell, avaliableHeight);
37
- if (++index < tablePositions.length)
38
- this.createInnerFormatter(tablePositions);
39
- }
40
28
  get posToWaitingContinuedFormatterMap() {
41
29
  return this.nestedLevel == 0 ? this._posToWaitingContinuedFormatterMap : this.parentFormatter.posToWaitingContinuedFormatterMap;
42
30
  }
@@ -69,6 +57,18 @@ export class Formatter {
69
57
  }
70
58
  get position() { return this.tableInfo.position; }
71
59
  get grid() { return this.tableInfo.grid; }
60
+ constructor(rowFormatter, tablePositions, column, tableMaxWidth, offset, parentCell, index, avaliableHeight, parentFormatter, pageIndexFromWhichTableWasMoved = null) {
61
+ this._posToWaitingContinuedFormatterMap = [];
62
+ this.isFullyFormatted = false;
63
+ this.parentFormatter = parentFormatter;
64
+ const tblPos = tablePositions[index];
65
+ if (tblPos.rowIndex != 0 || tblPos.cellIndex != 0)
66
+ throw new Error(Errors.InternalException);
67
+ this.tableInfo = new TableInfo(rowFormatter, tblPos.table, tableMaxWidth, offset.x, offset.y, pageIndexFromWhichTableWasMoved);
68
+ this.initColumn(column, parentCell, avaliableHeight);
69
+ if (++index < tablePositions.length)
70
+ this.createInnerFormatter(tablePositions);
71
+ }
72
72
  getNestedTablePosition(tablePositions) {
73
73
  const index = this.nestedLevel + 1;
74
74
  return tablePositions && tablePositions.length > index ? tablePositions[index] : null;