@syncfusion/ej2-docx-renderer 0.0.0-stage → 35.2.15

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 (129) hide show
  1. package/README.md +2 -2
  2. package/base.d.ts +4 -0
  3. package/base.js +4 -0
  4. package/dist/ej2-docx-renderer.umd.min.js +2 -0
  5. package/dist/ej2-docx-renderer.umd.min.js.map +1 -0
  6. package/dist/es6/ej2-docx-renderer.es2015.js +52432 -0
  7. package/dist/es6/ej2-docx-renderer.es2015.js.map +1 -0
  8. package/dist/es6/ej2-docx-renderer.es5.js +54425 -0
  9. package/dist/es6/ej2-docx-renderer.es5.js.map +1 -0
  10. package/dist/global/ej2-docx-renderer.min.js +2 -0
  11. package/dist/global/ej2-docx-renderer.min.js.map +1 -0
  12. package/dist/global/index.d.ts +5 -0
  13. package/format.d.ts +4 -0
  14. package/format.js +4 -0
  15. package/helper.d.ts +4 -0
  16. package/helper.js +4 -0
  17. package/index.d.ts +4 -0
  18. package/index.js +4 -0
  19. package/license +10 -0
  20. package/list.d.ts +4 -0
  21. package/list.js +4 -0
  22. package/package.json +26 -4
  23. package/parser.d.ts +4 -0
  24. package/parser.js +4 -0
  25. package/src/base/constants.d.ts +2 -0
  26. package/src/base/constants.js +2 -0
  27. package/src/base/dictionary.d.ts +52 -0
  28. package/src/base/dictionary.js +137 -0
  29. package/src/base/index.d.ts +9 -0
  30. package/src/base/index.js +9 -0
  31. package/src/base/keywords.d.ts +422 -0
  32. package/src/base/keywords.js +422 -0
  33. package/src/base/types.d.ts +2590 -0
  34. package/src/base/types.js +1056 -0
  35. package/src/base/unique-format.d.ts +87 -0
  36. package/src/base/unique-format.js +858 -0
  37. package/src/base/unique-formats.d.ts +32 -0
  38. package/src/base/unique-formats.js +87 -0
  39. package/src/document-canvas.d.ts +61 -0
  40. package/src/document-canvas.js +221 -0
  41. package/src/docx-renderer.d.ts +941 -0
  42. package/src/docx-renderer.js +2251 -0
  43. package/src/format/border.d.ts +53 -0
  44. package/src/format/border.js +600 -0
  45. package/src/format/borders.d.ts +44 -0
  46. package/src/format/borders.js +314 -0
  47. package/src/format/cell-format.d.ts +42 -0
  48. package/src/format/cell-format.js +309 -0
  49. package/src/format/character-format.d.ts +152 -0
  50. package/src/format/character-format.js +1224 -0
  51. package/src/format/index.d.ts +14 -0
  52. package/src/format/index.js +14 -0
  53. package/src/format/list-format.d.ts +32 -0
  54. package/src/format/list-format.js +238 -0
  55. package/src/format/paragraph-format.d.ts +103 -0
  56. package/src/format/paragraph-format.js +854 -0
  57. package/src/format/row-format.d.ts +119 -0
  58. package/src/format/row-format.js +545 -0
  59. package/src/format/section-format.d.ts +89 -0
  60. package/src/format/section-format.js +689 -0
  61. package/src/format/shading.d.ts +24 -0
  62. package/src/format/shading.js +137 -0
  63. package/src/format/style.d.ts +106 -0
  64. package/src/format/style.js +286 -0
  65. package/src/format/table-format.d.ts +51 -0
  66. package/src/format/table-format.js +395 -0
  67. package/src/global.js +1 -0
  68. package/src/helper/document-editor-helper.d.ts +515 -0
  69. package/src/helper/document-editor-helper.js +1302 -0
  70. package/src/helper/document-editor-settings.d.ts +293 -0
  71. package/src/helper/document-editor-settings.js +94 -0
  72. package/src/helper/index.d.ts +5 -0
  73. package/src/helper/index.js +5 -0
  74. package/src/helper/layout-helper-methods.d.ts +539 -0
  75. package/src/helper/layout-helper-methods.js +1065 -0
  76. package/src/helper/renderer-hooks.d.ts +74 -0
  77. package/src/helper/renderer-hooks.js +14 -0
  78. package/src/helper/revision-helper-methods.d.ts +199 -0
  79. package/src/helper/revision-helper-methods.js +362 -0
  80. package/src/index.d.ts +18 -0
  81. package/src/index.js +18 -0
  82. package/src/layout-helper.d.ts +190 -0
  83. package/src/layout-helper.js +1368 -0
  84. package/src/layout.d.ts +779 -0
  85. package/src/layout.js +17232 -0
  86. package/src/list/abstract-list.d.ts +25 -0
  87. package/src/list/abstract-list.js +67 -0
  88. package/src/list/index.d.ts +7 -0
  89. package/src/list/index.js +7 -0
  90. package/src/list/level-override.d.ts +22 -0
  91. package/src/list/level-override.js +43 -0
  92. package/src/list/list-level.d.ts +57 -0
  93. package/src/list/list-level.js +249 -0
  94. package/src/list/list.d.ts +30 -0
  95. package/src/list/list.js +100 -0
  96. package/src/page.d.ts +4155 -0
  97. package/src/page.js +11342 -0
  98. package/src/parser/index.d.ts +1 -0
  99. package/src/parser/index.js +1 -0
  100. package/src/parser/sfdt-reader.d.ts +254 -0
  101. package/src/parser/sfdt-reader.js +4569 -0
  102. package/src/render.d.ts +226 -0
  103. package/src/render.js +4222 -0
  104. package/src/text-helper.d.ts +144 -0
  105. package/src/text-helper.js +1079 -0
  106. package/src/text-helpers/index.d.ts +2 -0
  107. package/src/text-helpers/index.js +2 -0
  108. package/src/text-helpers/optimized.d.ts +45 -0
  109. package/src/text-helpers/optimized.js +121 -0
  110. package/src/text-helpers/regular.d.ts +37 -0
  111. package/src/text-helpers/regular.js +93 -0
  112. package/src/themes/font-scheme.d.ts +28 -0
  113. package/src/themes/font-scheme.js +107 -0
  114. package/src/themes/index.d.ts +6 -0
  115. package/src/themes/index.js +6 -0
  116. package/src/themes/major-minor-font-scheme.d.ts +14 -0
  117. package/src/themes/major-minor-font-scheme.js +45 -0
  118. package/src/themes/themes.d.ts +11 -0
  119. package/src/themes/themes.js +31 -0
  120. package/src/utility/index.d.ts +1 -0
  121. package/src/utility/index.js +1 -0
  122. package/src/utility/path-util.d.ts +133 -0
  123. package/src/utility/path-util.js +639 -0
  124. package/text-helpers.d.ts +4 -0
  125. package/text-helpers.js +4 -0
  126. package/themes.d.ts +4 -0
  127. package/themes.js +4 -0
  128. package/utility.d.ts +4 -0
  129. package/utility.js +4 -0
