@syncfusion/ej2-docx 35.1.39 → 35.1.40
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/.gitleaksignore +35 -0
- package/README.md +1 -1
- package/dist/ej2-docx.umd.min.js +9 -0
- package/dist/global/ej2-docx.min.js +9 -0
- package/dist/global/index.d.ts +9 -0
- package/package.json +31 -31
- package/src/features/document/alt-chunk.d.ts +1 -1
- package/src/features/document/alt-chunk.js +1 -1
- package/src/features/document/augmentations.d.ts +2 -2
- package/src/features/document/entity-type.d.ts +8 -8
- package/src/features/document/entity-type.js +8 -8
- package/src/features/document/length.d.ts +14 -14
- package/src/features/document/length.js +12 -12
- package/src/features/document/text-range.d.ts +11 -11
- package/src/features/document/text-range.js +2 -2
- package/src/features/drawing/drawing-shape.d.ts +1 -1
- package/src/features/drawing/drawing-shape.js +1 -1
- package/src/features/editable-ranges/index.d.ts +1 -1
- package/src/features/editable-ranges/index.js +1 -1
- package/src/features/headers-footers/index.d.ts +8 -8
- package/src/features/headers-footers/index.js +8 -8
- package/src/features/images/caption-authoring-api.d.ts +3 -3
- package/src/features/images/caption-authoring-api.js +2 -2
- package/src/features/images/captions.d.ts +1 -1
- package/src/features/images/captions.js +1 -1
- package/src/features/images/index.d.ts +10 -10
- package/src/features/images/index.js +7 -7
- package/src/features/numbering/index.js +1 -1
- package/src/features/numbering/list-format.d.ts +1 -1
- package/src/features/sections/page-setup.d.ts +1 -1
package/dist/global/index.d.ts
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* filename: index.d.ts
|
|
3
|
+
* version : 35.1.40
|
|
4
|
+
* Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
|
|
5
|
+
* Use of this code is subject to the terms of our license.
|
|
6
|
+
* A copy of the current license can be obtained at any time by e-mailing
|
|
7
|
+
* licensing@syncfusion.com. Any infringement will be prosecuted under
|
|
8
|
+
* applicable laws.
|
|
9
|
+
*/
|
|
1
10
|
import * as _docx from '@syncfusion/ej2-docx';
|
|
2
11
|
|
|
3
12
|
export declare namespace ej {
|
package/package.json
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
2
|
+
"name": "@syncfusion/ej2-docx",
|
|
3
|
+
"version": "35.1.40",
|
|
4
|
+
"description": "The EJ2 DOCX library enables the creation, editing, and manipulation of Word documents in JavaScript.",
|
|
5
|
+
"author": "Syncfusion Inc.",
|
|
6
|
+
"license": "SEE LICENSE IN license",
|
|
7
|
+
"main": "./src/index.js",
|
|
8
|
+
"module": "./index.js",
|
|
9
|
+
"es2015": "./src/index.js",
|
|
10
|
+
"typings": "src/index.d.ts",
|
|
11
|
+
"devDependencies": {},
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"@syncfusion/ej2-base": "~35.1.37"
|
|
14
|
+
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"ej2",
|
|
17
|
+
"syncfusion",
|
|
18
|
+
"ej2-docx",
|
|
19
|
+
"web-components",
|
|
20
|
+
"javascript",
|
|
21
|
+
"typescript",
|
|
22
|
+
"word",
|
|
23
|
+
"docx",
|
|
24
|
+
"ooxml",
|
|
25
|
+
"document-processing"
|
|
26
|
+
],
|
|
27
|
+
"repository": {
|
|
28
|
+
"type": "git",
|
|
29
|
+
"url": "https://github.com/syncfusion/ej2-javascript-ui-controls/tree/master/controls/docx"
|
|
30
|
+
},
|
|
31
|
+
"sideEffects": false,
|
|
32
|
+
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
33
33
|
}
|
|
@@ -90,7 +90,7 @@ export declare function altChunksInBlocks(blocks: ReadonlyArray<BlockContent>):
|
|
|
90
90
|
/**
|
|
91
91
|
* Modeled `w:altChunk` anchors in the Main Document body.
|
|
92
92
|
*
|
|
93
|
-
|
|
93
|
+
|
|
94
94
|
* @private
|
|
95
95
|
*/
|
|
96
96
|
export declare function altChunks(document: {
|
|
@@ -262,7 +262,7 @@ declare module './index' {
|
|
|
262
262
|
appendEndnote(text: string): import('../notes/index').Endnote;
|
|
263
263
|
/**
|
|
264
264
|
* Assign a list by numbering instance id (escape hatch). Prefer {@link Paragraph.listFormat}.
|
|
265
|
-
|
|
265
|
+
|
|
266
266
|
*/
|
|
267
267
|
numbering: {
|
|
268
268
|
numId: number;
|
|
@@ -529,7 +529,7 @@ declare module './paragraph' {
|
|
|
529
529
|
appendEndnote(text: string): import('../notes/index').Endnote;
|
|
530
530
|
/**
|
|
531
531
|
* Assign a list by numbering instance id (escape hatch). Prefer {@link Paragraph.listFormat}.
|
|
532
|
-
|
|
532
|
+
|
|
533
533
|
*/
|
|
534
534
|
numbering: {
|
|
535
535
|
numId: number;
|
|
@@ -18,35 +18,35 @@ export declare enum EntityType {
|
|
|
18
18
|
RowContentControl = 8,
|
|
19
19
|
CellContentControl = 9,
|
|
20
20
|
/**
|
|
21
|
-
|
|
21
|
+
|
|
22
22
|
*/
|
|
23
23
|
StructureDocumentTag = 10,
|
|
24
24
|
/**
|
|
25
|
-
|
|
25
|
+
|
|
26
26
|
*/
|
|
27
27
|
StructureDocumentTagInline = 11,
|
|
28
28
|
/**
|
|
29
|
-
|
|
29
|
+
|
|
30
30
|
*/
|
|
31
31
|
StructureDocumentTagRow = 12,
|
|
32
32
|
/**
|
|
33
|
-
|
|
33
|
+
|
|
34
34
|
*/
|
|
35
35
|
StructureDocumentTagCell = 13,
|
|
36
36
|
/**
|
|
37
|
-
|
|
37
|
+
|
|
38
38
|
*/
|
|
39
39
|
SDTBlockContent = 14,
|
|
40
40
|
/**
|
|
41
|
-
|
|
41
|
+
|
|
42
42
|
*/
|
|
43
43
|
SDTInlineContent = 15,
|
|
44
44
|
/**
|
|
45
|
-
|
|
45
|
+
|
|
46
46
|
*/
|
|
47
47
|
SDTRowContent = 16,
|
|
48
48
|
/**
|
|
49
|
-
|
|
49
|
+
|
|
50
50
|
*/
|
|
51
51
|
SDTCellContent = 17,
|
|
52
52
|
Table = 18,
|
|
@@ -19,35 +19,35 @@ export var EntityType;
|
|
|
19
19
|
EntityType[EntityType["RowContentControl"] = 8] = "RowContentControl";
|
|
20
20
|
EntityType[EntityType["CellContentControl"] = 9] = "CellContentControl";
|
|
21
21
|
/**
|
|
22
|
-
|
|
22
|
+
|
|
23
23
|
*/
|
|
24
24
|
EntityType[EntityType["StructureDocumentTag"] = 10] = "StructureDocumentTag";
|
|
25
25
|
/**
|
|
26
|
-
|
|
26
|
+
|
|
27
27
|
*/
|
|
28
28
|
EntityType[EntityType["StructureDocumentTagInline"] = 11] = "StructureDocumentTagInline";
|
|
29
29
|
/**
|
|
30
|
-
|
|
30
|
+
|
|
31
31
|
*/
|
|
32
32
|
EntityType[EntityType["StructureDocumentTagRow"] = 12] = "StructureDocumentTagRow";
|
|
33
33
|
/**
|
|
34
|
-
|
|
34
|
+
|
|
35
35
|
*/
|
|
36
36
|
EntityType[EntityType["StructureDocumentTagCell"] = 13] = "StructureDocumentTagCell";
|
|
37
37
|
/**
|
|
38
|
-
|
|
38
|
+
|
|
39
39
|
*/
|
|
40
40
|
EntityType[EntityType["SDTBlockContent"] = 14] = "SDTBlockContent";
|
|
41
41
|
/**
|
|
42
|
-
|
|
42
|
+
|
|
43
43
|
*/
|
|
44
44
|
EntityType[EntityType["SDTInlineContent"] = 15] = "SDTInlineContent";
|
|
45
45
|
/**
|
|
46
|
-
|
|
46
|
+
|
|
47
47
|
*/
|
|
48
48
|
EntityType[EntityType["SDTRowContent"] = 16] = "SDTRowContent";
|
|
49
49
|
/**
|
|
50
|
-
|
|
50
|
+
|
|
51
51
|
*/
|
|
52
52
|
EntityType[EntityType["SDTCellContent"] = 17] = "SDTCellContent";
|
|
53
53
|
EntityType[EntityType["Table"] = 18] = "Table";
|
|
@@ -101,12 +101,12 @@ export declare function halfPoints(value: number): HalfPoints;
|
|
|
101
101
|
*/
|
|
102
102
|
export declare function emus(value: number): Emus;
|
|
103
103
|
/**
|
|
104
|
-
* @internal
|
|
104
|
+
* @internal
|
|
105
105
|
* Residual alias — do not use in new code.
|
|
106
106
|
*/
|
|
107
107
|
export declare function lengthToEmus(points: number): Emus;
|
|
108
108
|
/**
|
|
109
|
-
* @internal
|
|
109
|
+
* @internal
|
|
110
110
|
* Residual alias — do not use in new code.
|
|
111
111
|
*/
|
|
112
112
|
export declare function lengthToHalfPoints(points: number): HalfPoints;
|
|
@@ -123,30 +123,30 @@ export declare const LengthUnits: {
|
|
|
123
123
|
HALF_POINTS_PER_PT: number;
|
|
124
124
|
PT_PER_INCH: number;
|
|
125
125
|
};
|
|
126
|
-
/** @internal
|
|
126
|
+
/** @internal */
|
|
127
127
|
export declare type Length = number;
|
|
128
|
-
/** @internal
|
|
128
|
+
/** @internal */
|
|
129
129
|
export declare type Point = number;
|
|
130
|
-
/** @internal
|
|
130
|
+
/** @internal */
|
|
131
131
|
export declare function Pt(value: number): number;
|
|
132
|
-
/** @internal
|
|
132
|
+
/** @internal */
|
|
133
133
|
export declare function Inches(value: number): number;
|
|
134
|
-
/** @internal
|
|
134
|
+
/** @internal */
|
|
135
135
|
export declare function Cm(value: number): number;
|
|
136
|
-
/** @internal
|
|
136
|
+
/** @internal */
|
|
137
137
|
export declare function Mm(value: number): number;
|
|
138
|
-
/** @internal
|
|
138
|
+
/** @internal */
|
|
139
139
|
export declare function Px(value: number): number;
|
|
140
|
-
/** @internal
|
|
140
|
+
/** @internal */
|
|
141
141
|
export declare function Twips(value: number): number;
|
|
142
|
-
/** @internal
|
|
142
|
+
/** @internal */
|
|
143
143
|
export declare function Emu(value: number): number;
|
|
144
|
-
/** @internal
|
|
144
|
+
/** @internal */
|
|
145
145
|
export declare function add(a: number, b: number): number;
|
|
146
|
-
/** @internal
|
|
146
|
+
/** @internal */
|
|
147
147
|
export declare function scale(points: number, factor: number): number;
|
|
148
148
|
/**
|
|
149
|
-
* @internal
|
|
149
|
+
* @internal
|
|
150
150
|
* Identity helper retained only so residual dual-gap call sites compile during migration.
|
|
151
151
|
*/
|
|
152
152
|
export declare function Point(value: number): number;
|
|
@@ -169,14 +169,14 @@ export function emus(value) {
|
|
|
169
169
|
return value;
|
|
170
170
|
}
|
|
171
171
|
/**
|
|
172
|
-
* @internal
|
|
172
|
+
* @internal
|
|
173
173
|
* Residual alias — do not use in new code.
|
|
174
174
|
*/
|
|
175
175
|
export function lengthToEmus(points) {
|
|
176
176
|
return pointToEmus(points);
|
|
177
177
|
}
|
|
178
178
|
/**
|
|
179
|
-
* @internal
|
|
179
|
+
* @internal
|
|
180
180
|
* Residual alias — do not use in new code.
|
|
181
181
|
*/
|
|
182
182
|
export function lengthToHalfPoints(points) {
|
|
@@ -195,48 +195,48 @@ export var LengthUnits = {
|
|
|
195
195
|
HALF_POINTS_PER_PT: HALF_POINTS_PER_PT,
|
|
196
196
|
PT_PER_INCH: PT_PER_INCH,
|
|
197
197
|
};
|
|
198
|
-
/** @internal
|
|
198
|
+
/** @internal */
|
|
199
199
|
export function Pt(value) {
|
|
200
200
|
assertFinite('Pt', value);
|
|
201
201
|
return value;
|
|
202
202
|
}
|
|
203
|
-
/** @internal
|
|
203
|
+
/** @internal */
|
|
204
204
|
export function Inches(value) {
|
|
205
205
|
return inchesToPoint(value);
|
|
206
206
|
}
|
|
207
|
-
/** @internal
|
|
207
|
+
/** @internal */
|
|
208
208
|
export function Cm(value) {
|
|
209
209
|
return cmToPoint(value);
|
|
210
210
|
}
|
|
211
|
-
/** @internal
|
|
211
|
+
/** @internal */
|
|
212
212
|
export function Mm(value) {
|
|
213
213
|
return mmToPoint(value);
|
|
214
214
|
}
|
|
215
|
-
/** @internal
|
|
215
|
+
/** @internal */
|
|
216
216
|
export function Px(value) {
|
|
217
217
|
return pxToPoint(value);
|
|
218
218
|
}
|
|
219
|
-
/** @internal
|
|
219
|
+
/** @internal */
|
|
220
220
|
export function Twips(value) {
|
|
221
221
|
return twipsToPoint(value);
|
|
222
222
|
}
|
|
223
|
-
/** @internal
|
|
223
|
+
/** @internal */
|
|
224
224
|
export function Emu(value) {
|
|
225
225
|
if (!Number.isInteger(value)) {
|
|
226
226
|
throw new RangeError("Emu must be an integer, got " + String(value));
|
|
227
227
|
}
|
|
228
228
|
return emuToPoint(value);
|
|
229
229
|
}
|
|
230
|
-
/** @internal
|
|
230
|
+
/** @internal */
|
|
231
231
|
export function add(a, b) {
|
|
232
232
|
return addPoints(a, b);
|
|
233
233
|
}
|
|
234
|
-
/** @internal
|
|
234
|
+
/** @internal */
|
|
235
235
|
export function scale(points, factor) {
|
|
236
236
|
return scalePoint(points, factor);
|
|
237
237
|
}
|
|
238
238
|
/**
|
|
239
|
-
* @internal
|
|
239
|
+
* @internal
|
|
240
240
|
* Identity helper retained only so residual dual-gap call sites compile during migration.
|
|
241
241
|
*/
|
|
242
242
|
export function Point(value) {
|
|
@@ -373,7 +373,7 @@ export declare function serializeTextRange(textRange: TextRange): OpenXmlElement
|
|
|
373
373
|
*/
|
|
374
374
|
export declare function serializeParagraphItems(items: ReadonlyArray<ParagraphItem>): OpenXmlElement[];
|
|
375
375
|
/**
|
|
376
|
-
|
|
376
|
+
|
|
377
377
|
* @private
|
|
378
378
|
*/
|
|
379
379
|
export interface BreakLeaf {
|
|
@@ -382,27 +382,27 @@ export interface BreakLeaf {
|
|
|
382
382
|
readonly clear: BreakClearType;
|
|
383
383
|
}
|
|
384
384
|
/**
|
|
385
|
-
|
|
385
|
+
|
|
386
386
|
* @private
|
|
387
387
|
*/
|
|
388
388
|
export declare type BreakItem = Break;
|
|
389
389
|
/**
|
|
390
|
-
|
|
390
|
+
|
|
391
391
|
* @private
|
|
392
392
|
*/
|
|
393
393
|
export declare type TabItem = Tab;
|
|
394
394
|
/**
|
|
395
|
-
|
|
395
|
+
|
|
396
396
|
* @private
|
|
397
397
|
*/
|
|
398
398
|
export declare type CarriageReturnItem = CarriageReturn;
|
|
399
399
|
/**
|
|
400
|
-
|
|
400
|
+
|
|
401
401
|
* @private
|
|
402
402
|
*/
|
|
403
403
|
export declare type SymbolItem = Symbol;
|
|
404
404
|
/**
|
|
405
|
-
|
|
405
|
+
|
|
406
406
|
* @private
|
|
407
407
|
*/
|
|
408
408
|
export declare type Owner = ParagraphItemOwner;
|
|
@@ -414,27 +414,27 @@ export declare type Owner = ParagraphItemOwner;
|
|
|
414
414
|
*/
|
|
415
415
|
export declare type ConcreteParagraphItem = TextRange | Tab | CarriageReturn | Symbol | Break | FeatureRunParagraphItem | FeatureInlineParagraphItem | OpaqueRunItem | OpaqueParagraphItem | Field | FieldMark;
|
|
416
416
|
/**
|
|
417
|
-
|
|
417
|
+
|
|
418
418
|
* @private
|
|
419
419
|
*/
|
|
420
420
|
export declare type RunLeaf = ConcreteParagraphItem;
|
|
421
421
|
/**
|
|
422
|
-
|
|
422
|
+
|
|
423
423
|
* @private
|
|
424
424
|
*/
|
|
425
425
|
export declare type InlineContent = ConcreteParagraphItem;
|
|
426
426
|
/**
|
|
427
|
-
|
|
427
|
+
|
|
428
428
|
* @private
|
|
429
429
|
*/
|
|
430
430
|
export declare const Run: typeof TextRange;
|
|
431
431
|
/**
|
|
432
|
-
|
|
432
|
+
|
|
433
433
|
* @private
|
|
434
434
|
*/
|
|
435
435
|
export declare type RunOwner = ParagraphItemOwner;
|
|
436
436
|
/**
|
|
437
|
-
|
|
437
|
+
|
|
438
438
|
* @private
|
|
439
439
|
*/
|
|
440
440
|
export declare const serializeRun: typeof serializeTextRange;
|
|
@@ -1134,12 +1134,12 @@ export function serializeParagraphItems(items) {
|
|
|
1134
1134
|
return out;
|
|
1135
1135
|
}
|
|
1136
1136
|
/**
|
|
1137
|
-
|
|
1137
|
+
|
|
1138
1138
|
* @private
|
|
1139
1139
|
*/
|
|
1140
1140
|
export var Run = TextRange;
|
|
1141
1141
|
/**
|
|
1142
|
-
|
|
1142
|
+
|
|
1143
1143
|
* @private
|
|
1144
1144
|
*/
|
|
1145
1145
|
export var serializeRun = serializeTextRange;
|
|
@@ -426,7 +426,7 @@ export declare class DrawingShape implements FeatureRunLeaf, FillFormatOwner, Li
|
|
|
426
426
|
*/
|
|
427
427
|
extent(): DrawingExtent | undefined;
|
|
428
428
|
/**
|
|
429
|
-
|
|
429
|
+
|
|
430
430
|
* numbers; kept for back-compat with existing feature-module tests.
|
|
431
431
|
*
|
|
432
432
|
* @private
|
|
@@ -1013,7 +1013,7 @@ var DrawingShape = /** @class */ (function () {
|
|
|
1013
1013
|
return undefined;
|
|
1014
1014
|
};
|
|
1015
1015
|
/**
|
|
1016
|
-
|
|
1016
|
+
|
|
1017
1017
|
* numbers; kept for back-compat with existing feature-module tests.
|
|
1018
1018
|
*
|
|
1019
1019
|
* @private
|
|
@@ -213,7 +213,7 @@ export declare class EditableRange {
|
|
|
213
213
|
* Requires a document walk; pass the owning document via
|
|
214
214
|
* {@link editableRangeMarkersShareParagraph}.
|
|
215
215
|
*
|
|
216
|
-
|
|
216
|
+
|
|
217
217
|
* @private
|
|
218
218
|
*/
|
|
219
219
|
markersShareParagraph(document: WordDocument): boolean;
|
|
@@ -452,7 +452,7 @@ var EditableRange = /** @class */ (function () {
|
|
|
452
452
|
* Requires a document walk; pass the owning document via
|
|
453
453
|
* {@link editableRangeMarkersShareParagraph}.
|
|
454
454
|
*
|
|
455
|
-
|
|
455
|
+
|
|
456
456
|
* @private
|
|
457
457
|
*/
|
|
458
458
|
EditableRange.prototype.markersShareParagraph = function (document) {
|
|
@@ -403,7 +403,7 @@ declare module '../sections/index' {
|
|
|
403
403
|
* @param refType - Header slot (`default` | `first` | `even`). Defaults to `default`.
|
|
404
404
|
* @returns {@link HeaderFooter} view, or `undefined` when no reference or part is missing.
|
|
405
405
|
*
|
|
406
|
-
|
|
406
|
+
|
|
407
407
|
* or {@link PageSetup.evenHeader}.
|
|
408
408
|
* @public
|
|
409
409
|
*/
|
|
@@ -415,7 +415,7 @@ declare module '../sections/index' {
|
|
|
415
415
|
* @param refType - Footer slot (`default` | `first` | `even`). Defaults to `default`.
|
|
416
416
|
* @returns {@link HeaderFooter} view, or `undefined` when no reference or part is missing.
|
|
417
417
|
*
|
|
418
|
-
|
|
418
|
+
|
|
419
419
|
* or {@link PageSetup.evenFooter}.
|
|
420
420
|
* @public
|
|
421
421
|
*/
|
|
@@ -428,7 +428,7 @@ declare module '../sections/index' {
|
|
|
428
428
|
* @param refType - Header slot. Defaults to `default`.
|
|
429
429
|
* @returns Live {@link HeaderFooter} view.
|
|
430
430
|
*
|
|
431
|
-
|
|
431
|
+
/ `firstPageHeader` / `evenHeader`).
|
|
432
432
|
* @public
|
|
433
433
|
*/
|
|
434
434
|
getOrCreateHeader(refType?: HeaderFooterReferenceType): HeaderFooter;
|
|
@@ -440,7 +440,7 @@ declare module '../sections/index' {
|
|
|
440
440
|
* @param refType - Footer slot. Defaults to `default`.
|
|
441
441
|
* @returns Live {@link HeaderFooter} view.
|
|
442
442
|
*
|
|
443
|
-
|
|
443
|
+
/ `firstPageFooter` / `evenFooter`).
|
|
444
444
|
* @public
|
|
445
445
|
*/
|
|
446
446
|
getOrCreateFooter(refType?: HeaderFooterReferenceType): HeaderFooter;
|
|
@@ -453,7 +453,7 @@ declare module '../sections/index' {
|
|
|
453
453
|
* @throws DocxError `content/invalid-header-footer-reference` when the
|
|
454
454
|
* relationship is not loaded in this document.
|
|
455
455
|
*
|
|
456
|
-
|
|
456
|
+
/even).
|
|
457
457
|
* @public
|
|
458
458
|
*/
|
|
459
459
|
linkHeader(header: HeaderFooter, refType?: HeaderFooterReferenceType): void;
|
|
@@ -466,7 +466,7 @@ declare module '../sections/index' {
|
|
|
466
466
|
* @throws DocxError `content/invalid-header-footer-reference` when the
|
|
467
467
|
* relationship is not loaded in this document.
|
|
468
468
|
*
|
|
469
|
-
|
|
469
|
+
/even).
|
|
470
470
|
* @public
|
|
471
471
|
*/
|
|
472
472
|
linkFooter(footer: HeaderFooter, refType?: HeaderFooterReferenceType): void;
|
|
@@ -477,7 +477,7 @@ declare module '../sections/index' {
|
|
|
477
477
|
*
|
|
478
478
|
* @param refType - Header slot. Defaults to `default`.
|
|
479
479
|
*
|
|
480
|
-
|
|
480
|
+
/even).
|
|
481
481
|
* @public
|
|
482
482
|
*/
|
|
483
483
|
removeHeader(refType?: HeaderFooterReferenceType): void;
|
|
@@ -488,7 +488,7 @@ declare module '../sections/index' {
|
|
|
488
488
|
*
|
|
489
489
|
* @param refType - Footer slot. Defaults to `default`.
|
|
490
490
|
*
|
|
491
|
-
|
|
491
|
+
/even).
|
|
492
492
|
* @public
|
|
493
493
|
*/
|
|
494
494
|
removeFooter(refType?: HeaderFooterReferenceType): void;
|
|
@@ -1577,7 +1577,7 @@ defineSectionHeaderFooterProperty('firstPageFooter', 'first');
|
|
|
1577
1577
|
defineSectionHeaderFooterProperty('evenHeader', 'even');
|
|
1578
1578
|
defineSectionHeaderFooterProperty('evenFooter', 'even');
|
|
1579
1579
|
/**
|
|
1580
|
-
|
|
1580
|
+
|
|
1581
1581
|
* or {@link PageSetup.evenHeader}. Returns the live header when already linked; does not create.
|
|
1582
1582
|
*/
|
|
1583
1583
|
PageSetup.prototype.header = function (refType) {
|
|
@@ -1585,7 +1585,7 @@ PageSetup.prototype.header = function (refType) {
|
|
|
1585
1585
|
return headerForSection(document, this, resolveRefType(refType));
|
|
1586
1586
|
};
|
|
1587
1587
|
/**
|
|
1588
|
-
|
|
1588
|
+
|
|
1589
1589
|
* or {@link PageSetup.evenFooter}. Returns the live footer when already linked; does not create.
|
|
1590
1590
|
*/
|
|
1591
1591
|
PageSetup.prototype.footer = function (refType) {
|
|
@@ -1593,42 +1593,42 @@ PageSetup.prototype.footer = function (refType) {
|
|
|
1593
1593
|
return footerForSection(document, this, resolveRefType(refType));
|
|
1594
1594
|
};
|
|
1595
1595
|
/**
|
|
1596
|
-
|
|
1596
|
+
/ `firstPageHeader` / `evenHeader`).
|
|
1597
1597
|
*/
|
|
1598
1598
|
PageSetup.prototype.getOrCreateHeader = function (refType) {
|
|
1599
1599
|
var document = requireAssociatedSectionDocument(this);
|
|
1600
1600
|
return getOrCreateSectionHeader(document, this, resolveRefType(refType));
|
|
1601
1601
|
};
|
|
1602
1602
|
/**
|
|
1603
|
-
|
|
1603
|
+
/ `firstPageFooter` / `evenFooter`).
|
|
1604
1604
|
*/
|
|
1605
1605
|
PageSetup.prototype.getOrCreateFooter = function (refType) {
|
|
1606
1606
|
var document = requireAssociatedSectionDocument(this);
|
|
1607
1607
|
return getOrCreateSectionFooter(document, this, resolveRefType(refType));
|
|
1608
1608
|
};
|
|
1609
1609
|
/**
|
|
1610
|
-
|
|
1610
|
+
/even).
|
|
1611
1611
|
*/
|
|
1612
1612
|
PageSetup.prototype.linkHeader = function (header, refType) {
|
|
1613
1613
|
var document = requireAssociatedSectionDocument(this);
|
|
1614
1614
|
linkSectionHeader(document, this, header.relationshipId, resolveRefType(refType));
|
|
1615
1615
|
};
|
|
1616
1616
|
/**
|
|
1617
|
-
|
|
1617
|
+
/even).
|
|
1618
1618
|
*/
|
|
1619
1619
|
PageSetup.prototype.linkFooter = function (footer, refType) {
|
|
1620
1620
|
var document = requireAssociatedSectionDocument(this);
|
|
1621
1621
|
linkSectionFooter(document, this, footer.relationshipId, resolveRefType(refType));
|
|
1622
1622
|
};
|
|
1623
1623
|
/**
|
|
1624
|
-
|
|
1624
|
+
/even).
|
|
1625
1625
|
*/
|
|
1626
1626
|
PageSetup.prototype.removeHeader = function (refType) {
|
|
1627
1627
|
requireAssociatedSectionDocument(this);
|
|
1628
1628
|
this.setHeaderFooterReference('header', resolveRefType(refType), undefined);
|
|
1629
1629
|
};
|
|
1630
1630
|
/**
|
|
1631
|
-
|
|
1631
|
+
/even).
|
|
1632
1632
|
*/
|
|
1633
1633
|
PageSetup.prototype.removeFooter = function (refType) {
|
|
1634
1634
|
requireAssociatedSectionDocument(this);
|
|
@@ -18,16 +18,16 @@ export declare function providePictureCaptionAuthoring(impl: AddCaptionToPicture
|
|
|
18
18
|
*/
|
|
19
19
|
export declare function requirePictureCaptionAuthoring(): AddCaptionToPicture;
|
|
20
20
|
/**
|
|
21
|
-
|
|
21
|
+
|
|
22
22
|
*/
|
|
23
23
|
export declare type AddCaptionToImage = AddCaptionToPicture;
|
|
24
24
|
/**
|
|
25
25
|
* @private
|
|
26
|
-
|
|
26
|
+
|
|
27
27
|
*/
|
|
28
28
|
export declare function provideImageCaptionAuthoring(impl: AddCaptionToPicture): void;
|
|
29
29
|
/**
|
|
30
30
|
* @private
|
|
31
|
-
|
|
31
|
+
|
|
32
32
|
*/
|
|
33
33
|
export declare function requireImageCaptionAuthoring(): AddCaptionToPicture;
|
|
@@ -19,14 +19,14 @@ export function requirePictureCaptionAuthoring() {
|
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* @private
|
|
22
|
-
|
|
22
|
+
|
|
23
23
|
*/
|
|
24
24
|
export function provideImageCaptionAuthoring(impl) {
|
|
25
25
|
providePictureCaptionAuthoring(impl);
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
28
|
* @private
|
|
29
|
-
|
|
29
|
+
|
|
30
30
|
*/
|
|
31
31
|
export function requireImageCaptionAuthoring() {
|
|
32
32
|
return requirePictureCaptionAuthoring();
|
|
@@ -7,7 +7,7 @@ import { Picture } from './index';
|
|
|
7
7
|
*/
|
|
8
8
|
export declare function addCaptionToPicture(picture: Picture, captionName: string, numberingFormat: CaptionNumberingFormatValue, position: CaptionPositionValue): Paragraph;
|
|
9
9
|
/**
|
|
10
|
-
|
|
10
|
+
|
|
11
11
|
* @private
|
|
12
12
|
*/
|
|
13
13
|
export declare function addCaptionToImage(image: Picture, captionName: string, numberingFormat: CaptionNumberingFormatValue, position: CaptionPositionValue): Paragraph;
|