docx-wasm 0.4.18-rc50 → 0.4.18-rc52
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/dist/node/pkg/docx_wasm.d.ts +1992 -275
- package/dist/node/pkg/docx_wasm.js +1725 -1957
- package/dist/node/pkg/docx_wasm_bg.wasm +0 -0
- package/dist/node/pkg/docx_wasm_bg.wasm.d.ts +436 -434
- package/dist/node/run-property.d.ts +2 -0
- package/dist/node/run-property.js +7 -0
- package/dist/node/run-property.js.map +1 -1
- package/dist/node/run.d.ts +1 -0
- package/dist/node/run.js +6 -0
- package/dist/node/run.js.map +1 -1
- package/dist/node/table.d.ts +1 -1
- package/dist/web/pkg/docx_wasm.d.ts +1980 -263
- package/dist/web/pkg/docx_wasm.js +2 -2
- package/dist/web/pkg/docx_wasm_bg.js +1726 -1957
- package/dist/web/pkg/docx_wasm_bg.wasm +0 -0
- package/dist/web/pkg/docx_wasm_bg.wasm.d.ts +436 -434
- package/dist/web/run-property.d.ts +2 -0
- package/dist/web/run-property.js +7 -0
- package/dist/web/run-property.js.map +1 -1
- package/dist/web/run.d.ts +1 -0
- package/dist/web/run.js +6 -0
- package/dist/web/run.js.map +1 -1
- package/dist/web/table.d.ts +1 -1
- package/js/run-property.ts +10 -0
- package/js/run.ts +6 -0
- package/package.json +1 -1
|
@@ -1,51 +1,250 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
/**
|
|
4
|
+
* @returns {FrameProperty}
|
|
5
|
+
*/
|
|
6
|
+
export function createFrameProperty(): FrameProperty;
|
|
7
|
+
/**
|
|
8
|
+
* @param {Run} run
|
|
9
|
+
* @returns {Insert}
|
|
10
|
+
*/
|
|
6
11
|
export function createInsert(run: Run): Insert;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export function
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
/**
|
|
13
|
+
* @param {number} level
|
|
14
|
+
* @returns {LevelOverride}
|
|
15
|
+
*/
|
|
16
|
+
export function createLevelOverride(level: number): LevelOverride;
|
|
17
|
+
/**
|
|
18
|
+
* @returns {NumPages}
|
|
19
|
+
*/
|
|
14
20
|
export function createNumPages(): NumPages;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
export function
|
|
21
|
+
/**
|
|
22
|
+
* @returns {PageNum}
|
|
23
|
+
*/
|
|
24
|
+
export function createPageNum(): PageNum;
|
|
25
|
+
/**
|
|
26
|
+
* @returns {TableOfContents}
|
|
27
|
+
*/
|
|
28
|
+
export function createTableOfContents(): TableOfContents;
|
|
29
|
+
/**
|
|
30
|
+
* @param {string} s
|
|
31
|
+
* @returns {TableOfContents}
|
|
32
|
+
*/
|
|
33
|
+
export function createTableOfContentsWithInstrText(s: string): TableOfContents;
|
|
34
|
+
/**
|
|
35
|
+
* @returns {TableOfContentsItem}
|
|
36
|
+
*/
|
|
37
|
+
export function createTableOfContentsItem(): TableOfContentsItem;
|
|
38
|
+
/**
|
|
39
|
+
* @param {string} style_id
|
|
40
|
+
* @param {StyleType} style_type
|
|
41
|
+
* @returns {Style}
|
|
42
|
+
*/
|
|
43
|
+
export function createStyle(style_id: string, style_type: StyleType): Style;
|
|
44
|
+
/**
|
|
45
|
+
* @returns {Footer}
|
|
46
|
+
*/
|
|
47
|
+
export function createFooter(): Footer;
|
|
48
|
+
/**
|
|
49
|
+
* @param {string} v
|
|
50
|
+
* @param {HyperlinkType} t
|
|
51
|
+
* @returns {Hyperlink}
|
|
52
|
+
*/
|
|
19
53
|
export function createHyperlink(v: string, t: HyperlinkType): Hyperlink;
|
|
54
|
+
/**
|
|
55
|
+
* @returns {Table}
|
|
56
|
+
*/
|
|
20
57
|
export function createTable(): Table;
|
|
58
|
+
/**
|
|
59
|
+
* @returns {TableCell}
|
|
60
|
+
*/
|
|
21
61
|
export function createTableCell(): TableCell;
|
|
22
|
-
|
|
62
|
+
/**
|
|
63
|
+
* @param {Run} run
|
|
64
|
+
* @returns {Delete}
|
|
65
|
+
*/
|
|
23
66
|
export function createDelete(run: Run): Delete;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
export function createFooter(): Footer;
|
|
67
|
+
/**
|
|
68
|
+
* @param {number} id
|
|
69
|
+
* @param {number} start
|
|
70
|
+
* @param {string} format
|
|
71
|
+
* @param {string} text
|
|
72
|
+
* @param {string} jc
|
|
73
|
+
* @returns {Level}
|
|
74
|
+
*/
|
|
33
75
|
export function createLevel(id: number, start: number, format: string, text: string, jc: string): Level;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
76
|
+
/**
|
|
77
|
+
* @returns {LineSpacing}
|
|
78
|
+
*/
|
|
79
|
+
export function createLineSpacing(): LineSpacing;
|
|
80
|
+
/**
|
|
81
|
+
* @returns {TableRow}
|
|
82
|
+
*/
|
|
83
|
+
export function createTableRow(): TableRow;
|
|
84
|
+
/**
|
|
85
|
+
* @param {string} id
|
|
86
|
+
* @param {string} reference_id
|
|
87
|
+
* @param {string} version
|
|
88
|
+
* @param {string} store
|
|
89
|
+
* @param {string} store_type
|
|
90
|
+
* @returns {WebExtension}
|
|
91
|
+
*/
|
|
37
92
|
export function createWebExtension(id: string, reference_id: string, version: string, store: string, store_type: string): WebExtension;
|
|
93
|
+
/**
|
|
94
|
+
* @param {number} id
|
|
95
|
+
* @returns {AbstractNumbering}
|
|
96
|
+
*/
|
|
97
|
+
export function createAbstractNumbering(id: number): AbstractNumbering;
|
|
98
|
+
/**
|
|
99
|
+
* @returns {Header}
|
|
100
|
+
*/
|
|
101
|
+
export function createHeader(): Header;
|
|
102
|
+
/**
|
|
103
|
+
* @param {Uint8Array} buf
|
|
104
|
+
* @returns {Pic}
|
|
105
|
+
*/
|
|
106
|
+
export function createPic(buf: Uint8Array): Pic;
|
|
107
|
+
/**
|
|
108
|
+
* @param {PositionalTabAlignmentType} alignment
|
|
109
|
+
* @param {PositionalTabRelativeTo} relative_to
|
|
110
|
+
* @param {TabLeaderType} leader
|
|
111
|
+
* @returns {PositionalTab}
|
|
112
|
+
*/
|
|
113
|
+
export function createPositionalTab(alignment: PositionalTabAlignmentType, relative_to: PositionalTabRelativeTo, leader: TabLeaderType): PositionalTab;
|
|
114
|
+
/**
|
|
115
|
+
* @returns {RunProperty}
|
|
116
|
+
*/
|
|
117
|
+
export function createRunProperty(): RunProperty;
|
|
118
|
+
/**
|
|
119
|
+
* @returns {TablePositionProperty}
|
|
120
|
+
*/
|
|
121
|
+
export function createTablePosition(): TablePositionProperty;
|
|
122
|
+
/**
|
|
123
|
+
* @returns {Paragraph}
|
|
124
|
+
*/
|
|
125
|
+
export function createParagraph(): Paragraph;
|
|
126
|
+
/**
|
|
127
|
+
* @param {number} id
|
|
128
|
+
* @param {number} abstract_num_id
|
|
129
|
+
* @returns {Numbering}
|
|
130
|
+
*/
|
|
38
131
|
export function createNumbering(id: number, abstract_num_id: number): Numbering;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
132
|
+
/**
|
|
133
|
+
* @returns {PageMargin}
|
|
134
|
+
*/
|
|
135
|
+
export function createPageMargin(): PageMargin;
|
|
136
|
+
/**
|
|
137
|
+
* @param {number | undefined} [start]
|
|
138
|
+
* @param {string | undefined} [chap_style]
|
|
139
|
+
* @returns {PageNumType}
|
|
140
|
+
*/
|
|
141
|
+
export function createPageNumType(start?: number, chap_style?: string): PageNumType;
|
|
142
|
+
/**
|
|
143
|
+
* @returns {Run}
|
|
144
|
+
*/
|
|
145
|
+
export function createRun(): Run;
|
|
146
|
+
/**
|
|
147
|
+
* @param {TableCellBorderPosition} position
|
|
148
|
+
* @returns {TableCellBorder}
|
|
149
|
+
*/
|
|
150
|
+
export function createTableCellBorder(position: TableCellBorderPosition): TableCellBorder;
|
|
151
|
+
/**
|
|
152
|
+
* @returns {Docx}
|
|
153
|
+
*/
|
|
154
|
+
export function createDocx(): Docx;
|
|
155
|
+
/**
|
|
156
|
+
* @returns {RunFonts}
|
|
157
|
+
*/
|
|
158
|
+
export function createRunFonts(): RunFonts;
|
|
159
|
+
/**
|
|
160
|
+
* @returns {ParagraphPropertyChange}
|
|
161
|
+
*/
|
|
162
|
+
export function createParagraphPropertyChange(): ParagraphPropertyChange;
|
|
163
|
+
/**
|
|
164
|
+
* @returns {ParagraphProperty}
|
|
165
|
+
*/
|
|
166
|
+
export function createParagraphProperty(): ParagraphProperty;
|
|
167
|
+
/**
|
|
168
|
+
* @param {Uint8Array} buf
|
|
169
|
+
* @returns {string}
|
|
170
|
+
*/
|
|
171
|
+
export function readDocx(buf: Uint8Array): string;
|
|
172
|
+
/**
|
|
173
|
+
* @param {number} id
|
|
174
|
+
* @returns {Comment}
|
|
175
|
+
*/
|
|
176
|
+
export function createComment(id: number): Comment;
|
|
177
|
+
/**
|
|
178
|
+
*/
|
|
179
|
+
export enum DocGridType {
|
|
180
|
+
Default = 0,
|
|
181
|
+
Lines = 1,
|
|
182
|
+
LinesAndChars = 2,
|
|
183
|
+
SnapToChars = 3,
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
*/
|
|
187
|
+
export enum HyperlinkType {
|
|
188
|
+
Anchor = 0,
|
|
189
|
+
External = 1,
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
*/
|
|
193
|
+
export enum DrawingPositionType {
|
|
194
|
+
Anchor = 0,
|
|
195
|
+
Inline = 1,
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
*/
|
|
199
|
+
export enum VMergeType {
|
|
200
|
+
Continue = 0,
|
|
201
|
+
Restart = 1,
|
|
202
|
+
Unsupported = 2,
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
*/
|
|
206
|
+
export enum TableLayoutType {
|
|
207
|
+
Fixed = 0,
|
|
208
|
+
Autofit = 1,
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
*/
|
|
212
|
+
export enum LineSpacingType {
|
|
213
|
+
Auto = 0,
|
|
214
|
+
AtLeast = 1,
|
|
215
|
+
Exact = 2,
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
*/
|
|
219
|
+
export enum TextAlignmentType {
|
|
220
|
+
Auto = 0,
|
|
221
|
+
Baseline = 1,
|
|
222
|
+
Bottom = 2,
|
|
223
|
+
Center = 3,
|
|
224
|
+
Top = 4,
|
|
48
225
|
}
|
|
226
|
+
/**
|
|
227
|
+
*/
|
|
228
|
+
export enum TableCellBorderPosition {
|
|
229
|
+
Left = 0,
|
|
230
|
+
Right = 1,
|
|
231
|
+
Top = 2,
|
|
232
|
+
Bottom = 3,
|
|
233
|
+
InsideH = 4,
|
|
234
|
+
InsideV = 5,
|
|
235
|
+
Tl2br = 6,
|
|
236
|
+
Tr2bl = 7,
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
*/
|
|
240
|
+
export enum CharacterSpacingValues {
|
|
241
|
+
DoNotCompress = 0,
|
|
242
|
+
CompressPunctuation = 1,
|
|
243
|
+
CompressPunctuationAndJapaneseKana = 2,
|
|
244
|
+
Unsupported = 3,
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
*/
|
|
49
248
|
export enum BorderType {
|
|
50
249
|
Nil = 0,
|
|
51
250
|
None = 1,
|
|
@@ -79,132 +278,86 @@ export enum BorderType {
|
|
|
79
278
|
BabyPacifier = 29,
|
|
80
279
|
BabyRattle = 30,
|
|
81
280
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
281
|
+
/**
|
|
282
|
+
*/
|
|
283
|
+
export enum PicAlign {
|
|
284
|
+
Left = 0,
|
|
285
|
+
Right = 1,
|
|
286
|
+
Center = 2,
|
|
287
|
+
Bottom = 3,
|
|
288
|
+
Top = 4,
|
|
87
289
|
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
290
|
+
/**
|
|
291
|
+
*/
|
|
292
|
+
export enum TabValueType {
|
|
293
|
+
Bar = 0,
|
|
294
|
+
Center = 1,
|
|
295
|
+
Clear = 2,
|
|
296
|
+
Decimal = 3,
|
|
297
|
+
End = 4,
|
|
298
|
+
Right = 5,
|
|
299
|
+
Num = 6,
|
|
300
|
+
Start = 7,
|
|
301
|
+
Left = 8,
|
|
93
302
|
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
303
|
+
/**
|
|
304
|
+
*/
|
|
305
|
+
export enum WidthType {
|
|
306
|
+
Dxa = 0,
|
|
307
|
+
Auto = 1,
|
|
308
|
+
Pct = 2,
|
|
309
|
+
Nil = 3,
|
|
310
|
+
Unsupported = 4,
|
|
99
311
|
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
312
|
+
/**
|
|
313
|
+
*/
|
|
314
|
+
export enum SpecialIndentKind {
|
|
315
|
+
FirstLine = 0,
|
|
316
|
+
Hanging = 1,
|
|
103
317
|
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
318
|
+
/**
|
|
319
|
+
*/
|
|
320
|
+
export enum StyleType {
|
|
321
|
+
Paragraph = 0,
|
|
322
|
+
Character = 1,
|
|
323
|
+
Numbering = 2,
|
|
324
|
+
Table = 3,
|
|
325
|
+
Unsupported = 4,
|
|
326
|
+
}
|
|
327
|
+
/**
|
|
328
|
+
*/
|
|
329
|
+
export enum BreakType {
|
|
330
|
+
Page = 0,
|
|
331
|
+
Column = 1,
|
|
332
|
+
TextWrapping = 2,
|
|
108
333
|
Unsupported = 3,
|
|
109
334
|
}
|
|
335
|
+
/**
|
|
336
|
+
*/
|
|
110
337
|
export enum FontPitchType {
|
|
111
338
|
Default = 0,
|
|
112
339
|
Fixed = 1,
|
|
113
340
|
Variable = 2,
|
|
114
341
|
}
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
AtLeast = 1,
|
|
118
|
-
Exact = 2,
|
|
119
|
-
}
|
|
120
|
-
export enum HyperlinkType {
|
|
121
|
-
Anchor = 0,
|
|
122
|
-
External = 1,
|
|
123
|
-
}
|
|
124
|
-
export enum LevelSuffixType {
|
|
125
|
-
Nothing = 0,
|
|
126
|
-
Space = 1,
|
|
127
|
-
Tab = 2,
|
|
128
|
-
}
|
|
129
|
-
export enum LineSpacingType {
|
|
130
|
-
Auto = 0,
|
|
131
|
-
AtLeast = 1,
|
|
132
|
-
Exact = 2,
|
|
133
|
-
}
|
|
134
|
-
export enum PageOrientationType {
|
|
135
|
-
Landscape = 0,
|
|
136
|
-
Portrait = 1,
|
|
137
|
-
}
|
|
138
|
-
export enum ParagraphBorderPosition {
|
|
139
|
-
Left = 0,
|
|
140
|
-
Right = 1,
|
|
141
|
-
Top = 2,
|
|
142
|
-
Bottom = 3,
|
|
143
|
-
Between = 4,
|
|
144
|
-
Bar = 5,
|
|
145
|
-
}
|
|
146
|
-
export enum PicAlign {
|
|
147
|
-
Left = 0,
|
|
148
|
-
Right = 1,
|
|
149
|
-
Center = 2,
|
|
150
|
-
Bottom = 3,
|
|
151
|
-
Top = 4,
|
|
152
|
-
}
|
|
342
|
+
/**
|
|
343
|
+
*/
|
|
153
344
|
export enum PositionalTabAlignmentType {
|
|
154
345
|
Center = 0,
|
|
155
346
|
Left = 1,
|
|
156
347
|
Right = 2,
|
|
157
348
|
}
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
*/
|
|
168
|
-
Character = 0,
|
|
169
|
-
/**
|
|
170
|
-
* Specifies that the horizontal positioning shall be
|
|
171
|
-
* relative to the extents of the column which contains its
|
|
172
|
-
* anchor.
|
|
173
|
-
*/
|
|
174
|
-
Column = 1,
|
|
175
|
-
/**
|
|
176
|
-
* Specifies that the horizontal positioning shall be
|
|
177
|
-
* relative to the inside margin of the current page (the
|
|
178
|
-
* left margin on odd pages, right on even pages).
|
|
179
|
-
*/
|
|
180
|
-
InsideMargin = 2,
|
|
181
|
-
/**
|
|
182
|
-
* Specifies that the horizontal positioning shall be
|
|
183
|
-
* relative to the left margin of the page.
|
|
184
|
-
*/
|
|
185
|
-
LeftMargin = 3,
|
|
186
|
-
/**
|
|
187
|
-
* Specifies that the horizontal positioning shall be
|
|
188
|
-
* relative to the page margins.
|
|
189
|
-
*/
|
|
190
|
-
Margin = 4,
|
|
191
|
-
/**
|
|
192
|
-
* Specifies that the horizontal positioning shall be
|
|
193
|
-
* relative to the outside margin of the current page (the
|
|
194
|
-
* right margin on odd pages, left on even pages).
|
|
195
|
-
*/
|
|
196
|
-
OutsizeMargin = 5,
|
|
197
|
-
/**
|
|
198
|
-
* Specifies that the horizontal positioning shall be
|
|
199
|
-
* relative to the edge of the page.
|
|
200
|
-
*/
|
|
201
|
-
Page = 6,
|
|
202
|
-
/**
|
|
203
|
-
* Specifies that the horizontal positioning shall be
|
|
204
|
-
* relative to the right margin of the page.
|
|
205
|
-
*/
|
|
206
|
-
RightMargin = 7,
|
|
349
|
+
/**
|
|
350
|
+
*/
|
|
351
|
+
export enum TabLeaderType {
|
|
352
|
+
Dot = 0,
|
|
353
|
+
Heavy = 1,
|
|
354
|
+
Hyphen = 2,
|
|
355
|
+
MiddleDot = 3,
|
|
356
|
+
None = 4,
|
|
357
|
+
Underscore = 5,
|
|
207
358
|
}
|
|
359
|
+
/**
|
|
360
|
+
*/
|
|
208
361
|
export enum RelativeFromVType {
|
|
209
362
|
BottomMargin = 0,
|
|
210
363
|
InsideMargin = 1,
|
|
@@ -215,13 +368,8 @@ export enum RelativeFromVType {
|
|
|
215
368
|
Paragraph = 6,
|
|
216
369
|
TopMargin = 7,
|
|
217
370
|
}
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
NextColumn = 1,
|
|
221
|
-
Continuous = 2,
|
|
222
|
-
EvenPage = 3,
|
|
223
|
-
OddPage = 4,
|
|
224
|
-
}
|
|
371
|
+
/**
|
|
372
|
+
*/
|
|
225
373
|
export enum ShdType {
|
|
226
374
|
Nil = 0,
|
|
227
375
|
Clear = 1,
|
|
@@ -262,70 +410,16 @@ export enum ShdType {
|
|
|
262
410
|
Pct90 = 36,
|
|
263
411
|
Pct95 = 37,
|
|
264
412
|
}
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
export enum StyleType {
|
|
270
|
-
Paragraph = 0,
|
|
271
|
-
Character = 1,
|
|
272
|
-
Numbering = 2,
|
|
273
|
-
Table = 3,
|
|
274
|
-
Unsupported = 4,
|
|
275
|
-
}
|
|
276
|
-
export enum TabLeaderType {
|
|
277
|
-
Dot = 0,
|
|
278
|
-
Heavy = 1,
|
|
279
|
-
Hyphen = 2,
|
|
280
|
-
MiddleDot = 3,
|
|
281
|
-
None = 4,
|
|
282
|
-
Underscore = 5,
|
|
283
|
-
}
|
|
284
|
-
export enum TabValueType {
|
|
285
|
-
Bar = 0,
|
|
413
|
+
/**
|
|
414
|
+
*/
|
|
415
|
+
export enum VAlignType {
|
|
416
|
+
Top = 0,
|
|
286
417
|
Center = 1,
|
|
287
|
-
Clear = 2,
|
|
288
|
-
Decimal = 3,
|
|
289
|
-
End = 4,
|
|
290
|
-
Right = 5,
|
|
291
|
-
Num = 6,
|
|
292
|
-
Start = 7,
|
|
293
|
-
Left = 8,
|
|
294
|
-
}
|
|
295
|
-
export enum TableAlignmentType {
|
|
296
|
-
Center = 0,
|
|
297
|
-
Left = 1,
|
|
298
|
-
Right = 2,
|
|
299
|
-
}
|
|
300
|
-
export enum TableBorderPosition {
|
|
301
|
-
Left = 0,
|
|
302
|
-
Right = 1,
|
|
303
|
-
Top = 2,
|
|
304
|
-
Bottom = 3,
|
|
305
|
-
InsideH = 4,
|
|
306
|
-
InsideV = 5,
|
|
307
|
-
}
|
|
308
|
-
export enum TableCellBorderPosition {
|
|
309
|
-
Left = 0,
|
|
310
|
-
Right = 1,
|
|
311
|
-
Top = 2,
|
|
312
|
-
Bottom = 3,
|
|
313
|
-
InsideH = 4,
|
|
314
|
-
InsideV = 5,
|
|
315
|
-
Tl2br = 6,
|
|
316
|
-
Tr2bl = 7,
|
|
317
|
-
}
|
|
318
|
-
export enum TableLayoutType {
|
|
319
|
-
Fixed = 0,
|
|
320
|
-
Autofit = 1,
|
|
321
|
-
}
|
|
322
|
-
export enum TextAlignmentType {
|
|
323
|
-
Auto = 0,
|
|
324
|
-
Baseline = 1,
|
|
325
418
|
Bottom = 2,
|
|
326
|
-
|
|
327
|
-
Top = 4,
|
|
419
|
+
Unsupported = 3,
|
|
328
420
|
}
|
|
421
|
+
/**
|
|
422
|
+
*/
|
|
329
423
|
export enum TextDirectionType {
|
|
330
424
|
Lr = 0,
|
|
331
425
|
LrV = 1,
|
|
@@ -338,529 +432,2152 @@ export enum TextDirectionType {
|
|
|
338
432
|
BtLr = 8,
|
|
339
433
|
LrTbV = 9,
|
|
340
434
|
}
|
|
341
|
-
|
|
342
|
-
|
|
435
|
+
/**
|
|
436
|
+
*/
|
|
437
|
+
export enum HeightRule {
|
|
438
|
+
Auto = 0,
|
|
439
|
+
AtLeast = 1,
|
|
440
|
+
Exact = 2,
|
|
441
|
+
}
|
|
442
|
+
/**
|
|
443
|
+
*/
|
|
444
|
+
export enum ParagraphBorderPosition {
|
|
445
|
+
Left = 0,
|
|
446
|
+
Right = 1,
|
|
447
|
+
Top = 2,
|
|
448
|
+
Bottom = 3,
|
|
449
|
+
Between = 4,
|
|
450
|
+
Bar = 5,
|
|
451
|
+
}
|
|
452
|
+
/**
|
|
453
|
+
*/
|
|
454
|
+
export enum RelativeFromHType {
|
|
455
|
+
/**
|
|
456
|
+
* Specifies that the horizontal positioning shall be
|
|
457
|
+
* relative to the position of the anchor within its run
|
|
458
|
+
* content.
|
|
459
|
+
*/
|
|
460
|
+
Character = 0,
|
|
461
|
+
/**
|
|
462
|
+
* Specifies that the horizontal positioning shall be
|
|
463
|
+
* relative to the extents of the column which contains its
|
|
464
|
+
* anchor.
|
|
465
|
+
*/
|
|
466
|
+
Column = 1,
|
|
467
|
+
/**
|
|
468
|
+
* Specifies that the horizontal positioning shall be
|
|
469
|
+
* relative to the inside margin of the current page (the
|
|
470
|
+
* left margin on odd pages, right on even pages).
|
|
471
|
+
*/
|
|
472
|
+
InsideMargin = 2,
|
|
473
|
+
/**
|
|
474
|
+
* Specifies that the horizontal positioning shall be
|
|
475
|
+
* relative to the left margin of the page.
|
|
476
|
+
*/
|
|
477
|
+
LeftMargin = 3,
|
|
478
|
+
/**
|
|
479
|
+
* Specifies that the horizontal positioning shall be
|
|
480
|
+
* relative to the page margins.
|
|
481
|
+
*/
|
|
482
|
+
Margin = 4,
|
|
483
|
+
/**
|
|
484
|
+
* Specifies that the horizontal positioning shall be
|
|
485
|
+
* relative to the outside margin of the current page (the
|
|
486
|
+
* right margin on odd pages, left on even pages).
|
|
487
|
+
*/
|
|
488
|
+
OutsizeMargin = 5,
|
|
489
|
+
/**
|
|
490
|
+
* Specifies that the horizontal positioning shall be
|
|
491
|
+
* relative to the edge of the page.
|
|
492
|
+
*/
|
|
493
|
+
Page = 6,
|
|
494
|
+
/**
|
|
495
|
+
* Specifies that the horizontal positioning shall be
|
|
496
|
+
* relative to the right margin of the page.
|
|
497
|
+
*/
|
|
498
|
+
RightMargin = 7,
|
|
499
|
+
}
|
|
500
|
+
/**
|
|
501
|
+
*/
|
|
502
|
+
export enum TableAlignmentType {
|
|
503
|
+
Center = 0,
|
|
504
|
+
Left = 1,
|
|
505
|
+
Right = 2,
|
|
506
|
+
}
|
|
507
|
+
/**
|
|
508
|
+
*/
|
|
509
|
+
export enum SectionType {
|
|
510
|
+
NextPage = 0,
|
|
511
|
+
NextColumn = 1,
|
|
512
|
+
Continuous = 2,
|
|
513
|
+
EvenPage = 3,
|
|
514
|
+
OddPage = 4,
|
|
515
|
+
}
|
|
516
|
+
/**
|
|
517
|
+
*/
|
|
518
|
+
export enum PositionalTabRelativeTo {
|
|
519
|
+
Indent = 0,
|
|
520
|
+
Margin = 1,
|
|
521
|
+
}
|
|
522
|
+
/**
|
|
523
|
+
*/
|
|
524
|
+
export enum PageOrientationType {
|
|
525
|
+
Landscape = 0,
|
|
526
|
+
Portrait = 1,
|
|
527
|
+
}
|
|
528
|
+
/**
|
|
529
|
+
*/
|
|
530
|
+
export enum AlignmentType {
|
|
531
|
+
Both = 0,
|
|
343
532
|
Center = 1,
|
|
344
|
-
|
|
345
|
-
|
|
533
|
+
Distribute = 2,
|
|
534
|
+
Start = 3,
|
|
535
|
+
End = 4,
|
|
536
|
+
Left = 5,
|
|
537
|
+
Right = 6,
|
|
538
|
+
Justified = 7,
|
|
346
539
|
}
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
540
|
+
/**
|
|
541
|
+
*/
|
|
542
|
+
export enum TableBorderPosition {
|
|
543
|
+
Left = 0,
|
|
544
|
+
Right = 1,
|
|
545
|
+
Top = 2,
|
|
546
|
+
Bottom = 3,
|
|
547
|
+
InsideH = 4,
|
|
548
|
+
InsideV = 5,
|
|
351
549
|
}
|
|
550
|
+
/**
|
|
551
|
+
*/
|
|
552
|
+
export enum LevelSuffixType {
|
|
553
|
+
Nothing = 0,
|
|
554
|
+
Space = 1,
|
|
555
|
+
Tab = 2,
|
|
556
|
+
}
|
|
557
|
+
/**
|
|
558
|
+
*/
|
|
352
559
|
export enum VertAlignType {
|
|
353
560
|
Baseline = 0,
|
|
354
561
|
SuperScript = 1,
|
|
355
562
|
SubScript = 2,
|
|
356
563
|
Unsupported = 3,
|
|
357
564
|
}
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
565
|
+
/**
|
|
566
|
+
*/
|
|
567
|
+
export enum FieldCharType {
|
|
568
|
+
Begin = 0,
|
|
569
|
+
Separate = 1,
|
|
570
|
+
End = 2,
|
|
571
|
+
Unsupported = 3,
|
|
364
572
|
}
|
|
573
|
+
/**
|
|
574
|
+
*/
|
|
365
575
|
export class AbstractNumbering {
|
|
366
|
-
private constructor();
|
|
367
576
|
free(): void;
|
|
577
|
+
/**
|
|
578
|
+
* @param {Level} level
|
|
579
|
+
* @returns {AbstractNumbering}
|
|
580
|
+
*/
|
|
368
581
|
add_level(level: Level): AbstractNumbering;
|
|
369
582
|
}
|
|
583
|
+
/**
|
|
584
|
+
*/
|
|
370
585
|
export class Comment {
|
|
371
|
-
private constructor();
|
|
372
586
|
free(): void;
|
|
587
|
+
/**
|
|
588
|
+
* @param {string} author
|
|
589
|
+
* @returns {Comment}
|
|
590
|
+
*/
|
|
373
591
|
author(author: string): Comment;
|
|
592
|
+
/**
|
|
593
|
+
* @param {string} date
|
|
594
|
+
* @returns {Comment}
|
|
595
|
+
*/
|
|
374
596
|
date(date: string): Comment;
|
|
597
|
+
/**
|
|
598
|
+
* @param {Paragraph} p
|
|
599
|
+
* @returns {Comment}
|
|
600
|
+
*/
|
|
375
601
|
add_paragraph(p: Paragraph): Comment;
|
|
602
|
+
/**
|
|
603
|
+
* @param {number} id
|
|
604
|
+
* @returns {Comment}
|
|
605
|
+
*/
|
|
376
606
|
parent_comment_id(id: number): Comment;
|
|
607
|
+
/**
|
|
608
|
+
* @returns {number}
|
|
609
|
+
*/
|
|
377
610
|
id(): number;
|
|
378
611
|
}
|
|
612
|
+
/**
|
|
613
|
+
*/
|
|
379
614
|
export class Delete {
|
|
380
|
-
private constructor();
|
|
381
615
|
free(): void;
|
|
616
|
+
/**
|
|
617
|
+
* @param {string} author
|
|
618
|
+
* @returns {Delete}
|
|
619
|
+
*/
|
|
382
620
|
author(author: string): Delete;
|
|
621
|
+
/**
|
|
622
|
+
* @param {string} date
|
|
623
|
+
* @returns {Delete}
|
|
624
|
+
*/
|
|
383
625
|
date(date: string): Delete;
|
|
384
626
|
}
|
|
627
|
+
/**
|
|
628
|
+
*/
|
|
385
629
|
export class Docx {
|
|
386
|
-
private constructor();
|
|
387
630
|
free(): void;
|
|
631
|
+
/**
|
|
632
|
+
* @param {Paragraph} p
|
|
633
|
+
* @returns {Docx}
|
|
634
|
+
*/
|
|
388
635
|
add_paragraph(p: Paragraph): Docx;
|
|
636
|
+
/**
|
|
637
|
+
* @param {TableOfContents} t
|
|
638
|
+
* @returns {Docx}
|
|
639
|
+
*/
|
|
389
640
|
add_table_of_contents(t: TableOfContents): Docx;
|
|
641
|
+
/**
|
|
642
|
+
* @param {number} id
|
|
643
|
+
* @param {string} name
|
|
644
|
+
* @returns {Docx}
|
|
645
|
+
*/
|
|
390
646
|
add_bookmark_start(id: number, name: string): Docx;
|
|
647
|
+
/**
|
|
648
|
+
* @param {number} id
|
|
649
|
+
* @returns {Docx}
|
|
650
|
+
*/
|
|
391
651
|
add_bookmark_end(id: number): Docx;
|
|
652
|
+
/**
|
|
653
|
+
* @param {Table} t
|
|
654
|
+
* @returns {Docx}
|
|
655
|
+
*/
|
|
392
656
|
add_table(t: Table): Docx;
|
|
657
|
+
/**
|
|
658
|
+
* @param {AbstractNumbering} num
|
|
659
|
+
* @returns {Docx}
|
|
660
|
+
*/
|
|
393
661
|
add_abstract_numbering(num: AbstractNumbering): Docx;
|
|
662
|
+
/**
|
|
663
|
+
* @param {Numbering} num
|
|
664
|
+
* @returns {Docx}
|
|
665
|
+
*/
|
|
394
666
|
add_numbering(num: Numbering): Docx;
|
|
667
|
+
/**
|
|
668
|
+
* @param {string} date
|
|
669
|
+
* @returns {Docx}
|
|
670
|
+
*/
|
|
395
671
|
created_at(date: string): Docx;
|
|
672
|
+
/**
|
|
673
|
+
* @param {string} date
|
|
674
|
+
* @returns {Docx}
|
|
675
|
+
*/
|
|
396
676
|
updated_at(date: string): Docx;
|
|
677
|
+
/**
|
|
678
|
+
* @param {string} name
|
|
679
|
+
* @param {string} item
|
|
680
|
+
* @returns {Docx}
|
|
681
|
+
*/
|
|
397
682
|
custom_property(name: string, item: string): Docx;
|
|
683
|
+
/**
|
|
684
|
+
* @param {string} id
|
|
685
|
+
* @returns {Docx}
|
|
686
|
+
*/
|
|
398
687
|
doc_id(id: string): Docx;
|
|
688
|
+
/**
|
|
689
|
+
* @param {string} name
|
|
690
|
+
* @param {string} val
|
|
691
|
+
* @returns {Docx}
|
|
692
|
+
*/
|
|
399
693
|
add_doc_var(name: string, val: string): Docx;
|
|
694
|
+
/**
|
|
695
|
+
* @param {number} stop
|
|
696
|
+
* @returns {Docx}
|
|
697
|
+
*/
|
|
400
698
|
default_tab_stop(stop: number): Docx;
|
|
699
|
+
/**
|
|
700
|
+
* @returns {Docx}
|
|
701
|
+
*/
|
|
401
702
|
set_adjust_line_height_in_table(): Docx;
|
|
703
|
+
/**
|
|
704
|
+
* @param {CharacterSpacingValues} v
|
|
705
|
+
* @returns {Docx}
|
|
706
|
+
*/
|
|
402
707
|
character_spacing_control(v: CharacterSpacingValues): Docx;
|
|
708
|
+
/**
|
|
709
|
+
* @param {Header} header
|
|
710
|
+
* @returns {Docx}
|
|
711
|
+
*/
|
|
403
712
|
header(header: Header): Docx;
|
|
713
|
+
/**
|
|
714
|
+
* @param {Header} header
|
|
715
|
+
* @returns {Docx}
|
|
716
|
+
*/
|
|
404
717
|
first_header(header: Header): Docx;
|
|
718
|
+
/**
|
|
719
|
+
* @param {Header} header
|
|
720
|
+
* @returns {Docx}
|
|
721
|
+
*/
|
|
405
722
|
even_header(header: Header): Docx;
|
|
723
|
+
/**
|
|
724
|
+
* @param {Footer} footer
|
|
725
|
+
* @returns {Docx}
|
|
726
|
+
*/
|
|
406
727
|
footer(footer: Footer): Docx;
|
|
728
|
+
/**
|
|
729
|
+
* @param {Footer} footer
|
|
730
|
+
* @returns {Docx}
|
|
731
|
+
*/
|
|
407
732
|
first_footer(footer: Footer): Docx;
|
|
733
|
+
/**
|
|
734
|
+
* @param {Footer} footer
|
|
735
|
+
* @returns {Docx}
|
|
736
|
+
*/
|
|
408
737
|
even_footer(footer: Footer): Docx;
|
|
738
|
+
/**
|
|
739
|
+
* @returns {Docx}
|
|
740
|
+
*/
|
|
409
741
|
title_pg(): Docx;
|
|
742
|
+
/**
|
|
743
|
+
* @param {number} w
|
|
744
|
+
* @param {number} h
|
|
745
|
+
* @returns {Docx}
|
|
746
|
+
*/
|
|
410
747
|
page_size(w: number, h: number): Docx;
|
|
748
|
+
/**
|
|
749
|
+
* @param {PageOrientationType} o
|
|
750
|
+
* @returns {Docx}
|
|
751
|
+
*/
|
|
411
752
|
page_orient(o: PageOrientationType): Docx;
|
|
753
|
+
/**
|
|
754
|
+
* @param {PageMargin} margin
|
|
755
|
+
* @returns {Docx}
|
|
756
|
+
*/
|
|
412
757
|
page_margin(margin: PageMargin): Docx;
|
|
758
|
+
/**
|
|
759
|
+
* @param {Style} s
|
|
760
|
+
* @returns {Docx}
|
|
761
|
+
*/
|
|
413
762
|
add_style(s: Style): Docx;
|
|
763
|
+
/**
|
|
764
|
+
* @param {number} size
|
|
765
|
+
* @returns {Docx}
|
|
766
|
+
*/
|
|
414
767
|
default_size(size: number): Docx;
|
|
768
|
+
/**
|
|
769
|
+
* @param {number} spacing
|
|
770
|
+
* @returns {Docx}
|
|
771
|
+
*/
|
|
415
772
|
default_spacing(spacing: number): Docx;
|
|
773
|
+
/**
|
|
774
|
+
* @param {RunFonts} font
|
|
775
|
+
* @returns {Docx}
|
|
776
|
+
*/
|
|
416
777
|
default_fonts(font: RunFonts): Docx;
|
|
778
|
+
/**
|
|
779
|
+
* @param {LineSpacing} spacing
|
|
780
|
+
* @returns {Docx}
|
|
781
|
+
*/
|
|
417
782
|
default_line_spacing(spacing: LineSpacing): Docx;
|
|
783
|
+
/**
|
|
784
|
+
* @returns {Docx}
|
|
785
|
+
*/
|
|
418
786
|
taskpanes(): Docx;
|
|
787
|
+
/**
|
|
788
|
+
* @param {WebExtension} ext
|
|
789
|
+
* @returns {Docx}
|
|
790
|
+
*/
|
|
419
791
|
web_extension(ext: WebExtension): Docx;
|
|
792
|
+
/**
|
|
793
|
+
* @param {string} id
|
|
794
|
+
* @param {string} xml
|
|
795
|
+
* @returns {Docx}
|
|
796
|
+
*/
|
|
420
797
|
add_custom_item(id: string, xml: string): Docx;
|
|
798
|
+
/**
|
|
799
|
+
* @param {PageNumType} p
|
|
800
|
+
* @returns {Docx}
|
|
801
|
+
*/
|
|
421
802
|
page_num_type(p: PageNumType): Docx;
|
|
422
|
-
|
|
803
|
+
/**
|
|
804
|
+
* @param {DocGridType} grid_type
|
|
805
|
+
* @param {number | undefined} [line_pitch]
|
|
806
|
+
* @param {number | undefined} [char_space]
|
|
807
|
+
* @returns {Docx}
|
|
808
|
+
*/
|
|
809
|
+
doc_grid(grid_type: DocGridType, line_pitch?: number, char_space?: number): Docx;
|
|
810
|
+
/**
|
|
811
|
+
* @param {boolean} has_numberings
|
|
812
|
+
* @returns {Uint8Array}
|
|
813
|
+
*/
|
|
423
814
|
build(has_numberings: boolean): Uint8Array;
|
|
815
|
+
/**
|
|
816
|
+
* @returns {string}
|
|
817
|
+
*/
|
|
424
818
|
json_with_update_comments(): string;
|
|
819
|
+
/**
|
|
820
|
+
* @returns {string}
|
|
821
|
+
*/
|
|
425
822
|
comments_json(): string;
|
|
426
823
|
}
|
|
824
|
+
/**
|
|
825
|
+
*/
|
|
427
826
|
export class Footer {
|
|
428
|
-
private constructor();
|
|
429
827
|
free(): void;
|
|
828
|
+
/**
|
|
829
|
+
* @param {Paragraph} p
|
|
830
|
+
* @returns {Footer}
|
|
831
|
+
*/
|
|
430
832
|
add_paragraph(p: Paragraph): Footer;
|
|
833
|
+
/**
|
|
834
|
+
* @param {Table} t
|
|
835
|
+
* @returns {Footer}
|
|
836
|
+
*/
|
|
431
837
|
add_table(t: Table): Footer;
|
|
432
838
|
}
|
|
839
|
+
/**
|
|
840
|
+
*/
|
|
433
841
|
export class FrameProperty {
|
|
434
|
-
private constructor();
|
|
435
842
|
free(): void;
|
|
843
|
+
/**
|
|
844
|
+
* @param {string} wrap
|
|
845
|
+
* @returns {FrameProperty}
|
|
846
|
+
*/
|
|
436
847
|
wrap(wrap: string): FrameProperty;
|
|
848
|
+
/**
|
|
849
|
+
* @param {string} anchor
|
|
850
|
+
* @returns {FrameProperty}
|
|
851
|
+
*/
|
|
437
852
|
v_anchor(anchor: string): FrameProperty;
|
|
853
|
+
/**
|
|
854
|
+
* @param {string} anchor
|
|
855
|
+
* @returns {FrameProperty}
|
|
856
|
+
*/
|
|
438
857
|
h_anchor(anchor: string): FrameProperty;
|
|
858
|
+
/**
|
|
859
|
+
* @param {string} r
|
|
860
|
+
* @returns {FrameProperty}
|
|
861
|
+
*/
|
|
439
862
|
h_rule(r: string): FrameProperty;
|
|
863
|
+
/**
|
|
864
|
+
* @param {string} align
|
|
865
|
+
* @returns {FrameProperty}
|
|
866
|
+
*/
|
|
440
867
|
x_align(align: string): FrameProperty;
|
|
868
|
+
/**
|
|
869
|
+
* @param {string} align
|
|
870
|
+
* @returns {FrameProperty}
|
|
871
|
+
*/
|
|
441
872
|
y_align(align: string): FrameProperty;
|
|
873
|
+
/**
|
|
874
|
+
* @param {number} x
|
|
875
|
+
* @returns {FrameProperty}
|
|
876
|
+
*/
|
|
442
877
|
h_space(x: number): FrameProperty;
|
|
878
|
+
/**
|
|
879
|
+
* @param {number} x
|
|
880
|
+
* @returns {FrameProperty}
|
|
881
|
+
*/
|
|
443
882
|
v_space(x: number): FrameProperty;
|
|
883
|
+
/**
|
|
884
|
+
* @param {number} x
|
|
885
|
+
* @returns {FrameProperty}
|
|
886
|
+
*/
|
|
444
887
|
x(x: number): FrameProperty;
|
|
888
|
+
/**
|
|
889
|
+
* @param {number} y
|
|
890
|
+
* @returns {FrameProperty}
|
|
891
|
+
*/
|
|
445
892
|
y(y: number): FrameProperty;
|
|
893
|
+
/**
|
|
894
|
+
* @param {number} n
|
|
895
|
+
* @returns {FrameProperty}
|
|
896
|
+
*/
|
|
446
897
|
width(n: number): FrameProperty;
|
|
898
|
+
/**
|
|
899
|
+
* @param {number} n
|
|
900
|
+
* @returns {FrameProperty}
|
|
901
|
+
*/
|
|
447
902
|
height(n: number): FrameProperty;
|
|
448
903
|
}
|
|
904
|
+
/**
|
|
905
|
+
*/
|
|
449
906
|
export class Header {
|
|
450
|
-
private constructor();
|
|
451
907
|
free(): void;
|
|
908
|
+
/**
|
|
909
|
+
* @param {Paragraph} p
|
|
910
|
+
* @returns {Header}
|
|
911
|
+
*/
|
|
452
912
|
add_paragraph(p: Paragraph): Header;
|
|
913
|
+
/**
|
|
914
|
+
* @param {Table} t
|
|
915
|
+
* @returns {Header}
|
|
916
|
+
*/
|
|
453
917
|
add_table(t: Table): Header;
|
|
454
918
|
}
|
|
919
|
+
/**
|
|
920
|
+
*/
|
|
455
921
|
export class Hyperlink {
|
|
456
|
-
private constructor();
|
|
457
922
|
free(): void;
|
|
923
|
+
/**
|
|
924
|
+
* @param {Run} run
|
|
925
|
+
* @returns {Hyperlink}
|
|
926
|
+
*/
|
|
458
927
|
add_run(run: Run): Hyperlink;
|
|
928
|
+
/**
|
|
929
|
+
* @param {Insert} i
|
|
930
|
+
* @returns {Hyperlink}
|
|
931
|
+
*/
|
|
459
932
|
add_insert(i: Insert): Hyperlink;
|
|
933
|
+
/**
|
|
934
|
+
* @param {Delete} d
|
|
935
|
+
* @returns {Hyperlink}
|
|
936
|
+
*/
|
|
460
937
|
add_delete(d: Delete): Hyperlink;
|
|
938
|
+
/**
|
|
939
|
+
* @param {number} id
|
|
940
|
+
* @param {string} name
|
|
941
|
+
* @returns {Hyperlink}
|
|
942
|
+
*/
|
|
461
943
|
add_bookmark_start(id: number, name: string): Hyperlink;
|
|
944
|
+
/**
|
|
945
|
+
* @param {number} id
|
|
946
|
+
* @returns {Hyperlink}
|
|
947
|
+
*/
|
|
462
948
|
add_bookmark_end(id: number): Hyperlink;
|
|
949
|
+
/**
|
|
950
|
+
* @param {Comment} comment
|
|
951
|
+
* @returns {Hyperlink}
|
|
952
|
+
*/
|
|
463
953
|
add_comment_start(comment: Comment): Hyperlink;
|
|
954
|
+
/**
|
|
955
|
+
* @param {number} id
|
|
956
|
+
* @returns {Hyperlink}
|
|
957
|
+
*/
|
|
464
958
|
add_comment_end(id: number): Hyperlink;
|
|
465
959
|
}
|
|
960
|
+
/**
|
|
961
|
+
*/
|
|
466
962
|
export class Insert {
|
|
467
|
-
private constructor();
|
|
468
963
|
free(): void;
|
|
964
|
+
/**
|
|
965
|
+
* @param {string} author
|
|
966
|
+
* @returns {Insert}
|
|
967
|
+
*/
|
|
469
968
|
author(author: string): Insert;
|
|
969
|
+
/**
|
|
970
|
+
* @param {string} date
|
|
971
|
+
* @returns {Insert}
|
|
972
|
+
*/
|
|
470
973
|
date(date: string): Insert;
|
|
471
974
|
}
|
|
975
|
+
/**
|
|
976
|
+
*/
|
|
472
977
|
export class Level {
|
|
473
|
-
private constructor();
|
|
474
978
|
free(): void;
|
|
475
|
-
|
|
979
|
+
/**
|
|
980
|
+
* @param {number} left
|
|
981
|
+
* @param {SpecialIndentKind | undefined} [special_indent_kind]
|
|
982
|
+
* @param {number | undefined} [special_indent_size]
|
|
983
|
+
* @returns {Level}
|
|
984
|
+
*/
|
|
985
|
+
indent(left: number, special_indent_kind?: SpecialIndentKind, special_indent_size?: number): Level;
|
|
986
|
+
/**
|
|
987
|
+
* @param {LevelSuffixType} s
|
|
988
|
+
* @returns {Level}
|
|
989
|
+
*/
|
|
476
990
|
suffix(s: LevelSuffixType): Level;
|
|
991
|
+
/**
|
|
992
|
+
* @param {number} size
|
|
993
|
+
* @returns {Level}
|
|
994
|
+
*/
|
|
477
995
|
size(size: number): Level;
|
|
996
|
+
/**
|
|
997
|
+
* @param {string} color
|
|
998
|
+
* @returns {Level}
|
|
999
|
+
*/
|
|
478
1000
|
color(color: string): Level;
|
|
1001
|
+
/**
|
|
1002
|
+
* @param {string} color
|
|
1003
|
+
* @returns {Level}
|
|
1004
|
+
*/
|
|
479
1005
|
highlight(color: string): Level;
|
|
1006
|
+
/**
|
|
1007
|
+
* @returns {Level}
|
|
1008
|
+
*/
|
|
480
1009
|
bold(): Level;
|
|
1010
|
+
/**
|
|
1011
|
+
* @returns {Level}
|
|
1012
|
+
*/
|
|
481
1013
|
disable_bold(): Level;
|
|
1014
|
+
/**
|
|
1015
|
+
* @returns {Level}
|
|
1016
|
+
*/
|
|
482
1017
|
italic(): Level;
|
|
1018
|
+
/**
|
|
1019
|
+
* @returns {Level}
|
|
1020
|
+
*/
|
|
483
1021
|
strike(): Level;
|
|
1022
|
+
/**
|
|
1023
|
+
* @returns {Level}
|
|
1024
|
+
*/
|
|
484
1025
|
disable_strike(): Level;
|
|
1026
|
+
/**
|
|
1027
|
+
* @returns {Level}
|
|
1028
|
+
*/
|
|
485
1029
|
dstrike(): Level;
|
|
1030
|
+
/**
|
|
1031
|
+
* @returns {Level}
|
|
1032
|
+
*/
|
|
486
1033
|
disable_dstrike(): Level;
|
|
1034
|
+
/**
|
|
1035
|
+
* @returns {Level}
|
|
1036
|
+
*/
|
|
487
1037
|
disable_italic(): Level;
|
|
1038
|
+
/**
|
|
1039
|
+
* @param {string} line_type
|
|
1040
|
+
* @returns {Level}
|
|
1041
|
+
*/
|
|
488
1042
|
underline(line_type: string): Level;
|
|
1043
|
+
/**
|
|
1044
|
+
* @returns {Level}
|
|
1045
|
+
*/
|
|
489
1046
|
vanish(): Level;
|
|
1047
|
+
/**
|
|
1048
|
+
* @param {RunFonts} f
|
|
1049
|
+
* @returns {Level}
|
|
1050
|
+
*/
|
|
490
1051
|
fonts(f: RunFonts): Level;
|
|
1052
|
+
/**
|
|
1053
|
+
* @param {number} spacing
|
|
1054
|
+
* @returns {Level}
|
|
1055
|
+
*/
|
|
491
1056
|
spacing(spacing: number): Level;
|
|
492
1057
|
}
|
|
1058
|
+
/**
|
|
1059
|
+
*/
|
|
493
1060
|
export class LevelOverride {
|
|
494
|
-
private constructor();
|
|
495
1061
|
free(): void;
|
|
1062
|
+
/**
|
|
1063
|
+
* @param {number} start
|
|
1064
|
+
* @returns {LevelOverride}
|
|
1065
|
+
*/
|
|
496
1066
|
start(start: number): LevelOverride;
|
|
1067
|
+
/**
|
|
1068
|
+
* @param {Level} level
|
|
1069
|
+
* @returns {LevelOverride}
|
|
1070
|
+
*/
|
|
497
1071
|
level(level: Level): LevelOverride;
|
|
498
1072
|
}
|
|
1073
|
+
/**
|
|
1074
|
+
*/
|
|
499
1075
|
export class LineSpacing {
|
|
500
|
-
private constructor();
|
|
501
1076
|
free(): void;
|
|
1077
|
+
/**
|
|
1078
|
+
* @param {LineSpacingType} t
|
|
1079
|
+
* @returns {LineSpacing}
|
|
1080
|
+
*/
|
|
502
1081
|
line_rule(t: LineSpacingType): LineSpacing;
|
|
1082
|
+
/**
|
|
1083
|
+
* @param {number} before
|
|
1084
|
+
* @returns {LineSpacing}
|
|
1085
|
+
*/
|
|
503
1086
|
before(before: number): LineSpacing;
|
|
1087
|
+
/**
|
|
1088
|
+
* @param {number} after
|
|
1089
|
+
* @returns {LineSpacing}
|
|
1090
|
+
*/
|
|
504
1091
|
after(after: number): LineSpacing;
|
|
1092
|
+
/**
|
|
1093
|
+
* @param {number} before
|
|
1094
|
+
* @returns {LineSpacing}
|
|
1095
|
+
*/
|
|
505
1096
|
before_lines(before: number): LineSpacing;
|
|
1097
|
+
/**
|
|
1098
|
+
* @param {number} after
|
|
1099
|
+
* @returns {LineSpacing}
|
|
1100
|
+
*/
|
|
506
1101
|
after_lines(after: number): LineSpacing;
|
|
1102
|
+
/**
|
|
1103
|
+
* @param {number} line
|
|
1104
|
+
* @returns {LineSpacing}
|
|
1105
|
+
*/
|
|
507
1106
|
line(line: number): LineSpacing;
|
|
508
1107
|
}
|
|
1108
|
+
/**
|
|
1109
|
+
*/
|
|
509
1110
|
export class NumPages {
|
|
510
|
-
private constructor();
|
|
511
1111
|
free(): void;
|
|
512
1112
|
}
|
|
1113
|
+
/**
|
|
1114
|
+
*/
|
|
513
1115
|
export class Numbering {
|
|
514
|
-
private constructor();
|
|
515
1116
|
free(): void;
|
|
1117
|
+
/**
|
|
1118
|
+
* @param {LevelOverride} o
|
|
1119
|
+
* @returns {Numbering}
|
|
1120
|
+
*/
|
|
516
1121
|
add_override(o: LevelOverride): Numbering;
|
|
517
1122
|
}
|
|
1123
|
+
/**
|
|
1124
|
+
*/
|
|
518
1125
|
export class PageMargin {
|
|
519
|
-
private constructor();
|
|
520
1126
|
free(): void;
|
|
1127
|
+
/**
|
|
1128
|
+
* @param {number} v
|
|
1129
|
+
* @returns {PageMargin}
|
|
1130
|
+
*/
|
|
521
1131
|
top(v: number): PageMargin;
|
|
1132
|
+
/**
|
|
1133
|
+
* @param {number} v
|
|
1134
|
+
* @returns {PageMargin}
|
|
1135
|
+
*/
|
|
522
1136
|
left(v: number): PageMargin;
|
|
1137
|
+
/**
|
|
1138
|
+
* @param {number} v
|
|
1139
|
+
* @returns {PageMargin}
|
|
1140
|
+
*/
|
|
523
1141
|
bottom(v: number): PageMargin;
|
|
1142
|
+
/**
|
|
1143
|
+
* @param {number} v
|
|
1144
|
+
* @returns {PageMargin}
|
|
1145
|
+
*/
|
|
524
1146
|
right(v: number): PageMargin;
|
|
1147
|
+
/**
|
|
1148
|
+
* @param {number} v
|
|
1149
|
+
* @returns {PageMargin}
|
|
1150
|
+
*/
|
|
525
1151
|
header(v: number): PageMargin;
|
|
1152
|
+
/**
|
|
1153
|
+
* @param {number} v
|
|
1154
|
+
* @returns {PageMargin}
|
|
1155
|
+
*/
|
|
526
1156
|
footer(v: number): PageMargin;
|
|
1157
|
+
/**
|
|
1158
|
+
* @param {number} v
|
|
1159
|
+
* @returns {PageMargin}
|
|
1160
|
+
*/
|
|
527
1161
|
gutter(v: number): PageMargin;
|
|
528
1162
|
}
|
|
1163
|
+
/**
|
|
1164
|
+
*/
|
|
529
1165
|
export class PageNum {
|
|
530
|
-
private constructor();
|
|
531
1166
|
free(): void;
|
|
532
1167
|
}
|
|
1168
|
+
/**
|
|
1169
|
+
*/
|
|
533
1170
|
export class PageNumType {
|
|
534
|
-
private constructor();
|
|
535
1171
|
free(): void;
|
|
536
1172
|
}
|
|
1173
|
+
/**
|
|
1174
|
+
*/
|
|
537
1175
|
export class Paragraph {
|
|
538
|
-
private constructor();
|
|
539
1176
|
free(): void;
|
|
1177
|
+
/**
|
|
1178
|
+
* @param {Run} run
|
|
1179
|
+
* @returns {Paragraph}
|
|
1180
|
+
*/
|
|
540
1181
|
add_run(run: Run): Paragraph;
|
|
1182
|
+
/**
|
|
1183
|
+
* @param {Hyperlink} link
|
|
1184
|
+
* @returns {Paragraph}
|
|
1185
|
+
*/
|
|
541
1186
|
add_hyperlink(link: Hyperlink): Paragraph;
|
|
1187
|
+
/**
|
|
1188
|
+
* @param {Insert} i
|
|
1189
|
+
* @returns {Paragraph}
|
|
1190
|
+
*/
|
|
542
1191
|
add_insert(i: Insert): Paragraph;
|
|
1192
|
+
/**
|
|
1193
|
+
* @param {Delete} d
|
|
1194
|
+
* @returns {Paragraph}
|
|
1195
|
+
*/
|
|
543
1196
|
add_delete(d: Delete): Paragraph;
|
|
1197
|
+
/**
|
|
1198
|
+
* @param {number} id
|
|
1199
|
+
* @param {string} name
|
|
1200
|
+
* @returns {Paragraph}
|
|
1201
|
+
*/
|
|
544
1202
|
add_bookmark_start(id: number, name: string): Paragraph;
|
|
1203
|
+
/**
|
|
1204
|
+
* @param {number} id
|
|
1205
|
+
* @returns {Paragraph}
|
|
1206
|
+
*/
|
|
545
1207
|
add_bookmark_end(id: number): Paragraph;
|
|
1208
|
+
/**
|
|
1209
|
+
* @param {Comment} comment
|
|
1210
|
+
* @returns {Paragraph}
|
|
1211
|
+
*/
|
|
546
1212
|
add_comment_start(comment: Comment): Paragraph;
|
|
1213
|
+
/**
|
|
1214
|
+
* @param {number} id
|
|
1215
|
+
* @returns {Paragraph}
|
|
1216
|
+
*/
|
|
547
1217
|
add_comment_end(id: number): Paragraph;
|
|
1218
|
+
/**
|
|
1219
|
+
* @param {AlignmentType} alignment_type
|
|
1220
|
+
* @returns {Paragraph}
|
|
1221
|
+
*/
|
|
548
1222
|
align(alignment_type: AlignmentType): Paragraph;
|
|
1223
|
+
/**
|
|
1224
|
+
* @param {TextAlignmentType} alignment_type
|
|
1225
|
+
* @returns {Paragraph}
|
|
1226
|
+
*/
|
|
549
1227
|
text_alignment(alignment_type: TextAlignmentType): Paragraph;
|
|
1228
|
+
/**
|
|
1229
|
+
* @param {number} v
|
|
1230
|
+
* @returns {Paragraph}
|
|
1231
|
+
*/
|
|
550
1232
|
adjust_right_ind(v: number): Paragraph;
|
|
1233
|
+
/**
|
|
1234
|
+
* @param {number} level
|
|
1235
|
+
* @returns {Paragraph}
|
|
1236
|
+
*/
|
|
551
1237
|
outline_lvl(level: number): Paragraph;
|
|
1238
|
+
/**
|
|
1239
|
+
* @param {string} style_id
|
|
1240
|
+
* @returns {Paragraph}
|
|
1241
|
+
*/
|
|
552
1242
|
style(style_id: string): Paragraph;
|
|
553
|
-
|
|
1243
|
+
/**
|
|
1244
|
+
* @param {number} left
|
|
1245
|
+
* @param {SpecialIndentKind | undefined} [special_indent_kind]
|
|
1246
|
+
* @param {number | undefined} [special_indent_size]
|
|
1247
|
+
* @param {number | undefined} [right]
|
|
1248
|
+
* @returns {Paragraph}
|
|
1249
|
+
*/
|
|
1250
|
+
indent(left: number, special_indent_kind?: SpecialIndentKind, special_indent_size?: number, right?: number): Paragraph;
|
|
1251
|
+
/**
|
|
1252
|
+
* @param {number} id
|
|
1253
|
+
* @param {number} level
|
|
1254
|
+
* @returns {Paragraph}
|
|
1255
|
+
*/
|
|
554
1256
|
numbering(id: number, level: number): Paragraph;
|
|
1257
|
+
/**
|
|
1258
|
+
* @param {number} size
|
|
1259
|
+
* @returns {Paragraph}
|
|
1260
|
+
*/
|
|
555
1261
|
size(size: number): Paragraph;
|
|
1262
|
+
/**
|
|
1263
|
+
* @param {string} c
|
|
1264
|
+
* @returns {Paragraph}
|
|
1265
|
+
*/
|
|
556
1266
|
color(c: string): Paragraph;
|
|
1267
|
+
/**
|
|
1268
|
+
* @returns {Paragraph}
|
|
1269
|
+
*/
|
|
557
1270
|
bold(): Paragraph;
|
|
1271
|
+
/**
|
|
1272
|
+
* @returns {Paragraph}
|
|
1273
|
+
*/
|
|
558
1274
|
italic(): Paragraph;
|
|
1275
|
+
/**
|
|
1276
|
+
* @param {RunFonts} f
|
|
1277
|
+
* @returns {Paragraph}
|
|
1278
|
+
*/
|
|
559
1279
|
fonts(f: RunFonts): Paragraph;
|
|
1280
|
+
/**
|
|
1281
|
+
* @param {LineSpacing} spacing
|
|
1282
|
+
* @returns {Paragraph}
|
|
1283
|
+
*/
|
|
560
1284
|
line_spacing(spacing: LineSpacing): Paragraph;
|
|
1285
|
+
/**
|
|
1286
|
+
* @param {number} spacing
|
|
1287
|
+
* @returns {Paragraph}
|
|
1288
|
+
*/
|
|
561
1289
|
character_spacing(spacing: number): Paragraph;
|
|
1290
|
+
/**
|
|
1291
|
+
* @param {boolean} v
|
|
1292
|
+
* @returns {Paragraph}
|
|
1293
|
+
*/
|
|
562
1294
|
keep_next(v: boolean): Paragraph;
|
|
1295
|
+
/**
|
|
1296
|
+
* @param {boolean} v
|
|
1297
|
+
* @returns {Paragraph}
|
|
1298
|
+
*/
|
|
563
1299
|
snap_to_grid(v: boolean): Paragraph;
|
|
1300
|
+
/**
|
|
1301
|
+
* @param {boolean} v
|
|
1302
|
+
* @returns {Paragraph}
|
|
1303
|
+
*/
|
|
564
1304
|
keep_lines(v: boolean): Paragraph;
|
|
1305
|
+
/**
|
|
1306
|
+
* @param {boolean} v
|
|
1307
|
+
* @returns {Paragraph}
|
|
1308
|
+
*/
|
|
565
1309
|
page_break_before(v: boolean): Paragraph;
|
|
1310
|
+
/**
|
|
1311
|
+
* @param {boolean} v
|
|
1312
|
+
* @returns {Paragraph}
|
|
1313
|
+
*/
|
|
566
1314
|
widow_control(v: boolean): Paragraph;
|
|
1315
|
+
/**
|
|
1316
|
+
* @param {string} author
|
|
1317
|
+
* @param {string} date
|
|
1318
|
+
* @returns {Paragraph}
|
|
1319
|
+
*/
|
|
567
1320
|
delete(author: string, date: string): Paragraph;
|
|
1321
|
+
/**
|
|
1322
|
+
* @param {string} author
|
|
1323
|
+
* @param {string} date
|
|
1324
|
+
* @returns {Paragraph}
|
|
1325
|
+
*/
|
|
568
1326
|
insert(author: string, date: string): Paragraph;
|
|
569
|
-
|
|
1327
|
+
/**
|
|
1328
|
+
* @param {TabValueType | undefined} [val]
|
|
1329
|
+
* @param {TabLeaderType | undefined} [leader]
|
|
1330
|
+
* @param {number | undefined} [pos]
|
|
1331
|
+
* @returns {Paragraph}
|
|
1332
|
+
*/
|
|
1333
|
+
add_tab(val?: TabValueType, leader?: TabLeaderType, pos?: number): Paragraph;
|
|
1334
|
+
/**
|
|
1335
|
+
* @param {ParagraphPropertyChange} p
|
|
1336
|
+
* @returns {Paragraph}
|
|
1337
|
+
*/
|
|
570
1338
|
paragraph_property_change(p: ParagraphPropertyChange): Paragraph;
|
|
1339
|
+
/**
|
|
1340
|
+
* @param {PageNum} p
|
|
1341
|
+
* @returns {Paragraph}
|
|
1342
|
+
*/
|
|
571
1343
|
add_page_num(p: PageNum): Paragraph;
|
|
1344
|
+
/**
|
|
1345
|
+
* @param {NumPages} p
|
|
1346
|
+
* @returns {Paragraph}
|
|
1347
|
+
*/
|
|
572
1348
|
add_num_pages(p: NumPages): Paragraph;
|
|
1349
|
+
/**
|
|
1350
|
+
* @param {string} wrap
|
|
1351
|
+
* @returns {Paragraph}
|
|
1352
|
+
*/
|
|
573
1353
|
wrap(wrap: string): Paragraph;
|
|
1354
|
+
/**
|
|
1355
|
+
* @param {string} anchor
|
|
1356
|
+
* @returns {Paragraph}
|
|
1357
|
+
*/
|
|
574
1358
|
v_anchor(anchor: string): Paragraph;
|
|
1359
|
+
/**
|
|
1360
|
+
* @param {string} anchor
|
|
1361
|
+
* @returns {Paragraph}
|
|
1362
|
+
*/
|
|
575
1363
|
h_anchor(anchor: string): Paragraph;
|
|
1364
|
+
/**
|
|
1365
|
+
* @param {string} r
|
|
1366
|
+
* @returns {Paragraph}
|
|
1367
|
+
*/
|
|
576
1368
|
h_rule(r: string): Paragraph;
|
|
1369
|
+
/**
|
|
1370
|
+
* @param {string} align
|
|
1371
|
+
* @returns {Paragraph}
|
|
1372
|
+
*/
|
|
577
1373
|
x_align(align: string): Paragraph;
|
|
1374
|
+
/**
|
|
1375
|
+
* @param {string} align
|
|
1376
|
+
* @returns {Paragraph}
|
|
1377
|
+
*/
|
|
578
1378
|
y_align(align: string): Paragraph;
|
|
1379
|
+
/**
|
|
1380
|
+
* @param {number} x
|
|
1381
|
+
* @returns {Paragraph}
|
|
1382
|
+
*/
|
|
579
1383
|
h_space(x: number): Paragraph;
|
|
1384
|
+
/**
|
|
1385
|
+
* @param {number} x
|
|
1386
|
+
* @returns {Paragraph}
|
|
1387
|
+
*/
|
|
580
1388
|
v_space(x: number): Paragraph;
|
|
1389
|
+
/**
|
|
1390
|
+
* @param {number} x
|
|
1391
|
+
* @returns {Paragraph}
|
|
1392
|
+
*/
|
|
581
1393
|
frame_x(x: number): Paragraph;
|
|
1394
|
+
/**
|
|
1395
|
+
* @param {number} y
|
|
1396
|
+
* @returns {Paragraph}
|
|
1397
|
+
*/
|
|
582
1398
|
frame_y(y: number): Paragraph;
|
|
1399
|
+
/**
|
|
1400
|
+
* @param {number} n
|
|
1401
|
+
* @returns {Paragraph}
|
|
1402
|
+
*/
|
|
583
1403
|
frame_width(n: number): Paragraph;
|
|
1404
|
+
/**
|
|
1405
|
+
* @param {number} n
|
|
1406
|
+
* @returns {Paragraph}
|
|
1407
|
+
*/
|
|
584
1408
|
frame_height(n: number): Paragraph;
|
|
1409
|
+
/**
|
|
1410
|
+
* @param {ParagraphProperty} p
|
|
1411
|
+
* @returns {Paragraph}
|
|
1412
|
+
*/
|
|
585
1413
|
paragraph_property(p: ParagraphProperty): Paragraph;
|
|
586
1414
|
}
|
|
1415
|
+
/**
|
|
1416
|
+
*/
|
|
587
1417
|
export class ParagraphProperty {
|
|
588
|
-
private constructor();
|
|
589
1418
|
free(): void;
|
|
1419
|
+
/**
|
|
1420
|
+
* @param {AlignmentType} alignment_type
|
|
1421
|
+
* @returns {ParagraphProperty}
|
|
1422
|
+
*/
|
|
590
1423
|
align(alignment_type: AlignmentType): ParagraphProperty;
|
|
1424
|
+
/**
|
|
1425
|
+
* @param {TextAlignmentType} alignment_type
|
|
1426
|
+
* @returns {ParagraphProperty}
|
|
1427
|
+
*/
|
|
591
1428
|
text_alignment(alignment_type: TextAlignmentType): ParagraphProperty;
|
|
1429
|
+
/**
|
|
1430
|
+
* @param {number} v
|
|
1431
|
+
* @returns {ParagraphProperty}
|
|
1432
|
+
*/
|
|
592
1433
|
adjust_right_ind(v: number): ParagraphProperty;
|
|
1434
|
+
/**
|
|
1435
|
+
* @param {number} level
|
|
1436
|
+
* @returns {ParagraphProperty}
|
|
1437
|
+
*/
|
|
593
1438
|
outline_lvl(level: number): ParagraphProperty;
|
|
1439
|
+
/**
|
|
1440
|
+
* @param {string} style_id
|
|
1441
|
+
* @returns {ParagraphProperty}
|
|
1442
|
+
*/
|
|
594
1443
|
style(style_id: string): ParagraphProperty;
|
|
595
|
-
|
|
1444
|
+
/**
|
|
1445
|
+
* @param {number} left
|
|
1446
|
+
* @param {SpecialIndentKind | undefined} [special_indent_kind]
|
|
1447
|
+
* @param {number | undefined} [special_indent_size]
|
|
1448
|
+
* @param {number | undefined} [right]
|
|
1449
|
+
* @returns {ParagraphProperty}
|
|
1450
|
+
*/
|
|
1451
|
+
indent(left: number, special_indent_kind?: SpecialIndentKind, special_indent_size?: number, right?: number): ParagraphProperty;
|
|
1452
|
+
/**
|
|
1453
|
+
* @param {number} id
|
|
1454
|
+
* @param {number} level
|
|
1455
|
+
* @returns {ParagraphProperty}
|
|
1456
|
+
*/
|
|
596
1457
|
numbering(id: number, level: number): ParagraphProperty;
|
|
1458
|
+
/**
|
|
1459
|
+
* @param {LineSpacing} spacing
|
|
1460
|
+
* @returns {ParagraphProperty}
|
|
1461
|
+
*/
|
|
597
1462
|
line_spacing(spacing: LineSpacing): ParagraphProperty;
|
|
1463
|
+
/**
|
|
1464
|
+
* @param {number} spacing
|
|
1465
|
+
* @returns {ParagraphProperty}
|
|
1466
|
+
*/
|
|
598
1467
|
character_spacing(spacing: number): ParagraphProperty;
|
|
1468
|
+
/**
|
|
1469
|
+
* @param {boolean} v
|
|
1470
|
+
* @returns {ParagraphProperty}
|
|
1471
|
+
*/
|
|
599
1472
|
keep_next(v: boolean): ParagraphProperty;
|
|
1473
|
+
/**
|
|
1474
|
+
* @param {boolean} v
|
|
1475
|
+
* @returns {ParagraphProperty}
|
|
1476
|
+
*/
|
|
600
1477
|
snap_to_grid(v: boolean): ParagraphProperty;
|
|
1478
|
+
/**
|
|
1479
|
+
* @param {boolean} v
|
|
1480
|
+
* @returns {ParagraphProperty}
|
|
1481
|
+
*/
|
|
601
1482
|
keep_lines(v: boolean): ParagraphProperty;
|
|
1483
|
+
/**
|
|
1484
|
+
* @param {boolean} v
|
|
1485
|
+
* @returns {ParagraphProperty}
|
|
1486
|
+
*/
|
|
602
1487
|
page_break_before(v: boolean): ParagraphProperty;
|
|
1488
|
+
/**
|
|
1489
|
+
* @param {boolean} v
|
|
1490
|
+
* @returns {ParagraphProperty}
|
|
1491
|
+
*/
|
|
603
1492
|
widow_control(v: boolean): ParagraphProperty;
|
|
604
|
-
|
|
1493
|
+
/**
|
|
1494
|
+
* @param {TabValueType | undefined} [val]
|
|
1495
|
+
* @param {TabLeaderType | undefined} [leader]
|
|
1496
|
+
* @param {number | undefined} [pos]
|
|
1497
|
+
* @returns {ParagraphProperty}
|
|
1498
|
+
*/
|
|
1499
|
+
add_tab(val?: TabValueType, leader?: TabLeaderType, pos?: number): ParagraphProperty;
|
|
1500
|
+
/**
|
|
1501
|
+
* @param {ParagraphPropertyChange} p
|
|
1502
|
+
* @returns {ParagraphProperty}
|
|
1503
|
+
*/
|
|
605
1504
|
paragraph_property_change(p: ParagraphPropertyChange): ParagraphProperty;
|
|
1505
|
+
/**
|
|
1506
|
+
* @param {FrameProperty} p
|
|
1507
|
+
* @returns {ParagraphProperty}
|
|
1508
|
+
*/
|
|
606
1509
|
frame_property(p: FrameProperty): ParagraphProperty;
|
|
1510
|
+
/**
|
|
1511
|
+
* @param {RunProperty} p
|
|
1512
|
+
* @returns {ParagraphProperty}
|
|
1513
|
+
*/
|
|
607
1514
|
run_property(p: RunProperty): ParagraphProperty;
|
|
608
1515
|
}
|
|
1516
|
+
/**
|
|
1517
|
+
*/
|
|
609
1518
|
export class ParagraphPropertyChange {
|
|
610
|
-
private constructor();
|
|
611
1519
|
free(): void;
|
|
1520
|
+
/**
|
|
1521
|
+
* @param {string} author
|
|
1522
|
+
* @returns {ParagraphPropertyChange}
|
|
1523
|
+
*/
|
|
612
1524
|
author(author: string): ParagraphPropertyChange;
|
|
1525
|
+
/**
|
|
1526
|
+
* @param {string} date
|
|
1527
|
+
* @returns {ParagraphPropertyChange}
|
|
1528
|
+
*/
|
|
613
1529
|
date(date: string): ParagraphPropertyChange;
|
|
1530
|
+
/**
|
|
1531
|
+
* @param {number} id
|
|
1532
|
+
* @param {number} level
|
|
1533
|
+
* @returns {ParagraphPropertyChange}
|
|
1534
|
+
*/
|
|
614
1535
|
numbering(id: number, level: number): ParagraphPropertyChange;
|
|
1536
|
+
/**
|
|
1537
|
+
* @param {AlignmentType} alignment_type
|
|
1538
|
+
* @returns {ParagraphPropertyChange}
|
|
1539
|
+
*/
|
|
615
1540
|
align(alignment_type: AlignmentType): ParagraphPropertyChange;
|
|
1541
|
+
/**
|
|
1542
|
+
* @param {string} style_id
|
|
1543
|
+
* @returns {ParagraphPropertyChange}
|
|
1544
|
+
*/
|
|
616
1545
|
style(style_id: string): ParagraphPropertyChange;
|
|
617
|
-
|
|
618
|
-
}
|
|
1546
|
+
/**
|
|
1547
|
+
* @param {number} left
|
|
1548
|
+
* @param {SpecialIndentKind | undefined} [special_indent_kind]
|
|
1549
|
+
* @param {number | undefined} [special_indent_size]
|
|
1550
|
+
* @returns {ParagraphPropertyChange}
|
|
1551
|
+
*/
|
|
1552
|
+
indent(left: number, special_indent_kind?: SpecialIndentKind, special_indent_size?: number): ParagraphPropertyChange;
|
|
1553
|
+
}
|
|
1554
|
+
/**
|
|
1555
|
+
*/
|
|
619
1556
|
export class Pic {
|
|
620
|
-
private constructor();
|
|
621
1557
|
free(): void;
|
|
1558
|
+
/**
|
|
1559
|
+
* @param {number} w_emu
|
|
1560
|
+
* @param {number} h_emu
|
|
1561
|
+
* @returns {Pic}
|
|
1562
|
+
*/
|
|
622
1563
|
size(w_emu: number, h_emu: number): Pic;
|
|
1564
|
+
/**
|
|
1565
|
+
* @param {number} deg
|
|
1566
|
+
* @returns {Pic}
|
|
1567
|
+
*/
|
|
623
1568
|
rotate(deg: number): Pic;
|
|
1569
|
+
/**
|
|
1570
|
+
* @returns {Pic}
|
|
1571
|
+
*/
|
|
624
1572
|
floating(): Pic;
|
|
1573
|
+
/**
|
|
1574
|
+
* @param {number} x
|
|
1575
|
+
* @returns {Pic}
|
|
1576
|
+
*/
|
|
625
1577
|
offset_x(x: number): Pic;
|
|
1578
|
+
/**
|
|
1579
|
+
* @param {number} y
|
|
1580
|
+
* @returns {Pic}
|
|
1581
|
+
*/
|
|
626
1582
|
offset_y(y: number): Pic;
|
|
627
1583
|
}
|
|
1584
|
+
/**
|
|
1585
|
+
*/
|
|
628
1586
|
export class PositionalTab {
|
|
629
|
-
private constructor();
|
|
630
1587
|
free(): void;
|
|
1588
|
+
/**
|
|
1589
|
+
* @param {PositionalTabAlignmentType} alignment
|
|
1590
|
+
* @returns {PositionalTab}
|
|
1591
|
+
*/
|
|
631
1592
|
alignment(alignment: PositionalTabAlignmentType): PositionalTab;
|
|
1593
|
+
/**
|
|
1594
|
+
* @param {PositionalTabRelativeTo} relative_to
|
|
1595
|
+
* @returns {PositionalTab}
|
|
1596
|
+
*/
|
|
632
1597
|
relative_to(relative_to: PositionalTabRelativeTo): PositionalTab;
|
|
1598
|
+
/**
|
|
1599
|
+
* @param {TabLeaderType} leader
|
|
1600
|
+
* @returns {PositionalTab}
|
|
1601
|
+
*/
|
|
633
1602
|
leader(leader: TabLeaderType): PositionalTab;
|
|
634
1603
|
}
|
|
1604
|
+
/**
|
|
1605
|
+
*/
|
|
635
1606
|
export class Run {
|
|
636
|
-
private constructor();
|
|
637
1607
|
free(): void;
|
|
1608
|
+
/**
|
|
1609
|
+
* @param {string} text
|
|
1610
|
+
* @returns {Run}
|
|
1611
|
+
*/
|
|
638
1612
|
add_text(text: string): Run;
|
|
1613
|
+
/**
|
|
1614
|
+
* @param {Pic} pic
|
|
1615
|
+
* @returns {Run}
|
|
1616
|
+
*/
|
|
639
1617
|
add_image(pic: Pic): Run;
|
|
1618
|
+
/**
|
|
1619
|
+
* @param {string} text
|
|
1620
|
+
* @returns {Run}
|
|
1621
|
+
*/
|
|
640
1622
|
add_delete_text(text: string): Run;
|
|
1623
|
+
/**
|
|
1624
|
+
* @returns {Run}
|
|
1625
|
+
*/
|
|
641
1626
|
add_tab(): Run;
|
|
1627
|
+
/**
|
|
1628
|
+
* @param {PositionalTab} ptab
|
|
1629
|
+
* @returns {Run}
|
|
1630
|
+
*/
|
|
642
1631
|
add_ptab(ptab: PositionalTab): Run;
|
|
1632
|
+
/**
|
|
1633
|
+
* @param {BreakType} break_type
|
|
1634
|
+
* @returns {Run}
|
|
1635
|
+
*/
|
|
643
1636
|
add_break(break_type: BreakType): Run;
|
|
644
|
-
|
|
1637
|
+
/**
|
|
1638
|
+
* @param {string} text
|
|
1639
|
+
* @param {boolean} omits_page_number
|
|
1640
|
+
* @param {number | undefined} [level]
|
|
1641
|
+
* @param {string | undefined} [id]
|
|
1642
|
+
* @returns {Run}
|
|
1643
|
+
*/
|
|
1644
|
+
add_tc(text: string, omits_page_number: boolean, level?: number, id?: string): Run;
|
|
1645
|
+
/**
|
|
1646
|
+
* @param {string} style
|
|
1647
|
+
* @returns {Run}
|
|
1648
|
+
*/
|
|
645
1649
|
style(style: string): Run;
|
|
1650
|
+
/**
|
|
1651
|
+
* @param {number} size
|
|
1652
|
+
* @returns {Run}
|
|
1653
|
+
*/
|
|
646
1654
|
size(size: number): Run;
|
|
1655
|
+
/**
|
|
1656
|
+
* @param {string} color
|
|
1657
|
+
* @returns {Run}
|
|
1658
|
+
*/
|
|
647
1659
|
color(color: string): Run;
|
|
1660
|
+
/**
|
|
1661
|
+
* @param {string} color
|
|
1662
|
+
* @returns {Run}
|
|
1663
|
+
*/
|
|
648
1664
|
highlight(color: string): Run;
|
|
1665
|
+
/**
|
|
1666
|
+
* @returns {Run}
|
|
1667
|
+
*/
|
|
649
1668
|
bold(): Run;
|
|
1669
|
+
/**
|
|
1670
|
+
* @returns {Run}
|
|
1671
|
+
*/
|
|
650
1672
|
italic(): Run;
|
|
1673
|
+
/**
|
|
1674
|
+
* @returns {Run}
|
|
1675
|
+
*/
|
|
1676
|
+
caps(): Run;
|
|
1677
|
+
/**
|
|
1678
|
+
* @returns {Run}
|
|
1679
|
+
*/
|
|
651
1680
|
strike(): Run;
|
|
1681
|
+
/**
|
|
1682
|
+
* @returns {Run}
|
|
1683
|
+
*/
|
|
652
1684
|
dstrike(): Run;
|
|
1685
|
+
/**
|
|
1686
|
+
* @param {string} line_type
|
|
1687
|
+
* @returns {Run}
|
|
1688
|
+
*/
|
|
653
1689
|
underline(line_type: string): Run;
|
|
1690
|
+
/**
|
|
1691
|
+
* @returns {Run}
|
|
1692
|
+
*/
|
|
654
1693
|
vanish(): Run;
|
|
1694
|
+
/**
|
|
1695
|
+
* @param {RunFonts} f
|
|
1696
|
+
* @returns {Run}
|
|
1697
|
+
*/
|
|
655
1698
|
fonts(f: RunFonts): Run;
|
|
1699
|
+
/**
|
|
1700
|
+
* @param {number} spacing
|
|
1701
|
+
* @returns {Run}
|
|
1702
|
+
*/
|
|
656
1703
|
character_spacing(spacing: number): Run;
|
|
1704
|
+
/**
|
|
1705
|
+
* @param {VertAlignType} a
|
|
1706
|
+
* @returns {Run}
|
|
1707
|
+
*/
|
|
657
1708
|
vert_align(a: VertAlignType): Run;
|
|
1709
|
+
/**
|
|
1710
|
+
* @param {string} t
|
|
1711
|
+
* @param {string} color
|
|
1712
|
+
* @param {string} fill
|
|
1713
|
+
* @returns {Run}
|
|
1714
|
+
*/
|
|
658
1715
|
shading(t: string, color: string, fill: string): Run;
|
|
1716
|
+
/**
|
|
1717
|
+
* @param {BorderType} border_type
|
|
1718
|
+
* @param {number} size
|
|
1719
|
+
* @param {number} space
|
|
1720
|
+
* @param {string} color
|
|
1721
|
+
* @returns {Run}
|
|
1722
|
+
*/
|
|
659
1723
|
text_border(border_type: BorderType, size: number, space: number, color: string): Run;
|
|
660
1724
|
}
|
|
1725
|
+
/**
|
|
1726
|
+
*/
|
|
661
1727
|
export class RunFonts {
|
|
662
|
-
private constructor();
|
|
663
1728
|
free(): void;
|
|
1729
|
+
/**
|
|
1730
|
+
* @param {string} f
|
|
1731
|
+
* @returns {RunFonts}
|
|
1732
|
+
*/
|
|
664
1733
|
ascii(f: string): RunFonts;
|
|
1734
|
+
/**
|
|
1735
|
+
* @param {string} f
|
|
1736
|
+
* @returns {RunFonts}
|
|
1737
|
+
*/
|
|
665
1738
|
hi_ansi(f: string): RunFonts;
|
|
1739
|
+
/**
|
|
1740
|
+
* @param {string} f
|
|
1741
|
+
* @returns {RunFonts}
|
|
1742
|
+
*/
|
|
666
1743
|
cs(f: string): RunFonts;
|
|
1744
|
+
/**
|
|
1745
|
+
* @param {string} f
|
|
1746
|
+
* @returns {RunFonts}
|
|
1747
|
+
*/
|
|
667
1748
|
east_asia(f: string): RunFonts;
|
|
1749
|
+
/**
|
|
1750
|
+
* @param {string} f
|
|
1751
|
+
* @returns {RunFonts}
|
|
1752
|
+
*/
|
|
668
1753
|
ascii_theme(f: string): RunFonts;
|
|
1754
|
+
/**
|
|
1755
|
+
* @param {string} f
|
|
1756
|
+
* @returns {RunFonts}
|
|
1757
|
+
*/
|
|
669
1758
|
hi_ansi_theme(f: string): RunFonts;
|
|
1759
|
+
/**
|
|
1760
|
+
* @param {string} f
|
|
1761
|
+
* @returns {RunFonts}
|
|
1762
|
+
*/
|
|
670
1763
|
cs_theme(f: string): RunFonts;
|
|
1764
|
+
/**
|
|
1765
|
+
* @param {string} f
|
|
1766
|
+
* @returns {RunFonts}
|
|
1767
|
+
*/
|
|
671
1768
|
east_asia_theme(f: string): RunFonts;
|
|
1769
|
+
/**
|
|
1770
|
+
* @param {string} f
|
|
1771
|
+
* @returns {RunFonts}
|
|
1772
|
+
*/
|
|
672
1773
|
hint(f: string): RunFonts;
|
|
673
1774
|
}
|
|
1775
|
+
/**
|
|
1776
|
+
*/
|
|
674
1777
|
export class RunProperty {
|
|
675
|
-
private constructor();
|
|
676
1778
|
free(): void;
|
|
1779
|
+
/**
|
|
1780
|
+
* @param {number} size
|
|
1781
|
+
* @returns {RunProperty}
|
|
1782
|
+
*/
|
|
677
1783
|
size(size: number): RunProperty;
|
|
1784
|
+
/**
|
|
1785
|
+
* @param {string} c
|
|
1786
|
+
* @returns {RunProperty}
|
|
1787
|
+
*/
|
|
678
1788
|
color(c: string): RunProperty;
|
|
1789
|
+
/**
|
|
1790
|
+
* @returns {RunProperty}
|
|
1791
|
+
*/
|
|
679
1792
|
bold(): RunProperty;
|
|
1793
|
+
/**
|
|
1794
|
+
* @returns {RunProperty}
|
|
1795
|
+
*/
|
|
680
1796
|
disable_bold(): RunProperty;
|
|
1797
|
+
/**
|
|
1798
|
+
* @returns {RunProperty}
|
|
1799
|
+
*/
|
|
681
1800
|
italic(): RunProperty;
|
|
1801
|
+
/**
|
|
1802
|
+
* @returns {RunProperty}
|
|
1803
|
+
*/
|
|
682
1804
|
disable_italic(): RunProperty;
|
|
1805
|
+
/**
|
|
1806
|
+
* @returns {RunProperty}
|
|
1807
|
+
*/
|
|
683
1808
|
strike(): RunProperty;
|
|
1809
|
+
/**
|
|
1810
|
+
* @returns {RunProperty}
|
|
1811
|
+
*/
|
|
684
1812
|
disable_strike(): RunProperty;
|
|
1813
|
+
/**
|
|
1814
|
+
* @returns {RunProperty}
|
|
1815
|
+
*/
|
|
685
1816
|
dstrike(): RunProperty;
|
|
1817
|
+
/**
|
|
1818
|
+
* @returns {RunProperty}
|
|
1819
|
+
*/
|
|
686
1820
|
disable_dstrike(): RunProperty;
|
|
1821
|
+
/**
|
|
1822
|
+
* @param {RunFonts} f
|
|
1823
|
+
* @returns {RunProperty}
|
|
1824
|
+
*/
|
|
687
1825
|
fonts(f: RunFonts): RunProperty;
|
|
1826
|
+
/**
|
|
1827
|
+
* @param {string} line_type
|
|
1828
|
+
* @returns {RunProperty}
|
|
1829
|
+
*/
|
|
688
1830
|
underline(line_type: string): RunProperty;
|
|
1831
|
+
/**
|
|
1832
|
+
* @returns {RunProperty}
|
|
1833
|
+
*/
|
|
689
1834
|
vanish(): RunProperty;
|
|
1835
|
+
/**
|
|
1836
|
+
* @returns {RunProperty}
|
|
1837
|
+
*/
|
|
690
1838
|
spec_vanish(): RunProperty;
|
|
1839
|
+
/**
|
|
1840
|
+
* @param {number} spacing
|
|
1841
|
+
* @returns {RunProperty}
|
|
1842
|
+
*/
|
|
691
1843
|
character_spacing(spacing: number): RunProperty;
|
|
1844
|
+
/**
|
|
1845
|
+
* @param {VertAlignType} a
|
|
1846
|
+
* @returns {RunProperty}
|
|
1847
|
+
*/
|
|
692
1848
|
vert_align(a: VertAlignType): RunProperty;
|
|
1849
|
+
/**
|
|
1850
|
+
* @param {string} author
|
|
1851
|
+
* @param {string} date
|
|
1852
|
+
* @returns {RunProperty}
|
|
1853
|
+
*/
|
|
693
1854
|
delete(author: string, date: string): RunProperty;
|
|
1855
|
+
/**
|
|
1856
|
+
* @param {string} author
|
|
1857
|
+
* @param {string} date
|
|
1858
|
+
* @returns {RunProperty}
|
|
1859
|
+
*/
|
|
694
1860
|
insert(author: string, date: string): RunProperty;
|
|
1861
|
+
/**
|
|
1862
|
+
* @param {string} style_id
|
|
1863
|
+
* @returns {RunProperty}
|
|
1864
|
+
*/
|
|
695
1865
|
style(style_id: string): RunProperty;
|
|
1866
|
+
/**
|
|
1867
|
+
* @param {string} color
|
|
1868
|
+
* @returns {RunProperty}
|
|
1869
|
+
*/
|
|
696
1870
|
highlight(color: string): RunProperty;
|
|
1871
|
+
/**
|
|
1872
|
+
* @param {BorderType} border_type
|
|
1873
|
+
* @param {number} size
|
|
1874
|
+
* @param {number} space
|
|
1875
|
+
* @param {string} color
|
|
1876
|
+
* @returns {RunProperty}
|
|
1877
|
+
*/
|
|
697
1878
|
text_border(border_type: BorderType, size: number, space: number, color: string): RunProperty;
|
|
1879
|
+
/**
|
|
1880
|
+
* @param {string} t
|
|
1881
|
+
* @param {string} color
|
|
1882
|
+
* @param {string} fill
|
|
1883
|
+
* @returns {RunProperty}
|
|
1884
|
+
*/
|
|
698
1885
|
shading(t: string, color: string, fill: string): RunProperty;
|
|
699
1886
|
}
|
|
1887
|
+
/**
|
|
1888
|
+
*/
|
|
700
1889
|
export class Style {
|
|
701
|
-
private constructor();
|
|
702
1890
|
free(): void;
|
|
1891
|
+
/**
|
|
1892
|
+
* @param {string} name
|
|
1893
|
+
* @returns {Style}
|
|
1894
|
+
*/
|
|
703
1895
|
name(name: string): Style;
|
|
1896
|
+
/**
|
|
1897
|
+
* @param {string} base
|
|
1898
|
+
* @returns {Style}
|
|
1899
|
+
*/
|
|
704
1900
|
based_on(base: string): Style;
|
|
1901
|
+
/**
|
|
1902
|
+
* @param {number} size
|
|
1903
|
+
* @returns {Style}
|
|
1904
|
+
*/
|
|
705
1905
|
size(size: number): Style;
|
|
1906
|
+
/**
|
|
1907
|
+
* @param {string} color
|
|
1908
|
+
* @returns {Style}
|
|
1909
|
+
*/
|
|
706
1910
|
color(color: string): Style;
|
|
1911
|
+
/**
|
|
1912
|
+
* @param {string} color
|
|
1913
|
+
* @returns {Style}
|
|
1914
|
+
*/
|
|
707
1915
|
highlight(color: string): Style;
|
|
1916
|
+
/**
|
|
1917
|
+
* @returns {Style}
|
|
1918
|
+
*/
|
|
708
1919
|
bold(): Style;
|
|
1920
|
+
/**
|
|
1921
|
+
* @returns {Style}
|
|
1922
|
+
*/
|
|
709
1923
|
italic(): Style;
|
|
1924
|
+
/**
|
|
1925
|
+
* @returns {Style}
|
|
1926
|
+
*/
|
|
710
1927
|
strike(): Style;
|
|
1928
|
+
/**
|
|
1929
|
+
* @returns {Style}
|
|
1930
|
+
*/
|
|
711
1931
|
dstrike(): Style;
|
|
1932
|
+
/**
|
|
1933
|
+
* @param {string} line_type
|
|
1934
|
+
* @returns {Style}
|
|
1935
|
+
*/
|
|
712
1936
|
underline(line_type: string): Style;
|
|
1937
|
+
/**
|
|
1938
|
+
* @param {string} t
|
|
1939
|
+
* @param {string} color
|
|
1940
|
+
* @param {string} fill
|
|
1941
|
+
* @returns {Style}
|
|
1942
|
+
*/
|
|
713
1943
|
shading(t: string, color: string, fill: string): Style;
|
|
1944
|
+
/**
|
|
1945
|
+
* @param {string} link
|
|
1946
|
+
* @returns {Style}
|
|
1947
|
+
*/
|
|
714
1948
|
link(link: string): Style;
|
|
1949
|
+
/**
|
|
1950
|
+
* @returns {Style}
|
|
1951
|
+
*/
|
|
715
1952
|
vanish(): Style;
|
|
1953
|
+
/**
|
|
1954
|
+
* @returns {Style}
|
|
1955
|
+
*/
|
|
1956
|
+
caps(): Style;
|
|
1957
|
+
/**
|
|
1958
|
+
* @param {RunFonts} f
|
|
1959
|
+
* @returns {Style}
|
|
1960
|
+
*/
|
|
716
1961
|
fonts(f: RunFonts): Style;
|
|
1962
|
+
/**
|
|
1963
|
+
* @param {number} spacing
|
|
1964
|
+
* @returns {Style}
|
|
1965
|
+
*/
|
|
717
1966
|
character_spacing(spacing: number): Style;
|
|
1967
|
+
/**
|
|
1968
|
+
* @param {VertAlignType} a
|
|
1969
|
+
* @returns {Style}
|
|
1970
|
+
*/
|
|
718
1971
|
vert_align(a: VertAlignType): Style;
|
|
1972
|
+
/**
|
|
1973
|
+
* @param {BorderType} border_type
|
|
1974
|
+
* @param {number} size
|
|
1975
|
+
* @param {number} space
|
|
1976
|
+
* @param {string} color
|
|
1977
|
+
* @returns {Style}
|
|
1978
|
+
*/
|
|
719
1979
|
text_border(border_type: BorderType, size: number, space: number, color: string): Style;
|
|
1980
|
+
/**
|
|
1981
|
+
* @param {AlignmentType} alignment_type
|
|
1982
|
+
* @returns {Style}
|
|
1983
|
+
*/
|
|
720
1984
|
align(alignment_type: AlignmentType): Style;
|
|
1985
|
+
/**
|
|
1986
|
+
* @param {TextAlignmentType} alignment_type
|
|
1987
|
+
* @returns {Style}
|
|
1988
|
+
*/
|
|
721
1989
|
text_alignment(alignment_type: TextAlignmentType): Style;
|
|
1990
|
+
/**
|
|
1991
|
+
* @param {number} v
|
|
1992
|
+
* @returns {Style}
|
|
1993
|
+
*/
|
|
722
1994
|
adjust_right_ind(v: number): Style;
|
|
723
|
-
|
|
724
|
-
|
|
1995
|
+
/**
|
|
1996
|
+
* @param {TabValueType | undefined} [val]
|
|
1997
|
+
* @param {TabLeaderType | undefined} [leader]
|
|
1998
|
+
* @param {number | undefined} [pos]
|
|
1999
|
+
* @returns {Style}
|
|
2000
|
+
*/
|
|
2001
|
+
add_tab(val?: TabValueType, leader?: TabLeaderType, pos?: number): Style;
|
|
2002
|
+
/**
|
|
2003
|
+
* @param {number} left
|
|
2004
|
+
* @param {SpecialIndentKind | undefined} [special_indent_kind]
|
|
2005
|
+
* @param {number | undefined} [special_indent_size]
|
|
2006
|
+
* @returns {Style}
|
|
2007
|
+
*/
|
|
2008
|
+
indent(left: number, special_indent_kind?: SpecialIndentKind, special_indent_size?: number): Style;
|
|
2009
|
+
/**
|
|
2010
|
+
* @param {number} l
|
|
2011
|
+
* @returns {Style}
|
|
2012
|
+
*/
|
|
725
2013
|
outline_lvl(l: number): Style;
|
|
2014
|
+
/**
|
|
2015
|
+
* @param {number} id
|
|
2016
|
+
* @param {number} level
|
|
2017
|
+
* @returns {Style}
|
|
2018
|
+
*/
|
|
726
2019
|
numbering(id: number, level: number): Style;
|
|
2020
|
+
/**
|
|
2021
|
+
* @param {LineSpacing} spacing
|
|
2022
|
+
* @returns {Style}
|
|
2023
|
+
*/
|
|
727
2024
|
line_spacing(spacing: LineSpacing): Style;
|
|
2025
|
+
/**
|
|
2026
|
+
* @param {boolean} v
|
|
2027
|
+
* @returns {Style}
|
|
2028
|
+
*/
|
|
728
2029
|
snap_to_grid(v: boolean): Style;
|
|
2030
|
+
/**
|
|
2031
|
+
* @param {boolean} v
|
|
2032
|
+
* @returns {Style}
|
|
2033
|
+
*/
|
|
729
2034
|
keep_next(v: boolean): Style;
|
|
2035
|
+
/**
|
|
2036
|
+
* @param {boolean} v
|
|
2037
|
+
* @returns {Style}
|
|
2038
|
+
*/
|
|
730
2039
|
keep_lines(v: boolean): Style;
|
|
2040
|
+
/**
|
|
2041
|
+
* @param {boolean} v
|
|
2042
|
+
* @returns {Style}
|
|
2043
|
+
*/
|
|
731
2044
|
page_break_before(v: boolean): Style;
|
|
2045
|
+
/**
|
|
2046
|
+
* @param {boolean} v
|
|
2047
|
+
* @returns {Style}
|
|
2048
|
+
*/
|
|
732
2049
|
widow_control(v: boolean): Style;
|
|
2050
|
+
/**
|
|
2051
|
+
* @param {RunProperty} p
|
|
2052
|
+
* @returns {Style}
|
|
2053
|
+
*/
|
|
733
2054
|
run_property(p: RunProperty): Style;
|
|
2055
|
+
/**
|
|
2056
|
+
* @param {ParagraphProperty} p
|
|
2057
|
+
* @returns {Style}
|
|
2058
|
+
*/
|
|
734
2059
|
paragraph_property(p: ParagraphProperty): Style;
|
|
2060
|
+
/**
|
|
2061
|
+
* @param {TableProperty} p
|
|
2062
|
+
* @returns {Style}
|
|
2063
|
+
*/
|
|
735
2064
|
table_property(p: TableProperty): Style;
|
|
2065
|
+
/**
|
|
2066
|
+
* @param {TableCellProperty} p
|
|
2067
|
+
* @returns {Style}
|
|
2068
|
+
*/
|
|
736
2069
|
table_cell_property(p: TableCellProperty): Style;
|
|
2070
|
+
/**
|
|
2071
|
+
* @param {number} v
|
|
2072
|
+
* @returns {Style}
|
|
2073
|
+
*/
|
|
737
2074
|
table_indent(v: number): Style;
|
|
2075
|
+
/**
|
|
2076
|
+
* @param {TableAlignmentType} v
|
|
2077
|
+
* @returns {Style}
|
|
2078
|
+
*/
|
|
738
2079
|
table_align(v: TableAlignmentType): Style;
|
|
2080
|
+
/**
|
|
2081
|
+
* @param {number} top
|
|
2082
|
+
* @param {number} right
|
|
2083
|
+
* @param {number} bottom
|
|
2084
|
+
* @param {number} left
|
|
2085
|
+
* @returns {Style}
|
|
2086
|
+
*/
|
|
739
2087
|
set_cell_margins(top: number, right: number, bottom: number, left: number): Style;
|
|
2088
|
+
/**
|
|
2089
|
+
* @param {number} v
|
|
2090
|
+
* @param {WidthType} t
|
|
2091
|
+
* @returns {Style}
|
|
2092
|
+
*/
|
|
740
2093
|
cell_margin_top(v: number, t: WidthType): Style;
|
|
2094
|
+
/**
|
|
2095
|
+
* @param {number} v
|
|
2096
|
+
* @param {WidthType} t
|
|
2097
|
+
* @returns {Style}
|
|
2098
|
+
*/
|
|
741
2099
|
cell_margin_right(v: number, t: WidthType): Style;
|
|
2100
|
+
/**
|
|
2101
|
+
* @param {number} v
|
|
2102
|
+
* @param {WidthType} t
|
|
2103
|
+
* @returns {Style}
|
|
2104
|
+
*/
|
|
742
2105
|
cell_margin_bottom(v: number, t: WidthType): Style;
|
|
2106
|
+
/**
|
|
2107
|
+
* @param {number} v
|
|
2108
|
+
* @param {WidthType} t
|
|
2109
|
+
* @returns {Style}
|
|
2110
|
+
*/
|
|
743
2111
|
cell_margin_left(v: number, t: WidthType): Style;
|
|
2112
|
+
/**
|
|
2113
|
+
* @param {TableLayoutType} t
|
|
2114
|
+
* @returns {Style}
|
|
2115
|
+
*/
|
|
744
2116
|
layout(t: TableLayoutType): Style;
|
|
2117
|
+
/**
|
|
2118
|
+
* @param {string} wrap
|
|
2119
|
+
* @returns {Style}
|
|
2120
|
+
*/
|
|
745
2121
|
wrap(wrap: string): Style;
|
|
2122
|
+
/**
|
|
2123
|
+
* @param {string} anchor
|
|
2124
|
+
* @returns {Style}
|
|
2125
|
+
*/
|
|
746
2126
|
v_anchor(anchor: string): Style;
|
|
2127
|
+
/**
|
|
2128
|
+
* @param {string} anchor
|
|
2129
|
+
* @returns {Style}
|
|
2130
|
+
*/
|
|
747
2131
|
h_anchor(anchor: string): Style;
|
|
2132
|
+
/**
|
|
2133
|
+
* @param {string} r
|
|
2134
|
+
* @returns {Style}
|
|
2135
|
+
*/
|
|
748
2136
|
h_rule(r: string): Style;
|
|
2137
|
+
/**
|
|
2138
|
+
* @param {string} align
|
|
2139
|
+
* @returns {Style}
|
|
2140
|
+
*/
|
|
749
2141
|
x_align(align: string): Style;
|
|
2142
|
+
/**
|
|
2143
|
+
* @param {string} align
|
|
2144
|
+
* @returns {Style}
|
|
2145
|
+
*/
|
|
750
2146
|
y_align(align: string): Style;
|
|
2147
|
+
/**
|
|
2148
|
+
* @param {number} x
|
|
2149
|
+
* @returns {Style}
|
|
2150
|
+
*/
|
|
751
2151
|
h_space(x: number): Style;
|
|
2152
|
+
/**
|
|
2153
|
+
* @param {number} x
|
|
2154
|
+
* @returns {Style}
|
|
2155
|
+
*/
|
|
752
2156
|
v_space(x: number): Style;
|
|
2157
|
+
/**
|
|
2158
|
+
* @param {number} x
|
|
2159
|
+
* @returns {Style}
|
|
2160
|
+
*/
|
|
753
2161
|
frame_x(x: number): Style;
|
|
2162
|
+
/**
|
|
2163
|
+
* @param {number} y
|
|
2164
|
+
* @returns {Style}
|
|
2165
|
+
*/
|
|
754
2166
|
frame_y(y: number): Style;
|
|
2167
|
+
/**
|
|
2168
|
+
* @param {number} n
|
|
2169
|
+
* @returns {Style}
|
|
2170
|
+
*/
|
|
755
2171
|
frame_width(n: number): Style;
|
|
2172
|
+
/**
|
|
2173
|
+
* @param {number} n
|
|
2174
|
+
* @returns {Style}
|
|
2175
|
+
*/
|
|
756
2176
|
frame_height(n: number): Style;
|
|
757
2177
|
}
|
|
2178
|
+
/**
|
|
2179
|
+
*/
|
|
758
2180
|
export class Table {
|
|
759
|
-
private constructor();
|
|
760
2181
|
free(): void;
|
|
2182
|
+
/**
|
|
2183
|
+
* @param {TableRow} row
|
|
2184
|
+
* @returns {Table}
|
|
2185
|
+
*/
|
|
761
2186
|
add_row(row: TableRow): Table;
|
|
2187
|
+
/**
|
|
2188
|
+
* @param {Uint32Array} grid
|
|
2189
|
+
* @returns {Table}
|
|
2190
|
+
*/
|
|
762
2191
|
set_grid(grid: Uint32Array): Table;
|
|
2192
|
+
/**
|
|
2193
|
+
* @param {string} style_id
|
|
2194
|
+
* @returns {Table}
|
|
2195
|
+
*/
|
|
763
2196
|
style(style_id: string): Table;
|
|
2197
|
+
/**
|
|
2198
|
+
* @param {number} v
|
|
2199
|
+
* @returns {Table}
|
|
2200
|
+
*/
|
|
764
2201
|
indent(v: number): Table;
|
|
2202
|
+
/**
|
|
2203
|
+
* @param {TableAlignmentType} v
|
|
2204
|
+
* @returns {Table}
|
|
2205
|
+
*/
|
|
765
2206
|
align(v: TableAlignmentType): Table;
|
|
2207
|
+
/**
|
|
2208
|
+
* @param {number} w
|
|
2209
|
+
* @returns {Table}
|
|
2210
|
+
*/
|
|
766
2211
|
width(w: number): Table;
|
|
2212
|
+
/**
|
|
2213
|
+
* @param {TableLayoutType} t
|
|
2214
|
+
* @returns {Table}
|
|
2215
|
+
*/
|
|
767
2216
|
layout(t: TableLayoutType): Table;
|
|
2217
|
+
/**
|
|
2218
|
+
* @param {TablePositionProperty} p
|
|
2219
|
+
* @returns {Table}
|
|
2220
|
+
*/
|
|
768
2221
|
position(p: TablePositionProperty): Table;
|
|
2222
|
+
/**
|
|
2223
|
+
* @param {number} top
|
|
2224
|
+
* @param {number} right
|
|
2225
|
+
* @param {number} bottom
|
|
2226
|
+
* @param {number} left
|
|
2227
|
+
* @returns {Table}
|
|
2228
|
+
*/
|
|
769
2229
|
set_cell_margins(top: number, right: number, bottom: number, left: number): Table;
|
|
2230
|
+
/**
|
|
2231
|
+
* @param {number} v
|
|
2232
|
+
* @param {WidthType} t
|
|
2233
|
+
* @returns {Table}
|
|
2234
|
+
*/
|
|
770
2235
|
cell_margin_top(v: number, t: WidthType): Table;
|
|
2236
|
+
/**
|
|
2237
|
+
* @param {number} v
|
|
2238
|
+
* @param {WidthType} t
|
|
2239
|
+
* @returns {Table}
|
|
2240
|
+
*/
|
|
771
2241
|
cell_margin_right(v: number, t: WidthType): Table;
|
|
2242
|
+
/**
|
|
2243
|
+
* @param {number} v
|
|
2244
|
+
* @param {WidthType} t
|
|
2245
|
+
* @returns {Table}
|
|
2246
|
+
*/
|
|
772
2247
|
cell_margin_bottom(v: number, t: WidthType): Table;
|
|
2248
|
+
/**
|
|
2249
|
+
* @param {number} v
|
|
2250
|
+
* @param {WidthType} t
|
|
2251
|
+
* @returns {Table}
|
|
2252
|
+
*/
|
|
773
2253
|
cell_margin_left(v: number, t: WidthType): Table;
|
|
774
2254
|
}
|
|
2255
|
+
/**
|
|
2256
|
+
*/
|
|
775
2257
|
export class TableCell {
|
|
776
|
-
private constructor();
|
|
777
2258
|
free(): void;
|
|
2259
|
+
/**
|
|
2260
|
+
* @param {Paragraph} p
|
|
2261
|
+
* @returns {TableCell}
|
|
2262
|
+
*/
|
|
778
2263
|
add_paragraph(p: Paragraph): TableCell;
|
|
2264
|
+
/**
|
|
2265
|
+
* @param {Table} t
|
|
2266
|
+
* @returns {TableCell}
|
|
2267
|
+
*/
|
|
779
2268
|
add_table(t: Table): TableCell;
|
|
2269
|
+
/**
|
|
2270
|
+
* @param {TableOfContents} t
|
|
2271
|
+
* @returns {TableCell}
|
|
2272
|
+
*/
|
|
780
2273
|
add_table_of_contents(t: TableOfContents): TableCell;
|
|
2274
|
+
/**
|
|
2275
|
+
* @param {VMergeType} t
|
|
2276
|
+
* @returns {TableCell}
|
|
2277
|
+
*/
|
|
781
2278
|
vertical_merge(t: VMergeType): TableCell;
|
|
2279
|
+
/**
|
|
2280
|
+
* @param {VAlignType} t
|
|
2281
|
+
* @returns {TableCell}
|
|
2282
|
+
*/
|
|
782
2283
|
vertical_align(t: VAlignType): TableCell;
|
|
2284
|
+
/**
|
|
2285
|
+
* @param {number} v
|
|
2286
|
+
* @returns {TableCell}
|
|
2287
|
+
*/
|
|
783
2288
|
grid_span(v: number): TableCell;
|
|
2289
|
+
/**
|
|
2290
|
+
* @param {number} v
|
|
2291
|
+
* @returns {TableCell}
|
|
2292
|
+
*/
|
|
784
2293
|
width(v: number): TableCell;
|
|
2294
|
+
/**
|
|
2295
|
+
* @param {string} t
|
|
2296
|
+
* @param {string} color
|
|
2297
|
+
* @param {string} fill
|
|
2298
|
+
* @returns {TableCell}
|
|
2299
|
+
*/
|
|
785
2300
|
shading(t: string, color: string, fill: string): TableCell;
|
|
2301
|
+
/**
|
|
2302
|
+
* @param {TextDirectionType} t
|
|
2303
|
+
* @returns {TableCell}
|
|
2304
|
+
*/
|
|
786
2305
|
text_direction(t: TextDirectionType): TableCell;
|
|
2306
|
+
/**
|
|
2307
|
+
* @param {TableCellBorder} border
|
|
2308
|
+
* @returns {TableCell}
|
|
2309
|
+
*/
|
|
787
2310
|
set_border(border: TableCellBorder): TableCell;
|
|
2311
|
+
/**
|
|
2312
|
+
* @param {TableCellBorderPosition} position
|
|
2313
|
+
* @returns {TableCell}
|
|
2314
|
+
*/
|
|
788
2315
|
clear_border(position: TableCellBorderPosition): TableCell;
|
|
2316
|
+
/**
|
|
2317
|
+
* @returns {TableCell}
|
|
2318
|
+
*/
|
|
789
2319
|
clear_all_border(): TableCell;
|
|
2320
|
+
/**
|
|
2321
|
+
* @param {number} v
|
|
2322
|
+
* @param {WidthType} t
|
|
2323
|
+
* @returns {TableCell}
|
|
2324
|
+
*/
|
|
790
2325
|
margin_top(v: number, t: WidthType): TableCell;
|
|
2326
|
+
/**
|
|
2327
|
+
* @param {number} v
|
|
2328
|
+
* @param {WidthType} t
|
|
2329
|
+
* @returns {TableCell}
|
|
2330
|
+
*/
|
|
791
2331
|
margin_right(v: number, t: WidthType): TableCell;
|
|
2332
|
+
/**
|
|
2333
|
+
* @param {number} v
|
|
2334
|
+
* @param {WidthType} t
|
|
2335
|
+
* @returns {TableCell}
|
|
2336
|
+
*/
|
|
792
2337
|
margin_bottom(v: number, t: WidthType): TableCell;
|
|
2338
|
+
/**
|
|
2339
|
+
* @param {number} v
|
|
2340
|
+
* @param {WidthType} t
|
|
2341
|
+
* @returns {TableCell}
|
|
2342
|
+
*/
|
|
793
2343
|
margin_left(v: number, t: WidthType): TableCell;
|
|
794
2344
|
}
|
|
2345
|
+
/**
|
|
2346
|
+
*/
|
|
795
2347
|
export class TableCellBorder {
|
|
796
|
-
private constructor();
|
|
797
2348
|
free(): void;
|
|
2349
|
+
/**
|
|
2350
|
+
* @param {number} size
|
|
2351
|
+
* @returns {TableCellBorder}
|
|
2352
|
+
*/
|
|
798
2353
|
size(size: number): TableCellBorder;
|
|
2354
|
+
/**
|
|
2355
|
+
* @param {string} color
|
|
2356
|
+
* @returns {TableCellBorder}
|
|
2357
|
+
*/
|
|
799
2358
|
color(color: string): TableCellBorder;
|
|
2359
|
+
/**
|
|
2360
|
+
* @param {BorderType} border_type
|
|
2361
|
+
* @returns {TableCellBorder}
|
|
2362
|
+
*/
|
|
800
2363
|
border_type(border_type: BorderType): TableCellBorder;
|
|
2364
|
+
/**
|
|
2365
|
+
* @returns {number}
|
|
2366
|
+
*/
|
|
801
2367
|
get_size(): number;
|
|
2368
|
+
/**
|
|
2369
|
+
* @returns {string}
|
|
2370
|
+
*/
|
|
802
2371
|
get_color(): string;
|
|
2372
|
+
/**
|
|
2373
|
+
* @returns {BorderType}
|
|
2374
|
+
*/
|
|
803
2375
|
get_border_type(): BorderType;
|
|
804
2376
|
}
|
|
2377
|
+
/**
|
|
2378
|
+
*/
|
|
805
2379
|
export class TableCellProperty {
|
|
806
|
-
private constructor();
|
|
807
2380
|
free(): void;
|
|
808
2381
|
}
|
|
2382
|
+
/**
|
|
2383
|
+
*/
|
|
809
2384
|
export class TableOfContents {
|
|
810
|
-
private constructor();
|
|
811
2385
|
free(): void;
|
|
2386
|
+
/**
|
|
2387
|
+
* @param {number} start
|
|
2388
|
+
* @param {number} end
|
|
2389
|
+
* @returns {TableOfContents}
|
|
2390
|
+
*/
|
|
812
2391
|
heading_styles_range(start: number, end: number): TableOfContents;
|
|
813
|
-
|
|
2392
|
+
/**
|
|
2393
|
+
* @param {string | undefined} [f]
|
|
2394
|
+
* @returns {TableOfContents}
|
|
2395
|
+
*/
|
|
2396
|
+
tc_field_identifier(f?: string): TableOfContents;
|
|
2397
|
+
/**
|
|
2398
|
+
* @param {string} style
|
|
2399
|
+
* @param {number} level
|
|
2400
|
+
* @returns {TableOfContents}
|
|
2401
|
+
*/
|
|
814
2402
|
add_style_with_level(style: string, level: number): TableOfContents;
|
|
2403
|
+
/**
|
|
2404
|
+
* @returns {TableOfContents}
|
|
2405
|
+
*/
|
|
815
2406
|
hyperlink(): TableOfContents;
|
|
2407
|
+
/**
|
|
2408
|
+
* @param {string} a
|
|
2409
|
+
* @returns {TableOfContents}
|
|
2410
|
+
*/
|
|
816
2411
|
alias(a: string): TableOfContents;
|
|
2412
|
+
/**
|
|
2413
|
+
* @param {string} a
|
|
2414
|
+
* @returns {TableOfContents}
|
|
2415
|
+
*/
|
|
817
2416
|
page_ref_placeholder(a: string): TableOfContents;
|
|
2417
|
+
/**
|
|
2418
|
+
* @param {TableOfContentsItem} t
|
|
2419
|
+
* @returns {TableOfContents}
|
|
2420
|
+
*/
|
|
818
2421
|
add_item(t: TableOfContentsItem): TableOfContents;
|
|
2422
|
+
/**
|
|
2423
|
+
* @returns {TableOfContents}
|
|
2424
|
+
*/
|
|
819
2425
|
auto(): TableOfContents;
|
|
2426
|
+
/**
|
|
2427
|
+
* @returns {TableOfContents}
|
|
2428
|
+
*/
|
|
820
2429
|
dirty(): TableOfContents;
|
|
2430
|
+
/**
|
|
2431
|
+
* @returns {TableOfContents}
|
|
2432
|
+
*/
|
|
821
2433
|
without_sdt(): TableOfContents;
|
|
2434
|
+
/**
|
|
2435
|
+
* @param {string} author
|
|
2436
|
+
* @param {string} date
|
|
2437
|
+
* @returns {TableOfContents}
|
|
2438
|
+
*/
|
|
822
2439
|
delete(author: string, date: string): TableOfContents;
|
|
2440
|
+
/**
|
|
2441
|
+
* @param {Paragraph} p
|
|
2442
|
+
* @returns {TableOfContents}
|
|
2443
|
+
*/
|
|
823
2444
|
add_before_paragraph(p: Paragraph): TableOfContents;
|
|
2445
|
+
/**
|
|
2446
|
+
* @param {Paragraph} p
|
|
2447
|
+
* @returns {TableOfContents}
|
|
2448
|
+
*/
|
|
824
2449
|
add_after_paragraph(p: Paragraph): TableOfContents;
|
|
2450
|
+
/**
|
|
2451
|
+
* @param {Table} t
|
|
2452
|
+
* @returns {TableOfContents}
|
|
2453
|
+
*/
|
|
825
2454
|
add_before_table(t: Table): TableOfContents;
|
|
2455
|
+
/**
|
|
2456
|
+
* @param {Table} t
|
|
2457
|
+
* @returns {TableOfContents}
|
|
2458
|
+
*/
|
|
826
2459
|
add_after_table(t: Table): TableOfContents;
|
|
2460
|
+
/**
|
|
2461
|
+
* @param {ParagraphProperty} p
|
|
2462
|
+
* @returns {TableOfContents}
|
|
2463
|
+
*/
|
|
827
2464
|
paragraph_property(p: ParagraphProperty): TableOfContents;
|
|
828
2465
|
}
|
|
2466
|
+
/**
|
|
2467
|
+
*/
|
|
829
2468
|
export class TableOfContentsItem {
|
|
830
|
-
private constructor();
|
|
831
2469
|
free(): void;
|
|
2470
|
+
/**
|
|
2471
|
+
* @param {string} a
|
|
2472
|
+
* @returns {TableOfContentsItem}
|
|
2473
|
+
*/
|
|
832
2474
|
text(a: string): TableOfContentsItem;
|
|
2475
|
+
/**
|
|
2476
|
+
* @param {string} a
|
|
2477
|
+
* @returns {TableOfContentsItem}
|
|
2478
|
+
*/
|
|
833
2479
|
toc_key(a: string): TableOfContentsItem;
|
|
2480
|
+
/**
|
|
2481
|
+
* @param {number} l
|
|
2482
|
+
* @returns {TableOfContentsItem}
|
|
2483
|
+
*/
|
|
834
2484
|
level(l: number): TableOfContentsItem;
|
|
2485
|
+
/**
|
|
2486
|
+
* @param {string} a
|
|
2487
|
+
* @returns {TableOfContentsItem}
|
|
2488
|
+
*/
|
|
835
2489
|
page_ref(a: string): TableOfContentsItem;
|
|
836
2490
|
}
|
|
2491
|
+
/**
|
|
2492
|
+
*/
|
|
837
2493
|
export class TablePositionProperty {
|
|
838
|
-
private constructor();
|
|
839
2494
|
free(): void;
|
|
2495
|
+
/**
|
|
2496
|
+
* @param {number} v
|
|
2497
|
+
* @returns {TablePositionProperty}
|
|
2498
|
+
*/
|
|
840
2499
|
left_from_text(v: number): TablePositionProperty;
|
|
2500
|
+
/**
|
|
2501
|
+
* @param {number} v
|
|
2502
|
+
* @returns {TablePositionProperty}
|
|
2503
|
+
*/
|
|
841
2504
|
right_from_text(v: number): TablePositionProperty;
|
|
2505
|
+
/**
|
|
2506
|
+
* @param {string} v
|
|
2507
|
+
* @returns {TablePositionProperty}
|
|
2508
|
+
*/
|
|
842
2509
|
vertical_anchor(v: string): TablePositionProperty;
|
|
2510
|
+
/**
|
|
2511
|
+
* @param {string} v
|
|
2512
|
+
* @returns {TablePositionProperty}
|
|
2513
|
+
*/
|
|
843
2514
|
horizontal_anchor(v: string): TablePositionProperty;
|
|
2515
|
+
/**
|
|
2516
|
+
* @param {string} v
|
|
2517
|
+
* @returns {TablePositionProperty}
|
|
2518
|
+
*/
|
|
844
2519
|
position_x_alignment(v: string): TablePositionProperty;
|
|
2520
|
+
/**
|
|
2521
|
+
* @param {string} v
|
|
2522
|
+
* @returns {TablePositionProperty}
|
|
2523
|
+
*/
|
|
845
2524
|
position_y_alignment(v: string): TablePositionProperty;
|
|
2525
|
+
/**
|
|
2526
|
+
* @param {number} v
|
|
2527
|
+
* @returns {TablePositionProperty}
|
|
2528
|
+
*/
|
|
846
2529
|
position_x(v: number): TablePositionProperty;
|
|
2530
|
+
/**
|
|
2531
|
+
* @param {number} v
|
|
2532
|
+
* @returns {TablePositionProperty}
|
|
2533
|
+
*/
|
|
847
2534
|
position_y(v: number): TablePositionProperty;
|
|
848
2535
|
}
|
|
2536
|
+
/**
|
|
2537
|
+
*/
|
|
849
2538
|
export class TableProperty {
|
|
850
|
-
private constructor();
|
|
851
2539
|
free(): void;
|
|
852
2540
|
}
|
|
2541
|
+
/**
|
|
2542
|
+
*/
|
|
853
2543
|
export class TableRow {
|
|
854
|
-
private constructor();
|
|
855
2544
|
free(): void;
|
|
2545
|
+
/**
|
|
2546
|
+
* @param {TableCell} cell
|
|
2547
|
+
* @returns {TableRow}
|
|
2548
|
+
*/
|
|
856
2549
|
add_cell(cell: TableCell): TableRow;
|
|
2550
|
+
/**
|
|
2551
|
+
* @param {number} h
|
|
2552
|
+
* @returns {TableRow}
|
|
2553
|
+
*/
|
|
857
2554
|
row_height(h: number): TableRow;
|
|
2555
|
+
/**
|
|
2556
|
+
* @param {HeightRule} r
|
|
2557
|
+
* @returns {TableRow}
|
|
2558
|
+
*/
|
|
858
2559
|
height_rule(r: HeightRule): TableRow;
|
|
2560
|
+
/**
|
|
2561
|
+
* @param {string} author
|
|
2562
|
+
* @param {string} date
|
|
2563
|
+
* @returns {TableRow}
|
|
2564
|
+
*/
|
|
859
2565
|
delete(author: string, date: string): TableRow;
|
|
2566
|
+
/**
|
|
2567
|
+
* @param {string} author
|
|
2568
|
+
* @param {string} date
|
|
2569
|
+
* @returns {TableRow}
|
|
2570
|
+
*/
|
|
860
2571
|
insert(author: string, date: string): TableRow;
|
|
861
2572
|
}
|
|
2573
|
+
/**
|
|
2574
|
+
*/
|
|
862
2575
|
export class WebExtension {
|
|
863
|
-
private constructor();
|
|
864
2576
|
free(): void;
|
|
2577
|
+
/**
|
|
2578
|
+
* @param {string} name
|
|
2579
|
+
* @param {string} value
|
|
2580
|
+
* @returns {WebExtension}
|
|
2581
|
+
*/
|
|
865
2582
|
property(name: string, value: string): WebExtension;
|
|
866
2583
|
}
|