@girs/gsf-1 1.0.0-3.0.0-beta.12
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/README.md +31 -0
- package/gsf-1.cjs +9 -0
- package/gsf-1.d.cts +3991 -0
- package/gsf-1.d.ts +3996 -0
- package/gsf-1.js +8 -0
- package/package.json +55 -0
- package/tsconfig.doc.json +19 -0
package/gsf-1.d.ts
ADDED
|
@@ -0,0 +1,3996 @@
|
|
|
1
|
+
|
|
2
|
+
/*
|
|
3
|
+
* Type Definitions for Gjs (https://gjs.guide/)
|
|
4
|
+
*
|
|
5
|
+
* These type definitions are automatically generated, do not edit them by hand.
|
|
6
|
+
* If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gjs
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Gsf-1
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import type libxml2 from '@girs/libxml2-2.0';
|
|
13
|
+
import type Gio from '@girs/gio-2.0';
|
|
14
|
+
import type GObject from '@girs/gobject-2.0';
|
|
15
|
+
import type GLib from '@girs/glib-2.0';
|
|
16
|
+
|
|
17
|
+
export namespace Gsf {
|
|
18
|
+
|
|
19
|
+
enum ClipFormat {
|
|
20
|
+
/**
|
|
21
|
+
* Windows clipboard format
|
|
22
|
+
*/
|
|
23
|
+
WINDOWS_CLIPBOARD,
|
|
24
|
+
/**
|
|
25
|
+
* Macintosh clipboard format
|
|
26
|
+
*/
|
|
27
|
+
MACINTOSH_CLIPBOARD,
|
|
28
|
+
/**
|
|
29
|
+
* GUID that contains a format identifier
|
|
30
|
+
*/
|
|
31
|
+
GUID,
|
|
32
|
+
/**
|
|
33
|
+
* No clipboard data
|
|
34
|
+
*/
|
|
35
|
+
NO_DATA,
|
|
36
|
+
/**
|
|
37
|
+
* Custom clipboard format
|
|
38
|
+
*/
|
|
39
|
+
CLIPBOARD_FORMAT_NAME,
|
|
40
|
+
/**
|
|
41
|
+
* Unknown clipboard type or invalid data
|
|
42
|
+
*/
|
|
43
|
+
UNKNOWN,
|
|
44
|
+
}
|
|
45
|
+
enum ClipFormatWindows {
|
|
46
|
+
/**
|
|
47
|
+
* error
|
|
48
|
+
*/
|
|
49
|
+
ERROR,
|
|
50
|
+
/**
|
|
51
|
+
* unknown
|
|
52
|
+
*/
|
|
53
|
+
UNKNOWN,
|
|
54
|
+
/**
|
|
55
|
+
* CF_METAFILEPICT
|
|
56
|
+
*/
|
|
57
|
+
METAFILE,
|
|
58
|
+
/**
|
|
59
|
+
* CF_DIB
|
|
60
|
+
*/
|
|
61
|
+
DIB,
|
|
62
|
+
/**
|
|
63
|
+
* CF_ENHMETAFILE
|
|
64
|
+
*/
|
|
65
|
+
ENHANCED_METAFILE,
|
|
66
|
+
}
|
|
67
|
+
enum Error {
|
|
68
|
+
/**
|
|
69
|
+
* Memory allocation failed
|
|
70
|
+
*/
|
|
71
|
+
OUT_OF_MEMORY,
|
|
72
|
+
/**
|
|
73
|
+
* Invalid data encountered (e.g. not enough data)
|
|
74
|
+
*/
|
|
75
|
+
INVALID_DATA,
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Controls when to add quotes around fields.
|
|
79
|
+
*/
|
|
80
|
+
enum OutputCsvQuotingMode {
|
|
81
|
+
/**
|
|
82
|
+
* never add quotes around fields
|
|
83
|
+
*/
|
|
84
|
+
NEVER,
|
|
85
|
+
/**
|
|
86
|
+
* add quotes around fields when needed
|
|
87
|
+
*/
|
|
88
|
+
AUTO,
|
|
89
|
+
/**
|
|
90
|
+
* always add quotes around fields
|
|
91
|
+
*/
|
|
92
|
+
ALWAYS,
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Controls the handling of character data within a parser node.
|
|
96
|
+
*/
|
|
97
|
+
enum XMLContent {
|
|
98
|
+
/**
|
|
99
|
+
* node has no cstr contents
|
|
100
|
+
*/
|
|
101
|
+
NO_CONTENT,
|
|
102
|
+
/**
|
|
103
|
+
* node has cstr contents
|
|
104
|
+
*/
|
|
105
|
+
CONTENT,
|
|
106
|
+
/**
|
|
107
|
+
* node has contents that is shared with children
|
|
108
|
+
*/
|
|
109
|
+
SHARED_CONTENT,
|
|
110
|
+
/**
|
|
111
|
+
* node is second or later occurrence
|
|
112
|
+
*/
|
|
113
|
+
TODO_2ND,
|
|
114
|
+
}
|
|
115
|
+
enum ZipCompressionMethod {
|
|
116
|
+
STORED,
|
|
117
|
+
SHRUNK,
|
|
118
|
+
REDUCEDX1,
|
|
119
|
+
REDUCEDX2,
|
|
120
|
+
REDUCEDX3,
|
|
121
|
+
REDUCEDX4,
|
|
122
|
+
IMPLODED,
|
|
123
|
+
TOKENIZED,
|
|
124
|
+
DEFLATED,
|
|
125
|
+
DEFLATED_BETTER,
|
|
126
|
+
IMPLODED_BETTER,
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* (Integer) Count of bytes in the document.
|
|
130
|
+
*/
|
|
131
|
+
const META_NAME_BYTE_COUNT: string | null
|
|
132
|
+
/**
|
|
133
|
+
* (Unsigned Integer) Identifier representing the case-sensitiveness.
|
|
134
|
+
* <note>of what ?? why is it an integer ??</note>
|
|
135
|
+
*/
|
|
136
|
+
const META_NAME_CASE_SENSITIVE: string | null
|
|
137
|
+
/**
|
|
138
|
+
* (String) Category of the document. <note>example???</note>
|
|
139
|
+
*/
|
|
140
|
+
const META_NAME_CATEGORY: string | null
|
|
141
|
+
/**
|
|
142
|
+
* (Integer) Count of cells in the spread-sheet document, if appropriate.
|
|
143
|
+
*/
|
|
144
|
+
const META_NAME_CELL_COUNT: string | null
|
|
145
|
+
/**
|
|
146
|
+
* (Integer) Count of characters in the document.
|
|
147
|
+
*
|
|
148
|
+
* TODO See how to sync this with ODF's document-statistic
|
|
149
|
+
*/
|
|
150
|
+
const META_NAME_CHARACTER_COUNT: string | null
|
|
151
|
+
/**
|
|
152
|
+
* (UnsignedShort) The MS codepage to encode strings for metadata
|
|
153
|
+
* 1.14.0 Clarified that this is unique from _NAME_CODEPAGE in msole
|
|
154
|
+
*/
|
|
155
|
+
const META_NAME_CODEPAGE: string | null
|
|
156
|
+
/**
|
|
157
|
+
* (String) Name of the company/organization that the "CREATOR" entity is
|
|
158
|
+
* associated with.
|
|
159
|
+
*
|
|
160
|
+
* 1.14.1 Moved from "gsf:company" to "dc:publisher".
|
|
161
|
+
*/
|
|
162
|
+
const META_NAME_COMPANY: string | null
|
|
163
|
+
/**
|
|
164
|
+
* (String) An entity primarily responsible for making the content of the
|
|
165
|
+
* resource typically a person, organization, or service.
|
|
166
|
+
*
|
|
167
|
+
* 1.14.0 Moved from "gsf" to "dc".
|
|
168
|
+
*/
|
|
169
|
+
const META_NAME_CREATOR: string | null
|
|
170
|
+
/**
|
|
171
|
+
* (Date as ISO String) A date associated with an event in the life cycle of
|
|
172
|
+
* the resource (creation/publication date).
|
|
173
|
+
* Moved from gsf:date-created to meta:creation-date. This way can be used correctly
|
|
174
|
+
* by OpenDocument and Gnumeric.
|
|
175
|
+
*/
|
|
176
|
+
const META_NAME_DATE_CREATED: string | null
|
|
177
|
+
/**
|
|
178
|
+
* (GsfTimestamp) The last time this document was saved.
|
|
179
|
+
*
|
|
180
|
+
* 1.14.0 Moved from dc:date-modified to dc:date.
|
|
181
|
+
*/
|
|
182
|
+
const META_NAME_DATE_MODIFIED: string | null
|
|
183
|
+
/**
|
|
184
|
+
* (String) An account of the content of the resource.
|
|
185
|
+
*/
|
|
186
|
+
const META_NAME_DESCRIPTION: string | null
|
|
187
|
+
/**
|
|
188
|
+
* (None) Reserved name (PID) for Dictionary
|
|
189
|
+
*/
|
|
190
|
+
const META_NAME_DICTIONARY: string | null
|
|
191
|
+
/**
|
|
192
|
+
* (Vector of strings) Names of the 'interesting' parts of the document. In
|
|
193
|
+
* spreadsheets this is a list of the sheet names, and the named expressions.
|
|
194
|
+
* From MSOLE
|
|
195
|
+
*/
|
|
196
|
+
const META_NAME_DOCUMENT_PARTS: string | null
|
|
197
|
+
/**
|
|
198
|
+
* (Date as ISO String) The total-time taken until the last modification.
|
|
199
|
+
* Moved from "gsf" to "meta". This way can be used correctly by OpenDocument
|
|
200
|
+
* and Gnumeric.
|
|
201
|
+
*/
|
|
202
|
+
const META_NAME_EDITING_DURATION: string | null
|
|
203
|
+
/**
|
|
204
|
+
* (String) The application that generated this document. AbiWord, Gnumeric,
|
|
205
|
+
* etc...
|
|
206
|
+
*
|
|
207
|
+
* 1.14.0 Moved from "gsf" to "meta".
|
|
208
|
+
*/
|
|
209
|
+
const META_NAME_GENERATOR: string | null
|
|
210
|
+
/**
|
|
211
|
+
* (Vector of string value pairs stored in alternating elements) Store the
|
|
212
|
+
* counts of objects in the document as names 'worksheet' and count '4'
|
|
213
|
+
* From MSOLE
|
|
214
|
+
*/
|
|
215
|
+
const META_NAME_HEADING_PAIRS: string | null
|
|
216
|
+
/**
|
|
217
|
+
* (Integer) Count of hidden-slides in the presentation document.
|
|
218
|
+
*/
|
|
219
|
+
const META_NAME_HIDDEN_SLIDE_COUNT: string | null
|
|
220
|
+
/**
|
|
221
|
+
* (Integer) Count of images in the document, if appropriate.
|
|
222
|
+
*/
|
|
223
|
+
const META_NAME_IMAGE_COUNT: string | null
|
|
224
|
+
/**
|
|
225
|
+
* (String) Specifies the name of the person who created the document
|
|
226
|
+
* initially.
|
|
227
|
+
* 1.14.0 Moved from "gsf" to "meta".
|
|
228
|
+
*/
|
|
229
|
+
const META_NAME_INITIAL_CREATOR: string | null
|
|
230
|
+
/**
|
|
231
|
+
* (String) Searchable, indexable keywords. Similar to PDF keywords or HTML's
|
|
232
|
+
* meta block.
|
|
233
|
+
*/
|
|
234
|
+
const META_NAME_KEYWORD: string | null
|
|
235
|
+
/**
|
|
236
|
+
* (GsfDocPropVector of String) Searchable, indexable keywords. Similar to PDF
|
|
237
|
+
* keywords or HTML's meta block.
|
|
238
|
+
*/
|
|
239
|
+
const META_NAME_KEYWORDS: string | null
|
|
240
|
+
/**
|
|
241
|
+
* (String) The locale language of the intellectual content of the resource
|
|
242
|
+
* (basically xx_YY form for us).
|
|
243
|
+
* 1.14.0 Clarified that this is unique from _NAME_CODEPAGE in msole
|
|
244
|
+
*/
|
|
245
|
+
const META_NAME_LANGUAGE: string | null
|
|
246
|
+
/**
|
|
247
|
+
* (GSF_META_NAME_HEADING_PAIRS) The last time this document was printed.
|
|
248
|
+
*
|
|
249
|
+
* 1.14.0 Moved from "gsf" to "dc".
|
|
250
|
+
* 1.14.1 Moved back to "gsf" from "dc".
|
|
251
|
+
*/
|
|
252
|
+
const META_NAME_LAST_PRINTED: string | null
|
|
253
|
+
/**
|
|
254
|
+
* (String) The entity that made the last change to the document, typically a
|
|
255
|
+
* person, organization, or service.
|
|
256
|
+
*/
|
|
257
|
+
const META_NAME_LAST_SAVED_BY: string | null
|
|
258
|
+
/**
|
|
259
|
+
* (Integer) Count of liness in the document.
|
|
260
|
+
*/
|
|
261
|
+
const META_NAME_LINE_COUNT: string | null
|
|
262
|
+
/**
|
|
263
|
+
* (Boolean) ???????
|
|
264
|
+
*/
|
|
265
|
+
const META_NAME_LINKS_DIRTY: string | null
|
|
266
|
+
/**
|
|
267
|
+
* (Unsigned Integer) Identifier representing the default system locale.
|
|
268
|
+
*/
|
|
269
|
+
const META_NAME_LOCALE_SYSTEM_DEFAULT: string | null
|
|
270
|
+
/**
|
|
271
|
+
* (String) Name of the manager of "CREATOR" entity.
|
|
272
|
+
*/
|
|
273
|
+
const META_NAME_MANAGER: string | null
|
|
274
|
+
/**
|
|
275
|
+
* (Integer) Count of "multi-media" clips in the document.
|
|
276
|
+
*/
|
|
277
|
+
const META_NAME_MM_CLIP_COUNT: string | null
|
|
278
|
+
/**
|
|
279
|
+
* (Unknown) User-defined name
|
|
280
|
+
*/
|
|
281
|
+
const META_NAME_MSOLE_UNKNOWN_17: string | null
|
|
282
|
+
/**
|
|
283
|
+
* (Unknown) User-defined name
|
|
284
|
+
*/
|
|
285
|
+
const META_NAME_MSOLE_UNKNOWN_18: string | null
|
|
286
|
+
/**
|
|
287
|
+
* (Boolean) User-defined name
|
|
288
|
+
*/
|
|
289
|
+
const META_NAME_MSOLE_UNKNOWN_19: string | null
|
|
290
|
+
/**
|
|
291
|
+
* (Unknown) User-defined name
|
|
292
|
+
*/
|
|
293
|
+
const META_NAME_MSOLE_UNKNOWN_20: string | null
|
|
294
|
+
/**
|
|
295
|
+
* (Unknown) User-defined name
|
|
296
|
+
*/
|
|
297
|
+
const META_NAME_MSOLE_UNKNOWN_21: string | null
|
|
298
|
+
/**
|
|
299
|
+
* (Boolean) User-defined name
|
|
300
|
+
*/
|
|
301
|
+
const META_NAME_MSOLE_UNKNOWN_22: string | null
|
|
302
|
+
/**
|
|
303
|
+
* (i4) User-defined name
|
|
304
|
+
*/
|
|
305
|
+
const META_NAME_MSOLE_UNKNOWN_23: string | null
|
|
306
|
+
/**
|
|
307
|
+
* (Integer) Count of "notes" in the document.
|
|
308
|
+
*/
|
|
309
|
+
const META_NAME_NOTE_COUNT: string | null
|
|
310
|
+
/**
|
|
311
|
+
* (Integer) Count of objects (OLE and other graphics) in the document, if
|
|
312
|
+
* appropriate.
|
|
313
|
+
*/
|
|
314
|
+
const META_NAME_OBJECT_COUNT: string | null
|
|
315
|
+
/**
|
|
316
|
+
* (Integer) Count of pages in the document, if appropriate.
|
|
317
|
+
*/
|
|
318
|
+
const META_NAME_PAGE_COUNT: string | null
|
|
319
|
+
/**
|
|
320
|
+
* (Integer) Count of paragraphs in the document, if appropriate.
|
|
321
|
+
*/
|
|
322
|
+
const META_NAME_PARAGRAPH_COUNT: string | null
|
|
323
|
+
/**
|
|
324
|
+
* (String) Type of presentation, like "On-screen Show", "SlideView" etc.
|
|
325
|
+
*/
|
|
326
|
+
const META_NAME_PRESENTATION_FORMAT: string | null
|
|
327
|
+
/**
|
|
328
|
+
* (String) Specifies the name of the last person who printed the document.
|
|
329
|
+
*
|
|
330
|
+
* 1.14.0 Moved from "gsf" to "meta".
|
|
331
|
+
*/
|
|
332
|
+
const META_NAME_PRINTED_BY: string | null
|
|
333
|
+
/**
|
|
334
|
+
* (GsfTimestamp) Specifies the date and time when the document was last
|
|
335
|
+
* printed.
|
|
336
|
+
*/
|
|
337
|
+
const META_NAME_PRINT_DATE: string | null
|
|
338
|
+
/**
|
|
339
|
+
* (Integer) Count of revision on the document, if appropriate.
|
|
340
|
+
* Moved from gsf:revision-count to meta:editing-cycles. This way can be used
|
|
341
|
+
* correctly by OpenDocument and Gnumeric.
|
|
342
|
+
*/
|
|
343
|
+
const META_NAME_REVISION_COUNT: string | null
|
|
344
|
+
/**
|
|
345
|
+
* (Boolean) ?????
|
|
346
|
+
*/
|
|
347
|
+
const META_NAME_SCALE: string | null
|
|
348
|
+
/**
|
|
349
|
+
* (Integer) Level of security.
|
|
350
|
+
*
|
|
351
|
+
* <informaltable frame="none" role="params">
|
|
352
|
+
* <tgroup cols="2">
|
|
353
|
+
* <thead>
|
|
354
|
+
* <row><entry align="left">Level</entry><entry>Value</entry></row>
|
|
355
|
+
* </thead>
|
|
356
|
+
* <tbody>
|
|
357
|
+
* <row><entry>None</entry><entry>0</entry></row>
|
|
358
|
+
* <row><entry>Password protected</entry><entry>1</entry></row>
|
|
359
|
+
* <row><entry>Read-only recommended</entry><entry>2</entry></row>
|
|
360
|
+
* <row><entry>Read-only enforced</entry><entry>3</entry></row>
|
|
361
|
+
* <row><entry>Locked for annotations</entry><entry>4</entry></row>
|
|
362
|
+
* </tbody></tgroup></informaltable>
|
|
363
|
+
*/
|
|
364
|
+
const META_NAME_SECURITY: string | null
|
|
365
|
+
/**
|
|
366
|
+
* (Integer) Count of slides in the presentation document.
|
|
367
|
+
*/
|
|
368
|
+
const META_NAME_SLIDE_COUNT: string | null
|
|
369
|
+
/**
|
|
370
|
+
* (Integer) Count of pages in the document, if appropriate.
|
|
371
|
+
*/
|
|
372
|
+
const META_NAME_SPREADSHEET_COUNT: string | null
|
|
373
|
+
/**
|
|
374
|
+
* (String) The topic of the content of the resource,
|
|
375
|
+
* <emphasis>typically</emphasis> including keywords.
|
|
376
|
+
*/
|
|
377
|
+
const META_NAME_SUBJECT: string | null
|
|
378
|
+
/**
|
|
379
|
+
* (Integer) Count of tables in the document, if appropriate.
|
|
380
|
+
*/
|
|
381
|
+
const META_NAME_TABLE_COUNT: string | null
|
|
382
|
+
/**
|
|
383
|
+
* (String) The template file that is been used to generate this document.
|
|
384
|
+
*
|
|
385
|
+
* 1.14.0 Moved from "gsf" to "meta"
|
|
386
|
+
*/
|
|
387
|
+
const META_NAME_TEMPLATE: string | null
|
|
388
|
+
/**
|
|
389
|
+
* (GsfClipData) Thumbnail data of the document, typically a
|
|
390
|
+
* preview image of the document.
|
|
391
|
+
*/
|
|
392
|
+
const META_NAME_THUMBNAIL: string | null
|
|
393
|
+
/**
|
|
394
|
+
* (String) A formal name given to the resource.
|
|
395
|
+
*/
|
|
396
|
+
const META_NAME_TITLE: string | null
|
|
397
|
+
/**
|
|
398
|
+
* (Integer) Count of words in the document.
|
|
399
|
+
*/
|
|
400
|
+
const META_NAME_WORD_COUNT: string | null
|
|
401
|
+
/**
|
|
402
|
+
* Decodes a chunk of base64 encoded data from `data` back into `data`.
|
|
403
|
+
* @param data data stream
|
|
404
|
+
* @param len max length of data to decode
|
|
405
|
+
* @returns the number of bytes converted
|
|
406
|
+
*/
|
|
407
|
+
function base64_decode_simple(data: Uint8Array, len: number): number
|
|
408
|
+
/**
|
|
409
|
+
* Decodes a chunk of base64 encoded data
|
|
410
|
+
* @param in_ input stream
|
|
411
|
+
* @param len max length of data to decode
|
|
412
|
+
* @param out output stream
|
|
413
|
+
* @param state holds the number of bits that are stored in `save`
|
|
414
|
+
* @param save leftover bits that have not yet been decoded
|
|
415
|
+
* @returns the number of bytes converted
|
|
416
|
+
*/
|
|
417
|
+
function base64_decode_step(in_: Uint8Array, len: number, out: Uint8Array, state: number, save: number): [ /* returnType */ number, /* state */ number, /* save */ number ]
|
|
418
|
+
/**
|
|
419
|
+
* This funcion should be called to when finished encoding everything, to
|
|
420
|
+
* flush off the last little bit.
|
|
421
|
+
* @param in_ Data to be encoded
|
|
422
|
+
* @param break_lines Whether to use line breaks
|
|
423
|
+
* @param out Encoded data.
|
|
424
|
+
* @param state holds the number of bits that are stored in `save`
|
|
425
|
+
* @param save leftover bits that have not yet been decoded
|
|
426
|
+
* @returns a count of the number of bytes in the final block.
|
|
427
|
+
*/
|
|
428
|
+
function base64_encode_close(in_: Uint8Array, break_lines: boolean, out: Uint8Array, state: number, save: number): [ /* returnType */ number, /* state */ number, /* save */ number ]
|
|
429
|
+
/**
|
|
430
|
+
* Encodes data from `data` back into `data` using base64 encoding.
|
|
431
|
+
* @param data data stream
|
|
432
|
+
* @param len max length of data to encode
|
|
433
|
+
* @returns the number of bytes encoded
|
|
434
|
+
*/
|
|
435
|
+
function base64_encode_simple(data: Uint8Array, len: number): number
|
|
436
|
+
/**
|
|
437
|
+
* Performs an 'encode step', only encodes blocks of 3 characters from `in` into
|
|
438
|
+
* the output `out` at a time, saves left-over state in `state` and `save`
|
|
439
|
+
* (initialise to 0 on first invocation).
|
|
440
|
+
* @param in_ input stream
|
|
441
|
+
* @param len max length of data to decode
|
|
442
|
+
* @param break_lines Whether to use line breaks
|
|
443
|
+
* @param out output stream
|
|
444
|
+
* @param state holds the number of bits that are stored in `save`
|
|
445
|
+
* @param save leftover bits that have not yet been decoded
|
|
446
|
+
* @returns the number of bytes encoded
|
|
447
|
+
*/
|
|
448
|
+
function base64_encode_step(in_: Uint8Array, len: number, break_lines: boolean, out: Uint8Array, state: number, save: number): [ /* returnType */ number, /* state */ number, /* save */ number ]
|
|
449
|
+
function debug_flag(flag: string | null): boolean
|
|
450
|
+
/**
|
|
451
|
+
* A debugging utility to dump the content of `meta` via g_print
|
|
452
|
+
* @param meta #GsfDocMetaData
|
|
453
|
+
*/
|
|
454
|
+
function doc_meta_dump(meta: DocMetaData): void
|
|
455
|
+
function error_quark(): GLib.Quark
|
|
456
|
+
/**
|
|
457
|
+
* Extracts the extension from the end of a filename (the part after the final
|
|
458
|
+
* '.' in the filename).
|
|
459
|
+
* @param path A filename or file path.
|
|
460
|
+
* @returns A pointer to the extension part of the filename, or a pointer to the end of the string if the filename does not have an extension.
|
|
461
|
+
*/
|
|
462
|
+
function extension_pointer(path: string | null): string | null
|
|
463
|
+
/**
|
|
464
|
+
* A utility wrapper to make sure filenames are valid utf8.
|
|
465
|
+
* Caller must g_free the result.
|
|
466
|
+
* @param filename file name suitable for open(2).
|
|
467
|
+
* @param quoted if %TRUE, the resulting utf8 file name will be quoted (unless it is invalid).
|
|
468
|
+
* @returns @filename using utf-8 encoding for display
|
|
469
|
+
*/
|
|
470
|
+
function filename_to_utf8(filename: string | null, quoted: boolean): string | null
|
|
471
|
+
/**
|
|
472
|
+
* Initializes the GSF library
|
|
473
|
+
*/
|
|
474
|
+
function init(): void
|
|
475
|
+
/**
|
|
476
|
+
* Initializes the GSF library and associates it with a type module `mod`.
|
|
477
|
+
* @param module #GTypeModule.
|
|
478
|
+
*/
|
|
479
|
+
function init_dynamic(module: GObject.TypeModule): void
|
|
480
|
+
/**
|
|
481
|
+
* Interpret binary data as a double in little endian order.
|
|
482
|
+
* @param p pointer to storage
|
|
483
|
+
* @returns interpreted data
|
|
484
|
+
*/
|
|
485
|
+
function le_get_double(p: any | null): number
|
|
486
|
+
/**
|
|
487
|
+
* Interpret binary data as a float in little endian order.
|
|
488
|
+
* @param p pointer to storage
|
|
489
|
+
* @returns interpreted data
|
|
490
|
+
*/
|
|
491
|
+
function le_get_float(p: any | null): number
|
|
492
|
+
/**
|
|
493
|
+
* Interpret binary data as a guint64 (8 byte unsigned integer type) in little
|
|
494
|
+
* endian order.
|
|
495
|
+
* @param p pointer to storage
|
|
496
|
+
* @returns interpreted data
|
|
497
|
+
*/
|
|
498
|
+
function le_get_guint64(p: any | null): number
|
|
499
|
+
/**
|
|
500
|
+
* Store a value of type double in memory in little endian order
|
|
501
|
+
* @param p pointer to storage
|
|
502
|
+
* @param d double to be stored
|
|
503
|
+
*/
|
|
504
|
+
function le_set_double(p: any | null, d: number): void
|
|
505
|
+
/**
|
|
506
|
+
* Store a value of type float in memory in little endian order.
|
|
507
|
+
* @param p pointer to storage
|
|
508
|
+
* @param f float to be stored
|
|
509
|
+
*/
|
|
510
|
+
function le_set_float(p: any | null, f: number): void
|
|
511
|
+
/**
|
|
512
|
+
* Dump `len` bytes from the memory location given by `ptr`.
|
|
513
|
+
* @param ptr memory area to be dumped.
|
|
514
|
+
* @param len how many bytes will be dumped.
|
|
515
|
+
*/
|
|
516
|
+
function mem_dump(ptr: number, len: number): void
|
|
517
|
+
function msole_codepage_to_lid(codepage: number): number
|
|
518
|
+
function msole_iconv_win_codepage(): number
|
|
519
|
+
/**
|
|
520
|
+
* Decompresses an LZ compressed stream.
|
|
521
|
+
* @param input stream to read from
|
|
522
|
+
* @param offset offset into it for start byte of compresse stream
|
|
523
|
+
* @returns A GByteArray that the caller is responsible for freeing
|
|
524
|
+
*/
|
|
525
|
+
function msole_inflate(input: Input, offset: gsf_off_t): Uint8Array
|
|
526
|
+
function msole_language_for_lid(lid: number): string | null
|
|
527
|
+
function msole_lid_for_language(lang: string | null): number
|
|
528
|
+
function msole_lid_to_codepage(lid: number): number
|
|
529
|
+
function msole_lid_to_codepage_str(lid: number): string | null
|
|
530
|
+
function odf_get_ns(): XMLInNS
|
|
531
|
+
/**
|
|
532
|
+
* Gives the ODF version used by libgsf when writing Open Document files.
|
|
533
|
+
* @returns the ODF version: 102.
|
|
534
|
+
*/
|
|
535
|
+
function odf_get_version(): number
|
|
536
|
+
/**
|
|
537
|
+
* Gives the ODF version used by libgsf when writing Open Document files.
|
|
538
|
+
* @returns the ODF version as a string: "1.2".
|
|
539
|
+
*/
|
|
540
|
+
function odf_get_version_string(): string | null
|
|
541
|
+
function open_pkg_error_id(): number
|
|
542
|
+
/**
|
|
543
|
+
* New in 1.14.9
|
|
544
|
+
*
|
|
545
|
+
* Walks each relationship associated with `opkg` and calls `func` with `user_data`.
|
|
546
|
+
* @param opkg #GsfInput
|
|
547
|
+
* @param func #GsfOpenPkgIter
|
|
548
|
+
*/
|
|
549
|
+
function open_pkg_foreach_rel(opkg: Input, func: OpenPkgIter): void
|
|
550
|
+
function open_pkg_open_rel(opkg: Input, rel: OpenPkgRel): Input
|
|
551
|
+
/**
|
|
552
|
+
* New in 1.14.7
|
|
553
|
+
*
|
|
554
|
+
* Open `opkg'`s relation `id`
|
|
555
|
+
* @param opkg #GsfInput
|
|
556
|
+
* @param id target id
|
|
557
|
+
* @returns A new GsfInput or %NULL, and sets @err if possible.
|
|
558
|
+
*/
|
|
559
|
+
function open_pkg_open_rel_by_id(opkg: Input, id: string | null): Input
|
|
560
|
+
/**
|
|
561
|
+
* New in 1.14.9
|
|
562
|
+
*
|
|
563
|
+
* Open one of `opkg'`s relationships with type=`type`.
|
|
564
|
+
* @param opkg #GsfInput
|
|
565
|
+
* @param type target type
|
|
566
|
+
* @returns A new GsfInput or %NULL, and sets @err if possible.
|
|
567
|
+
*/
|
|
568
|
+
function open_pkg_open_rel_by_type(opkg: Input, type: string | null): Input
|
|
569
|
+
/**
|
|
570
|
+
* Convenience function to parse a related part.
|
|
571
|
+
* @param xin #GsfXMLIn
|
|
572
|
+
* @param id target id
|
|
573
|
+
* @param dtd #GsfXMLInNode
|
|
574
|
+
* @param ns #GsfXMLInNS
|
|
575
|
+
* @returns %NULL on success or a #GError on failure.
|
|
576
|
+
*/
|
|
577
|
+
function open_pkg_parse_rel_by_id(xin: XMLIn, id: string | null, dtd: XMLInNode, ns: XMLInNS): GLib.Error
|
|
578
|
+
function property_settings_find(name: string | null, params: GObject.Parameter[]): GObject.Parameter
|
|
579
|
+
function property_settings_free(params: GObject.Parameter[]): void
|
|
580
|
+
/**
|
|
581
|
+
* De-intializes the GSF library
|
|
582
|
+
* Currently does nothing.
|
|
583
|
+
*/
|
|
584
|
+
function shutdown(): void
|
|
585
|
+
/**
|
|
586
|
+
* De-intializes the GSF library from a type module.
|
|
587
|
+
* Currently does nothing.
|
|
588
|
+
* @param module currently unused
|
|
589
|
+
*/
|
|
590
|
+
function shutdown_dynamic(module: GObject.TypeModule): void
|
|
591
|
+
/**
|
|
592
|
+
* This function returns the array of values inside #GsfDocPropVector.
|
|
593
|
+
* No additional references are created.
|
|
594
|
+
* @param value A GValue of type #GsfDocPropVector.
|
|
595
|
+
* @returns A #GArray of #GValue
|
|
596
|
+
*/
|
|
597
|
+
function value_get_docprop_array(value: any): any[] | null
|
|
598
|
+
function value_get_docprop_varray(value: any): GObject.ValueArray
|
|
599
|
+
/**
|
|
600
|
+
* This function returns a pointer to the GsfDocPropVector structure in `value`.
|
|
601
|
+
* No additional references are created.
|
|
602
|
+
* @param value A GValue of type #GsfDocPropVector.
|
|
603
|
+
* @returns A pointer to the #GsfDocPropVector structure in @value
|
|
604
|
+
*/
|
|
605
|
+
function value_get_docprop_vector(value: any): DocPropVector
|
|
606
|
+
/**
|
|
607
|
+
* Decompresses VBA stream.
|
|
608
|
+
* @param input stream to read from
|
|
609
|
+
* @param offset offset into it for start byte of compressed stream
|
|
610
|
+
* @param size size of the returned array
|
|
611
|
+
* @param add_null_terminator whenever add or not null at the end of array
|
|
612
|
+
* @returns A pointer to guint8 array
|
|
613
|
+
*/
|
|
614
|
+
function vba_inflate(input: Input, offset: gsf_off_t, size: number, add_null_terminator: boolean): number
|
|
615
|
+
/**
|
|
616
|
+
* Dumps the document `cur` into `output`.
|
|
617
|
+
* @param output #GsfOutput
|
|
618
|
+
* @param cur #xmlDocPtr
|
|
619
|
+
* @param encoding The encoding to use.
|
|
620
|
+
* @param format %TRUE to reformat the output.
|
|
621
|
+
* @returns status from xmlSaveFormatFileTo.
|
|
622
|
+
*/
|
|
623
|
+
function xmlDocFormatDump(output: Output, cur: libxml2.Doc, encoding: string | null, format: boolean): number
|
|
624
|
+
/**
|
|
625
|
+
* Try to parse `str` as a value of type `t` into `res`.
|
|
626
|
+
* @param res Result value
|
|
627
|
+
* @param t Type of data
|
|
628
|
+
* @param str Value string
|
|
629
|
+
* @returns True when parsing of @str as a value of type @t was succesfull; false otherwise.
|
|
630
|
+
*/
|
|
631
|
+
function xml_gvalue_from_str(res: any, t: GObject.GType, str: string | null): boolean
|
|
632
|
+
function xml_probe(input: Input, func: XMLProbeFunc): boolean
|
|
633
|
+
interface OpenPkgIter {
|
|
634
|
+
(opkg: Input, rel: OpenPkgRel): void
|
|
635
|
+
}
|
|
636
|
+
interface XMLInExtDtor {
|
|
637
|
+
(xin: XMLIn, old_state: any | null): void
|
|
638
|
+
}
|
|
639
|
+
interface XMLInUnknownFunc {
|
|
640
|
+
(xin: XMLIn, elem: libxml2.Char, attrs: libxml2.Char): boolean
|
|
641
|
+
}
|
|
642
|
+
interface XMLProbeFunc {
|
|
643
|
+
(name: libxml2.Char, prefix: libxml2.Char, URI: libxml2.Char, nb_namespaces: number, namespaces: libxml2.Char, nb_attributes: number, nb_defaulted: number, attributes: libxml2.Char): boolean
|
|
644
|
+
}
|
|
645
|
+
module Blob {
|
|
646
|
+
|
|
647
|
+
// Constructor properties interface
|
|
648
|
+
|
|
649
|
+
interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
interface Blob {
|
|
655
|
+
|
|
656
|
+
// Own fields of Gsf-1.Gsf.Blob
|
|
657
|
+
|
|
658
|
+
object: GObject.Object
|
|
659
|
+
priv: BlobPrivate
|
|
660
|
+
|
|
661
|
+
// Owm methods of Gsf-1.Gsf.Blob
|
|
662
|
+
|
|
663
|
+
/**
|
|
664
|
+
* Queries the size in bytes of the data stored in the blob.
|
|
665
|
+
* @returns Size in bytes, or 0 if the data is %NULL.
|
|
666
|
+
*/
|
|
667
|
+
get_size(): number
|
|
668
|
+
/**
|
|
669
|
+
* Queries a pointer to the data stored in the blob. This does not
|
|
670
|
+
* copy the data for you; it returns a pointer to the actual buffer
|
|
671
|
+
* which the blob uses internally, so you should not free this buffer
|
|
672
|
+
* on your own.
|
|
673
|
+
* @returns Pointer to the data stored in the blob, or %NULL if the size of the data is zero.
|
|
674
|
+
*/
|
|
675
|
+
peek_data(): any | null
|
|
676
|
+
|
|
677
|
+
// Class property signals of Gsf-1.Gsf.Blob
|
|
678
|
+
|
|
679
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
680
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
681
|
+
emit(sigName: string, ...args: any[]): void
|
|
682
|
+
disconnect(id: number): void
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
class Blob extends GObject.Object {
|
|
686
|
+
|
|
687
|
+
// Own properties of Gsf-1.Gsf.Blob
|
|
688
|
+
|
|
689
|
+
static name: string
|
|
690
|
+
static $gtype: GObject.GType<Blob>
|
|
691
|
+
|
|
692
|
+
// Constructors of Gsf-1.Gsf.Blob
|
|
693
|
+
|
|
694
|
+
constructor(config?: Blob.ConstructorProperties)
|
|
695
|
+
/**
|
|
696
|
+
* Creates a new #GsfBlob object to hold the specified data. The blob can then
|
|
697
|
+
* be used as a facility for reference-counting for the data. The data is
|
|
698
|
+
* copied internally, so the blob does not hold references to external chunks
|
|
699
|
+
* of memory.
|
|
700
|
+
* @constructor
|
|
701
|
+
* @param data_to_copy Data which will be copied into the blob, or %NULL if `size` is zero.
|
|
702
|
+
* @returns A newly-created #GsfBlob, or %NULL if the data could not be copied. Error domain: #GSF_ERROR Possible errors: #GSF_ERROR_OUT_OF_MEMORY if the @data_to_copy could not be copied.
|
|
703
|
+
*/
|
|
704
|
+
constructor(data_to_copy: Uint8Array)
|
|
705
|
+
/**
|
|
706
|
+
* Creates a new #GsfBlob object to hold the specified data. The blob can then
|
|
707
|
+
* be used as a facility for reference-counting for the data. The data is
|
|
708
|
+
* copied internally, so the blob does not hold references to external chunks
|
|
709
|
+
* of memory.
|
|
710
|
+
* @constructor
|
|
711
|
+
* @param data_to_copy Data which will be copied into the blob, or %NULL if `size` is zero.
|
|
712
|
+
* @returns A newly-created #GsfBlob, or %NULL if the data could not be copied. Error domain: #GSF_ERROR Possible errors: #GSF_ERROR_OUT_OF_MEMORY if the @data_to_copy could not be copied.
|
|
713
|
+
*/
|
|
714
|
+
static new(data_to_copy: Uint8Array): Blob
|
|
715
|
+
_init(config?: Blob.ConstructorProperties): void
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
module ClipData {
|
|
719
|
+
|
|
720
|
+
// Constructor properties interface
|
|
721
|
+
|
|
722
|
+
interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
interface ClipData {
|
|
728
|
+
|
|
729
|
+
// Own fields of Gsf-1.Gsf.ClipData
|
|
730
|
+
|
|
731
|
+
object: GObject.Object
|
|
732
|
+
priv: ClipDataPrivate
|
|
733
|
+
|
|
734
|
+
// Owm methods of Gsf-1.Gsf.ClipData
|
|
735
|
+
|
|
736
|
+
/**
|
|
737
|
+
* Queries the data blob that actually stores a #GsfClipData's binary data.
|
|
738
|
+
* @returns A new reference to the #GsfBlob that stores this @clip_data's binary data. You must use g_object_unref() to dispose of that data blob when you are done with it.
|
|
739
|
+
*/
|
|
740
|
+
get_data_blob(): Blob
|
|
741
|
+
/**
|
|
742
|
+
* Queries the clipboard data format of a #GsfClipData. The format refers to the data
|
|
743
|
+
* blob inside the `clip_data;` use gsf_clip_data_get_data_blob() to get that data blob.
|
|
744
|
+
* @returns The format in which the #GsfClipData's data blob is stored.
|
|
745
|
+
*/
|
|
746
|
+
get_format(): ClipFormat
|
|
747
|
+
/**
|
|
748
|
+
* Queries the Windows clipboard data format for a #GsfClipData. The `clip_data` must
|
|
749
|
+
* have been created with #GSF_CLIP_FORMAT_WINDOWS_CLIPBOARD.
|
|
750
|
+
* @returns A #GsfClipFormatWindows value. Possible errors: #GSF_ERROR_INVALID_DATA if the data blob in the @clip_data is smaller than it should be; in this case GSF_CLIP_FORMAT_WINDOWS_ERROR will be returned.
|
|
751
|
+
*/
|
|
752
|
+
get_windows_clipboard_format(): ClipFormatWindows
|
|
753
|
+
/**
|
|
754
|
+
* Queries a pointer directly to the clipboard data of a #GsfClipData. The
|
|
755
|
+
* resulting pointer is not necessarily the same data pointer that was passed to
|
|
756
|
+
* gsf_blob_new() prior to creating the `clip_data`. For example, if the data is
|
|
757
|
+
* in #GSF_CLIP_FORMAT_WINDOWS_CLIPBOARD format, then it will have extra header
|
|
758
|
+
* bytes in front of the actual metafile data. This function will skip over
|
|
759
|
+
* those header bytes if necessary and return a pointer to the "real" data.
|
|
760
|
+
* @param ret_size Location to return the size of the returned data buffer.
|
|
761
|
+
* @returns Pointer to the real clipboard data. The size in bytes of this buffer is returned in the @ret_size argument.
|
|
762
|
+
*/
|
|
763
|
+
peek_real_data(ret_size: number): any | null
|
|
764
|
+
|
|
765
|
+
// Class property signals of Gsf-1.Gsf.ClipData
|
|
766
|
+
|
|
767
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
768
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
769
|
+
emit(sigName: string, ...args: any[]): void
|
|
770
|
+
disconnect(id: number): void
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
class ClipData extends GObject.Object {
|
|
774
|
+
|
|
775
|
+
// Own properties of Gsf-1.Gsf.ClipData
|
|
776
|
+
|
|
777
|
+
static name: string
|
|
778
|
+
static $gtype: GObject.GType<ClipData>
|
|
779
|
+
|
|
780
|
+
// Constructors of Gsf-1.Gsf.ClipData
|
|
781
|
+
|
|
782
|
+
constructor(config?: ClipData.ConstructorProperties)
|
|
783
|
+
/**
|
|
784
|
+
* Creates a new #GsfClipData object. This function acquires a reference to the
|
|
785
|
+
* `data_blob,` so you should unref the blob on your own if you no longer need it
|
|
786
|
+
* directly.
|
|
787
|
+
* @constructor
|
|
788
|
+
* @param format Format for the data inside the `data_blob`
|
|
789
|
+
* @param data_blob Object which holds the binary contents for the #GsfClipData
|
|
790
|
+
* @returns A newly-created #GsfClipData.
|
|
791
|
+
*/
|
|
792
|
+
constructor(format: ClipFormat, data_blob: Blob)
|
|
793
|
+
/**
|
|
794
|
+
* Creates a new #GsfClipData object. This function acquires a reference to the
|
|
795
|
+
* `data_blob,` so you should unref the blob on your own if you no longer need it
|
|
796
|
+
* directly.
|
|
797
|
+
* @constructor
|
|
798
|
+
* @param format Format for the data inside the `data_blob`
|
|
799
|
+
* @param data_blob Object which holds the binary contents for the #GsfClipData
|
|
800
|
+
* @returns A newly-created #GsfClipData.
|
|
801
|
+
*/
|
|
802
|
+
static new(format: ClipFormat, data_blob: Blob): ClipData
|
|
803
|
+
_init(config?: ClipData.ConstructorProperties): void
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
module DocMetaData {
|
|
807
|
+
|
|
808
|
+
// Constructor properties interface
|
|
809
|
+
|
|
810
|
+
interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
interface DocMetaData {
|
|
816
|
+
|
|
817
|
+
// Owm methods of Gsf-1.Gsf.DocMetaData
|
|
818
|
+
|
|
819
|
+
/**
|
|
820
|
+
* Iterate through each (key, value) pair in this collection
|
|
821
|
+
* @param func the function called once for each element in the collection
|
|
822
|
+
*/
|
|
823
|
+
foreach(func: GLib.HFunc): void
|
|
824
|
+
/**
|
|
825
|
+
* Take ownership of `name` and `value` and insert a property into `meta`.
|
|
826
|
+
* If a property exists with `name,` it is replaced (The link is lost)
|
|
827
|
+
* @param name the id.
|
|
828
|
+
* @param value #GValue
|
|
829
|
+
*/
|
|
830
|
+
insert(name: string | null, value: any): void
|
|
831
|
+
lookup(name: string | null): DocProp | null
|
|
832
|
+
/**
|
|
833
|
+
* Extend `xin` so that it can parse a subtree in OpenDoc metadata format
|
|
834
|
+
* @param doc #GsfXMLInDoc
|
|
835
|
+
*/
|
|
836
|
+
odf_subtree(doc: XMLIn): void
|
|
837
|
+
/**
|
|
838
|
+
* Read a stream formated as a set of MS OLE properties from `in` and store the
|
|
839
|
+
* results in `accum`.
|
|
840
|
+
* @param in_ #GsfInput
|
|
841
|
+
* @returns A #GError if there was an error.
|
|
842
|
+
*/
|
|
843
|
+
read_from_msole(in_: Input): GLib.Error
|
|
844
|
+
/**
|
|
845
|
+
* Read an OpenDocument metadata stream from `input` and store the properties
|
|
846
|
+
* into `md`. Overwrite any existing properties with the same id.
|
|
847
|
+
* @param input #GsfInput
|
|
848
|
+
* @returns a #GError if there is a problem.
|
|
849
|
+
*/
|
|
850
|
+
read_from_odf(input: Input): GLib.Error
|
|
851
|
+
/**
|
|
852
|
+
* If `name` does not exist in the collection, do nothing. If `name` does exist,
|
|
853
|
+
* remove it and its value from the collection
|
|
854
|
+
* @param name the non-null string name of the property
|
|
855
|
+
*/
|
|
856
|
+
remove(name: string | null): void
|
|
857
|
+
size(): number
|
|
858
|
+
steal(name: string | null): DocProp | null
|
|
859
|
+
store(prop: DocProp): void
|
|
860
|
+
write_to_msole(out: Output, doc_not_component: boolean): boolean
|
|
861
|
+
write_to_odf(output: XMLOut): boolean
|
|
862
|
+
|
|
863
|
+
// Class property signals of Gsf-1.Gsf.DocMetaData
|
|
864
|
+
|
|
865
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
866
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
867
|
+
emit(sigName: string, ...args: any[]): void
|
|
868
|
+
disconnect(id: number): void
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
/**
|
|
872
|
+
* Class representing information about a document, such as creator and time of
|
|
873
|
+
* last modification.
|
|
874
|
+
* @class
|
|
875
|
+
*/
|
|
876
|
+
class DocMetaData extends GObject.Object {
|
|
877
|
+
|
|
878
|
+
// Own properties of Gsf-1.Gsf.DocMetaData
|
|
879
|
+
|
|
880
|
+
static name: string
|
|
881
|
+
static $gtype: GObject.GType<DocMetaData>
|
|
882
|
+
|
|
883
|
+
// Constructors of Gsf-1.Gsf.DocMetaData
|
|
884
|
+
|
|
885
|
+
constructor(config?: DocMetaData.ConstructorProperties)
|
|
886
|
+
constructor()
|
|
887
|
+
static new(): DocMetaData
|
|
888
|
+
_init(config?: DocMetaData.ConstructorProperties): void
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
module DocPropVector {
|
|
892
|
+
|
|
893
|
+
// Constructor properties interface
|
|
894
|
+
|
|
895
|
+
interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
interface DocPropVector {
|
|
901
|
+
|
|
902
|
+
// Owm methods of Gsf-1.Gsf.DocPropVector
|
|
903
|
+
|
|
904
|
+
/**
|
|
905
|
+
* Insert a copy of `value` as the last element of `vector`.
|
|
906
|
+
* @param value The GValue to add to `vector`
|
|
907
|
+
*/
|
|
908
|
+
append(value: any): void
|
|
909
|
+
/**
|
|
910
|
+
* This function returns a string which represents all the GValues in `vector`.
|
|
911
|
+
* The caller is responsible for freeing the result.
|
|
912
|
+
*
|
|
913
|
+
* Returns (transfer full): a string of comma-separated values
|
|
914
|
+
*/
|
|
915
|
+
as_string(): string | null
|
|
916
|
+
|
|
917
|
+
// Class property signals of Gsf-1.Gsf.DocPropVector
|
|
918
|
+
|
|
919
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
920
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
921
|
+
emit(sigName: string, ...args: any[]): void
|
|
922
|
+
disconnect(id: number): void
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
class DocPropVector extends GObject.Object {
|
|
926
|
+
|
|
927
|
+
// Own properties of Gsf-1.Gsf.DocPropVector
|
|
928
|
+
|
|
929
|
+
static name: string
|
|
930
|
+
static $gtype: GObject.GType<DocPropVector>
|
|
931
|
+
|
|
932
|
+
// Constructors of Gsf-1.Gsf.DocPropVector
|
|
933
|
+
|
|
934
|
+
constructor(config?: DocPropVector.ConstructorProperties)
|
|
935
|
+
/**
|
|
936
|
+
* This function creates a new gsf_docprop_vector object.
|
|
937
|
+
* @constructor
|
|
938
|
+
* @returns GsfDocPropVector*
|
|
939
|
+
*/
|
|
940
|
+
constructor()
|
|
941
|
+
/**
|
|
942
|
+
* This function creates a new gsf_docprop_vector object.
|
|
943
|
+
* @constructor
|
|
944
|
+
* @returns GsfDocPropVector*
|
|
945
|
+
*/
|
|
946
|
+
static new(): DocPropVector
|
|
947
|
+
_init(config?: DocPropVector.ConstructorProperties): void
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
module Infile {
|
|
951
|
+
|
|
952
|
+
// Constructor properties interface
|
|
953
|
+
|
|
954
|
+
interface ConstructorProperties extends Input.ConstructorProperties {
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
interface Infile {
|
|
960
|
+
|
|
961
|
+
// Own fields of Gsf-1.Gsf.Infile
|
|
962
|
+
|
|
963
|
+
parent: Input
|
|
964
|
+
|
|
965
|
+
// Owm methods of Gsf-1.Gsf.Infile
|
|
966
|
+
|
|
967
|
+
/**
|
|
968
|
+
* This function finds a child that is several directory levels down
|
|
969
|
+
* the tree. If, for example, the names "foo", "bar", and "baz" are
|
|
970
|
+
* given, then this function first finds the "foo" directory in the
|
|
971
|
+
* root infile, then locates "bar" within that directory, and finally
|
|
972
|
+
* locates "baz" within that and returns the "baz" child. In other
|
|
973
|
+
* words, this function finds the "foo/bar/baz" child.
|
|
974
|
+
*
|
|
975
|
+
* New in 1.14.9.
|
|
976
|
+
* @param names A %NULL terminated array of names (e.g. from g_strsplit)
|
|
977
|
+
* @returns a newly created child which must be unrefed.
|
|
978
|
+
*/
|
|
979
|
+
child_by_aname(names: string[]): Input
|
|
980
|
+
/**
|
|
981
|
+
* TODO : For 2.0 api will change to include a #GError.
|
|
982
|
+
* @param i target index
|
|
983
|
+
* @returns a newly created child which must be unrefed.
|
|
984
|
+
*/
|
|
985
|
+
child_by_index(i: number): Input
|
|
986
|
+
/**
|
|
987
|
+
* The function returns a named child of the given infile. This only
|
|
988
|
+
* works for an immediate child. If you need to go several levels
|
|
989
|
+
* down use gsf_infile_child_by_aname, for example.
|
|
990
|
+
*
|
|
991
|
+
* TODO : For 2.0 api will change to include a #GError.
|
|
992
|
+
* @param name target name
|
|
993
|
+
* @returns a newly created child which must be unrefed.
|
|
994
|
+
*/
|
|
995
|
+
child_by_name(name: string | null): Input
|
|
996
|
+
name_by_index(i: number): string | null
|
|
997
|
+
num_children(): number
|
|
998
|
+
|
|
999
|
+
// Own virtual methods of Gsf-1.Gsf.Infile
|
|
1000
|
+
|
|
1001
|
+
vfunc_name_by_index(i: number): string | null
|
|
1002
|
+
vfunc_num_children(): number
|
|
1003
|
+
|
|
1004
|
+
// Class property signals of Gsf-1.Gsf.Infile
|
|
1005
|
+
|
|
1006
|
+
connect(sigName: "notify::eof", callback: (($obj: Infile, pspec: GObject.ParamSpec) => void)): number
|
|
1007
|
+
connect_after(sigName: "notify::eof", callback: (($obj: Infile, pspec: GObject.ParamSpec) => void)): number
|
|
1008
|
+
emit(sigName: "notify::eof", ...args: any[]): void
|
|
1009
|
+
connect(sigName: "notify::modtime", callback: (($obj: Infile, pspec: GObject.ParamSpec) => void)): number
|
|
1010
|
+
connect_after(sigName: "notify::modtime", callback: (($obj: Infile, pspec: GObject.ParamSpec) => void)): number
|
|
1011
|
+
emit(sigName: "notify::modtime", ...args: any[]): void
|
|
1012
|
+
connect(sigName: "notify::position", callback: (($obj: Infile, pspec: GObject.ParamSpec) => void)): number
|
|
1013
|
+
connect_after(sigName: "notify::position", callback: (($obj: Infile, pspec: GObject.ParamSpec) => void)): number
|
|
1014
|
+
emit(sigName: "notify::position", ...args: any[]): void
|
|
1015
|
+
connect(sigName: "notify::remaining", callback: (($obj: Infile, pspec: GObject.ParamSpec) => void)): number
|
|
1016
|
+
connect_after(sigName: "notify::remaining", callback: (($obj: Infile, pspec: GObject.ParamSpec) => void)): number
|
|
1017
|
+
emit(sigName: "notify::remaining", ...args: any[]): void
|
|
1018
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
1019
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
1020
|
+
emit(sigName: string, ...args: any[]): void
|
|
1021
|
+
disconnect(id: number): void
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
/**
|
|
1025
|
+
* Class representing an input file.
|
|
1026
|
+
* @class
|
|
1027
|
+
*/
|
|
1028
|
+
class Infile extends Input {
|
|
1029
|
+
|
|
1030
|
+
// Own properties of Gsf-1.Gsf.Infile
|
|
1031
|
+
|
|
1032
|
+
static name: string
|
|
1033
|
+
static $gtype: GObject.GType<Infile>
|
|
1034
|
+
|
|
1035
|
+
// Constructors of Gsf-1.Gsf.Infile
|
|
1036
|
+
|
|
1037
|
+
constructor(config?: Infile.ConstructorProperties)
|
|
1038
|
+
_init(config?: Infile.ConstructorProperties): void
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
module InfileMSOle {
|
|
1042
|
+
|
|
1043
|
+
// Constructor properties interface
|
|
1044
|
+
|
|
1045
|
+
interface ConstructorProperties extends Infile.ConstructorProperties {
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1050
|
+
interface InfileMSOle {
|
|
1051
|
+
|
|
1052
|
+
// Owm methods of Gsf-1.Gsf.InfileMSOle
|
|
1053
|
+
|
|
1054
|
+
/**
|
|
1055
|
+
* Retrieves the 16 byte indentifier (often a GUID in MS Windows apps)
|
|
1056
|
+
* stored within the directory associated with `ole` and stores it in `res`.
|
|
1057
|
+
* @param res 16 byte identifier (often a GUID in MS Windows apps)
|
|
1058
|
+
* @returns TRUE on success
|
|
1059
|
+
*/
|
|
1060
|
+
get_class_id(res: number): boolean
|
|
1061
|
+
|
|
1062
|
+
// Class property signals of Gsf-1.Gsf.InfileMSOle
|
|
1063
|
+
|
|
1064
|
+
connect(sigName: "notify::eof", callback: (($obj: InfileMSOle, pspec: GObject.ParamSpec) => void)): number
|
|
1065
|
+
connect_after(sigName: "notify::eof", callback: (($obj: InfileMSOle, pspec: GObject.ParamSpec) => void)): number
|
|
1066
|
+
emit(sigName: "notify::eof", ...args: any[]): void
|
|
1067
|
+
connect(sigName: "notify::modtime", callback: (($obj: InfileMSOle, pspec: GObject.ParamSpec) => void)): number
|
|
1068
|
+
connect_after(sigName: "notify::modtime", callback: (($obj: InfileMSOle, pspec: GObject.ParamSpec) => void)): number
|
|
1069
|
+
emit(sigName: "notify::modtime", ...args: any[]): void
|
|
1070
|
+
connect(sigName: "notify::position", callback: (($obj: InfileMSOle, pspec: GObject.ParamSpec) => void)): number
|
|
1071
|
+
connect_after(sigName: "notify::position", callback: (($obj: InfileMSOle, pspec: GObject.ParamSpec) => void)): number
|
|
1072
|
+
emit(sigName: "notify::position", ...args: any[]): void
|
|
1073
|
+
connect(sigName: "notify::remaining", callback: (($obj: InfileMSOle, pspec: GObject.ParamSpec) => void)): number
|
|
1074
|
+
connect_after(sigName: "notify::remaining", callback: (($obj: InfileMSOle, pspec: GObject.ParamSpec) => void)): number
|
|
1075
|
+
emit(sigName: "notify::remaining", ...args: any[]): void
|
|
1076
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
1077
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
1078
|
+
emit(sigName: string, ...args: any[]): void
|
|
1079
|
+
disconnect(id: number): void
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1082
|
+
class InfileMSOle extends Infile {
|
|
1083
|
+
|
|
1084
|
+
// Own properties of Gsf-1.Gsf.InfileMSOle
|
|
1085
|
+
|
|
1086
|
+
static name: string
|
|
1087
|
+
static $gtype: GObject.GType<InfileMSOle>
|
|
1088
|
+
|
|
1089
|
+
// Constructors of Gsf-1.Gsf.InfileMSOle
|
|
1090
|
+
|
|
1091
|
+
constructor(config?: InfileMSOle.ConstructorProperties)
|
|
1092
|
+
/**
|
|
1093
|
+
* Opens the root directory of an MS OLE file.
|
|
1094
|
+
* <note>This adds a reference to `source`.</note>
|
|
1095
|
+
* @constructor
|
|
1096
|
+
* @param source #GsfInput
|
|
1097
|
+
* @returns the new ole file handler
|
|
1098
|
+
*/
|
|
1099
|
+
constructor(source: Input)
|
|
1100
|
+
/**
|
|
1101
|
+
* Opens the root directory of an MS OLE file.
|
|
1102
|
+
* <note>This adds a reference to `source`.</note>
|
|
1103
|
+
* @constructor
|
|
1104
|
+
* @param source #GsfInput
|
|
1105
|
+
* @returns the new ole file handler
|
|
1106
|
+
*/
|
|
1107
|
+
static new(source: Input): InfileMSOle
|
|
1108
|
+
_init(config?: InfileMSOle.ConstructorProperties): void
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
module InfileMSVBA {
|
|
1112
|
+
|
|
1113
|
+
// Constructor properties interface
|
|
1114
|
+
|
|
1115
|
+
interface ConstructorProperties extends Infile.ConstructorProperties {
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
}
|
|
1119
|
+
|
|
1120
|
+
interface InfileMSVBA {
|
|
1121
|
+
|
|
1122
|
+
// Owm methods of Gsf-1.Gsf.InfileMSVBA
|
|
1123
|
+
|
|
1124
|
+
/**
|
|
1125
|
+
* a collection of names and source code.
|
|
1126
|
+
* @returns A #GHashTable of names and source code (unknown encoding).
|
|
1127
|
+
*/
|
|
1128
|
+
get_modules(): GLib.HashTable | null
|
|
1129
|
+
/**
|
|
1130
|
+
* A collection of names and source code which the caller is responsible for destroying.
|
|
1131
|
+
* @returns A #GHashTable of names and source code (unknown encoding).
|
|
1132
|
+
*/
|
|
1133
|
+
steal_modules(): GLib.HashTable | null
|
|
1134
|
+
|
|
1135
|
+
// Class property signals of Gsf-1.Gsf.InfileMSVBA
|
|
1136
|
+
|
|
1137
|
+
connect(sigName: "notify::eof", callback: (($obj: InfileMSVBA, pspec: GObject.ParamSpec) => void)): number
|
|
1138
|
+
connect_after(sigName: "notify::eof", callback: (($obj: InfileMSVBA, pspec: GObject.ParamSpec) => void)): number
|
|
1139
|
+
emit(sigName: "notify::eof", ...args: any[]): void
|
|
1140
|
+
connect(sigName: "notify::modtime", callback: (($obj: InfileMSVBA, pspec: GObject.ParamSpec) => void)): number
|
|
1141
|
+
connect_after(sigName: "notify::modtime", callback: (($obj: InfileMSVBA, pspec: GObject.ParamSpec) => void)): number
|
|
1142
|
+
emit(sigName: "notify::modtime", ...args: any[]): void
|
|
1143
|
+
connect(sigName: "notify::position", callback: (($obj: InfileMSVBA, pspec: GObject.ParamSpec) => void)): number
|
|
1144
|
+
connect_after(sigName: "notify::position", callback: (($obj: InfileMSVBA, pspec: GObject.ParamSpec) => void)): number
|
|
1145
|
+
emit(sigName: "notify::position", ...args: any[]): void
|
|
1146
|
+
connect(sigName: "notify::remaining", callback: (($obj: InfileMSVBA, pspec: GObject.ParamSpec) => void)): number
|
|
1147
|
+
connect_after(sigName: "notify::remaining", callback: (($obj: InfileMSVBA, pspec: GObject.ParamSpec) => void)): number
|
|
1148
|
+
emit(sigName: "notify::remaining", ...args: any[]): void
|
|
1149
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
1150
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
1151
|
+
emit(sigName: string, ...args: any[]): void
|
|
1152
|
+
disconnect(id: number): void
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
class InfileMSVBA extends Infile {
|
|
1156
|
+
|
|
1157
|
+
// Own properties of Gsf-1.Gsf.InfileMSVBA
|
|
1158
|
+
|
|
1159
|
+
static name: string
|
|
1160
|
+
static $gtype: GObject.GType<InfileMSVBA>
|
|
1161
|
+
|
|
1162
|
+
// Constructors of Gsf-1.Gsf.InfileMSVBA
|
|
1163
|
+
|
|
1164
|
+
constructor(config?: InfileMSVBA.ConstructorProperties)
|
|
1165
|
+
constructor(source: Infile)
|
|
1166
|
+
static new(source: Infile): InfileMSVBA
|
|
1167
|
+
_init(config?: InfileMSVBA.ConstructorProperties): void
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
module InfileStdio {
|
|
1171
|
+
|
|
1172
|
+
// Constructor properties interface
|
|
1173
|
+
|
|
1174
|
+
interface ConstructorProperties extends Infile.ConstructorProperties {
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1177
|
+
}
|
|
1178
|
+
|
|
1179
|
+
interface InfileStdio {
|
|
1180
|
+
|
|
1181
|
+
// Class property signals of Gsf-1.Gsf.InfileStdio
|
|
1182
|
+
|
|
1183
|
+
connect(sigName: "notify::eof", callback: (($obj: InfileStdio, pspec: GObject.ParamSpec) => void)): number
|
|
1184
|
+
connect_after(sigName: "notify::eof", callback: (($obj: InfileStdio, pspec: GObject.ParamSpec) => void)): number
|
|
1185
|
+
emit(sigName: "notify::eof", ...args: any[]): void
|
|
1186
|
+
connect(sigName: "notify::modtime", callback: (($obj: InfileStdio, pspec: GObject.ParamSpec) => void)): number
|
|
1187
|
+
connect_after(sigName: "notify::modtime", callback: (($obj: InfileStdio, pspec: GObject.ParamSpec) => void)): number
|
|
1188
|
+
emit(sigName: "notify::modtime", ...args: any[]): void
|
|
1189
|
+
connect(sigName: "notify::position", callback: (($obj: InfileStdio, pspec: GObject.ParamSpec) => void)): number
|
|
1190
|
+
connect_after(sigName: "notify::position", callback: (($obj: InfileStdio, pspec: GObject.ParamSpec) => void)): number
|
|
1191
|
+
emit(sigName: "notify::position", ...args: any[]): void
|
|
1192
|
+
connect(sigName: "notify::remaining", callback: (($obj: InfileStdio, pspec: GObject.ParamSpec) => void)): number
|
|
1193
|
+
connect_after(sigName: "notify::remaining", callback: (($obj: InfileStdio, pspec: GObject.ParamSpec) => void)): number
|
|
1194
|
+
emit(sigName: "notify::remaining", ...args: any[]): void
|
|
1195
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
1196
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
1197
|
+
emit(sigName: string, ...args: any[]): void
|
|
1198
|
+
disconnect(id: number): void
|
|
1199
|
+
}
|
|
1200
|
+
|
|
1201
|
+
class InfileStdio extends Infile {
|
|
1202
|
+
|
|
1203
|
+
// Own properties of Gsf-1.Gsf.InfileStdio
|
|
1204
|
+
|
|
1205
|
+
static name: string
|
|
1206
|
+
static $gtype: GObject.GType<InfileStdio>
|
|
1207
|
+
|
|
1208
|
+
// Constructors of Gsf-1.Gsf.InfileStdio
|
|
1209
|
+
|
|
1210
|
+
constructor(config?: InfileStdio.ConstructorProperties)
|
|
1211
|
+
constructor(root: string | null)
|
|
1212
|
+
static new(root: string | null): InfileStdio
|
|
1213
|
+
_init(config?: InfileStdio.ConstructorProperties): void
|
|
1214
|
+
}
|
|
1215
|
+
|
|
1216
|
+
module InfileTar {
|
|
1217
|
+
|
|
1218
|
+
// Constructor properties interface
|
|
1219
|
+
|
|
1220
|
+
interface ConstructorProperties extends Infile.ConstructorProperties {
|
|
1221
|
+
|
|
1222
|
+
// Own constructor properties of Gsf-1.Gsf.InfileTar
|
|
1223
|
+
|
|
1224
|
+
source?: Input | null
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
interface InfileTar {
|
|
1230
|
+
|
|
1231
|
+
// Own properties of Gsf-1.Gsf.InfileTar
|
|
1232
|
+
|
|
1233
|
+
readonly source: Input
|
|
1234
|
+
|
|
1235
|
+
// Class property signals of Gsf-1.Gsf.InfileTar
|
|
1236
|
+
|
|
1237
|
+
connect(sigName: "notify::source", callback: (($obj: InfileTar, pspec: GObject.ParamSpec) => void)): number
|
|
1238
|
+
connect_after(sigName: "notify::source", callback: (($obj: InfileTar, pspec: GObject.ParamSpec) => void)): number
|
|
1239
|
+
emit(sigName: "notify::source", ...args: any[]): void
|
|
1240
|
+
connect(sigName: "notify::eof", callback: (($obj: InfileTar, pspec: GObject.ParamSpec) => void)): number
|
|
1241
|
+
connect_after(sigName: "notify::eof", callback: (($obj: InfileTar, pspec: GObject.ParamSpec) => void)): number
|
|
1242
|
+
emit(sigName: "notify::eof", ...args: any[]): void
|
|
1243
|
+
connect(sigName: "notify::modtime", callback: (($obj: InfileTar, pspec: GObject.ParamSpec) => void)): number
|
|
1244
|
+
connect_after(sigName: "notify::modtime", callback: (($obj: InfileTar, pspec: GObject.ParamSpec) => void)): number
|
|
1245
|
+
emit(sigName: "notify::modtime", ...args: any[]): void
|
|
1246
|
+
connect(sigName: "notify::position", callback: (($obj: InfileTar, pspec: GObject.ParamSpec) => void)): number
|
|
1247
|
+
connect_after(sigName: "notify::position", callback: (($obj: InfileTar, pspec: GObject.ParamSpec) => void)): number
|
|
1248
|
+
emit(sigName: "notify::position", ...args: any[]): void
|
|
1249
|
+
connect(sigName: "notify::remaining", callback: (($obj: InfileTar, pspec: GObject.ParamSpec) => void)): number
|
|
1250
|
+
connect_after(sigName: "notify::remaining", callback: (($obj: InfileTar, pspec: GObject.ParamSpec) => void)): number
|
|
1251
|
+
emit(sigName: "notify::remaining", ...args: any[]): void
|
|
1252
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
1253
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
1254
|
+
emit(sigName: string, ...args: any[]): void
|
|
1255
|
+
disconnect(id: number): void
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1258
|
+
class InfileTar extends Infile {
|
|
1259
|
+
|
|
1260
|
+
// Own properties of Gsf-1.Gsf.InfileTar
|
|
1261
|
+
|
|
1262
|
+
static name: string
|
|
1263
|
+
static $gtype: GObject.GType<InfileTar>
|
|
1264
|
+
|
|
1265
|
+
// Constructors of Gsf-1.Gsf.InfileTar
|
|
1266
|
+
|
|
1267
|
+
constructor(config?: InfileTar.ConstructorProperties)
|
|
1268
|
+
/**
|
|
1269
|
+
* Opens the root directory of a Tar file.
|
|
1270
|
+
* <note>This adds a reference to `source`.</note>
|
|
1271
|
+
* @constructor
|
|
1272
|
+
* @param source A base #GsfInput
|
|
1273
|
+
* @returns the new tar file handler
|
|
1274
|
+
*/
|
|
1275
|
+
constructor(source: Input)
|
|
1276
|
+
/**
|
|
1277
|
+
* Opens the root directory of a Tar file.
|
|
1278
|
+
* <note>This adds a reference to `source`.</note>
|
|
1279
|
+
* @constructor
|
|
1280
|
+
* @param source A base #GsfInput
|
|
1281
|
+
* @returns the new tar file handler
|
|
1282
|
+
*/
|
|
1283
|
+
static new(source: Input): InfileTar
|
|
1284
|
+
_init(config?: InfileTar.ConstructorProperties): void
|
|
1285
|
+
}
|
|
1286
|
+
|
|
1287
|
+
module InfileZip {
|
|
1288
|
+
|
|
1289
|
+
// Constructor properties interface
|
|
1290
|
+
|
|
1291
|
+
interface ConstructorProperties extends Infile.ConstructorProperties {
|
|
1292
|
+
|
|
1293
|
+
// Own constructor properties of Gsf-1.Gsf.InfileZip
|
|
1294
|
+
|
|
1295
|
+
internal_parent?: InfileZip | null
|
|
1296
|
+
source?: Input | null
|
|
1297
|
+
}
|
|
1298
|
+
|
|
1299
|
+
}
|
|
1300
|
+
|
|
1301
|
+
interface InfileZip {
|
|
1302
|
+
|
|
1303
|
+
// Own properties of Gsf-1.Gsf.InfileZip
|
|
1304
|
+
|
|
1305
|
+
/**
|
|
1306
|
+
* Controls the level of compression used for new members.
|
|
1307
|
+
*/
|
|
1308
|
+
readonly compression_level: number
|
|
1309
|
+
readonly internal_parent: InfileZip
|
|
1310
|
+
readonly source: Input
|
|
1311
|
+
readonly zip64: boolean
|
|
1312
|
+
|
|
1313
|
+
// Class property signals of Gsf-1.Gsf.InfileZip
|
|
1314
|
+
|
|
1315
|
+
connect(sigName: "notify::compression-level", callback: (($obj: InfileZip, pspec: GObject.ParamSpec) => void)): number
|
|
1316
|
+
connect_after(sigName: "notify::compression-level", callback: (($obj: InfileZip, pspec: GObject.ParamSpec) => void)): number
|
|
1317
|
+
emit(sigName: "notify::compression-level", ...args: any[]): void
|
|
1318
|
+
connect(sigName: "notify::internal-parent", callback: (($obj: InfileZip, pspec: GObject.ParamSpec) => void)): number
|
|
1319
|
+
connect_after(sigName: "notify::internal-parent", callback: (($obj: InfileZip, pspec: GObject.ParamSpec) => void)): number
|
|
1320
|
+
emit(sigName: "notify::internal-parent", ...args: any[]): void
|
|
1321
|
+
connect(sigName: "notify::source", callback: (($obj: InfileZip, pspec: GObject.ParamSpec) => void)): number
|
|
1322
|
+
connect_after(sigName: "notify::source", callback: (($obj: InfileZip, pspec: GObject.ParamSpec) => void)): number
|
|
1323
|
+
emit(sigName: "notify::source", ...args: any[]): void
|
|
1324
|
+
connect(sigName: "notify::zip64", callback: (($obj: InfileZip, pspec: GObject.ParamSpec) => void)): number
|
|
1325
|
+
connect_after(sigName: "notify::zip64", callback: (($obj: InfileZip, pspec: GObject.ParamSpec) => void)): number
|
|
1326
|
+
emit(sigName: "notify::zip64", ...args: any[]): void
|
|
1327
|
+
connect(sigName: "notify::eof", callback: (($obj: InfileZip, pspec: GObject.ParamSpec) => void)): number
|
|
1328
|
+
connect_after(sigName: "notify::eof", callback: (($obj: InfileZip, pspec: GObject.ParamSpec) => void)): number
|
|
1329
|
+
emit(sigName: "notify::eof", ...args: any[]): void
|
|
1330
|
+
connect(sigName: "notify::modtime", callback: (($obj: InfileZip, pspec: GObject.ParamSpec) => void)): number
|
|
1331
|
+
connect_after(sigName: "notify::modtime", callback: (($obj: InfileZip, pspec: GObject.ParamSpec) => void)): number
|
|
1332
|
+
emit(sigName: "notify::modtime", ...args: any[]): void
|
|
1333
|
+
connect(sigName: "notify::position", callback: (($obj: InfileZip, pspec: GObject.ParamSpec) => void)): number
|
|
1334
|
+
connect_after(sigName: "notify::position", callback: (($obj: InfileZip, pspec: GObject.ParamSpec) => void)): number
|
|
1335
|
+
emit(sigName: "notify::position", ...args: any[]): void
|
|
1336
|
+
connect(sigName: "notify::remaining", callback: (($obj: InfileZip, pspec: GObject.ParamSpec) => void)): number
|
|
1337
|
+
connect_after(sigName: "notify::remaining", callback: (($obj: InfileZip, pspec: GObject.ParamSpec) => void)): number
|
|
1338
|
+
emit(sigName: "notify::remaining", ...args: any[]): void
|
|
1339
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
1340
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
1341
|
+
emit(sigName: string, ...args: any[]): void
|
|
1342
|
+
disconnect(id: number): void
|
|
1343
|
+
}
|
|
1344
|
+
|
|
1345
|
+
class InfileZip extends Infile {
|
|
1346
|
+
|
|
1347
|
+
// Own properties of Gsf-1.Gsf.InfileZip
|
|
1348
|
+
|
|
1349
|
+
static name: string
|
|
1350
|
+
static $gtype: GObject.GType<InfileZip>
|
|
1351
|
+
|
|
1352
|
+
// Constructors of Gsf-1.Gsf.InfileZip
|
|
1353
|
+
|
|
1354
|
+
constructor(config?: InfileZip.ConstructorProperties)
|
|
1355
|
+
/**
|
|
1356
|
+
* Opens the root directory of a Zip file.
|
|
1357
|
+
* <note>This adds a reference to `source`.</note>
|
|
1358
|
+
* @constructor
|
|
1359
|
+
* @param source A base #GsfInput
|
|
1360
|
+
* @returns the new zip file handler
|
|
1361
|
+
*/
|
|
1362
|
+
constructor(source: Input)
|
|
1363
|
+
/**
|
|
1364
|
+
* Opens the root directory of a Zip file.
|
|
1365
|
+
* <note>This adds a reference to `source`.</note>
|
|
1366
|
+
* @constructor
|
|
1367
|
+
* @param source A base #GsfInput
|
|
1368
|
+
* @returns the new zip file handler
|
|
1369
|
+
*/
|
|
1370
|
+
static new(source: Input): InfileZip
|
|
1371
|
+
_init(config?: InfileZip.ConstructorProperties): void
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
module Input {
|
|
1375
|
+
|
|
1376
|
+
// Constructor properties interface
|
|
1377
|
+
|
|
1378
|
+
interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
1379
|
+
}
|
|
1380
|
+
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1383
|
+
interface Input {
|
|
1384
|
+
|
|
1385
|
+
// Own properties of Gsf-1.Gsf.Input
|
|
1386
|
+
|
|
1387
|
+
/**
|
|
1388
|
+
* %TRUE if the end of the file has been reached.
|
|
1389
|
+
*/
|
|
1390
|
+
readonly eof: boolean
|
|
1391
|
+
/**
|
|
1392
|
+
* The time the input was last updated. This represents the
|
|
1393
|
+
* timestamp from the originating file or `GsfInfile` member.
|
|
1394
|
+
* It is not supported by all derived classes.
|
|
1395
|
+
*/
|
|
1396
|
+
readonly modtime: GLib.DateTime
|
|
1397
|
+
/**
|
|
1398
|
+
* The current position in the input.
|
|
1399
|
+
*/
|
|
1400
|
+
readonly position: number
|
|
1401
|
+
/**
|
|
1402
|
+
* The number of bytes remaining in the file.
|
|
1403
|
+
*/
|
|
1404
|
+
readonly remaining: number
|
|
1405
|
+
|
|
1406
|
+
// Own fields of Gsf-1.Gsf.Input
|
|
1407
|
+
|
|
1408
|
+
g_object: GObject.Object
|
|
1409
|
+
size: gsf_off_t
|
|
1410
|
+
cur_offset: gsf_off_t
|
|
1411
|
+
name: string | null
|
|
1412
|
+
container: Infile
|
|
1413
|
+
|
|
1414
|
+
// Owm methods of Gsf-1.Gsf.Input
|
|
1415
|
+
|
|
1416
|
+
/**
|
|
1417
|
+
* Copy the contents from `input` to `output` from their respective
|
|
1418
|
+
* current positions. So if you want to be sure to copy *everything*,
|
|
1419
|
+
* make sure to call gsf_input_seek (input, 0, G_SEEK_SET) and
|
|
1420
|
+
* gsf_output_seek (output, 0, G_SEEK_SET) first, if applicable.
|
|
1421
|
+
* @param output a non-null #GsfOutput
|
|
1422
|
+
* @returns %TRUE on success
|
|
1423
|
+
*/
|
|
1424
|
+
copy(output: Output): boolean
|
|
1425
|
+
/**
|
|
1426
|
+
* Dumps `input'`s contents to STDOUT, optionally in hex format.
|
|
1427
|
+
* @param dump_as_hex If %TRUE, dump in hexidecmal format
|
|
1428
|
+
*/
|
|
1429
|
+
dump(dump_as_hex: boolean): void
|
|
1430
|
+
/**
|
|
1431
|
+
* Duplicates `input` leaving the new one at the same offset.
|
|
1432
|
+
* @returns the duplicate
|
|
1433
|
+
*/
|
|
1434
|
+
dup(): Input | null
|
|
1435
|
+
/**
|
|
1436
|
+
* A utility routine that attempts to find the VBA file withint a stream.
|
|
1437
|
+
* @returns a GsfInfile
|
|
1438
|
+
*/
|
|
1439
|
+
find_vba(): InfileMSVBA | null
|
|
1440
|
+
get_modtime(): GLib.DateTime
|
|
1441
|
+
/**
|
|
1442
|
+
* Read `num_bytes`. Does not change the current position if there
|
|
1443
|
+
* is an error. Will only read if the entire amount can be read.
|
|
1444
|
+
* @param num_bytes number of bytes to read
|
|
1445
|
+
* @returns the data read.
|
|
1446
|
+
*/
|
|
1447
|
+
read(num_bytes: number): Uint8Array
|
|
1448
|
+
/**
|
|
1449
|
+
* Move the current location in the input stream.
|
|
1450
|
+
* @param offset target offset
|
|
1451
|
+
* @param whence determines whether the offset is relative to the beginning or the end of the stream, or to the current location.
|
|
1452
|
+
* @returns %TRUE on error.
|
|
1453
|
+
*/
|
|
1454
|
+
seek(offset: gsf_off_t, whence: GLib.SeekType): boolean
|
|
1455
|
+
/**
|
|
1456
|
+
* Emulate forward seeks by reading.
|
|
1457
|
+
* @param pos absolute position to seek to
|
|
1458
|
+
* @returns %TRUE if the emulation failed.
|
|
1459
|
+
*/
|
|
1460
|
+
seek_emulate(pos: gsf_off_t): boolean
|
|
1461
|
+
set_container(container: Infile | null): boolean
|
|
1462
|
+
/**
|
|
1463
|
+
* protected.
|
|
1464
|
+
* @param modtime the new modification time.
|
|
1465
|
+
* @returns %TRUE if the assignment was ok.
|
|
1466
|
+
*/
|
|
1467
|
+
set_modtime(modtime: GLib.DateTime | null): boolean
|
|
1468
|
+
set_modtime_from_stat(st: any | null): boolean
|
|
1469
|
+
/**
|
|
1470
|
+
* protected.
|
|
1471
|
+
* @param name the new name of the stream
|
|
1472
|
+
* @returns %TRUE if the assignment was ok.
|
|
1473
|
+
*/
|
|
1474
|
+
set_name(name: string | null): boolean
|
|
1475
|
+
/**
|
|
1476
|
+
* protected.
|
|
1477
|
+
* @param filename the (fs-sys encoded) filename
|
|
1478
|
+
* @returns %TRUE if the assignment was ok.
|
|
1479
|
+
*/
|
|
1480
|
+
set_name_from_filename(filename: string | null): boolean
|
|
1481
|
+
set_size(size: gsf_off_t): boolean
|
|
1482
|
+
/**
|
|
1483
|
+
* UNIMPLEMENTED BY ANY BACKEND
|
|
1484
|
+
* and it is probably unnecessary. gsf_input_get_container provides
|
|
1485
|
+
* enough power to do what is necessary.
|
|
1486
|
+
*
|
|
1487
|
+
* Attempts to open a 'sibling' of `input`. The caller is responsible for
|
|
1488
|
+
* managing the resulting object.
|
|
1489
|
+
* @param name name.
|
|
1490
|
+
* @returns A related #GsfInput
|
|
1491
|
+
*/
|
|
1492
|
+
sibling(name: string | null): Input
|
|
1493
|
+
tell(): gsf_off_t
|
|
1494
|
+
/**
|
|
1495
|
+
* This functions takes ownership of the incoming reference and yields a
|
|
1496
|
+
* new one as its output.
|
|
1497
|
+
* @returns A stream equivalent to the source stream, but uncompressed if the source was compressed.
|
|
1498
|
+
*/
|
|
1499
|
+
uncompress(): Input
|
|
1500
|
+
|
|
1501
|
+
// Own virtual methods of Gsf-1.Gsf.Input
|
|
1502
|
+
|
|
1503
|
+
/**
|
|
1504
|
+
* Duplicates `input` leaving the new one at the same offset.
|
|
1505
|
+
* @virtual
|
|
1506
|
+
* @returns the duplicate
|
|
1507
|
+
*/
|
|
1508
|
+
vfunc_Dup(): Input | null
|
|
1509
|
+
/**
|
|
1510
|
+
* UNIMPLEMENTED BY ANY BACKEND
|
|
1511
|
+
* and it is probably unnecessary. gsf_input_get_container provides
|
|
1512
|
+
* enough power to do what is necessary.
|
|
1513
|
+
*
|
|
1514
|
+
* Attempts to open a 'sibling' of `input`. The caller is responsible for
|
|
1515
|
+
* managing the resulting object.
|
|
1516
|
+
* @virtual
|
|
1517
|
+
* @param name name.
|
|
1518
|
+
* @returns A related #GsfInput
|
|
1519
|
+
*/
|
|
1520
|
+
vfunc_OpenSibling(name: string | null): Input
|
|
1521
|
+
/**
|
|
1522
|
+
* Move the current location in the input stream.
|
|
1523
|
+
* @virtual
|
|
1524
|
+
* @param offset target offset
|
|
1525
|
+
* @param whence determines whether the offset is relative to the beginning or the end of the stream, or to the current location.
|
|
1526
|
+
* @returns %TRUE on error.
|
|
1527
|
+
*/
|
|
1528
|
+
vfunc_Seek(offset: gsf_off_t, whence: GLib.SeekType): boolean
|
|
1529
|
+
|
|
1530
|
+
// Class property signals of Gsf-1.Gsf.Input
|
|
1531
|
+
|
|
1532
|
+
connect(sigName: "notify::eof", callback: (($obj: Input, pspec: GObject.ParamSpec) => void)): number
|
|
1533
|
+
connect_after(sigName: "notify::eof", callback: (($obj: Input, pspec: GObject.ParamSpec) => void)): number
|
|
1534
|
+
emit(sigName: "notify::eof", ...args: any[]): void
|
|
1535
|
+
connect(sigName: "notify::modtime", callback: (($obj: Input, pspec: GObject.ParamSpec) => void)): number
|
|
1536
|
+
connect_after(sigName: "notify::modtime", callback: (($obj: Input, pspec: GObject.ParamSpec) => void)): number
|
|
1537
|
+
emit(sigName: "notify::modtime", ...args: any[]): void
|
|
1538
|
+
connect(sigName: "notify::position", callback: (($obj: Input, pspec: GObject.ParamSpec) => void)): number
|
|
1539
|
+
connect_after(sigName: "notify::position", callback: (($obj: Input, pspec: GObject.ParamSpec) => void)): number
|
|
1540
|
+
emit(sigName: "notify::position", ...args: any[]): void
|
|
1541
|
+
connect(sigName: "notify::remaining", callback: (($obj: Input, pspec: GObject.ParamSpec) => void)): number
|
|
1542
|
+
connect_after(sigName: "notify::remaining", callback: (($obj: Input, pspec: GObject.ParamSpec) => void)): number
|
|
1543
|
+
emit(sigName: "notify::remaining", ...args: any[]): void
|
|
1544
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
1545
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
1546
|
+
emit(sigName: string, ...args: any[]): void
|
|
1547
|
+
disconnect(id: number): void
|
|
1548
|
+
}
|
|
1549
|
+
|
|
1550
|
+
/**
|
|
1551
|
+
* Class representing an input stream.
|
|
1552
|
+
* @class
|
|
1553
|
+
*/
|
|
1554
|
+
class Input extends GObject.Object {
|
|
1555
|
+
|
|
1556
|
+
// Own properties of Gsf-1.Gsf.Input
|
|
1557
|
+
|
|
1558
|
+
static name: string
|
|
1559
|
+
static $gtype: GObject.GType<Input>
|
|
1560
|
+
|
|
1561
|
+
// Constructors of Gsf-1.Gsf.Input
|
|
1562
|
+
|
|
1563
|
+
constructor(config?: Input.ConstructorProperties)
|
|
1564
|
+
static mmap_new(filename: string | null): Input
|
|
1565
|
+
_init(config?: Input.ConstructorProperties): void
|
|
1566
|
+
static error_id(): GLib.Quark
|
|
1567
|
+
}
|
|
1568
|
+
|
|
1569
|
+
module InputGZip {
|
|
1570
|
+
|
|
1571
|
+
// Constructor properties interface
|
|
1572
|
+
|
|
1573
|
+
interface ConstructorProperties extends Input.ConstructorProperties {
|
|
1574
|
+
|
|
1575
|
+
// Own constructor properties of Gsf-1.Gsf.InputGZip
|
|
1576
|
+
|
|
1577
|
+
raw?: boolean | null
|
|
1578
|
+
source?: Input | null
|
|
1579
|
+
uncompressed_size?: number | null
|
|
1580
|
+
}
|
|
1581
|
+
|
|
1582
|
+
}
|
|
1583
|
+
|
|
1584
|
+
interface InputGZip {
|
|
1585
|
+
|
|
1586
|
+
// Own properties of Gsf-1.Gsf.InputGZip
|
|
1587
|
+
|
|
1588
|
+
readonly raw: boolean
|
|
1589
|
+
readonly source: Input
|
|
1590
|
+
readonly uncompressed_size: number
|
|
1591
|
+
|
|
1592
|
+
// Class property signals of Gsf-1.Gsf.InputGZip
|
|
1593
|
+
|
|
1594
|
+
connect(sigName: "notify::raw", callback: (($obj: InputGZip, pspec: GObject.ParamSpec) => void)): number
|
|
1595
|
+
connect_after(sigName: "notify::raw", callback: (($obj: InputGZip, pspec: GObject.ParamSpec) => void)): number
|
|
1596
|
+
emit(sigName: "notify::raw", ...args: any[]): void
|
|
1597
|
+
connect(sigName: "notify::source", callback: (($obj: InputGZip, pspec: GObject.ParamSpec) => void)): number
|
|
1598
|
+
connect_after(sigName: "notify::source", callback: (($obj: InputGZip, pspec: GObject.ParamSpec) => void)): number
|
|
1599
|
+
emit(sigName: "notify::source", ...args: any[]): void
|
|
1600
|
+
connect(sigName: "notify::uncompressed-size", callback: (($obj: InputGZip, pspec: GObject.ParamSpec) => void)): number
|
|
1601
|
+
connect_after(sigName: "notify::uncompressed-size", callback: (($obj: InputGZip, pspec: GObject.ParamSpec) => void)): number
|
|
1602
|
+
emit(sigName: "notify::uncompressed-size", ...args: any[]): void
|
|
1603
|
+
connect(sigName: "notify::eof", callback: (($obj: InputGZip, pspec: GObject.ParamSpec) => void)): number
|
|
1604
|
+
connect_after(sigName: "notify::eof", callback: (($obj: InputGZip, pspec: GObject.ParamSpec) => void)): number
|
|
1605
|
+
emit(sigName: "notify::eof", ...args: any[]): void
|
|
1606
|
+
connect(sigName: "notify::modtime", callback: (($obj: InputGZip, pspec: GObject.ParamSpec) => void)): number
|
|
1607
|
+
connect_after(sigName: "notify::modtime", callback: (($obj: InputGZip, pspec: GObject.ParamSpec) => void)): number
|
|
1608
|
+
emit(sigName: "notify::modtime", ...args: any[]): void
|
|
1609
|
+
connect(sigName: "notify::position", callback: (($obj: InputGZip, pspec: GObject.ParamSpec) => void)): number
|
|
1610
|
+
connect_after(sigName: "notify::position", callback: (($obj: InputGZip, pspec: GObject.ParamSpec) => void)): number
|
|
1611
|
+
emit(sigName: "notify::position", ...args: any[]): void
|
|
1612
|
+
connect(sigName: "notify::remaining", callback: (($obj: InputGZip, pspec: GObject.ParamSpec) => void)): number
|
|
1613
|
+
connect_after(sigName: "notify::remaining", callback: (($obj: InputGZip, pspec: GObject.ParamSpec) => void)): number
|
|
1614
|
+
emit(sigName: "notify::remaining", ...args: any[]): void
|
|
1615
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
1616
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
1617
|
+
emit(sigName: string, ...args: any[]): void
|
|
1618
|
+
disconnect(id: number): void
|
|
1619
|
+
}
|
|
1620
|
+
|
|
1621
|
+
class InputGZip extends Input {
|
|
1622
|
+
|
|
1623
|
+
// Own properties of Gsf-1.Gsf.InputGZip
|
|
1624
|
+
|
|
1625
|
+
static name: string
|
|
1626
|
+
static $gtype: GObject.GType<InputGZip>
|
|
1627
|
+
|
|
1628
|
+
// Constructors of Gsf-1.Gsf.InputGZip
|
|
1629
|
+
|
|
1630
|
+
constructor(config?: InputGZip.ConstructorProperties)
|
|
1631
|
+
/**
|
|
1632
|
+
* Adds a reference to `source`.
|
|
1633
|
+
* @constructor
|
|
1634
|
+
* @param source The underlying data source.
|
|
1635
|
+
* @returns a new file or %NULL.
|
|
1636
|
+
*/
|
|
1637
|
+
constructor(source: Input)
|
|
1638
|
+
/**
|
|
1639
|
+
* Adds a reference to `source`.
|
|
1640
|
+
* @constructor
|
|
1641
|
+
* @param source The underlying data source.
|
|
1642
|
+
* @returns a new file or %NULL.
|
|
1643
|
+
*/
|
|
1644
|
+
static new(source: Input): InputGZip
|
|
1645
|
+
_init(config?: InputGZip.ConstructorProperties): void
|
|
1646
|
+
}
|
|
1647
|
+
|
|
1648
|
+
module InputGio {
|
|
1649
|
+
|
|
1650
|
+
// Constructor properties interface
|
|
1651
|
+
|
|
1652
|
+
interface ConstructorProperties extends Input.ConstructorProperties {
|
|
1653
|
+
}
|
|
1654
|
+
|
|
1655
|
+
}
|
|
1656
|
+
|
|
1657
|
+
interface InputGio {
|
|
1658
|
+
|
|
1659
|
+
// Class property signals of Gsf-1.Gsf.InputGio
|
|
1660
|
+
|
|
1661
|
+
connect(sigName: "notify::eof", callback: (($obj: InputGio, pspec: GObject.ParamSpec) => void)): number
|
|
1662
|
+
connect_after(sigName: "notify::eof", callback: (($obj: InputGio, pspec: GObject.ParamSpec) => void)): number
|
|
1663
|
+
emit(sigName: "notify::eof", ...args: any[]): void
|
|
1664
|
+
connect(sigName: "notify::modtime", callback: (($obj: InputGio, pspec: GObject.ParamSpec) => void)): number
|
|
1665
|
+
connect_after(sigName: "notify::modtime", callback: (($obj: InputGio, pspec: GObject.ParamSpec) => void)): number
|
|
1666
|
+
emit(sigName: "notify::modtime", ...args: any[]): void
|
|
1667
|
+
connect(sigName: "notify::position", callback: (($obj: InputGio, pspec: GObject.ParamSpec) => void)): number
|
|
1668
|
+
connect_after(sigName: "notify::position", callback: (($obj: InputGio, pspec: GObject.ParamSpec) => void)): number
|
|
1669
|
+
emit(sigName: "notify::position", ...args: any[]): void
|
|
1670
|
+
connect(sigName: "notify::remaining", callback: (($obj: InputGio, pspec: GObject.ParamSpec) => void)): number
|
|
1671
|
+
connect_after(sigName: "notify::remaining", callback: (($obj: InputGio, pspec: GObject.ParamSpec) => void)): number
|
|
1672
|
+
emit(sigName: "notify::remaining", ...args: any[]): void
|
|
1673
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
1674
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
1675
|
+
emit(sigName: string, ...args: any[]): void
|
|
1676
|
+
disconnect(id: number): void
|
|
1677
|
+
}
|
|
1678
|
+
|
|
1679
|
+
class InputGio extends Input {
|
|
1680
|
+
|
|
1681
|
+
// Own properties of Gsf-1.Gsf.InputGio
|
|
1682
|
+
|
|
1683
|
+
static name: string
|
|
1684
|
+
static $gtype: GObject.GType<InputGio>
|
|
1685
|
+
|
|
1686
|
+
// Constructors of Gsf-1.Gsf.InputGio
|
|
1687
|
+
|
|
1688
|
+
constructor(config?: InputGio.ConstructorProperties)
|
|
1689
|
+
constructor(file: Gio.File)
|
|
1690
|
+
static new(file: Gio.File): InputGio
|
|
1691
|
+
static new_for_path(path: string | null): InputGio
|
|
1692
|
+
static new_for_uri(uri: string | null): InputGio
|
|
1693
|
+
_init(config?: InputGio.ConstructorProperties): void
|
|
1694
|
+
}
|
|
1695
|
+
|
|
1696
|
+
module InputHTTP {
|
|
1697
|
+
|
|
1698
|
+
// Constructor properties interface
|
|
1699
|
+
|
|
1700
|
+
interface ConstructorProperties extends Input.ConstructorProperties {
|
|
1701
|
+
|
|
1702
|
+
// Own constructor properties of Gsf-1.Gsf.InputHTTP
|
|
1703
|
+
|
|
1704
|
+
content_type?: string | null
|
|
1705
|
+
url?: string | null
|
|
1706
|
+
}
|
|
1707
|
+
|
|
1708
|
+
}
|
|
1709
|
+
|
|
1710
|
+
interface InputHTTP {
|
|
1711
|
+
|
|
1712
|
+
// Own properties of Gsf-1.Gsf.InputHTTP
|
|
1713
|
+
|
|
1714
|
+
readonly content_type: string | null
|
|
1715
|
+
readonly url: string | null
|
|
1716
|
+
|
|
1717
|
+
// Owm methods of Gsf-1.Gsf.InputHTTP
|
|
1718
|
+
|
|
1719
|
+
get_content_type(): string | null
|
|
1720
|
+
get_url(): string | null
|
|
1721
|
+
|
|
1722
|
+
// Class property signals of Gsf-1.Gsf.InputHTTP
|
|
1723
|
+
|
|
1724
|
+
connect(sigName: "notify::content-type", callback: (($obj: InputHTTP, pspec: GObject.ParamSpec) => void)): number
|
|
1725
|
+
connect_after(sigName: "notify::content-type", callback: (($obj: InputHTTP, pspec: GObject.ParamSpec) => void)): number
|
|
1726
|
+
emit(sigName: "notify::content-type", ...args: any[]): void
|
|
1727
|
+
connect(sigName: "notify::url", callback: (($obj: InputHTTP, pspec: GObject.ParamSpec) => void)): number
|
|
1728
|
+
connect_after(sigName: "notify::url", callback: (($obj: InputHTTP, pspec: GObject.ParamSpec) => void)): number
|
|
1729
|
+
emit(sigName: "notify::url", ...args: any[]): void
|
|
1730
|
+
connect(sigName: "notify::eof", callback: (($obj: InputHTTP, pspec: GObject.ParamSpec) => void)): number
|
|
1731
|
+
connect_after(sigName: "notify::eof", callback: (($obj: InputHTTP, pspec: GObject.ParamSpec) => void)): number
|
|
1732
|
+
emit(sigName: "notify::eof", ...args: any[]): void
|
|
1733
|
+
connect(sigName: "notify::modtime", callback: (($obj: InputHTTP, pspec: GObject.ParamSpec) => void)): number
|
|
1734
|
+
connect_after(sigName: "notify::modtime", callback: (($obj: InputHTTP, pspec: GObject.ParamSpec) => void)): number
|
|
1735
|
+
emit(sigName: "notify::modtime", ...args: any[]): void
|
|
1736
|
+
connect(sigName: "notify::position", callback: (($obj: InputHTTP, pspec: GObject.ParamSpec) => void)): number
|
|
1737
|
+
connect_after(sigName: "notify::position", callback: (($obj: InputHTTP, pspec: GObject.ParamSpec) => void)): number
|
|
1738
|
+
emit(sigName: "notify::position", ...args: any[]): void
|
|
1739
|
+
connect(sigName: "notify::remaining", callback: (($obj: InputHTTP, pspec: GObject.ParamSpec) => void)): number
|
|
1740
|
+
connect_after(sigName: "notify::remaining", callback: (($obj: InputHTTP, pspec: GObject.ParamSpec) => void)): number
|
|
1741
|
+
emit(sigName: "notify::remaining", ...args: any[]): void
|
|
1742
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
1743
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
1744
|
+
emit(sigName: string, ...args: any[]): void
|
|
1745
|
+
disconnect(id: number): void
|
|
1746
|
+
}
|
|
1747
|
+
|
|
1748
|
+
class InputHTTP extends Input {
|
|
1749
|
+
|
|
1750
|
+
// Own properties of Gsf-1.Gsf.InputHTTP
|
|
1751
|
+
|
|
1752
|
+
static name: string
|
|
1753
|
+
static $gtype: GObject.GType<InputHTTP>
|
|
1754
|
+
|
|
1755
|
+
// Constructors of Gsf-1.Gsf.InputHTTP
|
|
1756
|
+
|
|
1757
|
+
constructor(config?: InputHTTP.ConstructorProperties)
|
|
1758
|
+
constructor(url: string | null)
|
|
1759
|
+
static new(url: string | null): InputHTTP
|
|
1760
|
+
_init(config?: InputHTTP.ConstructorProperties): void
|
|
1761
|
+
}
|
|
1762
|
+
|
|
1763
|
+
module InputMemory {
|
|
1764
|
+
|
|
1765
|
+
// Constructor properties interface
|
|
1766
|
+
|
|
1767
|
+
interface ConstructorProperties extends Input.ConstructorProperties {
|
|
1768
|
+
}
|
|
1769
|
+
|
|
1770
|
+
}
|
|
1771
|
+
|
|
1772
|
+
interface InputMemory {
|
|
1773
|
+
|
|
1774
|
+
// Class property signals of Gsf-1.Gsf.InputMemory
|
|
1775
|
+
|
|
1776
|
+
connect(sigName: "notify::eof", callback: (($obj: InputMemory, pspec: GObject.ParamSpec) => void)): number
|
|
1777
|
+
connect_after(sigName: "notify::eof", callback: (($obj: InputMemory, pspec: GObject.ParamSpec) => void)): number
|
|
1778
|
+
emit(sigName: "notify::eof", ...args: any[]): void
|
|
1779
|
+
connect(sigName: "notify::modtime", callback: (($obj: InputMemory, pspec: GObject.ParamSpec) => void)): number
|
|
1780
|
+
connect_after(sigName: "notify::modtime", callback: (($obj: InputMemory, pspec: GObject.ParamSpec) => void)): number
|
|
1781
|
+
emit(sigName: "notify::modtime", ...args: any[]): void
|
|
1782
|
+
connect(sigName: "notify::position", callback: (($obj: InputMemory, pspec: GObject.ParamSpec) => void)): number
|
|
1783
|
+
connect_after(sigName: "notify::position", callback: (($obj: InputMemory, pspec: GObject.ParamSpec) => void)): number
|
|
1784
|
+
emit(sigName: "notify::position", ...args: any[]): void
|
|
1785
|
+
connect(sigName: "notify::remaining", callback: (($obj: InputMemory, pspec: GObject.ParamSpec) => void)): number
|
|
1786
|
+
connect_after(sigName: "notify::remaining", callback: (($obj: InputMemory, pspec: GObject.ParamSpec) => void)): number
|
|
1787
|
+
emit(sigName: "notify::remaining", ...args: any[]): void
|
|
1788
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
1789
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
1790
|
+
emit(sigName: string, ...args: any[]): void
|
|
1791
|
+
disconnect(id: number): void
|
|
1792
|
+
}
|
|
1793
|
+
|
|
1794
|
+
class InputMemory extends Input {
|
|
1795
|
+
|
|
1796
|
+
// Own properties of Gsf-1.Gsf.InputMemory
|
|
1797
|
+
|
|
1798
|
+
static name: string
|
|
1799
|
+
static $gtype: GObject.GType<InputMemory>
|
|
1800
|
+
|
|
1801
|
+
// Constructors of Gsf-1.Gsf.InputMemory
|
|
1802
|
+
|
|
1803
|
+
constructor(config?: InputMemory.ConstructorProperties)
|
|
1804
|
+
constructor(buf: Uint8Array, needs_free: boolean)
|
|
1805
|
+
static new(buf: Uint8Array, needs_free: boolean): InputMemory
|
|
1806
|
+
static new_clone(buf: Uint8Array): InputMemory
|
|
1807
|
+
static new_from_bzip(source: Input): InputMemory
|
|
1808
|
+
static new_from_iochannel(channel: GLib.IOChannel): InputMemory
|
|
1809
|
+
_init(config?: InputMemory.ConstructorProperties): void
|
|
1810
|
+
}
|
|
1811
|
+
|
|
1812
|
+
module InputProxy {
|
|
1813
|
+
|
|
1814
|
+
// Constructor properties interface
|
|
1815
|
+
|
|
1816
|
+
interface ConstructorProperties extends Input.ConstructorProperties {
|
|
1817
|
+
}
|
|
1818
|
+
|
|
1819
|
+
}
|
|
1820
|
+
|
|
1821
|
+
interface InputProxy {
|
|
1822
|
+
|
|
1823
|
+
// Class property signals of Gsf-1.Gsf.InputProxy
|
|
1824
|
+
|
|
1825
|
+
connect(sigName: "notify::eof", callback: (($obj: InputProxy, pspec: GObject.ParamSpec) => void)): number
|
|
1826
|
+
connect_after(sigName: "notify::eof", callback: (($obj: InputProxy, pspec: GObject.ParamSpec) => void)): number
|
|
1827
|
+
emit(sigName: "notify::eof", ...args: any[]): void
|
|
1828
|
+
connect(sigName: "notify::modtime", callback: (($obj: InputProxy, pspec: GObject.ParamSpec) => void)): number
|
|
1829
|
+
connect_after(sigName: "notify::modtime", callback: (($obj: InputProxy, pspec: GObject.ParamSpec) => void)): number
|
|
1830
|
+
emit(sigName: "notify::modtime", ...args: any[]): void
|
|
1831
|
+
connect(sigName: "notify::position", callback: (($obj: InputProxy, pspec: GObject.ParamSpec) => void)): number
|
|
1832
|
+
connect_after(sigName: "notify::position", callback: (($obj: InputProxy, pspec: GObject.ParamSpec) => void)): number
|
|
1833
|
+
emit(sigName: "notify::position", ...args: any[]): void
|
|
1834
|
+
connect(sigName: "notify::remaining", callback: (($obj: InputProxy, pspec: GObject.ParamSpec) => void)): number
|
|
1835
|
+
connect_after(sigName: "notify::remaining", callback: (($obj: InputProxy, pspec: GObject.ParamSpec) => void)): number
|
|
1836
|
+
emit(sigName: "notify::remaining", ...args: any[]): void
|
|
1837
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
1838
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
1839
|
+
emit(sigName: string, ...args: any[]): void
|
|
1840
|
+
disconnect(id: number): void
|
|
1841
|
+
}
|
|
1842
|
+
|
|
1843
|
+
class InputProxy extends Input {
|
|
1844
|
+
|
|
1845
|
+
// Own properties of Gsf-1.Gsf.InputProxy
|
|
1846
|
+
|
|
1847
|
+
static name: string
|
|
1848
|
+
static $gtype: GObject.GType<InputProxy>
|
|
1849
|
+
|
|
1850
|
+
// Constructors of Gsf-1.Gsf.InputProxy
|
|
1851
|
+
|
|
1852
|
+
constructor(config?: InputProxy.ConstructorProperties)
|
|
1853
|
+
/**
|
|
1854
|
+
* This creates a new proxy to the entire, given input source. See
|
|
1855
|
+
* gsf_input_proxy_new_section for details.
|
|
1856
|
+
* @constructor
|
|
1857
|
+
* @param source The underlying data source.
|
|
1858
|
+
* @returns a new input object.
|
|
1859
|
+
*/
|
|
1860
|
+
constructor(source: Input)
|
|
1861
|
+
/**
|
|
1862
|
+
* This creates a new proxy to the entire, given input source. See
|
|
1863
|
+
* gsf_input_proxy_new_section for details.
|
|
1864
|
+
* @constructor
|
|
1865
|
+
* @param source The underlying data source.
|
|
1866
|
+
* @returns a new input object.
|
|
1867
|
+
*/
|
|
1868
|
+
static new(source: Input): InputProxy
|
|
1869
|
+
/**
|
|
1870
|
+
* This creates a new proxy to a section of the given source. The new
|
|
1871
|
+
* object will have its own current position, but any operation on it
|
|
1872
|
+
* can change the source's position.
|
|
1873
|
+
*
|
|
1874
|
+
* If a proxy to a proxy is created, the intermediate proxy is short-
|
|
1875
|
+
* circuited.
|
|
1876
|
+
*
|
|
1877
|
+
* This function will ref the source.
|
|
1878
|
+
* @constructor
|
|
1879
|
+
* @param source The underlying data source.
|
|
1880
|
+
* @param offset Offset into source for start of section.
|
|
1881
|
+
* @param size Length of section.
|
|
1882
|
+
* @returns a new input object.
|
|
1883
|
+
*/
|
|
1884
|
+
static new_section(source: Input, offset: gsf_off_t, size: gsf_off_t): InputProxy
|
|
1885
|
+
_init(config?: InputProxy.ConstructorProperties): void
|
|
1886
|
+
}
|
|
1887
|
+
|
|
1888
|
+
module InputStdio {
|
|
1889
|
+
|
|
1890
|
+
// Constructor properties interface
|
|
1891
|
+
|
|
1892
|
+
interface ConstructorProperties extends Input.ConstructorProperties {
|
|
1893
|
+
}
|
|
1894
|
+
|
|
1895
|
+
}
|
|
1896
|
+
|
|
1897
|
+
interface InputStdio {
|
|
1898
|
+
|
|
1899
|
+
// Class property signals of Gsf-1.Gsf.InputStdio
|
|
1900
|
+
|
|
1901
|
+
connect(sigName: "notify::eof", callback: (($obj: InputStdio, pspec: GObject.ParamSpec) => void)): number
|
|
1902
|
+
connect_after(sigName: "notify::eof", callback: (($obj: InputStdio, pspec: GObject.ParamSpec) => void)): number
|
|
1903
|
+
emit(sigName: "notify::eof", ...args: any[]): void
|
|
1904
|
+
connect(sigName: "notify::modtime", callback: (($obj: InputStdio, pspec: GObject.ParamSpec) => void)): number
|
|
1905
|
+
connect_after(sigName: "notify::modtime", callback: (($obj: InputStdio, pspec: GObject.ParamSpec) => void)): number
|
|
1906
|
+
emit(sigName: "notify::modtime", ...args: any[]): void
|
|
1907
|
+
connect(sigName: "notify::position", callback: (($obj: InputStdio, pspec: GObject.ParamSpec) => void)): number
|
|
1908
|
+
connect_after(sigName: "notify::position", callback: (($obj: InputStdio, pspec: GObject.ParamSpec) => void)): number
|
|
1909
|
+
emit(sigName: "notify::position", ...args: any[]): void
|
|
1910
|
+
connect(sigName: "notify::remaining", callback: (($obj: InputStdio, pspec: GObject.ParamSpec) => void)): number
|
|
1911
|
+
connect_after(sigName: "notify::remaining", callback: (($obj: InputStdio, pspec: GObject.ParamSpec) => void)): number
|
|
1912
|
+
emit(sigName: "notify::remaining", ...args: any[]): void
|
|
1913
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
1914
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
1915
|
+
emit(sigName: string, ...args: any[]): void
|
|
1916
|
+
disconnect(id: number): void
|
|
1917
|
+
}
|
|
1918
|
+
|
|
1919
|
+
class InputStdio extends Input {
|
|
1920
|
+
|
|
1921
|
+
// Own properties of Gsf-1.Gsf.InputStdio
|
|
1922
|
+
|
|
1923
|
+
static name: string
|
|
1924
|
+
static $gtype: GObject.GType<InputStdio>
|
|
1925
|
+
|
|
1926
|
+
// Constructors of Gsf-1.Gsf.InputStdio
|
|
1927
|
+
|
|
1928
|
+
constructor(config?: InputStdio.ConstructorProperties)
|
|
1929
|
+
constructor(filename: string | null)
|
|
1930
|
+
static new(filename: string | null): InputStdio
|
|
1931
|
+
/**
|
|
1932
|
+
* Assumes ownership of `file` when succeeding. If `keep_open` is true,
|
|
1933
|
+
* ownership reverts to caller when the #GsfInput is closed.
|
|
1934
|
+
* @constructor
|
|
1935
|
+
* @param filename The filename corresponding to `file`.
|
|
1936
|
+
* @param file an existing stdio <type>FILE</type> *
|
|
1937
|
+
* @param keep_open Should `file` be closed when the wrapper is closed
|
|
1938
|
+
* @returns a new #GsfInput wrapper for @file. Note that if the file is not seekable, this function will make a local copy of the entire file.
|
|
1939
|
+
*/
|
|
1940
|
+
static new_FILE(filename: string | null, file: any | null, keep_open: boolean): InputStdio
|
|
1941
|
+
_init(config?: InputStdio.ConstructorProperties): void
|
|
1942
|
+
}
|
|
1943
|
+
|
|
1944
|
+
module InputTextline {
|
|
1945
|
+
|
|
1946
|
+
// Constructor properties interface
|
|
1947
|
+
|
|
1948
|
+
interface ConstructorProperties extends Input.ConstructorProperties {
|
|
1949
|
+
}
|
|
1950
|
+
|
|
1951
|
+
}
|
|
1952
|
+
|
|
1953
|
+
interface InputTextline {
|
|
1954
|
+
|
|
1955
|
+
// Owm methods of Gsf-1.Gsf.InputTextline
|
|
1956
|
+
|
|
1957
|
+
/**
|
|
1958
|
+
* A utility routine to read things line by line from the underlying source.
|
|
1959
|
+
* Trailing newlines and carriage returns are stripped, and the resultant buffer
|
|
1960
|
+
* can be edited.
|
|
1961
|
+
* @returns the string read, or %NULL on eof.
|
|
1962
|
+
*/
|
|
1963
|
+
ascii_gets(): Uint8Array | null
|
|
1964
|
+
/**
|
|
1965
|
+
* A utility routine to read things line by line from the underlying source.
|
|
1966
|
+
* Trailing newlines and carriage returns are stripped, and the resultant buffer
|
|
1967
|
+
* can be edited.
|
|
1968
|
+
* @returns the string read, or %NULL on eof.
|
|
1969
|
+
*/
|
|
1970
|
+
utf8_gets(): Uint8Array | null
|
|
1971
|
+
|
|
1972
|
+
// Class property signals of Gsf-1.Gsf.InputTextline
|
|
1973
|
+
|
|
1974
|
+
connect(sigName: "notify::eof", callback: (($obj: InputTextline, pspec: GObject.ParamSpec) => void)): number
|
|
1975
|
+
connect_after(sigName: "notify::eof", callback: (($obj: InputTextline, pspec: GObject.ParamSpec) => void)): number
|
|
1976
|
+
emit(sigName: "notify::eof", ...args: any[]): void
|
|
1977
|
+
connect(sigName: "notify::modtime", callback: (($obj: InputTextline, pspec: GObject.ParamSpec) => void)): number
|
|
1978
|
+
connect_after(sigName: "notify::modtime", callback: (($obj: InputTextline, pspec: GObject.ParamSpec) => void)): number
|
|
1979
|
+
emit(sigName: "notify::modtime", ...args: any[]): void
|
|
1980
|
+
connect(sigName: "notify::position", callback: (($obj: InputTextline, pspec: GObject.ParamSpec) => void)): number
|
|
1981
|
+
connect_after(sigName: "notify::position", callback: (($obj: InputTextline, pspec: GObject.ParamSpec) => void)): number
|
|
1982
|
+
emit(sigName: "notify::position", ...args: any[]): void
|
|
1983
|
+
connect(sigName: "notify::remaining", callback: (($obj: InputTextline, pspec: GObject.ParamSpec) => void)): number
|
|
1984
|
+
connect_after(sigName: "notify::remaining", callback: (($obj: InputTextline, pspec: GObject.ParamSpec) => void)): number
|
|
1985
|
+
emit(sigName: "notify::remaining", ...args: any[]): void
|
|
1986
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
1987
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
1988
|
+
emit(sigName: string, ...args: any[]): void
|
|
1989
|
+
disconnect(id: number): void
|
|
1990
|
+
}
|
|
1991
|
+
|
|
1992
|
+
class InputTextline extends Input {
|
|
1993
|
+
|
|
1994
|
+
// Own properties of Gsf-1.Gsf.InputTextline
|
|
1995
|
+
|
|
1996
|
+
static name: string
|
|
1997
|
+
static $gtype: GObject.GType<InputTextline>
|
|
1998
|
+
|
|
1999
|
+
// Constructors of Gsf-1.Gsf.InputTextline
|
|
2000
|
+
|
|
2001
|
+
constructor(config?: InputTextline.ConstructorProperties)
|
|
2002
|
+
/**
|
|
2003
|
+
* <note>This adds a reference to `source`.</note>
|
|
2004
|
+
* @constructor
|
|
2005
|
+
* @param source in some combination of ascii and utf8
|
|
2006
|
+
* @returns a new file
|
|
2007
|
+
*/
|
|
2008
|
+
constructor(source: Input)
|
|
2009
|
+
/**
|
|
2010
|
+
* <note>This adds a reference to `source`.</note>
|
|
2011
|
+
* @constructor
|
|
2012
|
+
* @param source in some combination of ascii and utf8
|
|
2013
|
+
* @returns a new file
|
|
2014
|
+
*/
|
|
2015
|
+
static new(source: Input): InputTextline
|
|
2016
|
+
_init(config?: InputTextline.ConstructorProperties): void
|
|
2017
|
+
}
|
|
2018
|
+
|
|
2019
|
+
module ODFOut {
|
|
2020
|
+
|
|
2021
|
+
// Constructor properties interface
|
|
2022
|
+
|
|
2023
|
+
interface ConstructorProperties extends XMLOut.ConstructorProperties {
|
|
2024
|
+
|
|
2025
|
+
// Own constructor properties of Gsf-1.Gsf.ODFOut
|
|
2026
|
+
|
|
2027
|
+
odf_version?: number | null
|
|
2028
|
+
}
|
|
2029
|
+
|
|
2030
|
+
}
|
|
2031
|
+
|
|
2032
|
+
interface ODFOut {
|
|
2033
|
+
|
|
2034
|
+
// Own properties of Gsf-1.Gsf.ODFOut
|
|
2035
|
+
|
|
2036
|
+
readonly odf_version: number
|
|
2037
|
+
|
|
2038
|
+
// Own fields of Gsf-1.Gsf.ODFOut
|
|
2039
|
+
|
|
2040
|
+
base: any
|
|
2041
|
+
priv: any
|
|
2042
|
+
|
|
2043
|
+
// Owm methods of Gsf-1.Gsf.ODFOut
|
|
2044
|
+
|
|
2045
|
+
get_version(): number
|
|
2046
|
+
get_version_string(): string | null
|
|
2047
|
+
|
|
2048
|
+
// Class property signals of Gsf-1.Gsf.ODFOut
|
|
2049
|
+
|
|
2050
|
+
connect(sigName: "notify::odf-version", callback: (($obj: ODFOut, pspec: GObject.ParamSpec) => void)): number
|
|
2051
|
+
connect_after(sigName: "notify::odf-version", callback: (($obj: ODFOut, pspec: GObject.ParamSpec) => void)): number
|
|
2052
|
+
emit(sigName: "notify::odf-version", ...args: any[]): void
|
|
2053
|
+
connect(sigName: "notify::pretty-print", callback: (($obj: ODFOut, pspec: GObject.ParamSpec) => void)): number
|
|
2054
|
+
connect_after(sigName: "notify::pretty-print", callback: (($obj: ODFOut, pspec: GObject.ParamSpec) => void)): number
|
|
2055
|
+
emit(sigName: "notify::pretty-print", ...args: any[]): void
|
|
2056
|
+
connect(sigName: "notify::sink", callback: (($obj: ODFOut, pspec: GObject.ParamSpec) => void)): number
|
|
2057
|
+
connect_after(sigName: "notify::sink", callback: (($obj: ODFOut, pspec: GObject.ParamSpec) => void)): number
|
|
2058
|
+
emit(sigName: "notify::sink", ...args: any[]): void
|
|
2059
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
2060
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
2061
|
+
emit(sigName: string, ...args: any[]): void
|
|
2062
|
+
disconnect(id: number): void
|
|
2063
|
+
}
|
|
2064
|
+
|
|
2065
|
+
class ODFOut extends XMLOut {
|
|
2066
|
+
|
|
2067
|
+
// Own properties of Gsf-1.Gsf.ODFOut
|
|
2068
|
+
|
|
2069
|
+
static name: string
|
|
2070
|
+
static $gtype: GObject.GType<ODFOut>
|
|
2071
|
+
|
|
2072
|
+
// Constructors of Gsf-1.Gsf.ODFOut
|
|
2073
|
+
|
|
2074
|
+
constructor(config?: ODFOut.ConstructorProperties)
|
|
2075
|
+
_init(config?: ODFOut.ConstructorProperties): void
|
|
2076
|
+
}
|
|
2077
|
+
|
|
2078
|
+
module Outfile {
|
|
2079
|
+
|
|
2080
|
+
// Constructor properties interface
|
|
2081
|
+
|
|
2082
|
+
interface ConstructorProperties extends Output.ConstructorProperties {
|
|
2083
|
+
}
|
|
2084
|
+
|
|
2085
|
+
}
|
|
2086
|
+
|
|
2087
|
+
interface Outfile {
|
|
2088
|
+
|
|
2089
|
+
// Own fields of Gsf-1.Gsf.Outfile
|
|
2090
|
+
|
|
2091
|
+
parent: Output
|
|
2092
|
+
|
|
2093
|
+
// Owm methods of Gsf-1.Gsf.Outfile
|
|
2094
|
+
|
|
2095
|
+
new_child(name: string | null, is_dir: boolean): Output
|
|
2096
|
+
/**
|
|
2097
|
+
* A convenience wrapper to create a child in `dir` of `content_type` then create
|
|
2098
|
+
* a `type` relation to `parent`
|
|
2099
|
+
* @param name target name
|
|
2100
|
+
* @param content_type non-%NULL content type
|
|
2101
|
+
* @param parent #GsfOutfile
|
|
2102
|
+
* @param type target type
|
|
2103
|
+
* @returns the new part.
|
|
2104
|
+
*/
|
|
2105
|
+
open_pkg_add_rel(name: string | null, content_type: string | null, parent: Outfile, type: string | null): Output
|
|
2106
|
+
|
|
2107
|
+
// Class property signals of Gsf-1.Gsf.Outfile
|
|
2108
|
+
|
|
2109
|
+
connect(sigName: "notify::modtime", callback: (($obj: Outfile, pspec: GObject.ParamSpec) => void)): number
|
|
2110
|
+
connect_after(sigName: "notify::modtime", callback: (($obj: Outfile, pspec: GObject.ParamSpec) => void)): number
|
|
2111
|
+
emit(sigName: "notify::modtime", ...args: any[]): void
|
|
2112
|
+
connect(sigName: "notify::position", callback: (($obj: Outfile, pspec: GObject.ParamSpec) => void)): number
|
|
2113
|
+
connect_after(sigName: "notify::position", callback: (($obj: Outfile, pspec: GObject.ParamSpec) => void)): number
|
|
2114
|
+
emit(sigName: "notify::position", ...args: any[]): void
|
|
2115
|
+
connect(sigName: "notify::size", callback: (($obj: Outfile, pspec: GObject.ParamSpec) => void)): number
|
|
2116
|
+
connect_after(sigName: "notify::size", callback: (($obj: Outfile, pspec: GObject.ParamSpec) => void)): number
|
|
2117
|
+
emit(sigName: "notify::size", ...args: any[]): void
|
|
2118
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
2119
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
2120
|
+
emit(sigName: string, ...args: any[]): void
|
|
2121
|
+
disconnect(id: number): void
|
|
2122
|
+
}
|
|
2123
|
+
|
|
2124
|
+
/**
|
|
2125
|
+
* Class representing an output file, counterpart to #GsfInfile.
|
|
2126
|
+
* @class
|
|
2127
|
+
*/
|
|
2128
|
+
class Outfile extends Output {
|
|
2129
|
+
|
|
2130
|
+
// Own properties of Gsf-1.Gsf.Outfile
|
|
2131
|
+
|
|
2132
|
+
static name: string
|
|
2133
|
+
static $gtype: GObject.GType<Outfile>
|
|
2134
|
+
|
|
2135
|
+
// Constructors of Gsf-1.Gsf.Outfile
|
|
2136
|
+
|
|
2137
|
+
constructor(config?: Outfile.ConstructorProperties)
|
|
2138
|
+
_init(config?: Outfile.ConstructorProperties): void
|
|
2139
|
+
}
|
|
2140
|
+
|
|
2141
|
+
module OutfileMSOle {
|
|
2142
|
+
|
|
2143
|
+
// Constructor properties interface
|
|
2144
|
+
|
|
2145
|
+
interface ConstructorProperties extends Outfile.ConstructorProperties {
|
|
2146
|
+
|
|
2147
|
+
// Own constructor properties of Gsf-1.Gsf.OutfileMSOle
|
|
2148
|
+
|
|
2149
|
+
big_block_size?: number | null
|
|
2150
|
+
sink?: Output | null
|
|
2151
|
+
small_block_size?: number | null
|
|
2152
|
+
}
|
|
2153
|
+
|
|
2154
|
+
}
|
|
2155
|
+
|
|
2156
|
+
interface OutfileMSOle {
|
|
2157
|
+
|
|
2158
|
+
// Own properties of Gsf-1.Gsf.OutfileMSOle
|
|
2159
|
+
|
|
2160
|
+
readonly big_block_size: number
|
|
2161
|
+
readonly sink: Output
|
|
2162
|
+
readonly small_block_size: number
|
|
2163
|
+
|
|
2164
|
+
// Owm methods of Gsf-1.Gsf.OutfileMSOle
|
|
2165
|
+
|
|
2166
|
+
/**
|
|
2167
|
+
* Write `clsid` to the directory associated with `ole`.
|
|
2168
|
+
* @param clsid Identifier (often a GUID in MS Windows apps)
|
|
2169
|
+
* @returns %TRUE on success.
|
|
2170
|
+
*/
|
|
2171
|
+
set_class_id(clsid: Uint8Array): boolean
|
|
2172
|
+
|
|
2173
|
+
// Class property signals of Gsf-1.Gsf.OutfileMSOle
|
|
2174
|
+
|
|
2175
|
+
connect(sigName: "notify::big-block-size", callback: (($obj: OutfileMSOle, pspec: GObject.ParamSpec) => void)): number
|
|
2176
|
+
connect_after(sigName: "notify::big-block-size", callback: (($obj: OutfileMSOle, pspec: GObject.ParamSpec) => void)): number
|
|
2177
|
+
emit(sigName: "notify::big-block-size", ...args: any[]): void
|
|
2178
|
+
connect(sigName: "notify::sink", callback: (($obj: OutfileMSOle, pspec: GObject.ParamSpec) => void)): number
|
|
2179
|
+
connect_after(sigName: "notify::sink", callback: (($obj: OutfileMSOle, pspec: GObject.ParamSpec) => void)): number
|
|
2180
|
+
emit(sigName: "notify::sink", ...args: any[]): void
|
|
2181
|
+
connect(sigName: "notify::small-block-size", callback: (($obj: OutfileMSOle, pspec: GObject.ParamSpec) => void)): number
|
|
2182
|
+
connect_after(sigName: "notify::small-block-size", callback: (($obj: OutfileMSOle, pspec: GObject.ParamSpec) => void)): number
|
|
2183
|
+
emit(sigName: "notify::small-block-size", ...args: any[]): void
|
|
2184
|
+
connect(sigName: "notify::modtime", callback: (($obj: OutfileMSOle, pspec: GObject.ParamSpec) => void)): number
|
|
2185
|
+
connect_after(sigName: "notify::modtime", callback: (($obj: OutfileMSOle, pspec: GObject.ParamSpec) => void)): number
|
|
2186
|
+
emit(sigName: "notify::modtime", ...args: any[]): void
|
|
2187
|
+
connect(sigName: "notify::position", callback: (($obj: OutfileMSOle, pspec: GObject.ParamSpec) => void)): number
|
|
2188
|
+
connect_after(sigName: "notify::position", callback: (($obj: OutfileMSOle, pspec: GObject.ParamSpec) => void)): number
|
|
2189
|
+
emit(sigName: "notify::position", ...args: any[]): void
|
|
2190
|
+
connect(sigName: "notify::size", callback: (($obj: OutfileMSOle, pspec: GObject.ParamSpec) => void)): number
|
|
2191
|
+
connect_after(sigName: "notify::size", callback: (($obj: OutfileMSOle, pspec: GObject.ParamSpec) => void)): number
|
|
2192
|
+
emit(sigName: "notify::size", ...args: any[]): void
|
|
2193
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
2194
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
2195
|
+
emit(sigName: string, ...args: any[]): void
|
|
2196
|
+
disconnect(id: number): void
|
|
2197
|
+
}
|
|
2198
|
+
|
|
2199
|
+
class OutfileMSOle extends Outfile {
|
|
2200
|
+
|
|
2201
|
+
// Own properties of Gsf-1.Gsf.OutfileMSOle
|
|
2202
|
+
|
|
2203
|
+
static name: string
|
|
2204
|
+
static $gtype: GObject.GType<OutfileMSOle>
|
|
2205
|
+
|
|
2206
|
+
// Constructors of Gsf-1.Gsf.OutfileMSOle
|
|
2207
|
+
|
|
2208
|
+
constructor(config?: OutfileMSOle.ConstructorProperties)
|
|
2209
|
+
/**
|
|
2210
|
+
* Creates the root directory of an MS OLE file and manages the addition of
|
|
2211
|
+
* children.
|
|
2212
|
+
*
|
|
2213
|
+
* <note>This adds a reference to `sink`.</note>
|
|
2214
|
+
* @constructor
|
|
2215
|
+
* @param sink a #GsfOutput to hold the OLE2 file
|
|
2216
|
+
* @returns the new ole file handler.
|
|
2217
|
+
*/
|
|
2218
|
+
constructor(sink: Output)
|
|
2219
|
+
/**
|
|
2220
|
+
* Creates the root directory of an MS OLE file and manages the addition of
|
|
2221
|
+
* children.
|
|
2222
|
+
*
|
|
2223
|
+
* <note>This adds a reference to `sink`.</note>
|
|
2224
|
+
* @constructor
|
|
2225
|
+
* @param sink a #GsfOutput to hold the OLE2 file
|
|
2226
|
+
* @returns the new ole file handler.
|
|
2227
|
+
*/
|
|
2228
|
+
static new(sink: Output): OutfileMSOle
|
|
2229
|
+
/**
|
|
2230
|
+
* Creates the root directory of an MS OLE file and manages the addition of
|
|
2231
|
+
* children.
|
|
2232
|
+
*
|
|
2233
|
+
* <note>This adds a reference to `sink`.</note>
|
|
2234
|
+
* @constructor
|
|
2235
|
+
* @param sink a #GsfOutput to hold the OLE2 file.
|
|
2236
|
+
* @param bb_size size of large blocks.
|
|
2237
|
+
* @param sb_size size of small blocks.
|
|
2238
|
+
* @returns the new ole file handler.
|
|
2239
|
+
*/
|
|
2240
|
+
static new_full(sink: Output, bb_size: number, sb_size: number): OutfileMSOle
|
|
2241
|
+
_init(config?: OutfileMSOle.ConstructorProperties): void
|
|
2242
|
+
}
|
|
2243
|
+
|
|
2244
|
+
module OutfileOpenPkg {
|
|
2245
|
+
|
|
2246
|
+
// Constructor properties interface
|
|
2247
|
+
|
|
2248
|
+
interface ConstructorProperties extends Outfile.ConstructorProperties {
|
|
2249
|
+
|
|
2250
|
+
// Own constructor properties of Gsf-1.Gsf.OutfileOpenPkg
|
|
2251
|
+
|
|
2252
|
+
content_type?: string | null
|
|
2253
|
+
is_dir?: boolean | null
|
|
2254
|
+
sink?: Outfile | null
|
|
2255
|
+
}
|
|
2256
|
+
|
|
2257
|
+
}
|
|
2258
|
+
|
|
2259
|
+
interface OutfileOpenPkg {
|
|
2260
|
+
|
|
2261
|
+
// Own properties of Gsf-1.Gsf.OutfileOpenPkg
|
|
2262
|
+
|
|
2263
|
+
readonly content_type: string | null
|
|
2264
|
+
readonly is_dir: boolean
|
|
2265
|
+
readonly sink: Outfile
|
|
2266
|
+
|
|
2267
|
+
// Owm methods of Gsf-1.Gsf.OutfileOpenPkg
|
|
2268
|
+
|
|
2269
|
+
/**
|
|
2270
|
+
* Add an external relation to `parent`.
|
|
2271
|
+
* @param target target type
|
|
2272
|
+
* @param content_type target content
|
|
2273
|
+
* @returns The id of the relation. The string is managed by the parent and should not be changed or freed by the caller.
|
|
2274
|
+
*/
|
|
2275
|
+
add_extern_rel(target: string | null, content_type: string | null): string | null
|
|
2276
|
+
/**
|
|
2277
|
+
* Create a relationship between `child` and `parent` of `type`.
|
|
2278
|
+
* @param parent #GsfOutfileOpenPkg
|
|
2279
|
+
* @param type target type
|
|
2280
|
+
* @returns the relID which the caller does not own but will live as long as @parent.
|
|
2281
|
+
*/
|
|
2282
|
+
relate(parent: OutfileOpenPkg, type: string | null): string | null
|
|
2283
|
+
set_content_type(content_type: string | null): void
|
|
2284
|
+
/**
|
|
2285
|
+
* Assigns a GsfOutput (`sink)` to store the package into.
|
|
2286
|
+
* @param sink #GsfOutput
|
|
2287
|
+
*/
|
|
2288
|
+
set_sink(sink: Output): void
|
|
2289
|
+
|
|
2290
|
+
// Class property signals of Gsf-1.Gsf.OutfileOpenPkg
|
|
2291
|
+
|
|
2292
|
+
connect(sigName: "notify::content-type", callback: (($obj: OutfileOpenPkg, pspec: GObject.ParamSpec) => void)): number
|
|
2293
|
+
connect_after(sigName: "notify::content-type", callback: (($obj: OutfileOpenPkg, pspec: GObject.ParamSpec) => void)): number
|
|
2294
|
+
emit(sigName: "notify::content-type", ...args: any[]): void
|
|
2295
|
+
connect(sigName: "notify::is-dir", callback: (($obj: OutfileOpenPkg, pspec: GObject.ParamSpec) => void)): number
|
|
2296
|
+
connect_after(sigName: "notify::is-dir", callback: (($obj: OutfileOpenPkg, pspec: GObject.ParamSpec) => void)): number
|
|
2297
|
+
emit(sigName: "notify::is-dir", ...args: any[]): void
|
|
2298
|
+
connect(sigName: "notify::sink", callback: (($obj: OutfileOpenPkg, pspec: GObject.ParamSpec) => void)): number
|
|
2299
|
+
connect_after(sigName: "notify::sink", callback: (($obj: OutfileOpenPkg, pspec: GObject.ParamSpec) => void)): number
|
|
2300
|
+
emit(sigName: "notify::sink", ...args: any[]): void
|
|
2301
|
+
connect(sigName: "notify::modtime", callback: (($obj: OutfileOpenPkg, pspec: GObject.ParamSpec) => void)): number
|
|
2302
|
+
connect_after(sigName: "notify::modtime", callback: (($obj: OutfileOpenPkg, pspec: GObject.ParamSpec) => void)): number
|
|
2303
|
+
emit(sigName: "notify::modtime", ...args: any[]): void
|
|
2304
|
+
connect(sigName: "notify::position", callback: (($obj: OutfileOpenPkg, pspec: GObject.ParamSpec) => void)): number
|
|
2305
|
+
connect_after(sigName: "notify::position", callback: (($obj: OutfileOpenPkg, pspec: GObject.ParamSpec) => void)): number
|
|
2306
|
+
emit(sigName: "notify::position", ...args: any[]): void
|
|
2307
|
+
connect(sigName: "notify::size", callback: (($obj: OutfileOpenPkg, pspec: GObject.ParamSpec) => void)): number
|
|
2308
|
+
connect_after(sigName: "notify::size", callback: (($obj: OutfileOpenPkg, pspec: GObject.ParamSpec) => void)): number
|
|
2309
|
+
emit(sigName: "notify::size", ...args: any[]): void
|
|
2310
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
2311
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
2312
|
+
emit(sigName: string, ...args: any[]): void
|
|
2313
|
+
disconnect(id: number): void
|
|
2314
|
+
}
|
|
2315
|
+
|
|
2316
|
+
class OutfileOpenPkg extends Outfile {
|
|
2317
|
+
|
|
2318
|
+
// Own properties of Gsf-1.Gsf.OutfileOpenPkg
|
|
2319
|
+
|
|
2320
|
+
static name: string
|
|
2321
|
+
static $gtype: GObject.GType<OutfileOpenPkg>
|
|
2322
|
+
|
|
2323
|
+
// Constructors of Gsf-1.Gsf.OutfileOpenPkg
|
|
2324
|
+
|
|
2325
|
+
constructor(config?: OutfileOpenPkg.ConstructorProperties)
|
|
2326
|
+
/**
|
|
2327
|
+
* Convenience routine to create a GsfOutfileOpenPkg inside `sink`.
|
|
2328
|
+
* @constructor
|
|
2329
|
+
* @param sink #GsfOutfile
|
|
2330
|
+
* @returns a GsfOutfile that the caller is responsible for.
|
|
2331
|
+
*/
|
|
2332
|
+
constructor(sink: Outfile)
|
|
2333
|
+
/**
|
|
2334
|
+
* Convenience routine to create a GsfOutfileOpenPkg inside `sink`.
|
|
2335
|
+
* @constructor
|
|
2336
|
+
* @param sink #GsfOutfile
|
|
2337
|
+
* @returns a GsfOutfile that the caller is responsible for.
|
|
2338
|
+
*/
|
|
2339
|
+
static new(sink: Outfile): OutfileOpenPkg
|
|
2340
|
+
_init(config?: OutfileOpenPkg.ConstructorProperties): void
|
|
2341
|
+
}
|
|
2342
|
+
|
|
2343
|
+
module OutfileStdio {
|
|
2344
|
+
|
|
2345
|
+
// Constructor properties interface
|
|
2346
|
+
|
|
2347
|
+
interface ConstructorProperties extends Outfile.ConstructorProperties {
|
|
2348
|
+
}
|
|
2349
|
+
|
|
2350
|
+
}
|
|
2351
|
+
|
|
2352
|
+
interface OutfileStdio {
|
|
2353
|
+
|
|
2354
|
+
// Class property signals of Gsf-1.Gsf.OutfileStdio
|
|
2355
|
+
|
|
2356
|
+
connect(sigName: "notify::modtime", callback: (($obj: OutfileStdio, pspec: GObject.ParamSpec) => void)): number
|
|
2357
|
+
connect_after(sigName: "notify::modtime", callback: (($obj: OutfileStdio, pspec: GObject.ParamSpec) => void)): number
|
|
2358
|
+
emit(sigName: "notify::modtime", ...args: any[]): void
|
|
2359
|
+
connect(sigName: "notify::position", callback: (($obj: OutfileStdio, pspec: GObject.ParamSpec) => void)): number
|
|
2360
|
+
connect_after(sigName: "notify::position", callback: (($obj: OutfileStdio, pspec: GObject.ParamSpec) => void)): number
|
|
2361
|
+
emit(sigName: "notify::position", ...args: any[]): void
|
|
2362
|
+
connect(sigName: "notify::size", callback: (($obj: OutfileStdio, pspec: GObject.ParamSpec) => void)): number
|
|
2363
|
+
connect_after(sigName: "notify::size", callback: (($obj: OutfileStdio, pspec: GObject.ParamSpec) => void)): number
|
|
2364
|
+
emit(sigName: "notify::size", ...args: any[]): void
|
|
2365
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
2366
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
2367
|
+
emit(sigName: string, ...args: any[]): void
|
|
2368
|
+
disconnect(id: number): void
|
|
2369
|
+
}
|
|
2370
|
+
|
|
2371
|
+
class OutfileStdio extends Outfile {
|
|
2372
|
+
|
|
2373
|
+
// Own properties of Gsf-1.Gsf.OutfileStdio
|
|
2374
|
+
|
|
2375
|
+
static name: string
|
|
2376
|
+
static $gtype: GObject.GType<OutfileStdio>
|
|
2377
|
+
|
|
2378
|
+
// Constructors of Gsf-1.Gsf.OutfileStdio
|
|
2379
|
+
|
|
2380
|
+
constructor(config?: OutfileStdio.ConstructorProperties)
|
|
2381
|
+
constructor(root: string | null)
|
|
2382
|
+
static new(root: string | null): OutfileStdio
|
|
2383
|
+
_init(config?: OutfileStdio.ConstructorProperties): void
|
|
2384
|
+
}
|
|
2385
|
+
|
|
2386
|
+
module OutfileZip {
|
|
2387
|
+
|
|
2388
|
+
// Constructor properties interface
|
|
2389
|
+
|
|
2390
|
+
interface ConstructorProperties extends Outfile.ConstructorProperties {
|
|
2391
|
+
|
|
2392
|
+
// Own constructor properties of Gsf-1.Gsf.OutfileZip
|
|
2393
|
+
|
|
2394
|
+
compression_level?: number | null
|
|
2395
|
+
deflate_level?: number | null
|
|
2396
|
+
entry_name?: string | null
|
|
2397
|
+
sink?: Output | null
|
|
2398
|
+
zip64?: number | null
|
|
2399
|
+
}
|
|
2400
|
+
|
|
2401
|
+
}
|
|
2402
|
+
|
|
2403
|
+
interface OutfileZip {
|
|
2404
|
+
|
|
2405
|
+
// Own properties of Gsf-1.Gsf.OutfileZip
|
|
2406
|
+
|
|
2407
|
+
readonly compression_level: number
|
|
2408
|
+
readonly deflate_level: number
|
|
2409
|
+
readonly entry_name: string | null
|
|
2410
|
+
readonly sink: Output
|
|
2411
|
+
readonly zip64: number
|
|
2412
|
+
|
|
2413
|
+
// Owm methods of Gsf-1.Gsf.OutfileZip
|
|
2414
|
+
|
|
2415
|
+
set_compression_method(method: ZipCompressionMethod): boolean
|
|
2416
|
+
|
|
2417
|
+
// Class property signals of Gsf-1.Gsf.OutfileZip
|
|
2418
|
+
|
|
2419
|
+
connect(sigName: "notify::compression-level", callback: (($obj: OutfileZip, pspec: GObject.ParamSpec) => void)): number
|
|
2420
|
+
connect_after(sigName: "notify::compression-level", callback: (($obj: OutfileZip, pspec: GObject.ParamSpec) => void)): number
|
|
2421
|
+
emit(sigName: "notify::compression-level", ...args: any[]): void
|
|
2422
|
+
connect(sigName: "notify::deflate-level", callback: (($obj: OutfileZip, pspec: GObject.ParamSpec) => void)): number
|
|
2423
|
+
connect_after(sigName: "notify::deflate-level", callback: (($obj: OutfileZip, pspec: GObject.ParamSpec) => void)): number
|
|
2424
|
+
emit(sigName: "notify::deflate-level", ...args: any[]): void
|
|
2425
|
+
connect(sigName: "notify::entry-name", callback: (($obj: OutfileZip, pspec: GObject.ParamSpec) => void)): number
|
|
2426
|
+
connect_after(sigName: "notify::entry-name", callback: (($obj: OutfileZip, pspec: GObject.ParamSpec) => void)): number
|
|
2427
|
+
emit(sigName: "notify::entry-name", ...args: any[]): void
|
|
2428
|
+
connect(sigName: "notify::sink", callback: (($obj: OutfileZip, pspec: GObject.ParamSpec) => void)): number
|
|
2429
|
+
connect_after(sigName: "notify::sink", callback: (($obj: OutfileZip, pspec: GObject.ParamSpec) => void)): number
|
|
2430
|
+
emit(sigName: "notify::sink", ...args: any[]): void
|
|
2431
|
+
connect(sigName: "notify::zip64", callback: (($obj: OutfileZip, pspec: GObject.ParamSpec) => void)): number
|
|
2432
|
+
connect_after(sigName: "notify::zip64", callback: (($obj: OutfileZip, pspec: GObject.ParamSpec) => void)): number
|
|
2433
|
+
emit(sigName: "notify::zip64", ...args: any[]): void
|
|
2434
|
+
connect(sigName: "notify::modtime", callback: (($obj: OutfileZip, pspec: GObject.ParamSpec) => void)): number
|
|
2435
|
+
connect_after(sigName: "notify::modtime", callback: (($obj: OutfileZip, pspec: GObject.ParamSpec) => void)): number
|
|
2436
|
+
emit(sigName: "notify::modtime", ...args: any[]): void
|
|
2437
|
+
connect(sigName: "notify::position", callback: (($obj: OutfileZip, pspec: GObject.ParamSpec) => void)): number
|
|
2438
|
+
connect_after(sigName: "notify::position", callback: (($obj: OutfileZip, pspec: GObject.ParamSpec) => void)): number
|
|
2439
|
+
emit(sigName: "notify::position", ...args: any[]): void
|
|
2440
|
+
connect(sigName: "notify::size", callback: (($obj: OutfileZip, pspec: GObject.ParamSpec) => void)): number
|
|
2441
|
+
connect_after(sigName: "notify::size", callback: (($obj: OutfileZip, pspec: GObject.ParamSpec) => void)): number
|
|
2442
|
+
emit(sigName: "notify::size", ...args: any[]): void
|
|
2443
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
2444
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
2445
|
+
emit(sigName: string, ...args: any[]): void
|
|
2446
|
+
disconnect(id: number): void
|
|
2447
|
+
}
|
|
2448
|
+
|
|
2449
|
+
class OutfileZip extends Outfile {
|
|
2450
|
+
|
|
2451
|
+
// Own properties of Gsf-1.Gsf.OutfileZip
|
|
2452
|
+
|
|
2453
|
+
static name: string
|
|
2454
|
+
static $gtype: GObject.GType<OutfileZip>
|
|
2455
|
+
|
|
2456
|
+
// Constructors of Gsf-1.Gsf.OutfileZip
|
|
2457
|
+
|
|
2458
|
+
constructor(config?: OutfileZip.ConstructorProperties)
|
|
2459
|
+
/**
|
|
2460
|
+
* Creates the root directory of a Zip file and manages the addition of
|
|
2461
|
+
* children.
|
|
2462
|
+
*
|
|
2463
|
+
* <note>This adds a reference to `sink`.</note>
|
|
2464
|
+
* @constructor
|
|
2465
|
+
* @param sink a #GsfOutput to hold the ZIP file
|
|
2466
|
+
* @returns the new zip file handler
|
|
2467
|
+
*/
|
|
2468
|
+
constructor(sink: Output)
|
|
2469
|
+
/**
|
|
2470
|
+
* Creates the root directory of a Zip file and manages the addition of
|
|
2471
|
+
* children.
|
|
2472
|
+
*
|
|
2473
|
+
* <note>This adds a reference to `sink`.</note>
|
|
2474
|
+
* @constructor
|
|
2475
|
+
* @param sink a #GsfOutput to hold the ZIP file
|
|
2476
|
+
* @returns the new zip file handler
|
|
2477
|
+
*/
|
|
2478
|
+
static new(sink: Output): OutfileZip
|
|
2479
|
+
_init(config?: OutfileZip.ConstructorProperties): void
|
|
2480
|
+
}
|
|
2481
|
+
|
|
2482
|
+
module Output {
|
|
2483
|
+
|
|
2484
|
+
// Constructor properties interface
|
|
2485
|
+
|
|
2486
|
+
interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
2487
|
+
|
|
2488
|
+
// Own constructor properties of Gsf-1.Gsf.Output
|
|
2489
|
+
|
|
2490
|
+
/**
|
|
2491
|
+
* The container, optionally %NULL, in which this output lives.
|
|
2492
|
+
*/
|
|
2493
|
+
container?: Outfile | null
|
|
2494
|
+
/**
|
|
2495
|
+
* The time the output was last updated. This must be set on object
|
|
2496
|
+
* construction and represents the timestamp to put on the resulting
|
|
2497
|
+
* file or #GsfOutfile member. Not all derived classes will actually
|
|
2498
|
+
* do anything with this property.
|
|
2499
|
+
*/
|
|
2500
|
+
modtime?: GLib.DateTime | null
|
|
2501
|
+
name?: string | null
|
|
2502
|
+
}
|
|
2503
|
+
|
|
2504
|
+
}
|
|
2505
|
+
|
|
2506
|
+
interface Output {
|
|
2507
|
+
|
|
2508
|
+
// Own properties of Gsf-1.Gsf.Output
|
|
2509
|
+
|
|
2510
|
+
/**
|
|
2511
|
+
* The time the output was last updated. This must be set on object
|
|
2512
|
+
* construction and represents the timestamp to put on the resulting
|
|
2513
|
+
* file or #GsfOutfile member. Not all derived classes will actually
|
|
2514
|
+
* do anything with this property.
|
|
2515
|
+
*/
|
|
2516
|
+
readonly modtime: GLib.DateTime
|
|
2517
|
+
/**
|
|
2518
|
+
* The current position in the output.
|
|
2519
|
+
*/
|
|
2520
|
+
readonly position: number
|
|
2521
|
+
/**
|
|
2522
|
+
* The current file size.
|
|
2523
|
+
*/
|
|
2524
|
+
readonly size: number
|
|
2525
|
+
|
|
2526
|
+
// Own fields of Gsf-1.Gsf.Output
|
|
2527
|
+
|
|
2528
|
+
g_object: GObject.Object
|
|
2529
|
+
cur_size: gsf_off_t
|
|
2530
|
+
cur_offset: gsf_off_t
|
|
2531
|
+
name: string | null
|
|
2532
|
+
wrapped_by: GObject.Object
|
|
2533
|
+
container: Outfile
|
|
2534
|
+
err: GLib.Error
|
|
2535
|
+
is_closed: boolean
|
|
2536
|
+
printf_buf: string | null
|
|
2537
|
+
printf_buf_size: number
|
|
2538
|
+
|
|
2539
|
+
// Owm methods of Gsf-1.Gsf.Output
|
|
2540
|
+
|
|
2541
|
+
/**
|
|
2542
|
+
* Close a stream.
|
|
2543
|
+
* @returns %FALSE on error
|
|
2544
|
+
*/
|
|
2545
|
+
close(): boolean
|
|
2546
|
+
error(): GLib.Error | null
|
|
2547
|
+
get_modtime(): GLib.DateTime | null
|
|
2548
|
+
/**
|
|
2549
|
+
* Like fputs, this assumes that the line already ends with a newline
|
|
2550
|
+
* @param line Nul terminated string to write
|
|
2551
|
+
* @returns %TRUE if successful, %FALSE if not
|
|
2552
|
+
*/
|
|
2553
|
+
puts(line: string | null): boolean
|
|
2554
|
+
/**
|
|
2555
|
+
* Reposition in output stream `output`. `whence` specifies what the offset is
|
|
2556
|
+
* relative to: the beginning of the stream (%G_SEEK_SET), current position in
|
|
2557
|
+
* the stream (%G_SEEK_CUR) or the end of the stream (%G_SEEK_END).
|
|
2558
|
+
* This function is similar to
|
|
2559
|
+
* <citerefentry><refentrytitle>fseek</refentrytitle>
|
|
2560
|
+
* <manvolnum>3</manvolnum></citerefentry>.
|
|
2561
|
+
* @param offset Relative amount to reposition
|
|
2562
|
+
* @param whence What the offset is relative to.
|
|
2563
|
+
* @returns %FALSE on error.
|
|
2564
|
+
*/
|
|
2565
|
+
seek(offset: gsf_off_t, whence: GLib.SeekType): boolean
|
|
2566
|
+
/**
|
|
2567
|
+
* <note>This is a utility routine that should only be used by derived
|
|
2568
|
+
* outputs.</note>
|
|
2569
|
+
* @param container #GsfOutfile
|
|
2570
|
+
* @returns %TRUE if the assignment was ok.
|
|
2571
|
+
*/
|
|
2572
|
+
set_container(container: Outfile | null): boolean
|
|
2573
|
+
set_modtime(modtime: GLib.DateTime | null): boolean
|
|
2574
|
+
/**
|
|
2575
|
+
* <note>This is a utility routine that should only be used by derived
|
|
2576
|
+
* outputs.</note>
|
|
2577
|
+
* @param name the new name
|
|
2578
|
+
* @returns %TRUE if the assignment was ok.
|
|
2579
|
+
*/
|
|
2580
|
+
set_name(name: string | null): boolean
|
|
2581
|
+
/**
|
|
2582
|
+
* <note>This is a utility routine that should only be used by derived
|
|
2583
|
+
* outputs.</note>
|
|
2584
|
+
* @param filename the (fs-sys encoded) filename
|
|
2585
|
+
* @returns %TRUE if the assignment was ok.
|
|
2586
|
+
*/
|
|
2587
|
+
set_name_from_filename(filename: string | null): boolean
|
|
2588
|
+
/**
|
|
2589
|
+
* Tell the current position in `output,` similar to
|
|
2590
|
+
* <citerefentry><refentrytitle>ftell</refentrytitle>
|
|
2591
|
+
* <manvolnum>3</manvolnum></citerefentry>.
|
|
2592
|
+
* @returns the current position in the file
|
|
2593
|
+
*/
|
|
2594
|
+
tell(): gsf_off_t
|
|
2595
|
+
/**
|
|
2596
|
+
* Write `num_bytes` of `data` to `output`.
|
|
2597
|
+
* @param data Data to write.
|
|
2598
|
+
* @returns %FALSE on error.
|
|
2599
|
+
*/
|
|
2600
|
+
write(data: Uint8Array): boolean
|
|
2601
|
+
|
|
2602
|
+
// Own virtual methods of Gsf-1.Gsf.Output
|
|
2603
|
+
|
|
2604
|
+
/**
|
|
2605
|
+
* Close a stream.
|
|
2606
|
+
* @virtual
|
|
2607
|
+
* @returns %FALSE on error
|
|
2608
|
+
*/
|
|
2609
|
+
vfunc_Close(): boolean
|
|
2610
|
+
/**
|
|
2611
|
+
* Reposition in output stream `output`. `whence` specifies what the offset is
|
|
2612
|
+
* relative to: the beginning of the stream (%G_SEEK_SET), current position in
|
|
2613
|
+
* the stream (%G_SEEK_CUR) or the end of the stream (%G_SEEK_END).
|
|
2614
|
+
* This function is similar to
|
|
2615
|
+
* <citerefentry><refentrytitle>fseek</refentrytitle>
|
|
2616
|
+
* <manvolnum>3</manvolnum></citerefentry>.
|
|
2617
|
+
* @virtual
|
|
2618
|
+
* @param offset Relative amount to reposition
|
|
2619
|
+
* @param whence What the offset is relative to.
|
|
2620
|
+
* @returns %FALSE on error.
|
|
2621
|
+
*/
|
|
2622
|
+
vfunc_Seek(offset: gsf_off_t, whence: GLib.SeekType): boolean
|
|
2623
|
+
/**
|
|
2624
|
+
* Write `num_bytes` of `data` to `output`.
|
|
2625
|
+
* @virtual
|
|
2626
|
+
* @param data Data to write.
|
|
2627
|
+
* @returns %FALSE on error.
|
|
2628
|
+
*/
|
|
2629
|
+
vfunc_Write(data: Uint8Array): boolean
|
|
2630
|
+
|
|
2631
|
+
// Class property signals of Gsf-1.Gsf.Output
|
|
2632
|
+
|
|
2633
|
+
connect(sigName: "notify::modtime", callback: (($obj: Output, pspec: GObject.ParamSpec) => void)): number
|
|
2634
|
+
connect_after(sigName: "notify::modtime", callback: (($obj: Output, pspec: GObject.ParamSpec) => void)): number
|
|
2635
|
+
emit(sigName: "notify::modtime", ...args: any[]): void
|
|
2636
|
+
connect(sigName: "notify::position", callback: (($obj: Output, pspec: GObject.ParamSpec) => void)): number
|
|
2637
|
+
connect_after(sigName: "notify::position", callback: (($obj: Output, pspec: GObject.ParamSpec) => void)): number
|
|
2638
|
+
emit(sigName: "notify::position", ...args: any[]): void
|
|
2639
|
+
connect(sigName: "notify::size", callback: (($obj: Output, pspec: GObject.ParamSpec) => void)): number
|
|
2640
|
+
connect_after(sigName: "notify::size", callback: (($obj: Output, pspec: GObject.ParamSpec) => void)): number
|
|
2641
|
+
emit(sigName: "notify::size", ...args: any[]): void
|
|
2642
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
2643
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
2644
|
+
emit(sigName: string, ...args: any[]): void
|
|
2645
|
+
disconnect(id: number): void
|
|
2646
|
+
}
|
|
2647
|
+
|
|
2648
|
+
/**
|
|
2649
|
+
* Class representing an output stream, counterpart to #GsfInput.
|
|
2650
|
+
* @class
|
|
2651
|
+
*/
|
|
2652
|
+
class Output extends GObject.Object {
|
|
2653
|
+
|
|
2654
|
+
// Own properties of Gsf-1.Gsf.Output
|
|
2655
|
+
|
|
2656
|
+
static name: string
|
|
2657
|
+
static $gtype: GObject.GType<Output>
|
|
2658
|
+
|
|
2659
|
+
// Constructors of Gsf-1.Gsf.Output
|
|
2660
|
+
|
|
2661
|
+
constructor(config?: Output.ConstructorProperties)
|
|
2662
|
+
_init(config?: Output.ConstructorProperties): void
|
|
2663
|
+
static error_id(): GLib.Quark
|
|
2664
|
+
static unwrap(wrapper: GObject.Object, wrapee: Output): boolean
|
|
2665
|
+
static wrap(wrapper: GObject.Object, wrapee: Output): boolean
|
|
2666
|
+
}
|
|
2667
|
+
|
|
2668
|
+
module OutputBzip {
|
|
2669
|
+
|
|
2670
|
+
// Constructor properties interface
|
|
2671
|
+
|
|
2672
|
+
interface ConstructorProperties extends Output.ConstructorProperties {
|
|
2673
|
+
}
|
|
2674
|
+
|
|
2675
|
+
}
|
|
2676
|
+
|
|
2677
|
+
interface OutputBzip {
|
|
2678
|
+
|
|
2679
|
+
// Class property signals of Gsf-1.Gsf.OutputBzip
|
|
2680
|
+
|
|
2681
|
+
connect(sigName: "notify::modtime", callback: (($obj: OutputBzip, pspec: GObject.ParamSpec) => void)): number
|
|
2682
|
+
connect_after(sigName: "notify::modtime", callback: (($obj: OutputBzip, pspec: GObject.ParamSpec) => void)): number
|
|
2683
|
+
emit(sigName: "notify::modtime", ...args: any[]): void
|
|
2684
|
+
connect(sigName: "notify::position", callback: (($obj: OutputBzip, pspec: GObject.ParamSpec) => void)): number
|
|
2685
|
+
connect_after(sigName: "notify::position", callback: (($obj: OutputBzip, pspec: GObject.ParamSpec) => void)): number
|
|
2686
|
+
emit(sigName: "notify::position", ...args: any[]): void
|
|
2687
|
+
connect(sigName: "notify::size", callback: (($obj: OutputBzip, pspec: GObject.ParamSpec) => void)): number
|
|
2688
|
+
connect_after(sigName: "notify::size", callback: (($obj: OutputBzip, pspec: GObject.ParamSpec) => void)): number
|
|
2689
|
+
emit(sigName: "notify::size", ...args: any[]): void
|
|
2690
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
2691
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
2692
|
+
emit(sigName: string, ...args: any[]): void
|
|
2693
|
+
disconnect(id: number): void
|
|
2694
|
+
}
|
|
2695
|
+
|
|
2696
|
+
class OutputBzip extends Output {
|
|
2697
|
+
|
|
2698
|
+
// Own properties of Gsf-1.Gsf.OutputBzip
|
|
2699
|
+
|
|
2700
|
+
static name: string
|
|
2701
|
+
static $gtype: GObject.GType<OutputBzip>
|
|
2702
|
+
|
|
2703
|
+
// Constructors of Gsf-1.Gsf.OutputBzip
|
|
2704
|
+
|
|
2705
|
+
constructor(config?: OutputBzip.ConstructorProperties)
|
|
2706
|
+
/**
|
|
2707
|
+
* Adds a reference to `sink`.
|
|
2708
|
+
* @constructor
|
|
2709
|
+
* @param sink The underlying data source.
|
|
2710
|
+
* @returns a new file or %NULL.
|
|
2711
|
+
*/
|
|
2712
|
+
constructor(sink: Output)
|
|
2713
|
+
/**
|
|
2714
|
+
* Adds a reference to `sink`.
|
|
2715
|
+
* @constructor
|
|
2716
|
+
* @param sink The underlying data source.
|
|
2717
|
+
* @returns a new file or %NULL.
|
|
2718
|
+
*/
|
|
2719
|
+
static new(sink: Output): OutputBzip
|
|
2720
|
+
_init(config?: OutputBzip.ConstructorProperties): void
|
|
2721
|
+
}
|
|
2722
|
+
|
|
2723
|
+
module OutputCsv {
|
|
2724
|
+
|
|
2725
|
+
// Constructor properties interface
|
|
2726
|
+
|
|
2727
|
+
interface ConstructorProperties extends Output.ConstructorProperties {
|
|
2728
|
+
|
|
2729
|
+
// Own constructor properties of Gsf-1.Gsf.OutputCsv
|
|
2730
|
+
|
|
2731
|
+
eol?: string | null
|
|
2732
|
+
quote?: string | null
|
|
2733
|
+
quoting_mode?: OutputCsvQuotingMode | null
|
|
2734
|
+
quoting_on_whitespace?: boolean | null
|
|
2735
|
+
quoting_triggers?: string | null
|
|
2736
|
+
separator?: string | null
|
|
2737
|
+
sink?: Output | null
|
|
2738
|
+
}
|
|
2739
|
+
|
|
2740
|
+
}
|
|
2741
|
+
|
|
2742
|
+
interface OutputCsv {
|
|
2743
|
+
|
|
2744
|
+
// Own properties of Gsf-1.Gsf.OutputCsv
|
|
2745
|
+
|
|
2746
|
+
quoting_on_whitespace: boolean
|
|
2747
|
+
|
|
2748
|
+
// Own fields of Gsf-1.Gsf.OutputCsv
|
|
2749
|
+
|
|
2750
|
+
output: Output
|
|
2751
|
+
sink: Output
|
|
2752
|
+
quote: string | null
|
|
2753
|
+
quote_len: number
|
|
2754
|
+
quoting_mode: OutputCsvQuotingMode
|
|
2755
|
+
quoting_triggers: string | null
|
|
2756
|
+
eol: string | null
|
|
2757
|
+
eol_len: number
|
|
2758
|
+
separator: string | null
|
|
2759
|
+
separator_len: number
|
|
2760
|
+
fields_on_line: boolean
|
|
2761
|
+
buf: GLib.String
|
|
2762
|
+
|
|
2763
|
+
// Owm methods of Gsf-1.Gsf.OutputCsv
|
|
2764
|
+
|
|
2765
|
+
write_eol(): boolean
|
|
2766
|
+
write_field(field: string | null, len: number): boolean
|
|
2767
|
+
|
|
2768
|
+
// Class property signals of Gsf-1.Gsf.OutputCsv
|
|
2769
|
+
|
|
2770
|
+
connect(sigName: "notify::quoting-on-whitespace", callback: (($obj: OutputCsv, pspec: GObject.ParamSpec) => void)): number
|
|
2771
|
+
connect_after(sigName: "notify::quoting-on-whitespace", callback: (($obj: OutputCsv, pspec: GObject.ParamSpec) => void)): number
|
|
2772
|
+
emit(sigName: "notify::quoting-on-whitespace", ...args: any[]): void
|
|
2773
|
+
connect(sigName: "notify::modtime", callback: (($obj: OutputCsv, pspec: GObject.ParamSpec) => void)): number
|
|
2774
|
+
connect_after(sigName: "notify::modtime", callback: (($obj: OutputCsv, pspec: GObject.ParamSpec) => void)): number
|
|
2775
|
+
emit(sigName: "notify::modtime", ...args: any[]): void
|
|
2776
|
+
connect(sigName: "notify::position", callback: (($obj: OutputCsv, pspec: GObject.ParamSpec) => void)): number
|
|
2777
|
+
connect_after(sigName: "notify::position", callback: (($obj: OutputCsv, pspec: GObject.ParamSpec) => void)): number
|
|
2778
|
+
emit(sigName: "notify::position", ...args: any[]): void
|
|
2779
|
+
connect(sigName: "notify::size", callback: (($obj: OutputCsv, pspec: GObject.ParamSpec) => void)): number
|
|
2780
|
+
connect_after(sigName: "notify::size", callback: (($obj: OutputCsv, pspec: GObject.ParamSpec) => void)): number
|
|
2781
|
+
emit(sigName: "notify::size", ...args: any[]): void
|
|
2782
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
2783
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
2784
|
+
emit(sigName: string, ...args: any[]): void
|
|
2785
|
+
disconnect(id: number): void
|
|
2786
|
+
}
|
|
2787
|
+
|
|
2788
|
+
class OutputCsv extends Output {
|
|
2789
|
+
|
|
2790
|
+
// Own properties of Gsf-1.Gsf.OutputCsv
|
|
2791
|
+
|
|
2792
|
+
static name: string
|
|
2793
|
+
static $gtype: GObject.GType<OutputCsv>
|
|
2794
|
+
|
|
2795
|
+
// Constructors of Gsf-1.Gsf.OutputCsv
|
|
2796
|
+
|
|
2797
|
+
constructor(config?: OutputCsv.ConstructorProperties)
|
|
2798
|
+
_init(config?: OutputCsv.ConstructorProperties): void
|
|
2799
|
+
}
|
|
2800
|
+
|
|
2801
|
+
module OutputGZip {
|
|
2802
|
+
|
|
2803
|
+
// Constructor properties interface
|
|
2804
|
+
|
|
2805
|
+
interface ConstructorProperties extends Output.ConstructorProperties {
|
|
2806
|
+
|
|
2807
|
+
// Own constructor properties of Gsf-1.Gsf.OutputGZip
|
|
2808
|
+
|
|
2809
|
+
deflate_level?: number | null
|
|
2810
|
+
raw?: boolean | null
|
|
2811
|
+
sink?: Output | null
|
|
2812
|
+
}
|
|
2813
|
+
|
|
2814
|
+
}
|
|
2815
|
+
|
|
2816
|
+
interface OutputGZip {
|
|
2817
|
+
|
|
2818
|
+
// Own properties of Gsf-1.Gsf.OutputGZip
|
|
2819
|
+
|
|
2820
|
+
deflate_level: number
|
|
2821
|
+
readonly raw: boolean
|
|
2822
|
+
readonly sink: Output
|
|
2823
|
+
|
|
2824
|
+
// Class property signals of Gsf-1.Gsf.OutputGZip
|
|
2825
|
+
|
|
2826
|
+
connect(sigName: "notify::deflate-level", callback: (($obj: OutputGZip, pspec: GObject.ParamSpec) => void)): number
|
|
2827
|
+
connect_after(sigName: "notify::deflate-level", callback: (($obj: OutputGZip, pspec: GObject.ParamSpec) => void)): number
|
|
2828
|
+
emit(sigName: "notify::deflate-level", ...args: any[]): void
|
|
2829
|
+
connect(sigName: "notify::raw", callback: (($obj: OutputGZip, pspec: GObject.ParamSpec) => void)): number
|
|
2830
|
+
connect_after(sigName: "notify::raw", callback: (($obj: OutputGZip, pspec: GObject.ParamSpec) => void)): number
|
|
2831
|
+
emit(sigName: "notify::raw", ...args: any[]): void
|
|
2832
|
+
connect(sigName: "notify::sink", callback: (($obj: OutputGZip, pspec: GObject.ParamSpec) => void)): number
|
|
2833
|
+
connect_after(sigName: "notify::sink", callback: (($obj: OutputGZip, pspec: GObject.ParamSpec) => void)): number
|
|
2834
|
+
emit(sigName: "notify::sink", ...args: any[]): void
|
|
2835
|
+
connect(sigName: "notify::modtime", callback: (($obj: OutputGZip, pspec: GObject.ParamSpec) => void)): number
|
|
2836
|
+
connect_after(sigName: "notify::modtime", callback: (($obj: OutputGZip, pspec: GObject.ParamSpec) => void)): number
|
|
2837
|
+
emit(sigName: "notify::modtime", ...args: any[]): void
|
|
2838
|
+
connect(sigName: "notify::position", callback: (($obj: OutputGZip, pspec: GObject.ParamSpec) => void)): number
|
|
2839
|
+
connect_after(sigName: "notify::position", callback: (($obj: OutputGZip, pspec: GObject.ParamSpec) => void)): number
|
|
2840
|
+
emit(sigName: "notify::position", ...args: any[]): void
|
|
2841
|
+
connect(sigName: "notify::size", callback: (($obj: OutputGZip, pspec: GObject.ParamSpec) => void)): number
|
|
2842
|
+
connect_after(sigName: "notify::size", callback: (($obj: OutputGZip, pspec: GObject.ParamSpec) => void)): number
|
|
2843
|
+
emit(sigName: "notify::size", ...args: any[]): void
|
|
2844
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
2845
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
2846
|
+
emit(sigName: string, ...args: any[]): void
|
|
2847
|
+
disconnect(id: number): void
|
|
2848
|
+
}
|
|
2849
|
+
|
|
2850
|
+
class OutputGZip extends Output {
|
|
2851
|
+
|
|
2852
|
+
// Own properties of Gsf-1.Gsf.OutputGZip
|
|
2853
|
+
|
|
2854
|
+
static name: string
|
|
2855
|
+
static $gtype: GObject.GType<OutputGZip>
|
|
2856
|
+
|
|
2857
|
+
// Constructors of Gsf-1.Gsf.OutputGZip
|
|
2858
|
+
|
|
2859
|
+
constructor(config?: OutputGZip.ConstructorProperties)
|
|
2860
|
+
/**
|
|
2861
|
+
* Adds a reference to `sink`.
|
|
2862
|
+
* @constructor
|
|
2863
|
+
* @param sink The underlying data source.
|
|
2864
|
+
* @returns a new file or %NULL.
|
|
2865
|
+
*/
|
|
2866
|
+
constructor(sink: Output)
|
|
2867
|
+
/**
|
|
2868
|
+
* Adds a reference to `sink`.
|
|
2869
|
+
* @constructor
|
|
2870
|
+
* @param sink The underlying data source.
|
|
2871
|
+
* @returns a new file or %NULL.
|
|
2872
|
+
*/
|
|
2873
|
+
static new(sink: Output): OutputGZip
|
|
2874
|
+
_init(config?: OutputGZip.ConstructorProperties): void
|
|
2875
|
+
}
|
|
2876
|
+
|
|
2877
|
+
module OutputGio {
|
|
2878
|
+
|
|
2879
|
+
// Constructor properties interface
|
|
2880
|
+
|
|
2881
|
+
interface ConstructorProperties extends Output.ConstructorProperties {
|
|
2882
|
+
}
|
|
2883
|
+
|
|
2884
|
+
}
|
|
2885
|
+
|
|
2886
|
+
interface OutputGio {
|
|
2887
|
+
|
|
2888
|
+
// Class property signals of Gsf-1.Gsf.OutputGio
|
|
2889
|
+
|
|
2890
|
+
connect(sigName: "notify::modtime", callback: (($obj: OutputGio, pspec: GObject.ParamSpec) => void)): number
|
|
2891
|
+
connect_after(sigName: "notify::modtime", callback: (($obj: OutputGio, pspec: GObject.ParamSpec) => void)): number
|
|
2892
|
+
emit(sigName: "notify::modtime", ...args: any[]): void
|
|
2893
|
+
connect(sigName: "notify::position", callback: (($obj: OutputGio, pspec: GObject.ParamSpec) => void)): number
|
|
2894
|
+
connect_after(sigName: "notify::position", callback: (($obj: OutputGio, pspec: GObject.ParamSpec) => void)): number
|
|
2895
|
+
emit(sigName: "notify::position", ...args: any[]): void
|
|
2896
|
+
connect(sigName: "notify::size", callback: (($obj: OutputGio, pspec: GObject.ParamSpec) => void)): number
|
|
2897
|
+
connect_after(sigName: "notify::size", callback: (($obj: OutputGio, pspec: GObject.ParamSpec) => void)): number
|
|
2898
|
+
emit(sigName: "notify::size", ...args: any[]): void
|
|
2899
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
2900
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
2901
|
+
emit(sigName: string, ...args: any[]): void
|
|
2902
|
+
disconnect(id: number): void
|
|
2903
|
+
}
|
|
2904
|
+
|
|
2905
|
+
class OutputGio extends Output {
|
|
2906
|
+
|
|
2907
|
+
// Own properties of Gsf-1.Gsf.OutputGio
|
|
2908
|
+
|
|
2909
|
+
static name: string
|
|
2910
|
+
static $gtype: GObject.GType<OutputGio>
|
|
2911
|
+
|
|
2912
|
+
// Constructors of Gsf-1.Gsf.OutputGio
|
|
2913
|
+
|
|
2914
|
+
constructor(config?: OutputGio.ConstructorProperties)
|
|
2915
|
+
constructor(file: Gio.File)
|
|
2916
|
+
static new(file: Gio.File): OutputGio
|
|
2917
|
+
static new_for_path(path: string | null): OutputGio
|
|
2918
|
+
static new_for_uri(uri: string | null): OutputGio
|
|
2919
|
+
_init(config?: OutputGio.ConstructorProperties): void
|
|
2920
|
+
}
|
|
2921
|
+
|
|
2922
|
+
module OutputIOChannel {
|
|
2923
|
+
|
|
2924
|
+
// Constructor properties interface
|
|
2925
|
+
|
|
2926
|
+
interface ConstructorProperties extends Output.ConstructorProperties {
|
|
2927
|
+
}
|
|
2928
|
+
|
|
2929
|
+
}
|
|
2930
|
+
|
|
2931
|
+
interface OutputIOChannel {
|
|
2932
|
+
|
|
2933
|
+
// Class property signals of Gsf-1.Gsf.OutputIOChannel
|
|
2934
|
+
|
|
2935
|
+
connect(sigName: "notify::modtime", callback: (($obj: OutputIOChannel, pspec: GObject.ParamSpec) => void)): number
|
|
2936
|
+
connect_after(sigName: "notify::modtime", callback: (($obj: OutputIOChannel, pspec: GObject.ParamSpec) => void)): number
|
|
2937
|
+
emit(sigName: "notify::modtime", ...args: any[]): void
|
|
2938
|
+
connect(sigName: "notify::position", callback: (($obj: OutputIOChannel, pspec: GObject.ParamSpec) => void)): number
|
|
2939
|
+
connect_after(sigName: "notify::position", callback: (($obj: OutputIOChannel, pspec: GObject.ParamSpec) => void)): number
|
|
2940
|
+
emit(sigName: "notify::position", ...args: any[]): void
|
|
2941
|
+
connect(sigName: "notify::size", callback: (($obj: OutputIOChannel, pspec: GObject.ParamSpec) => void)): number
|
|
2942
|
+
connect_after(sigName: "notify::size", callback: (($obj: OutputIOChannel, pspec: GObject.ParamSpec) => void)): number
|
|
2943
|
+
emit(sigName: "notify::size", ...args: any[]): void
|
|
2944
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
2945
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
2946
|
+
emit(sigName: string, ...args: any[]): void
|
|
2947
|
+
disconnect(id: number): void
|
|
2948
|
+
}
|
|
2949
|
+
|
|
2950
|
+
class OutputIOChannel extends Output {
|
|
2951
|
+
|
|
2952
|
+
// Own properties of Gsf-1.Gsf.OutputIOChannel
|
|
2953
|
+
|
|
2954
|
+
static name: string
|
|
2955
|
+
static $gtype: GObject.GType<OutputIOChannel>
|
|
2956
|
+
|
|
2957
|
+
// Constructors of Gsf-1.Gsf.OutputIOChannel
|
|
2958
|
+
|
|
2959
|
+
constructor(config?: OutputIOChannel.ConstructorProperties)
|
|
2960
|
+
constructor(channel: GLib.IOChannel)
|
|
2961
|
+
static new(channel: GLib.IOChannel): OutputIOChannel
|
|
2962
|
+
_init(config?: OutputIOChannel.ConstructorProperties): void
|
|
2963
|
+
}
|
|
2964
|
+
|
|
2965
|
+
module OutputIconv {
|
|
2966
|
+
|
|
2967
|
+
// Constructor properties interface
|
|
2968
|
+
|
|
2969
|
+
interface ConstructorProperties extends Output.ConstructorProperties {
|
|
2970
|
+
|
|
2971
|
+
// Own constructor properties of Gsf-1.Gsf.OutputIconv
|
|
2972
|
+
|
|
2973
|
+
/**
|
|
2974
|
+
* Either NULL or a UTF-8 string (representable in the target encoding)
|
|
2975
|
+
* to convert and output in place of characters that cannot be represented
|
|
2976
|
+
* in the target encoding. NULL means use \u1234 or \U12345678 format.
|
|
2977
|
+
*/
|
|
2978
|
+
fallback?: string | null
|
|
2979
|
+
input_charset?: string | null
|
|
2980
|
+
output_charset?: string | null
|
|
2981
|
+
sink?: Output | null
|
|
2982
|
+
}
|
|
2983
|
+
|
|
2984
|
+
}
|
|
2985
|
+
|
|
2986
|
+
interface OutputIconv {
|
|
2987
|
+
|
|
2988
|
+
// Own properties of Gsf-1.Gsf.OutputIconv
|
|
2989
|
+
|
|
2990
|
+
/**
|
|
2991
|
+
* Either NULL or a UTF-8 string (representable in the target encoding)
|
|
2992
|
+
* to convert and output in place of characters that cannot be represented
|
|
2993
|
+
* in the target encoding. NULL means use \u1234 or \U12345678 format.
|
|
2994
|
+
*/
|
|
2995
|
+
fallback: string | null
|
|
2996
|
+
readonly input_charset: string | null
|
|
2997
|
+
readonly output_charset: string | null
|
|
2998
|
+
readonly sink: Output
|
|
2999
|
+
|
|
3000
|
+
// Class property signals of Gsf-1.Gsf.OutputIconv
|
|
3001
|
+
|
|
3002
|
+
connect(sigName: "notify::fallback", callback: (($obj: OutputIconv, pspec: GObject.ParamSpec) => void)): number
|
|
3003
|
+
connect_after(sigName: "notify::fallback", callback: (($obj: OutputIconv, pspec: GObject.ParamSpec) => void)): number
|
|
3004
|
+
emit(sigName: "notify::fallback", ...args: any[]): void
|
|
3005
|
+
connect(sigName: "notify::input-charset", callback: (($obj: OutputIconv, pspec: GObject.ParamSpec) => void)): number
|
|
3006
|
+
connect_after(sigName: "notify::input-charset", callback: (($obj: OutputIconv, pspec: GObject.ParamSpec) => void)): number
|
|
3007
|
+
emit(sigName: "notify::input-charset", ...args: any[]): void
|
|
3008
|
+
connect(sigName: "notify::output-charset", callback: (($obj: OutputIconv, pspec: GObject.ParamSpec) => void)): number
|
|
3009
|
+
connect_after(sigName: "notify::output-charset", callback: (($obj: OutputIconv, pspec: GObject.ParamSpec) => void)): number
|
|
3010
|
+
emit(sigName: "notify::output-charset", ...args: any[]): void
|
|
3011
|
+
connect(sigName: "notify::sink", callback: (($obj: OutputIconv, pspec: GObject.ParamSpec) => void)): number
|
|
3012
|
+
connect_after(sigName: "notify::sink", callback: (($obj: OutputIconv, pspec: GObject.ParamSpec) => void)): number
|
|
3013
|
+
emit(sigName: "notify::sink", ...args: any[]): void
|
|
3014
|
+
connect(sigName: "notify::modtime", callback: (($obj: OutputIconv, pspec: GObject.ParamSpec) => void)): number
|
|
3015
|
+
connect_after(sigName: "notify::modtime", callback: (($obj: OutputIconv, pspec: GObject.ParamSpec) => void)): number
|
|
3016
|
+
emit(sigName: "notify::modtime", ...args: any[]): void
|
|
3017
|
+
connect(sigName: "notify::position", callback: (($obj: OutputIconv, pspec: GObject.ParamSpec) => void)): number
|
|
3018
|
+
connect_after(sigName: "notify::position", callback: (($obj: OutputIconv, pspec: GObject.ParamSpec) => void)): number
|
|
3019
|
+
emit(sigName: "notify::position", ...args: any[]): void
|
|
3020
|
+
connect(sigName: "notify::size", callback: (($obj: OutputIconv, pspec: GObject.ParamSpec) => void)): number
|
|
3021
|
+
connect_after(sigName: "notify::size", callback: (($obj: OutputIconv, pspec: GObject.ParamSpec) => void)): number
|
|
3022
|
+
emit(sigName: "notify::size", ...args: any[]): void
|
|
3023
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
3024
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
3025
|
+
emit(sigName: string, ...args: any[]): void
|
|
3026
|
+
disconnect(id: number): void
|
|
3027
|
+
}
|
|
3028
|
+
|
|
3029
|
+
class OutputIconv extends Output {
|
|
3030
|
+
|
|
3031
|
+
// Own properties of Gsf-1.Gsf.OutputIconv
|
|
3032
|
+
|
|
3033
|
+
static name: string
|
|
3034
|
+
static $gtype: GObject.GType<OutputIconv>
|
|
3035
|
+
|
|
3036
|
+
// Constructors of Gsf-1.Gsf.OutputIconv
|
|
3037
|
+
|
|
3038
|
+
constructor(config?: OutputIconv.ConstructorProperties)
|
|
3039
|
+
/**
|
|
3040
|
+
* Adds a reference to `sink`.
|
|
3041
|
+
* @constructor
|
|
3042
|
+
* @param sink The underlying data source.
|
|
3043
|
+
* @param dst The target character set.
|
|
3044
|
+
* @param src The source character set.
|
|
3045
|
+
* @returns a new GsfOutput object or %NULL.
|
|
3046
|
+
*/
|
|
3047
|
+
constructor(sink: Output, dst: string | null, src: string | null)
|
|
3048
|
+
/**
|
|
3049
|
+
* Adds a reference to `sink`.
|
|
3050
|
+
* @constructor
|
|
3051
|
+
* @param sink The underlying data source.
|
|
3052
|
+
* @param dst The target character set.
|
|
3053
|
+
* @param src The source character set.
|
|
3054
|
+
* @returns a new GsfOutput object or %NULL.
|
|
3055
|
+
*/
|
|
3056
|
+
static new(sink: Output, dst: string | null, src: string | null): OutputIconv
|
|
3057
|
+
_init(config?: OutputIconv.ConstructorProperties): void
|
|
3058
|
+
}
|
|
3059
|
+
|
|
3060
|
+
module OutputMemory {
|
|
3061
|
+
|
|
3062
|
+
// Constructor properties interface
|
|
3063
|
+
|
|
3064
|
+
interface ConstructorProperties extends Output.ConstructorProperties {
|
|
3065
|
+
}
|
|
3066
|
+
|
|
3067
|
+
}
|
|
3068
|
+
|
|
3069
|
+
interface OutputMemory {
|
|
3070
|
+
|
|
3071
|
+
// Owm methods of Gsf-1.Gsf.OutputMemory
|
|
3072
|
+
|
|
3073
|
+
get_bytes(): Uint8Array | null
|
|
3074
|
+
steal_bytes(): Uint8Array | null
|
|
3075
|
+
|
|
3076
|
+
// Class property signals of Gsf-1.Gsf.OutputMemory
|
|
3077
|
+
|
|
3078
|
+
connect(sigName: "notify::modtime", callback: (($obj: OutputMemory, pspec: GObject.ParamSpec) => void)): number
|
|
3079
|
+
connect_after(sigName: "notify::modtime", callback: (($obj: OutputMemory, pspec: GObject.ParamSpec) => void)): number
|
|
3080
|
+
emit(sigName: "notify::modtime", ...args: any[]): void
|
|
3081
|
+
connect(sigName: "notify::position", callback: (($obj: OutputMemory, pspec: GObject.ParamSpec) => void)): number
|
|
3082
|
+
connect_after(sigName: "notify::position", callback: (($obj: OutputMemory, pspec: GObject.ParamSpec) => void)): number
|
|
3083
|
+
emit(sigName: "notify::position", ...args: any[]): void
|
|
3084
|
+
connect(sigName: "notify::size", callback: (($obj: OutputMemory, pspec: GObject.ParamSpec) => void)): number
|
|
3085
|
+
connect_after(sigName: "notify::size", callback: (($obj: OutputMemory, pspec: GObject.ParamSpec) => void)): number
|
|
3086
|
+
emit(sigName: "notify::size", ...args: any[]): void
|
|
3087
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
3088
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
3089
|
+
emit(sigName: string, ...args: any[]): void
|
|
3090
|
+
disconnect(id: number): void
|
|
3091
|
+
}
|
|
3092
|
+
|
|
3093
|
+
class OutputMemory extends Output {
|
|
3094
|
+
|
|
3095
|
+
// Own properties of Gsf-1.Gsf.OutputMemory
|
|
3096
|
+
|
|
3097
|
+
static name: string
|
|
3098
|
+
static $gtype: GObject.GType<OutputMemory>
|
|
3099
|
+
|
|
3100
|
+
// Constructors of Gsf-1.Gsf.OutputMemory
|
|
3101
|
+
|
|
3102
|
+
constructor(config?: OutputMemory.ConstructorProperties)
|
|
3103
|
+
constructor()
|
|
3104
|
+
static new(): OutputMemory
|
|
3105
|
+
_init(config?: OutputMemory.ConstructorProperties): void
|
|
3106
|
+
}
|
|
3107
|
+
|
|
3108
|
+
module OutputStdio {
|
|
3109
|
+
|
|
3110
|
+
// Constructor properties interface
|
|
3111
|
+
|
|
3112
|
+
interface ConstructorProperties extends Output.ConstructorProperties {
|
|
3113
|
+
}
|
|
3114
|
+
|
|
3115
|
+
}
|
|
3116
|
+
|
|
3117
|
+
interface OutputStdio {
|
|
3118
|
+
|
|
3119
|
+
// Class property signals of Gsf-1.Gsf.OutputStdio
|
|
3120
|
+
|
|
3121
|
+
connect(sigName: "notify::modtime", callback: (($obj: OutputStdio, pspec: GObject.ParamSpec) => void)): number
|
|
3122
|
+
connect_after(sigName: "notify::modtime", callback: (($obj: OutputStdio, pspec: GObject.ParamSpec) => void)): number
|
|
3123
|
+
emit(sigName: "notify::modtime", ...args: any[]): void
|
|
3124
|
+
connect(sigName: "notify::position", callback: (($obj: OutputStdio, pspec: GObject.ParamSpec) => void)): number
|
|
3125
|
+
connect_after(sigName: "notify::position", callback: (($obj: OutputStdio, pspec: GObject.ParamSpec) => void)): number
|
|
3126
|
+
emit(sigName: "notify::position", ...args: any[]): void
|
|
3127
|
+
connect(sigName: "notify::size", callback: (($obj: OutputStdio, pspec: GObject.ParamSpec) => void)): number
|
|
3128
|
+
connect_after(sigName: "notify::size", callback: (($obj: OutputStdio, pspec: GObject.ParamSpec) => void)): number
|
|
3129
|
+
emit(sigName: "notify::size", ...args: any[]): void
|
|
3130
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
3131
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
3132
|
+
emit(sigName: string, ...args: any[]): void
|
|
3133
|
+
disconnect(id: number): void
|
|
3134
|
+
}
|
|
3135
|
+
|
|
3136
|
+
class OutputStdio extends Output {
|
|
3137
|
+
|
|
3138
|
+
// Own properties of Gsf-1.Gsf.OutputStdio
|
|
3139
|
+
|
|
3140
|
+
static name: string
|
|
3141
|
+
static $gtype: GObject.GType<OutputStdio>
|
|
3142
|
+
|
|
3143
|
+
// Constructors of Gsf-1.Gsf.OutputStdio
|
|
3144
|
+
|
|
3145
|
+
constructor(config?: OutputStdio.ConstructorProperties)
|
|
3146
|
+
constructor(filename: string | null)
|
|
3147
|
+
static new(filename: string | null): OutputStdio
|
|
3148
|
+
_init(config?: OutputStdio.ConstructorProperties): void
|
|
3149
|
+
}
|
|
3150
|
+
|
|
3151
|
+
module SharedMemory {
|
|
3152
|
+
|
|
3153
|
+
// Constructor properties interface
|
|
3154
|
+
|
|
3155
|
+
interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
3156
|
+
}
|
|
3157
|
+
|
|
3158
|
+
}
|
|
3159
|
+
|
|
3160
|
+
interface SharedMemory {
|
|
3161
|
+
|
|
3162
|
+
// Own fields of Gsf-1.Gsf.SharedMemory
|
|
3163
|
+
|
|
3164
|
+
g_object: GObject.Object
|
|
3165
|
+
buf: any
|
|
3166
|
+
size: gsf_off_t
|
|
3167
|
+
needs_free: boolean
|
|
3168
|
+
needs_unmap: boolean
|
|
3169
|
+
|
|
3170
|
+
// Class property signals of Gsf-1.Gsf.SharedMemory
|
|
3171
|
+
|
|
3172
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
3173
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
3174
|
+
emit(sigName: string, ...args: any[]): void
|
|
3175
|
+
disconnect(id: number): void
|
|
3176
|
+
}
|
|
3177
|
+
|
|
3178
|
+
class SharedMemory extends GObject.Object {
|
|
3179
|
+
|
|
3180
|
+
// Own properties of Gsf-1.Gsf.SharedMemory
|
|
3181
|
+
|
|
3182
|
+
static name: string
|
|
3183
|
+
static $gtype: GObject.GType<SharedMemory>
|
|
3184
|
+
|
|
3185
|
+
// Constructors of Gsf-1.Gsf.SharedMemory
|
|
3186
|
+
|
|
3187
|
+
constructor(config?: SharedMemory.ConstructorProperties)
|
|
3188
|
+
static mmapped_new(buf: any | null, size: gsf_off_t): SharedMemory
|
|
3189
|
+
constructor(buf: any | null, size: gsf_off_t, needs_free: boolean)
|
|
3190
|
+
static new(buf: any | null, size: gsf_off_t, needs_free: boolean): SharedMemory
|
|
3191
|
+
_init(config?: SharedMemory.ConstructorProperties): void
|
|
3192
|
+
}
|
|
3193
|
+
|
|
3194
|
+
module StructuredBlob {
|
|
3195
|
+
|
|
3196
|
+
// Constructor properties interface
|
|
3197
|
+
|
|
3198
|
+
interface ConstructorProperties extends Infile.ConstructorProperties {
|
|
3199
|
+
}
|
|
3200
|
+
|
|
3201
|
+
}
|
|
3202
|
+
|
|
3203
|
+
interface StructuredBlob {
|
|
3204
|
+
|
|
3205
|
+
// Owm methods of Gsf-1.Gsf.StructuredBlob
|
|
3206
|
+
|
|
3207
|
+
/**
|
|
3208
|
+
* Dumps structured blob `blob` onto the `container`. Will fail if the output is
|
|
3209
|
+
* not an Outfile and blob has multiple streams.
|
|
3210
|
+
* @param container #GsfOutfile
|
|
3211
|
+
* @returns %TRUE on success.
|
|
3212
|
+
*/
|
|
3213
|
+
write(container: Outfile): boolean
|
|
3214
|
+
|
|
3215
|
+
// Class property signals of Gsf-1.Gsf.StructuredBlob
|
|
3216
|
+
|
|
3217
|
+
connect(sigName: "notify::eof", callback: (($obj: StructuredBlob, pspec: GObject.ParamSpec) => void)): number
|
|
3218
|
+
connect_after(sigName: "notify::eof", callback: (($obj: StructuredBlob, pspec: GObject.ParamSpec) => void)): number
|
|
3219
|
+
emit(sigName: "notify::eof", ...args: any[]): void
|
|
3220
|
+
connect(sigName: "notify::modtime", callback: (($obj: StructuredBlob, pspec: GObject.ParamSpec) => void)): number
|
|
3221
|
+
connect_after(sigName: "notify::modtime", callback: (($obj: StructuredBlob, pspec: GObject.ParamSpec) => void)): number
|
|
3222
|
+
emit(sigName: "notify::modtime", ...args: any[]): void
|
|
3223
|
+
connect(sigName: "notify::position", callback: (($obj: StructuredBlob, pspec: GObject.ParamSpec) => void)): number
|
|
3224
|
+
connect_after(sigName: "notify::position", callback: (($obj: StructuredBlob, pspec: GObject.ParamSpec) => void)): number
|
|
3225
|
+
emit(sigName: "notify::position", ...args: any[]): void
|
|
3226
|
+
connect(sigName: "notify::remaining", callback: (($obj: StructuredBlob, pspec: GObject.ParamSpec) => void)): number
|
|
3227
|
+
connect_after(sigName: "notify::remaining", callback: (($obj: StructuredBlob, pspec: GObject.ParamSpec) => void)): number
|
|
3228
|
+
emit(sigName: "notify::remaining", ...args: any[]): void
|
|
3229
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
3230
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
3231
|
+
emit(sigName: string, ...args: any[]): void
|
|
3232
|
+
disconnect(id: number): void
|
|
3233
|
+
}
|
|
3234
|
+
|
|
3235
|
+
class StructuredBlob extends Infile {
|
|
3236
|
+
|
|
3237
|
+
// Own properties of Gsf-1.Gsf.StructuredBlob
|
|
3238
|
+
|
|
3239
|
+
static name: string
|
|
3240
|
+
static $gtype: GObject.GType<StructuredBlob>
|
|
3241
|
+
|
|
3242
|
+
// Constructors of Gsf-1.Gsf.StructuredBlob
|
|
3243
|
+
|
|
3244
|
+
constructor(config?: StructuredBlob.ConstructorProperties)
|
|
3245
|
+
_init(config?: StructuredBlob.ConstructorProperties): void
|
|
3246
|
+
/**
|
|
3247
|
+
* Create a tree of binary blobs with unknown content from a #GsfInput or
|
|
3248
|
+
* #GsfInfile and store it in a newly created #GsfStructuredBlob.
|
|
3249
|
+
* @param input An input (potentially a GsfInfile) holding the blob
|
|
3250
|
+
* @returns a new #GsfStructuredBlob object which the caller is responsible for.
|
|
3251
|
+
*/
|
|
3252
|
+
static read(input: Input): StructuredBlob
|
|
3253
|
+
}
|
|
3254
|
+
|
|
3255
|
+
module XMLOut {
|
|
3256
|
+
|
|
3257
|
+
// Constructor properties interface
|
|
3258
|
+
|
|
3259
|
+
interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
3260
|
+
|
|
3261
|
+
// Own constructor properties of Gsf-1.Gsf.XMLOut
|
|
3262
|
+
|
|
3263
|
+
pretty_print?: boolean | null
|
|
3264
|
+
sink?: Output | null
|
|
3265
|
+
}
|
|
3266
|
+
|
|
3267
|
+
}
|
|
3268
|
+
|
|
3269
|
+
interface XMLOut {
|
|
3270
|
+
|
|
3271
|
+
// Own properties of Gsf-1.Gsf.XMLOut
|
|
3272
|
+
|
|
3273
|
+
pretty_print: boolean
|
|
3274
|
+
readonly sink: Output
|
|
3275
|
+
|
|
3276
|
+
// Own fields of Gsf-1.Gsf.XMLOut
|
|
3277
|
+
|
|
3278
|
+
base: GObject.Object
|
|
3279
|
+
output: Output
|
|
3280
|
+
priv: any
|
|
3281
|
+
|
|
3282
|
+
// Owm methods of Gsf-1.Gsf.XMLOut
|
|
3283
|
+
|
|
3284
|
+
/**
|
|
3285
|
+
* Dump `len` bytes in `data` into the content of node `id` using base64
|
|
3286
|
+
* @param id tag id, or %NULL for node content
|
|
3287
|
+
* @param data Data to be written
|
|
3288
|
+
*/
|
|
3289
|
+
add_base64(id: string | null, data: Uint8Array): void
|
|
3290
|
+
/**
|
|
3291
|
+
* dump boolean value `val` to an attribute named `id` or as the nodes content
|
|
3292
|
+
* Use '1' or '0' to simplify import
|
|
3293
|
+
* @param id tag id, or %NULL for node content
|
|
3294
|
+
* @param val a boolean
|
|
3295
|
+
*/
|
|
3296
|
+
add_bool(id: string | null, val: boolean): void
|
|
3297
|
+
/**
|
|
3298
|
+
* dump Color `r`.`g`.`b` to an attribute named `id` or as the nodes content
|
|
3299
|
+
* @param id tag id, or %NULL for node content
|
|
3300
|
+
* @param r Red value
|
|
3301
|
+
* @param g Green value
|
|
3302
|
+
* @param b Blue value
|
|
3303
|
+
*/
|
|
3304
|
+
add_color(id: string | null, r: number, g: number, b: number): void
|
|
3305
|
+
/**
|
|
3306
|
+
* dump `val_utf8` to an attribute named `id` or as the nodes content escaping
|
|
3307
|
+
* characters as necessary. If `val_utf8` is %NULL do nothing (no warning, no
|
|
3308
|
+
* output)
|
|
3309
|
+
* @param id tag id, or %NULL for node content
|
|
3310
|
+
* @param val_utf8 a utf8 encoded string
|
|
3311
|
+
*/
|
|
3312
|
+
add_cstr(id: string | null, val_utf8: string | null): void
|
|
3313
|
+
/**
|
|
3314
|
+
* dump `val_utf8` to an attribute named `id` without checking to see if
|
|
3315
|
+
* the content needs escaping. A useful performance enhancement when
|
|
3316
|
+
* the application knows that structure of the content well. If
|
|
3317
|
+
* `val_utf8` is %NULL do nothing (no warning, no output)
|
|
3318
|
+
* @param id tag id, or %NULL for node content
|
|
3319
|
+
* @param val_utf8 a utf8 encoded string to export
|
|
3320
|
+
*/
|
|
3321
|
+
add_cstr_unchecked(id: string | null, val_utf8: string | null): void
|
|
3322
|
+
/**
|
|
3323
|
+
* Output the name of value `val` of enumeration type `etype`.
|
|
3324
|
+
* @param id tag id, or %NULL for node content
|
|
3325
|
+
* @param etype #GType
|
|
3326
|
+
* @param val enum element number
|
|
3327
|
+
*/
|
|
3328
|
+
add_enum(id: string | null, etype: GObject.GType, val: number): void
|
|
3329
|
+
/**
|
|
3330
|
+
* dump float value `val` to an attribute named `id` or as the nodes
|
|
3331
|
+
* content with precision `precision`. The number will be formattted
|
|
3332
|
+
* according to the "C" locale.
|
|
3333
|
+
* @param id tag id, or %NULL for node content
|
|
3334
|
+
* @param val the value
|
|
3335
|
+
* @param precision the number of significant digits to use, -1 meaning "enough".
|
|
3336
|
+
*/
|
|
3337
|
+
add_float(id: string | null, val: number, precision: number): void
|
|
3338
|
+
/**
|
|
3339
|
+
* Output the value of `val` as a string. Does NOT store any type information
|
|
3340
|
+
* with the string, just thevalue.
|
|
3341
|
+
* @param id tag id, or %NULL for node content
|
|
3342
|
+
* @param val #GValue
|
|
3343
|
+
*/
|
|
3344
|
+
add_gvalue(id: string | null, val: any): void
|
|
3345
|
+
/**
|
|
3346
|
+
* dump integer value `val` to an attribute named `id` or as the nodes content
|
|
3347
|
+
* @param id tag id, or %NULL for node content
|
|
3348
|
+
* @param val the value
|
|
3349
|
+
*/
|
|
3350
|
+
add_int(id: string | null, val: number): void
|
|
3351
|
+
/**
|
|
3352
|
+
* dump unsigned integer value `val` to an attribute named `id` or as the nodes
|
|
3353
|
+
* content
|
|
3354
|
+
* @param id tag id, or %NULL for node content
|
|
3355
|
+
* @param val the value
|
|
3356
|
+
*/
|
|
3357
|
+
add_uint(id: string | null, val: number): void
|
|
3358
|
+
/**
|
|
3359
|
+
* Closes/ends an XML element.
|
|
3360
|
+
* @returns the element that has been closed.
|
|
3361
|
+
*/
|
|
3362
|
+
end_element(): string | null
|
|
3363
|
+
/**
|
|
3364
|
+
* Get the #GsfOutput we are writing to..
|
|
3365
|
+
* @returns #GsfInput
|
|
3366
|
+
*/
|
|
3367
|
+
get_output(): Output | null
|
|
3368
|
+
get_pretty_print(): boolean
|
|
3369
|
+
/**
|
|
3370
|
+
* Store some optional <!DOCTYPE .. > content
|
|
3371
|
+
* @param type the document type declaration
|
|
3372
|
+
*/
|
|
3373
|
+
set_doc_type(type: string | null): void
|
|
3374
|
+
set_pretty_print(pp: boolean): boolean
|
|
3375
|
+
/**
|
|
3376
|
+
* Convenience routine to output a simple `id` element with content `content`.
|
|
3377
|
+
* @param id Element name
|
|
3378
|
+
* @param content Content of the element
|
|
3379
|
+
*/
|
|
3380
|
+
simple_element(id: string | null, content: string | null): void
|
|
3381
|
+
/**
|
|
3382
|
+
* Convenience routine to output an element `id` with float value `val` using
|
|
3383
|
+
* `precision` significant digits.
|
|
3384
|
+
* @param id Element name
|
|
3385
|
+
* @param val Element value
|
|
3386
|
+
* @param precision the number of significant digits to use, -1 meaning "enough".
|
|
3387
|
+
*/
|
|
3388
|
+
simple_float_element(id: string | null, val: number, precision: number): void
|
|
3389
|
+
/**
|
|
3390
|
+
* Convenience routine to output an element `id` with integer value `val`.
|
|
3391
|
+
* @param id Element name
|
|
3392
|
+
* @param val Element value
|
|
3393
|
+
*/
|
|
3394
|
+
simple_int_element(id: string | null, val: number): void
|
|
3395
|
+
/**
|
|
3396
|
+
* Output a start element `id,` if necessary preceeded by an XML declaration.
|
|
3397
|
+
* @param id Element name
|
|
3398
|
+
*/
|
|
3399
|
+
start_element(id: string | null): void
|
|
3400
|
+
|
|
3401
|
+
// Class property signals of Gsf-1.Gsf.XMLOut
|
|
3402
|
+
|
|
3403
|
+
connect(sigName: "notify::pretty-print", callback: (($obj: XMLOut, pspec: GObject.ParamSpec) => void)): number
|
|
3404
|
+
connect_after(sigName: "notify::pretty-print", callback: (($obj: XMLOut, pspec: GObject.ParamSpec) => void)): number
|
|
3405
|
+
emit(sigName: "notify::pretty-print", ...args: any[]): void
|
|
3406
|
+
connect(sigName: "notify::sink", callback: (($obj: XMLOut, pspec: GObject.ParamSpec) => void)): number
|
|
3407
|
+
connect_after(sigName: "notify::sink", callback: (($obj: XMLOut, pspec: GObject.ParamSpec) => void)): number
|
|
3408
|
+
emit(sigName: "notify::sink", ...args: any[]): void
|
|
3409
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
3410
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
3411
|
+
emit(sigName: string, ...args: any[]): void
|
|
3412
|
+
disconnect(id: number): void
|
|
3413
|
+
}
|
|
3414
|
+
|
|
3415
|
+
class XMLOut extends GObject.Object {
|
|
3416
|
+
|
|
3417
|
+
// Own properties of Gsf-1.Gsf.XMLOut
|
|
3418
|
+
|
|
3419
|
+
static name: string
|
|
3420
|
+
static $gtype: GObject.GType<XMLOut>
|
|
3421
|
+
|
|
3422
|
+
// Constructors of Gsf-1.Gsf.XMLOut
|
|
3423
|
+
|
|
3424
|
+
constructor(config?: XMLOut.ConstructorProperties)
|
|
3425
|
+
/**
|
|
3426
|
+
* Create an XML output stream.
|
|
3427
|
+
* @constructor
|
|
3428
|
+
* @param output #GsfOutput
|
|
3429
|
+
* @returns #GsfXMLOut
|
|
3430
|
+
*/
|
|
3431
|
+
constructor(output: Output)
|
|
3432
|
+
/**
|
|
3433
|
+
* Create an XML output stream.
|
|
3434
|
+
* @constructor
|
|
3435
|
+
* @param output #GsfOutput
|
|
3436
|
+
* @returns #GsfXMLOut
|
|
3437
|
+
*/
|
|
3438
|
+
static new(output: Output): XMLOut
|
|
3439
|
+
_init(config?: XMLOut.ConstructorProperties): void
|
|
3440
|
+
}
|
|
3441
|
+
|
|
3442
|
+
interface BlobClass {
|
|
3443
|
+
}
|
|
3444
|
+
|
|
3445
|
+
abstract class BlobClass {
|
|
3446
|
+
|
|
3447
|
+
// Own properties of Gsf-1.Gsf.BlobClass
|
|
3448
|
+
|
|
3449
|
+
static name: string
|
|
3450
|
+
}
|
|
3451
|
+
|
|
3452
|
+
interface BlobPrivate {
|
|
3453
|
+
}
|
|
3454
|
+
|
|
3455
|
+
class BlobPrivate {
|
|
3456
|
+
|
|
3457
|
+
// Own properties of Gsf-1.Gsf.BlobPrivate
|
|
3458
|
+
|
|
3459
|
+
static name: string
|
|
3460
|
+
}
|
|
3461
|
+
|
|
3462
|
+
interface ClipDataClass {
|
|
3463
|
+
}
|
|
3464
|
+
|
|
3465
|
+
abstract class ClipDataClass {
|
|
3466
|
+
|
|
3467
|
+
// Own properties of Gsf-1.Gsf.ClipDataClass
|
|
3468
|
+
|
|
3469
|
+
static name: string
|
|
3470
|
+
}
|
|
3471
|
+
|
|
3472
|
+
interface ClipDataPrivate {
|
|
3473
|
+
}
|
|
3474
|
+
|
|
3475
|
+
class ClipDataPrivate {
|
|
3476
|
+
|
|
3477
|
+
// Own properties of Gsf-1.Gsf.ClipDataPrivate
|
|
3478
|
+
|
|
3479
|
+
static name: string
|
|
3480
|
+
}
|
|
3481
|
+
|
|
3482
|
+
interface DocProp {
|
|
3483
|
+
|
|
3484
|
+
// Owm methods of Gsf-1.Gsf.DocProp
|
|
3485
|
+
|
|
3486
|
+
/**
|
|
3487
|
+
* A debugging utility to dump `prop` as text via g_print
|
|
3488
|
+
* New in 1.14.2
|
|
3489
|
+
*/
|
|
3490
|
+
dump(): void
|
|
3491
|
+
/**
|
|
3492
|
+
* Release the given property.
|
|
3493
|
+
*/
|
|
3494
|
+
free(): void
|
|
3495
|
+
get_link(): string | null
|
|
3496
|
+
get_name(): string | null
|
|
3497
|
+
get_val(): any
|
|
3498
|
+
/**
|
|
3499
|
+
* Sets `prop'`s link to `link`
|
|
3500
|
+
* @param link a link.
|
|
3501
|
+
*/
|
|
3502
|
+
set_link(link: string | null): void
|
|
3503
|
+
/**
|
|
3504
|
+
* Assigns `val` to `prop,` and unsets and frees the current value.
|
|
3505
|
+
* @param val #GValue
|
|
3506
|
+
*/
|
|
3507
|
+
set_val(val: any): void
|
|
3508
|
+
swap_val(val: any): any
|
|
3509
|
+
}
|
|
3510
|
+
|
|
3511
|
+
/**
|
|
3512
|
+
* Class representing a properties of a document.
|
|
3513
|
+
* @record
|
|
3514
|
+
*/
|
|
3515
|
+
class DocProp {
|
|
3516
|
+
|
|
3517
|
+
// Own properties of Gsf-1.Gsf.DocProp
|
|
3518
|
+
|
|
3519
|
+
static name: string
|
|
3520
|
+
|
|
3521
|
+
// Constructors of Gsf-1.Gsf.DocProp
|
|
3522
|
+
|
|
3523
|
+
constructor(name: string | null)
|
|
3524
|
+
static new(name: string | null): DocProp
|
|
3525
|
+
}
|
|
3526
|
+
|
|
3527
|
+
interface InfileClass {
|
|
3528
|
+
|
|
3529
|
+
// Own fields of Gsf-1.Gsf.InfileClass
|
|
3530
|
+
|
|
3531
|
+
input_class: InputClass
|
|
3532
|
+
num_children: (infile: Infile) => number
|
|
3533
|
+
name_by_index: (infile: Infile, i: number) => string | null
|
|
3534
|
+
}
|
|
3535
|
+
|
|
3536
|
+
abstract class InfileClass {
|
|
3537
|
+
|
|
3538
|
+
// Own properties of Gsf-1.Gsf.InfileClass
|
|
3539
|
+
|
|
3540
|
+
static name: string
|
|
3541
|
+
}
|
|
3542
|
+
|
|
3543
|
+
interface InputClass {
|
|
3544
|
+
|
|
3545
|
+
// Own fields of Gsf-1.Gsf.InputClass
|
|
3546
|
+
|
|
3547
|
+
g_object_class: GObject.ObjectClass
|
|
3548
|
+
Dup: (input: Input) => Input | null
|
|
3549
|
+
Read: (input: Input, num_bytes: number, optional_buffer: Uint8Array | null) => Uint8Array | null
|
|
3550
|
+
Seek: (input: Input, offset: gsf_off_t, whence: GLib.SeekType) => boolean
|
|
3551
|
+
OpenSibling: (input: Input, name: string | null) => Input
|
|
3552
|
+
}
|
|
3553
|
+
|
|
3554
|
+
abstract class InputClass {
|
|
3555
|
+
|
|
3556
|
+
// Own properties of Gsf-1.Gsf.InputClass
|
|
3557
|
+
|
|
3558
|
+
static name: string
|
|
3559
|
+
}
|
|
3560
|
+
|
|
3561
|
+
interface MSOleSortingKey {
|
|
3562
|
+
|
|
3563
|
+
// Owm methods of Gsf-1.Gsf.MSOleSortingKey
|
|
3564
|
+
|
|
3565
|
+
cmp(b: MSOleSortingKey): number
|
|
3566
|
+
free(): void
|
|
3567
|
+
}
|
|
3568
|
+
|
|
3569
|
+
class MSOleSortingKey {
|
|
3570
|
+
|
|
3571
|
+
// Own properties of Gsf-1.Gsf.MSOleSortingKey
|
|
3572
|
+
|
|
3573
|
+
static name: string
|
|
3574
|
+
|
|
3575
|
+
// Constructors of Gsf-1.Gsf.MSOleSortingKey
|
|
3576
|
+
|
|
3577
|
+
constructor(name: string | null)
|
|
3578
|
+
static new(name: string | null): MSOleSortingKey
|
|
3579
|
+
}
|
|
3580
|
+
|
|
3581
|
+
interface ODFOutClass {
|
|
3582
|
+
|
|
3583
|
+
// Own fields of Gsf-1.Gsf.ODFOutClass
|
|
3584
|
+
|
|
3585
|
+
base: XMLOutClass
|
|
3586
|
+
}
|
|
3587
|
+
|
|
3588
|
+
abstract class ODFOutClass {
|
|
3589
|
+
|
|
3590
|
+
// Own properties of Gsf-1.Gsf.ODFOutClass
|
|
3591
|
+
|
|
3592
|
+
static name: string
|
|
3593
|
+
}
|
|
3594
|
+
|
|
3595
|
+
interface OpenPkgRel {
|
|
3596
|
+
|
|
3597
|
+
// Owm methods of Gsf-1.Gsf.OpenPkgRel
|
|
3598
|
+
|
|
3599
|
+
get_target(): string | null
|
|
3600
|
+
get_type(): string | null
|
|
3601
|
+
is_extern(): boolean
|
|
3602
|
+
}
|
|
3603
|
+
|
|
3604
|
+
class OpenPkgRel {
|
|
3605
|
+
|
|
3606
|
+
// Own properties of Gsf-1.Gsf.OpenPkgRel
|
|
3607
|
+
|
|
3608
|
+
static name: string
|
|
3609
|
+
}
|
|
3610
|
+
|
|
3611
|
+
interface OpenPkgRels {
|
|
3612
|
+
}
|
|
3613
|
+
|
|
3614
|
+
class OpenPkgRels {
|
|
3615
|
+
|
|
3616
|
+
// Own properties of Gsf-1.Gsf.OpenPkgRels
|
|
3617
|
+
|
|
3618
|
+
static name: string
|
|
3619
|
+
}
|
|
3620
|
+
|
|
3621
|
+
interface OutfileClass {
|
|
3622
|
+
|
|
3623
|
+
// Own fields of Gsf-1.Gsf.OutfileClass
|
|
3624
|
+
|
|
3625
|
+
output_class: OutputClass
|
|
3626
|
+
}
|
|
3627
|
+
|
|
3628
|
+
abstract class OutfileClass {
|
|
3629
|
+
|
|
3630
|
+
// Own properties of Gsf-1.Gsf.OutfileClass
|
|
3631
|
+
|
|
3632
|
+
static name: string
|
|
3633
|
+
}
|
|
3634
|
+
|
|
3635
|
+
interface OutputClass {
|
|
3636
|
+
|
|
3637
|
+
// Own fields of Gsf-1.Gsf.OutputClass
|
|
3638
|
+
|
|
3639
|
+
g_object_class: GObject.ObjectClass
|
|
3640
|
+
Close: (output: Output) => boolean
|
|
3641
|
+
Seek: (output: Output, offset: gsf_off_t, whence: GLib.SeekType) => boolean
|
|
3642
|
+
Write: (output: Output, data: Uint8Array) => boolean
|
|
3643
|
+
}
|
|
3644
|
+
|
|
3645
|
+
abstract class OutputClass {
|
|
3646
|
+
|
|
3647
|
+
// Own properties of Gsf-1.Gsf.OutputClass
|
|
3648
|
+
|
|
3649
|
+
static name: string
|
|
3650
|
+
}
|
|
3651
|
+
|
|
3652
|
+
interface OutputCsvClass {
|
|
3653
|
+
|
|
3654
|
+
// Own fields of Gsf-1.Gsf.OutputCsvClass
|
|
3655
|
+
|
|
3656
|
+
output_class: OutputClass
|
|
3657
|
+
}
|
|
3658
|
+
|
|
3659
|
+
abstract class OutputCsvClass {
|
|
3660
|
+
|
|
3661
|
+
// Own properties of Gsf-1.Gsf.OutputCsvClass
|
|
3662
|
+
|
|
3663
|
+
static name: string
|
|
3664
|
+
}
|
|
3665
|
+
|
|
3666
|
+
interface OutputIconvClass {
|
|
3667
|
+
|
|
3668
|
+
// Own fields of Gsf-1.Gsf.OutputIconvClass
|
|
3669
|
+
|
|
3670
|
+
output_class: OutputClass
|
|
3671
|
+
}
|
|
3672
|
+
|
|
3673
|
+
abstract class OutputIconvClass {
|
|
3674
|
+
|
|
3675
|
+
// Own properties of Gsf-1.Gsf.OutputIconvClass
|
|
3676
|
+
|
|
3677
|
+
static name: string
|
|
3678
|
+
}
|
|
3679
|
+
|
|
3680
|
+
interface Timestamp {
|
|
3681
|
+
|
|
3682
|
+
// Own fields of Gsf-1.Gsf.Timestamp
|
|
3683
|
+
|
|
3684
|
+
/**
|
|
3685
|
+
* #GDate in local timezone
|
|
3686
|
+
* @field
|
|
3687
|
+
*/
|
|
3688
|
+
date: GLib.Date
|
|
3689
|
+
/**
|
|
3690
|
+
* #glong number of seconds since `date`.
|
|
3691
|
+
* @field
|
|
3692
|
+
*/
|
|
3693
|
+
seconds: number
|
|
3694
|
+
/**
|
|
3695
|
+
* possibly blank #GString of the timezone
|
|
3696
|
+
* @field
|
|
3697
|
+
*/
|
|
3698
|
+
time_zone: GLib.String
|
|
3699
|
+
/**
|
|
3700
|
+
* as from g_date_time_to_unix.
|
|
3701
|
+
* @field
|
|
3702
|
+
*/
|
|
3703
|
+
timet: number
|
|
3704
|
+
|
|
3705
|
+
// Owm methods of Gsf-1.Gsf.Timestamp
|
|
3706
|
+
|
|
3707
|
+
/**
|
|
3708
|
+
* Produce a string representation (ISO 8601 format) of `stamp`.
|
|
3709
|
+
* @returns a string representation of @stamp. When @stamp is invalid, the representation is "<invalid>".
|
|
3710
|
+
*/
|
|
3711
|
+
as_string(): string | null
|
|
3712
|
+
/**
|
|
3713
|
+
* Copies a timestamp.
|
|
3714
|
+
* @returns a separate copy of @stamp.
|
|
3715
|
+
*/
|
|
3716
|
+
copy(): Timestamp
|
|
3717
|
+
/**
|
|
3718
|
+
* Compare timestamps `a` and `b`.
|
|
3719
|
+
* @param b another timestamp
|
|
3720
|
+
* @returns true if @a and @b represent the same point in time; false otherwise.
|
|
3721
|
+
*/
|
|
3722
|
+
equal(b: Timestamp): boolean
|
|
3723
|
+
/**
|
|
3724
|
+
* Releases the memory in use for `stamp` (if any).
|
|
3725
|
+
*/
|
|
3726
|
+
free(): void
|
|
3727
|
+
hash(): number
|
|
3728
|
+
/**
|
|
3729
|
+
* Parser for time stamps. Requires a ISO 8601 formatted string.
|
|
3730
|
+
* @param spec The string to parse
|
|
3731
|
+
* @returns %TRUE on success
|
|
3732
|
+
*/
|
|
3733
|
+
load_from_string(spec: string | null): number
|
|
3734
|
+
set_time(t: number): void
|
|
3735
|
+
/**
|
|
3736
|
+
* Calls g_value_set_box (value, stamp);
|
|
3737
|
+
* @param value #GValue
|
|
3738
|
+
*/
|
|
3739
|
+
to_value(value: any): void
|
|
3740
|
+
}
|
|
3741
|
+
|
|
3742
|
+
/**
|
|
3743
|
+
* A point in time.
|
|
3744
|
+
* @record
|
|
3745
|
+
*/
|
|
3746
|
+
class Timestamp {
|
|
3747
|
+
|
|
3748
|
+
// Own properties of Gsf-1.Gsf.Timestamp
|
|
3749
|
+
|
|
3750
|
+
static name: string
|
|
3751
|
+
|
|
3752
|
+
// Constructors of Gsf-1.Gsf.Timestamp
|
|
3753
|
+
|
|
3754
|
+
constructor()
|
|
3755
|
+
static new(): Timestamp
|
|
3756
|
+
}
|
|
3757
|
+
|
|
3758
|
+
interface XMLBlob {
|
|
3759
|
+
}
|
|
3760
|
+
|
|
3761
|
+
class XMLBlob {
|
|
3762
|
+
|
|
3763
|
+
// Own properties of Gsf-1.Gsf.XMLBlob
|
|
3764
|
+
|
|
3765
|
+
static name: string
|
|
3766
|
+
}
|
|
3767
|
+
|
|
3768
|
+
interface XMLIn {
|
|
3769
|
+
|
|
3770
|
+
// Own fields of Gsf-1.Gsf.XMLIn
|
|
3771
|
+
|
|
3772
|
+
/**
|
|
3773
|
+
* user data
|
|
3774
|
+
* @field
|
|
3775
|
+
*/
|
|
3776
|
+
user_state: any
|
|
3777
|
+
/**
|
|
3778
|
+
* the current node content
|
|
3779
|
+
* @field
|
|
3780
|
+
*/
|
|
3781
|
+
content: GLib.String
|
|
3782
|
+
/**
|
|
3783
|
+
* Current document being parsed #GsfXMLInDoc
|
|
3784
|
+
* @field
|
|
3785
|
+
*/
|
|
3786
|
+
doc: XMLInDoc
|
|
3787
|
+
/**
|
|
3788
|
+
* current node (not on the stack)
|
|
3789
|
+
* @field
|
|
3790
|
+
*/
|
|
3791
|
+
node: XMLInNode
|
|
3792
|
+
|
|
3793
|
+
// Owm methods of Gsf-1.Gsf.XMLIn
|
|
3794
|
+
|
|
3795
|
+
/**
|
|
3796
|
+
* According to `state` is `str` in the namespace `ns_id` ?
|
|
3797
|
+
* @param str string to check
|
|
3798
|
+
* @param ns_id the namespace id
|
|
3799
|
+
* @returns a pointer to @str after the namespace if successful, otherwise %NULL.
|
|
3800
|
+
*/
|
|
3801
|
+
check_ns(str: string | null, ns_id: number): string | null
|
|
3802
|
+
/**
|
|
3803
|
+
* (New in 1.14.2)
|
|
3804
|
+
* @returns (but does not reference) the stream being parsed.
|
|
3805
|
+
*/
|
|
3806
|
+
get_input(): Input
|
|
3807
|
+
/**
|
|
3808
|
+
* Checks to see if `str` is the same as `ns_id:`:`name` with either an explicit
|
|
3809
|
+
* namespace or the current default namespace.
|
|
3810
|
+
* @param str The potentially namespace qualified node name.
|
|
3811
|
+
* @param ns_id The name space id to check
|
|
3812
|
+
* @param name The target node name
|
|
3813
|
+
* @returns %TRUE if @str == @ns_id:@name according to @state.
|
|
3814
|
+
*/
|
|
3815
|
+
namecmp(str: string | null, ns_id: number, name: string | null): boolean
|
|
3816
|
+
/**
|
|
3817
|
+
* Take the first node from `doc` as the current node and call its start handler.
|
|
3818
|
+
* @param doc #GsfXMLInDoc
|
|
3819
|
+
* @param new_state arbitrary content for the parser
|
|
3820
|
+
* @param dtor #GsfXMLInExtDtor
|
|
3821
|
+
* @param attrs array of xmlChar const *
|
|
3822
|
+
*/
|
|
3823
|
+
push_state(doc: XMLInDoc, new_state: any | null, dtor: XMLInExtDtor, attrs: string[]): void
|
|
3824
|
+
/**
|
|
3825
|
+
* (New in 1.14.33)
|
|
3826
|
+
*
|
|
3827
|
+
* This provides a means to silently ignore unknown tags in contexts where
|
|
3828
|
+
* they are expected.
|
|
3829
|
+
* @param silent whether to be silent about unknown tags
|
|
3830
|
+
*/
|
|
3831
|
+
set_silent_unknowns(silent: boolean): void
|
|
3832
|
+
}
|
|
3833
|
+
|
|
3834
|
+
class XMLIn {
|
|
3835
|
+
|
|
3836
|
+
// Own properties of Gsf-1.Gsf.XMLIn
|
|
3837
|
+
|
|
3838
|
+
static name: string
|
|
3839
|
+
}
|
|
3840
|
+
|
|
3841
|
+
interface XMLInDoc {
|
|
3842
|
+
|
|
3843
|
+
// Owm methods of Gsf-1.Gsf.XMLInDoc
|
|
3844
|
+
|
|
3845
|
+
/**
|
|
3846
|
+
* Adds additional nodes to the structure of `doc`
|
|
3847
|
+
* @param nodes %NULL terminated array of #GsfXMLInNode
|
|
3848
|
+
*/
|
|
3849
|
+
add_nodes(nodes: XMLInNode[]): void
|
|
3850
|
+
/**
|
|
3851
|
+
* Free up resources
|
|
3852
|
+
*/
|
|
3853
|
+
free(): void
|
|
3854
|
+
/**
|
|
3855
|
+
* Read an xml document from `input` and parse based on the the descriptor in
|
|
3856
|
+
* `doc`
|
|
3857
|
+
* @param input #GsfInput
|
|
3858
|
+
* @param user_state arbitrary content stored in the parser
|
|
3859
|
+
* @returns %FALSE on error
|
|
3860
|
+
*/
|
|
3861
|
+
parse(input: Input, user_state: any | null): boolean
|
|
3862
|
+
/**
|
|
3863
|
+
* Call the function `handler` when an unexpected child node is found
|
|
3864
|
+
* @param handler The function to call
|
|
3865
|
+
*/
|
|
3866
|
+
set_unknown_handler(handler: XMLInUnknownFunc): void
|
|
3867
|
+
}
|
|
3868
|
+
|
|
3869
|
+
class XMLInDoc {
|
|
3870
|
+
|
|
3871
|
+
// Own properties of Gsf-1.Gsf.XMLInDoc
|
|
3872
|
+
|
|
3873
|
+
static name: string
|
|
3874
|
+
|
|
3875
|
+
// Constructors of Gsf-1.Gsf.XMLInDoc
|
|
3876
|
+
|
|
3877
|
+
/**
|
|
3878
|
+
* Combine the nodes in the %NULL terminated array starting at `nodes` with the
|
|
3879
|
+
* name spaces in the %NULL terminated array starting at `ns`. Prepare the
|
|
3880
|
+
* data structures necessary to validate a doument based on that description.
|
|
3881
|
+
* @constructor
|
|
3882
|
+
* @param nodes an array of node descriptors
|
|
3883
|
+
* @param ns an array of namespace identifiers
|
|
3884
|
+
* @returns a #GsfXMLInDoc
|
|
3885
|
+
*/
|
|
3886
|
+
constructor(nodes: XMLInNode[], ns: XMLInNS[])
|
|
3887
|
+
/**
|
|
3888
|
+
* Combine the nodes in the %NULL terminated array starting at `nodes` with the
|
|
3889
|
+
* name spaces in the %NULL terminated array starting at `ns`. Prepare the
|
|
3890
|
+
* data structures necessary to validate a doument based on that description.
|
|
3891
|
+
* @constructor
|
|
3892
|
+
* @param nodes an array of node descriptors
|
|
3893
|
+
* @param ns an array of namespace identifiers
|
|
3894
|
+
* @returns a #GsfXMLInDoc
|
|
3895
|
+
*/
|
|
3896
|
+
static new(nodes: XMLInNode[], ns: XMLInNS[]): XMLInDoc
|
|
3897
|
+
}
|
|
3898
|
+
|
|
3899
|
+
interface XMLInNS {
|
|
3900
|
+
|
|
3901
|
+
// Own fields of Gsf-1.Gsf.XMLInNS
|
|
3902
|
+
|
|
3903
|
+
/**
|
|
3904
|
+
* URI
|
|
3905
|
+
* @field
|
|
3906
|
+
*/
|
|
3907
|
+
uri: string | null
|
|
3908
|
+
ns_id: number
|
|
3909
|
+
}
|
|
3910
|
+
|
|
3911
|
+
class XMLInNS {
|
|
3912
|
+
|
|
3913
|
+
// Own properties of Gsf-1.Gsf.XMLInNS
|
|
3914
|
+
|
|
3915
|
+
static name: string
|
|
3916
|
+
}
|
|
3917
|
+
|
|
3918
|
+
interface XMLInNode {
|
|
3919
|
+
|
|
3920
|
+
// Own fields of Gsf-1.Gsf.XMLInNode
|
|
3921
|
+
|
|
3922
|
+
/**
|
|
3923
|
+
* identifier unique in the entire tree
|
|
3924
|
+
* @field
|
|
3925
|
+
*/
|
|
3926
|
+
id: string | null
|
|
3927
|
+
/**
|
|
3928
|
+
* namespace identifier
|
|
3929
|
+
* @field
|
|
3930
|
+
*/
|
|
3931
|
+
ns_id: number
|
|
3932
|
+
/**
|
|
3933
|
+
* node name
|
|
3934
|
+
* @field
|
|
3935
|
+
*/
|
|
3936
|
+
name: string | null
|
|
3937
|
+
/**
|
|
3938
|
+
* parent node identifier
|
|
3939
|
+
* @field
|
|
3940
|
+
*/
|
|
3941
|
+
parent_id: string | null
|
|
3942
|
+
start: (xin: XMLIn, attrs: libxml2.Char) => void
|
|
3943
|
+
end: (xin: XMLIn, unknown: XMLBlob) => void
|
|
3944
|
+
/**
|
|
3945
|
+
* whether the node has content
|
|
3946
|
+
* @field
|
|
3947
|
+
*/
|
|
3948
|
+
has_content: XMLContent
|
|
3949
|
+
/**
|
|
3950
|
+
* whether to check namespace for children
|
|
3951
|
+
* @field
|
|
3952
|
+
*/
|
|
3953
|
+
check_children_for_ns: number
|
|
3954
|
+
/**
|
|
3955
|
+
* whether to share children with parent.
|
|
3956
|
+
* @field
|
|
3957
|
+
*/
|
|
3958
|
+
share_children_with_parent: number
|
|
3959
|
+
}
|
|
3960
|
+
|
|
3961
|
+
class XMLInNode {
|
|
3962
|
+
|
|
3963
|
+
// Own properties of Gsf-1.Gsf.XMLInNode
|
|
3964
|
+
|
|
3965
|
+
static name: string
|
|
3966
|
+
}
|
|
3967
|
+
|
|
3968
|
+
interface XMLOutClass {
|
|
3969
|
+
|
|
3970
|
+
// Own fields of Gsf-1.Gsf.XMLOutClass
|
|
3971
|
+
|
|
3972
|
+
base: GObject.ObjectClass
|
|
3973
|
+
}
|
|
3974
|
+
|
|
3975
|
+
abstract class XMLOutClass {
|
|
3976
|
+
|
|
3977
|
+
// Own properties of Gsf-1.Gsf.XMLOutClass
|
|
3978
|
+
|
|
3979
|
+
static name: string
|
|
3980
|
+
}
|
|
3981
|
+
|
|
3982
|
+
type gsf_off_t = number
|
|
3983
|
+
/**
|
|
3984
|
+
* Name of the imported GIR library
|
|
3985
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
|
|
3986
|
+
*/
|
|
3987
|
+
const __name__: string
|
|
3988
|
+
/**
|
|
3989
|
+
* Version of the imported GIR library
|
|
3990
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
|
|
3991
|
+
*/
|
|
3992
|
+
const __version__: string
|
|
3993
|
+
}
|
|
3994
|
+
|
|
3995
|
+
export default Gsf;
|
|
3996
|
+
// END
|