@@ -0,0 +1,941 @@
1
+ import { Dictionary } from './base/dictionary';
2
+ import { WList } from './list/list';
3
+ import { WAbstractList } from './list/abstract-list';
4
+ import { WListLevel } from './list/list-level';
5
+ import { WCharacterFormat } from './format/character-format';
6
+ import { WParagraphFormat } from './format/paragraph-format';
7
+ import { WStyles, WStyle } from './format/style';
8
+ import { Layout } from './layout';
9
+ import { L10n } from '@syncfusion/ej2-base';
10
+ import { Page, Widget, FieldElementBox, ParagraphWidget, EditRangeStartElementBox, CommentElementBox, ContentControl, Footnote, FootnoteElementBox, ImageElementBox, BodyWidget, TableWidget, TableCellWidget, ElementBox, BlockWidget, HeaderFooters, BookmarkElementBox, Rect } from './page';
11
+ import { TextHelper, TextHeightInfo } from './text-helper';
12
+ import { ProtectionType, CompatibilityMode, LayoutType, BaselineAlignment, HighlightColor, Strikethrough, Underline } from './base/types';
13
+ import { Themes } from './themes/themes';
14
+ import { LayoutHelper } from './layout-helper';
15
+ import { SfdtReader } from './parser/sfdt-reader';
16
+ import { CharacterFormatProperties, ParagraphFormatProperties, ExternalFontInfo, WRowFormat } from './index';
17
+ import { Optimized, Regular } from './index';
18
+ import { BorderRenderInfo, ListCounterInfo } from './index';
19
+ import { Renderer } from './render';
20
+ import { RevisionBase, RevisionHelperMethods } from './helper/revision-helper-methods';
21
+ import { EditorProperties } from './helper/document-editor-helper';
22
+ import { DocumentEditorSettingsModel, DocumentSettingsModel } from './helper/document-editor-settings';
23
+ import { RendererHooks } from './helper/renderer-hooks';
24
+ /**
25
+ * @private
26
+ */
27
+ export declare class DocxRenderer {
28
+ /**
29
+ * @private
30
+ */
31
+ enableLayout: boolean;
32
+ /**
33
+ * @private
34
+ */
35
+ layoutType: LayoutType;
36
+ /**
37
+ * @private
38
+ */
39
+ isLayoutEnabled: boolean;
40
+ /**
41
+ * @private
42
+ */
43
+ isShiftingEnabled: boolean;
44
+ /**
45
+ * @private
46
+ */
47
+ isEditorModule: boolean;
48
+ /**
49
+ * @private
50
+ */
51
+ isSfdtExportModule: boolean;
52
+ /**
53
+ * @private
54
+ */
55
+ isSelectionModule: boolean;
56
+ /**
57
+ * @private
58
+ */
59
+ isFormatPainterModule: boolean;
60
+ /**
61
+ * @private
62
+ */
63
+ formatPainterCursor: string;
64
+ /**
65
+ * @private
66
+ */
67
+ formatPainterActive: boolean;
68
+ /**
69
+ * @private
70
+ */
71
+ L10n: L10n;
72
+ /**
73
+ * @private
74
+ */
75
+ viewerContainer: HTMLElement;
76
+ /**
77
+ * @private
78
+ */
79
+ isSelectionInHeaderFooter: boolean;
80
+ /**
81
+ * @private
82
+ */
83
+ isSpellCheck: boolean;
84
+ /**
85
+ * @private
86
+ */
87
+ enableLockAndEdit: boolean;
88
+ /**
89
+ * @private
90
+ */
91
+ enableComment: boolean;
92
+ /**
93
+ * @private
94
+ */
95
+ picturePositionY: number;
96
+ /**
97
+ * @private
98
+ */
99
+ lockedPictureContentControl: ElementBox;
100
+ /**
101
+ * @private
102
+ */
103
+ selectionPage: Page;
104
+ /**
105
+ * @private
106
+ */
107
+ selectionEndParagraph: ParagraphWidget;
108
+ /**
109
+ * @private
110
+ */
111
+ selectionCharacterFormat: {
112
+ bidi: boolean;
113
+ bold: boolean;
114
+ italic: boolean;
115
+ fontSize: number;
116
+ fontFamily: string;
117
+ highlightColor: HighlightColor;
118
+ baselineAlignment: BaselineAlignment;
119
+ fontColor: string;
120
+ underline: Underline;
121
+ strikethrough: Strikethrough;
122
+ boldBidi: boolean;
123
+ italicBidi: boolean;
124
+ fontSizeBidi: number;
125
+ };
126
+ /**
127
+ * Editor, selection, document settings, and layout or render values the editor publishes.
128
+ *
129
+ * @private
130
+ */
131
+ editorProperties: EditorProperties;
132
+ /**
133
+ * @private
134
+ */
135
+ documentEditorSettings: DocumentEditorSettingsModel;
136
+ /**
137
+ * @private
138
+ */
139
+ documentSettings: DocumentSettingsModel;
140
+ /**
141
+ * Event hooks the editor assigns. Layout and render call these instead of importing the editor.
142
+ *
143
+ * @private
144
+ */
145
+ hooks: RendererHooks;
146
+ private elementIn;
147
+ /**
148
+ * Host element. When the editor sets hostElement, that element is used.
149
+ */
150
+ /**
151
+ * @private
152
+ * @returns {HTMLElement} HTMLElement
153
+ */
154
+ hostElement: HTMLElement;
155
+ /**
156
+ * @private
157
+ * @returns {HTMLElement} HTMLElement
158
+ */
159
+ /**
160
+ * @private
161
+ * @param {HTMLElement} value - value
162
+ */
163
+ element: HTMLElement;
164
+ /**
165
+ * @private
166
+ */
167
+ pageContainer: HTMLElement;
168
+ /**
169
+ * Page outline color
170
+ */
171
+ /**
172
+ * @private
173
+ */
174
+ pageOutline: string;
175
+ /**
176
+ * @private
177
+ */
178
+ copyWithTrackChange: boolean;
179
+ private sections;
180
+ /**
181
+ * @private
182
+ */
183
+ currentPage: Page;
184
+ /**
185
+ * Gets the BodyWidget.
186
+ *
187
+ * @returns {BodyWidget[]} - Returns document BodyWidgets.
188
+ */
189
+ /**
190
+ * @private
191
+ * @returns {BodyWidget[]} BodyWidget[]
192
+ */
193
+ getSections(): BodyWidget[];
194
+ /**
195
+ * @private
196
+ * @returns {RevisionBase} RevisionBase
197
+ */
198
+ getInsertedRevision(): RevisionBase;
199
+ /**
200
+ * @private
201
+ * @returns {ElementBox | WCharacterFormat | WRowFormat} ElementBox | WCharacterFormat | WRowFormat
202
+ */
203
+ getRevisionItem(): ElementBox | WCharacterFormat | WRowFormat;
204
+ /**
205
+ * Gets the current rendering page.
206
+ *
207
+ * @returns {Page} - Returns current rendering page.
208
+ */
209
+ /**
210
+ * @private
211
+ * @returns {Page} Page
212
+ */
213
+ readonly currentRenderingPage: Page;
214
+ /**
215
+ * @private
216
+ */
217
+ backgroundColor: string;
218
+ /**
219
+ * @private
220
+ */
221
+ enableTrackChanges: boolean;
222
+ /**
223
+ * @private
224
+ */
225
+ parser: SfdtReader;
226
+ /**
227
+ * @private
228
+ */
229
+ revisionHelper: RevisionHelperMethods;
230
+ /**
231
+ * @private
232
+ */
233
+ pages: Page[];
234
+ /**
235
+ * preserve the format
236
+ */
237
+ /**
238
+ * @private
239
+ */
240
+ restrictFormatting: boolean;
241
+ /**
242
+ * preserve the document protection type either readonly or no protection
243
+ */
244
+ /**
245
+ * @private
246
+ */
247
+ protectionType: ProtectionType;
248
+ /**
249
+ * Preserve the password protection is enforced or not
250
+ */
251
+ /**
252
+ * @private
253
+ */
254
+ isDocumentProtected: boolean;
255
+ /**
256
+ * preserve the hash value of password
257
+ */
258
+ /**
259
+ * @private
260
+ */
261
+ hashValue: string;
262
+ /**
263
+ * @private
264
+ */
265
+ saltValue: string;
266
+ /**
267
+ * @private
268
+ */
269
+ cryptAlgorithmSid: string;
270
+ /**
271
+ * @private
272
+ */
273
+ cryptAlgorithmType: string;
274
+ /**
275
+ * @private
276
+ */
277
+ cryptAlgorithmClass: string;
278
+ /**
279
+ * @private
280
+ */
281
+ skipSettingsOps: boolean;
282
+ /**
283
+ * @private
284
+ */
285
+ fieldStacks: FieldElementBox[];
286
+ /**
287
+ * @private
288
+ */
289
+ splittedCellWidgets: TableCellWidget[];
290
+ /**
291
+ * @private
292
+ */
293
+ tableLefts: number[];
294
+ /**
295
+ * @private
296
+ */
297
+ isFirstLineFitInShiftWidgets: boolean;
298
+ /**
299
+ * @private
300
+ */
301
+ layout: Layout;
302
+ /**
303
+ * @private
304
+ */
305
+ zoomFactor: number;
306
+ /**
307
+ * @private
308
+ */
309
+ textHelper: TextHelper;
310
+ /**
311
+ * @private
312
+ */
313
+ fields: FieldElementBox[];
314
+ /**
315
+ * @private
316
+ */
317
+ blockToShift: BlockWidget;
318
+ /**
319
+ * @private
320
+ */
321
+ heightInfoCollection: TextHeightInfo;
322
+ /**
323
+ * @private
324
+ */
325
+ characterFormat: WCharacterFormat;
326
+ /**
327
+ * @private
328
+ */
329
+ paragraphFormat: WParagraphFormat;
330
+ /**
331
+ * @private
332
+ */
333
+ editorCharacterFormat: CharacterFormatProperties;
334
+ /**
335
+ * @private
336
+ */
337
+ editorParagraphFormat: ParagraphFormatProperties;
338
+ /**
339
+ * @private
340
+ */
341
+ documentCharacterFormat: CharacterFormatProperties;
342
+ /**
343
+ * @private
344
+ */
345
+ documentParagraphFormat: ParagraphFormatProperties;
346
+ /**
347
+ * @private
348
+ */
349
+ themeFontLanguage: WCharacterFormat;
350
+ /**
351
+ * @private
352
+ */
353
+ renderedLists: Dictionary<WAbstractList, Dictionary<number, ListCounterInfo>>;
354
+ /**
355
+ * @private
356
+ */
357
+ renderedLevelOverrides: WList[];
358
+ /**
359
+ * @private
360
+ */
361
+ headersFooters: HeaderFooters[];
362
+ /**
363
+ * @private
364
+ */
365
+ defaultTabWidth: number;
366
+ /**
367
+ * @private
368
+ */
369
+ dontUseHtmlParagraphAutoSpacing: boolean;
370
+ /**
371
+ * @private
372
+ */
373
+ allowSpaceOfSameStyleInTable: boolean;
374
+ /**
375
+ * @private
376
+ */
377
+ alignTablesRowByRow: boolean;
378
+ /**
379
+ * @private
380
+ */
381
+ compatibilityMode: CompatibilityMode;
382
+ /**
383
+ * @private
384
+ */
385
+ lists: WList[];
386
+ /**
387
+ * @private
388
+ */
389
+ images: Dictionary<number, string[]>;
390
+ /**
391
+ * @private
392
+ */
393
+ comments: CommentElementBox[];
394
+ /**
395
+ * @private
396
+ */
397
+ authors: Dictionary<string, string>;
398
+ /**
399
+ * @private
400
+ */
401
+ revisionsInternal: Dictionary<string, any>;
402
+ /**
403
+ * @private
404
+ */
405
+ abstractLists: WAbstractList[];
406
+ /**
407
+ * Holds regular or optimized module based on DocumentEditorSettting `enableOptimizedTextMeasuring` property.
408
+ */
409
+ /**
410
+ * @private
411
+ */
412
+ textMeasureHelper: Regular | Optimized;
413
+ /**
414
+ * @private
415
+ */
416
+ styles: WStyles;
417
+ /**
418
+ * @private
419
+ */
420
+ stylesMap: Dictionary<string, object[]>;
421
+ /**
422
+ * @private
423
+ */
424
+ listParagraphs: ParagraphWidget[];
425
+ /**
426
+ * @private
427
+ */
428
+ preDefinedStyles: Dictionary<string, string>;
429
+ /**
430
+ * @private
431
+ */
432
+ isRowOrCellResizing: boolean;
433
+ /**
434
+ * @private
435
+ */
436
+ bookmarks: Dictionary<string, BookmarkElementBox>;
437
+ /**
438
+ * @private
439
+ */
440
+ endBookmarksUpdated: string[];
441
+ /**
442
+ * @private
443
+ */
444
+ formFields: FieldElementBox[];
445
+ /**
446
+ * @private
447
+ */
448
+ editRanges: Dictionary<string, EditRangeStartElementBox[]>;
449
+ /**
450
+ * @private
451
+ */
452
+ fieldCollection: FieldElementBox[];
453
+ /**
454
+ * @private
455
+ */
456
+ isPageField: boolean;
457
+ /**
458
+ * @private
459
+ */
460
+ isTextInput: boolean;
461
+ /**
462
+ * @private
463
+ */
464
+ userCollection: string[];
465
+ /**
466
+ * @private
467
+ */
468
+ cachedPages: number[];
469
+ /**
470
+ * @private
471
+ */
472
+ isIosDevice: boolean;
473
+ /**
474
+ * @private
475
+ */
476
+ isMobileDevice: boolean;
477
+ /**
478
+ * @private
479
+ */
480
+ isLinuxOS: boolean;
481
+ /**
482
+ * @private
483
+ */
484
+ isFormFilling: boolean;
485
+ /**
486
+ * @private
487
+ */
488
+ customXmlData: Dictionary<string, string>;
489
+ /**
490
+ * @private
491
+ */
492
+ fontSubstitutionTable: Dictionary<string, string>;
493
+ /**
494
+ * @private
495
+ */
496
+ themes: Themes;
497
+ /**
498
+ * @private
499
+ */
500
+ hasThemes: boolean;
501
+ /**
502
+ * @private
503
+ */
504
+ contentControlCollection: ContentControl[];
505
+ /**
506
+ * @private
507
+ */
508
+ footnotes: Footnote;
509
+ /**
510
+ * @private
511
+ */
512
+ endnotes: Footnote;
513
+ /**
514
+ * @private
515
+ */
516
+ footnoteCollection: FootnoteElementBox[];
517
+ /**
518
+ * @private
519
+ */
520
+ endnoteCollection: FootnoteElementBox[];
521
+ /**
522
+ * @private
523
+ */
524
+ isFootnoteWidget: boolean;
525
+ /**
526
+ * @private
527
+ */
528
+ isUpdatedWhileLoadAsync: boolean;
529
+ private isRestartNumbering;
530
+ /**
531
+ * @private
532
+ * @param {any} 0 - 0
533
+ * @param {any} 0 - 0
534
+ * @param {any} 816 - 816
535
+ * @param {any} 1056 - 1056
536
+ */
537
+ visibleBoundsIn: Rect;
538
+ /**
539
+ * @private
540
+ */
541
+ currentDocumentLoadId: number;
542
+ /**
543
+ * Shared with the editor when one is present. The editor clears these ids.
544
+ * @private
545
+ */
546
+ scheduledTimeouts: {
547
+ [key: number]: number[];
548
+ };
549
+ /**
550
+ * @private
551
+ */
552
+ resizerBoundaryWidth: number;
553
+ /**
554
+ * @private
555
+ */
556
+ isFollowedListLayoutRequired: boolean;
557
+ /**
558
+ * Gets visible bounds.
559
+ *
560
+ * @returns {Rect} - Returns visible bounds.
561
+ */
562
+ /**
563
+ * @private
564
+ * @returns {Rect} Rect
565
+ */
566
+ readonly visibleBounds: Rect;
567
+ /**
568
+ * @private
569
+ */
570
+ viewer: LayoutHelper;
571
+ /**
572
+ * @private
573
+ */
574
+ render: Renderer;
575
+ /**
576
+ * @private
577
+ */
578
+ selectionCanvasIn: HTMLCanvasElement;
579
+ /**
580
+ * @private
581
+ */
582
+ containerCanvasIn: HTMLCanvasElement;
583
+ /**
584
+ * @private
585
+ */
586
+ externalFonts: ExternalFontInfo[];
587
+ /**
588
+ * Overrides the global culture and localization value for this component. Default global culture is 'en-US'.
589
+ * @private
590
+ */
591
+ locale: string;
592
+ /**
593
+ * Default locale strings used when the editor has not assigned its locale object.
594
+ * The editor owns the full map and assigns it in setRendererProperties.
595
+ * @private
596
+ */
597
+ defaultLocale: Object;
598
+ /**
599
+ * @private
600
+ * @returns {HTMLCanvasElement} HTMLCanvasElement
601
+ */
602
+ readonly selectionCanvas: HTMLCanvasElement;
603
+ /**
604
+ * @private
605
+ * @returns {HTMLCanvasElement} HTMLCanvasElement
606
+ */
607
+ readonly containerCanvas: HTMLCanvasElement;
608
+ /**
609
+ * Gets selection context.
610
+ *
611
+ * @private
612
+ * @returns {CanvasRenderingContext2D} CanvasRenderingContext2D
613
+ */
614
+ readonly selectionContext: CanvasRenderingContext2D;
615
+ /**
616
+ * @private
617
+ */
618
+ constructor();
619
+ private initalizeStyles;
620
+ /**
621
+ * Opens the specified document.
622
+ *
623
+ * @private
624
+ * @param {string | Blob} data - data
625
+ * @returns {void}
626
+ */
627
+ open(data: string | Blob): void;
628
+ /**
629
+ * Handles opening of Blob objects
630
+ *
631
+ * @private
632
+ * @param {Blob} blob - blob
633
+ * @returns {void}
634
+ */
635
+ private handleBlobOpen;
636
+ /**
637
+ * Copies the active Format Painter cursor onto a canvas attached after the mode starts.
638
+ *
639
+ * @private
640
+ * @param {HTMLElement} element - element
641
+ * @returns {void}
642
+ */
643
+ private syncFormatPainterCursor;
644
+ /**
645
+ * @private
646
+ * @returns {void}
647
+ */
648
+ clearDocumentItems(): void;
649
+ /**
650
+ * @private
651
+ * @returns {void}
652
+ */
653
+ setDefaultDocumentFormat(): void;
654
+ /**
655
+ * Initializes core layout components without UI
656
+ *
657
+ * @private
658
+ * @returns {void}
659
+ */
660
+ initializeComponents(): void;
661
+ /**
662
+ * @private
663
+ * @param {WCharacterFormat} characterFormat - characterFormat
664
+ * @returns {void}
665
+ */
666
+ setDefaultCharacterValue(characterFormat: WCharacterFormat): void;
667
+ /**
668
+ * @private
669
+ * @param {WParagraphFormat} paragraphFormat - paragraphFormat
670
+ * @returns {void}
671
+ */
672
+ setDefaultParagraphValue(paragraphFormat: WParagraphFormat): void;
673
+ /**
674
+ * @private
675
+ * @param {number} id - id
676
+ * @param {boolean} isNsid - isNsid
677
+ * @returns {WAbstractList} WAbstractList
678
+ */
679
+ getAbstractListById(id: number, isNsid?: boolean): WAbstractList;
680
+ /**
681
+ * @private
682
+ * @param {number} id - id
683
+ * @param {boolean} isNsid - isNsid
684
+ * @returns {WList} WList
685
+ */
686
+ getListById(id: number, isNsid?: boolean): WList;
687
+ /**
688
+ * @private
689
+ * @param {WListLevel} listLevel - listLevel
690
+ * @returns {number} number
691
+ */
692
+ static getListLevelNumber(listLevel: WListLevel): number;
693
+ /**
694
+ * @private
695
+ * @param {ImageElementBox} image - image
696
+ * @returns {string} string
697
+ */
698
+ getImageString(image: ImageElementBox): string;
699
+ /**
700
+ * @private
701
+ * @param {ImageElementBox} image - image
702
+ * @returns {Promise<void>} Promise<void>
703
+ */
704
+ addBase64StringInCollection(image: ImageElementBox): Promise<void>;
705
+ /**
706
+ * Gets the bookmarks.
707
+ * @private
708
+ * @param {boolean} includeHidden - includeHidden
709
+ * @returns {string[]} string[]
710
+ */
711
+ getBookmarks(includeHidden?: boolean): string[];
712
+ getBase64(base64String: string, width: number, height: number): Promise<string>;
713
+ /**
714
+ * Stores the setTimeOut id when asynchronous process.
715
+ * @private
716
+ * @param {number} loadId - loadId
717
+ * @param {number} timeoutId - timeoutId
718
+ * @returns {void}
719
+ */
720
+ storeTimeoutId(loadId: number, timeoutId: number): void;
721
+ /**
722
+ * @private
723
+ * @param {string} hexColor - hexColor
724
+ * @param {number} opacity - opacity
725
+ * @returns {string} string
726
+ */
727
+ convertColorToRGBA(hexColor: string, opacity: number): string;
728
+ /**
729
+ * @private
730
+ * @param {string} author - author
731
+ * @returns {string} string
732
+ */
733
+ getAuthorColor(author: string): string;
734
+ /**
735
+ * @private
736
+ * @returns {string} string
737
+ */
738
+ generateRandomColor(): string;
739
+ /**
740
+ * @private
741
+ * @param {Page} page - page
742
+ * @returns {number} number
743
+ */
744
+ getPageWidth(page: Page): number;
745
+ /**
746
+ * Removes specified page.
747
+ *
748
+ * @param {Page} page - Specifies page to remove
749
+ * @returns {void}
750
+ */
751
+ removePage(page: Page): void;
752
+ /**
753
+ * Inserts page in specified index.
754
+ *
755
+ * @param {number} index - Specifes index to insert page
756
+ * @param {Page} page - Page to insert.
757
+ * @returns {void}
758
+ */
759
+ insertPage(index: number, page: Page): void;
760
+ /**
761
+ * @private
762
+ * @param {boolean} skipEndLayout - skipEndLayout
763
+ * @returns {void}
764
+ */
765
+ removeEmptyPages(skipEndLayout?: boolean): void;
766
+ /**
767
+ * @private
768
+ * @param {Page} page - page
769
+ * @returns {void}
770
+ */
771
+ scrollToBottom(page: Page): void;
772
+ /**
773
+ * @private
774
+ * @param {FieldElementBox} fieldBegin - fieldBegin
775
+ * @param {Page} page - page
776
+ * @returns {string} string
777
+ */
778
+ getFieldResult(fieldBegin: FieldElementBox, page: Page): string;
779
+ private getFieldText;
780
+ /**
781
+ * Get Next paragraph in block
782
+ *
783
+ * @returns {ParagraphWidget}
784
+ */
785
+ /**
786
+ * @private
787
+ * @param {BlockWidget} block - block
788
+ * @returns {ParagraphWidget} ParagraphWidget
789
+ */
790
+ getNextParagraphBlock(block: BlockWidget): ParagraphWidget;
791
+ /**
792
+ * Get Next paragraph from cell
793
+ * @private
794
+ * @param {TableCellWidget} cell - cell
795
+ * @returns {ParagraphWidget} ParagraphWidget
796
+ */
797
+ getNextParagraphCell(cell: TableCellWidget): ParagraphWidget;
798
+ /**
799
+ * Get next paragraph in bodyWidget
800
+ * @private
801
+ * @param {BodyWidget} section - section
802
+ * @returns {ParagraphWidget} ParagraphWidget
803
+ */
804
+ getNextParagraph(section: BodyWidget): ParagraphWidget;
805
+ /**
806
+ * @private
807
+ * @param {BlockWidget} block - block
808
+ * @returns {ParagraphWidget} ParagraphWidget
809
+ */
810
+ getFirstBlockInNextHeaderFooter(block: BlockWidget): ParagraphWidget;
811
+ /**
812
+ * Get next paragraph for row
813
+ * @private
814
+ * @param {BlockWidget} row - row
815
+ * @returns {ParagraphWidget} ParagraphWidget
816
+ */
817
+ getNextParagraphRow(row: BlockWidget): ParagraphWidget;
818
+ /**
819
+ * @private
820
+ * @param {TableWidget} table - table
821
+ * @returns {BlockWidget} BlockWidget
822
+ */
823
+ getFirstBlockInFirstCell(table: TableWidget): BlockWidget;
824
+ /**
825
+ * Destroys the internal objects maintained for control.
826
+ * @private
827
+ * @returns {void}
828
+ */
829
+ destroy(): void;
830
+ /**
831
+ * @private
832
+ * @param {ParagraphWidget} paragraph - paragraph
833
+ * @returns {BorderRenderInfo} BorderRenderInfo
834
+ */
835
+ canRenderBorder(paragraph: ParagraphWidget): BorderRenderInfo;
836
+ private checkEqualBorder;
837
+ /**
838
+ * @private
839
+ * @param {ParagraphWidget} paragraphWidget - paragraphWidget
840
+ * @returns {number} number
841
+ */
842
+ getParagraphLeftPosition(paragraphWidget: ParagraphWidget): number;
843
+ /**
844
+ * @private
845
+ * @param {ParagraphWidget} paragraph - paragraph
846
+ * @param {ParagraphWidget} nextWidget - nextWidget
847
+ * @returns {boolean} boolean
848
+ */
849
+ skipBottomBorder(paragraph: ParagraphWidget, nextWidget: ParagraphWidget): boolean;
850
+ /**
851
+ * Get first paragraph in cell
852
+ * @private
853
+ * @param {TableCellWidget} cell - cell
854
+ * @returns {ParagraphWidget} ParagraphWidget
855
+ */
856
+ getFirstParagraphInCell(cell: TableCellWidget): ParagraphWidget;
857
+ /**
858
+ * Get first paragraph in first cell
859
+ * @private
860
+ * @param {TableWidget} table - table
861
+ * @returns {ParagraphWidget} ParagraphWidget
862
+ */
863
+ getFirstParagraphInFirstCell(table: TableWidget): ParagraphWidget;
864
+ /**
865
+ * Get last paragraph in last cell
866
+ * @private
867
+ * @param {TableWidget} table - table
868
+ * @returns {ParagraphWidget} ParagraphWidget
869
+ */
870
+ getLastParagraphInLastCell(table: TableWidget): ParagraphWidget;
871
+ /**
872
+ * Get first paragraph in block
873
+ * @private
874
+ * @param {BlockWidget} block - block
875
+ * @returns {ParagraphWidget} ParagraphWidget
876
+ */
877
+ getFirstParagraphBlock(block: BlockWidget): ParagraphWidget;
878
+ /**
879
+ * Get last paragraph in block
880
+ *
881
+ * @private
882
+ * @param {BlockWidget} block - block
883
+ * @returns {ParagraphWidget} ParagraphWidget
884
+ */
885
+ getLastParagraphBlock(block: BlockWidget): ParagraphWidget;
886
+ /**
887
+ * Get last paragraph in first row
888
+ *
889
+ * @private
890
+ * @param {TableWidget} table - table
891
+ * @returns {ParagraphWidget} ParagraphWidget
892
+ */
893
+ getLastParagraphInFirstRow(table: TableWidget): ParagraphWidget;
894
+ /**
895
+ * Get first paragraph in last row
896
+ * @private
897
+ * @param {TableWidget} table - table
898
+ * @returns {ParagraphWidget} ParagraphWidget
899
+ */
900
+ getFirstParagraphInLastRow(table: TableWidget): ParagraphWidget;
901
+ /**
902
+ * Add the given WStyle Object ot stylesMap Dictionary
903
+ * @private
904
+ * @param {WStyle} style - style
905
+ * @returns {void}
906
+ */
907
+ addToStylesMap(style: WStyle): void;
908
+ private parseStyle;
909
+ /**
910
+ * Get next valid element
911
+ * @private
912
+ * @param {ElementBox} inline - inline
913
+ * @returns {ElementBox} ElementBox
914
+ */
915
+ getNextValidElement(inline: ElementBox): ElementBox;
916
+ /**
917
+ * @private
918
+ * @param {ElementBox} firstInline - firstInline
919
+ * @returns {ElementBox} ElementBox
920
+ */
921
+ getNextValidElementForField(firstInline: ElementBox): ElementBox;
922
+ /**
923
+ * @private
924
+ * @returns {BodyWidget[]} BodyWidget[]
925
+ */
926
+ combineSection(): BodyWidget[];
927
+ /**
928
+ * @private
929
+ * @param {BodyWidget} bodyWidget - bodyWidget
930
+ * @param {BodyWidget[]} sections - sections
931
+ * @param {boolean} destoryPage - destoryPage
932
+ * @returns {BodyWidget} BodyWidget
933
+ */
934
+ combineSectionChild(bodyWidget: BodyWidget, sections: BodyWidget[], destoryPage: boolean): BodyWidget;
935
+ /**
936
+ * @private
937
+ * @param {Widget} block - block
938
+ * @returns {boolean} boolean
939
+ */
940
+ isBlockInHeader(block: Widget): boolean;
941
+ }