@girs/evincedocument-3.0 45.0.0-3.2.5 → 45.0.0-3.2.7
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 +1 -1
- package/evincedocument-3.0.d.cts +116 -94
- package/evincedocument-3.0.d.ts +116 -94
- package/package.json +15 -15
package/evincedocument-3.0.d.ts
CHANGED
|
@@ -233,8 +233,8 @@ enum FindOptions {
|
|
|
233
233
|
* (e.g. in version 3.1.4 this is 3).
|
|
234
234
|
*/
|
|
235
235
|
const MAJOR_VERSION: number
|
|
236
|
-
function backends_manager_get_document(mime_type: string
|
|
237
|
-
function backends_manager_get_document_module_name(document: Document): string
|
|
236
|
+
function backends_manager_get_document(mime_type: string): Document
|
|
237
|
+
function backends_manager_get_document_module_name(document: Document): string
|
|
238
238
|
function document_error_quark(): GLib.Quark
|
|
239
239
|
/**
|
|
240
240
|
* Compresses the file at `uri`.
|
|
@@ -251,7 +251,7 @@ function document_error_quark(): GLib.Quark
|
|
|
251
251
|
* @param type the compression type
|
|
252
252
|
* @returns a newly allocated string URI, or %NULL on error
|
|
253
253
|
*/
|
|
254
|
-
function file_compress(uri: string
|
|
254
|
+
function file_compress(uri: string, type: CompressionType): string | null
|
|
255
255
|
/**
|
|
256
256
|
* Performs a g_file_copy_attributes() with %G_FILE_COPY_ALL_METADATA
|
|
257
257
|
* from `from` to `to`.
|
|
@@ -259,8 +259,8 @@ function file_compress(uri: string | null, type: CompressionType): string | null
|
|
|
259
259
|
* @param to the target URI
|
|
260
260
|
* @returns %TRUE if the attributes were copied successfully, %FALSE otherwise.
|
|
261
261
|
*/
|
|
262
|
-
function file_copy_metadata(from: string
|
|
263
|
-
function file_get_mime_type(uri: string
|
|
262
|
+
function file_copy_metadata(from: string, to: string): boolean
|
|
263
|
+
function file_get_mime_type(uri: string, fast: boolean): string | null
|
|
264
264
|
function file_get_mime_type_from_fd(fd: number): string | null
|
|
265
265
|
function file_is_temp(file: Gio.File): boolean
|
|
266
266
|
/**
|
|
@@ -277,8 +277,8 @@ function file_is_temp(file: Gio.File): boolean
|
|
|
277
277
|
* @param type the compression type
|
|
278
278
|
* @returns a newly allocated string URI, or %NULL on error
|
|
279
279
|
*/
|
|
280
|
-
function file_uncompress(uri: string
|
|
281
|
-
function get_locale_dir(): string
|
|
280
|
+
function file_uncompress(uri: string, type: CompressionType): string | null
|
|
281
|
+
function get_locale_dir(): string
|
|
282
282
|
/**
|
|
283
283
|
* Initializes the evince document library, and binds the evince
|
|
284
284
|
* gettext domain.
|
|
@@ -293,20 +293,20 @@ function init(): boolean
|
|
|
293
293
|
* @param tmpl a template string; must end in 'XXXXXX'
|
|
294
294
|
* @returns a newly allocated string with the temp directory name, or %NULL on error with @error filled in
|
|
295
295
|
*/
|
|
296
|
-
function mkdtemp(tmpl: string
|
|
296
|
+
function mkdtemp(tmpl: string): string | null
|
|
297
297
|
/**
|
|
298
298
|
* Creates a temp file in the evince temp directory.
|
|
299
299
|
* @param tmpl a template string; must contain 'XXXXXX', but not necessarily as a suffix
|
|
300
300
|
* @param file_name a location to store the filename of the temp file
|
|
301
301
|
* @returns a file descriptor to the newly created temp file name, or %-1 on error with @error filled in
|
|
302
302
|
*/
|
|
303
|
-
function mkstemp(tmpl: string
|
|
303
|
+
function mkstemp(tmpl: string, file_name: string | null): number
|
|
304
304
|
/**
|
|
305
305
|
* Creates a temp #GFile in the evince temp directory. See ev_mkstemp() for more information.
|
|
306
306
|
* @param tmpl a template string; must contain 'XXXXXX', but not necessarily as a suffix
|
|
307
307
|
* @returns a newly allocated #GFile for the newly created temp file name, or %NULL on error with @error filled in
|
|
308
308
|
*/
|
|
309
|
-
function mkstemp_file(tmpl: string
|
|
309
|
+
function mkstemp_file(tmpl: string): Gio.File
|
|
310
310
|
function rect_cmp(a: Rectangle, b: Rectangle): number
|
|
311
311
|
/**
|
|
312
312
|
* Checks whether evince should use the portal.
|
|
@@ -318,16 +318,16 @@ function should_use_portal(): boolean
|
|
|
318
318
|
*/
|
|
319
319
|
function shutdown(): void
|
|
320
320
|
function tmp_file_unlink(file: Gio.File): void
|
|
321
|
-
function tmp_filename_unlink(filename: string
|
|
322
|
-
function tmp_uri_unlink(uri: string
|
|
321
|
+
function tmp_filename_unlink(filename: string): void
|
|
322
|
+
function tmp_uri_unlink(uri: string): void
|
|
323
323
|
/**
|
|
324
324
|
* Performs a g_file_copy() from `from` to `to`.
|
|
325
325
|
* @param from the source URI
|
|
326
326
|
* @param to the target URI
|
|
327
327
|
* @returns %TRUE on success, or %FALSE on error with @error filled in
|
|
328
328
|
*/
|
|
329
|
-
function xfer_uri_simple(from: string
|
|
330
|
-
function xmp_parse(xmp: string
|
|
329
|
+
function xfer_uri_simple(from: string, to: string): boolean
|
|
330
|
+
function xmp_parse(xmp: string, size: number, info: DocumentInfo): boolean
|
|
331
331
|
module AnnotationMarkup {
|
|
332
332
|
|
|
333
333
|
// Constructor properties interface
|
|
@@ -342,6 +342,9 @@ module AnnotationMarkup {
|
|
|
342
342
|
opacity?: number | null
|
|
343
343
|
popup_is_open?: boolean | null
|
|
344
344
|
rectangle?: Rectangle | null
|
|
345
|
+
canHavePopup?: boolean | null
|
|
346
|
+
hasPopup?: boolean | null
|
|
347
|
+
popupIsOpen?: boolean | null
|
|
345
348
|
}
|
|
346
349
|
|
|
347
350
|
}
|
|
@@ -351,20 +354,23 @@ interface AnnotationMarkup extends Annotation {
|
|
|
351
354
|
// Own properties of EvinceDocument-3.0.EvinceDocument.AnnotationMarkup
|
|
352
355
|
|
|
353
356
|
can_have_popup: boolean
|
|
357
|
+
canHavePopup: boolean
|
|
354
358
|
has_popup: boolean
|
|
359
|
+
hasPopup: boolean
|
|
355
360
|
label: string | null
|
|
356
361
|
opacity: number
|
|
357
362
|
popup_is_open: boolean
|
|
363
|
+
popupIsOpen: boolean
|
|
358
364
|
rectangle: Rectangle
|
|
359
365
|
|
|
360
366
|
// Owm methods of EvinceDocument-3.0.EvinceDocument.AnnotationMarkup
|
|
361
367
|
|
|
362
|
-
get_label(): string
|
|
368
|
+
get_label(): string
|
|
363
369
|
get_opacity(): number
|
|
364
370
|
get_popup_is_open(): boolean
|
|
365
371
|
get_rectangle(ev_rect: Rectangle): void
|
|
366
372
|
set_has_popup(has_popup: boolean): boolean
|
|
367
|
-
set_label(label: string
|
|
373
|
+
set_label(label: string): boolean
|
|
368
374
|
set_opacity(opacity: number): boolean
|
|
369
375
|
set_popup_is_open(is_open: boolean): boolean
|
|
370
376
|
set_rectangle(ev_rect: Rectangle): boolean
|
|
@@ -593,16 +599,16 @@ interface DocumentFind {
|
|
|
593
599
|
|
|
594
600
|
// Owm methods of EvinceDocument-3.0.EvinceDocument.DocumentFind
|
|
595
601
|
|
|
596
|
-
find_text(page: Page, text: string
|
|
597
|
-
find_text_extended(page: Page, text: string
|
|
598
|
-
find_text_with_options(page: Page, text: string
|
|
602
|
+
find_text(page: Page, text: string, case_sensitive: boolean): Rectangle[]
|
|
603
|
+
find_text_extended(page: Page, text: string, options: FindOptions): FindRectangle[]
|
|
604
|
+
find_text_with_options(page: Page, text: string, options: FindOptions): Rectangle[]
|
|
599
605
|
get_supported_options(): FindOptions
|
|
600
606
|
|
|
601
607
|
// Own virtual methods of EvinceDocument-3.0.EvinceDocument.DocumentFind
|
|
602
608
|
|
|
603
|
-
vfunc_find_text(page: Page, text: string
|
|
604
|
-
vfunc_find_text_extended(page: Page, text: string
|
|
605
|
-
vfunc_find_text_with_options(page: Page, text: string
|
|
609
|
+
vfunc_find_text(page: Page, text: string, case_sensitive: boolean): Rectangle[]
|
|
610
|
+
vfunc_find_text_extended(page: Page, text: string, options: FindOptions): FindRectangle[]
|
|
611
|
+
vfunc_find_text_with_options(page: Page, text: string, options: FindOptions): Rectangle[]
|
|
606
612
|
vfunc_get_supported_options(): FindOptions
|
|
607
613
|
|
|
608
614
|
// Class property signals of EvinceDocument-3.0.EvinceDocument.DocumentFind
|
|
@@ -640,14 +646,14 @@ interface DocumentFonts {
|
|
|
640
646
|
// Owm methods of EvinceDocument-3.0.EvinceDocument.DocumentFonts
|
|
641
647
|
|
|
642
648
|
fill_model(model: Gtk.TreeModel): void
|
|
643
|
-
get_fonts_summary(): string
|
|
649
|
+
get_fonts_summary(): string
|
|
644
650
|
get_progress(): number
|
|
645
651
|
scan(n_pages: number): boolean
|
|
646
652
|
|
|
647
653
|
// Own virtual methods of EvinceDocument-3.0.EvinceDocument.DocumentFonts
|
|
648
654
|
|
|
649
655
|
vfunc_fill_model(model: Gtk.TreeModel): void
|
|
650
|
-
vfunc_get_fonts_summary(): string
|
|
656
|
+
vfunc_get_fonts_summary(): string
|
|
651
657
|
vfunc_get_progress(): number
|
|
652
658
|
vfunc_scan(n_pages: number): boolean
|
|
653
659
|
|
|
@@ -693,11 +699,11 @@ interface DocumentForms {
|
|
|
693
699
|
form_field_choice_get_text(field: FormField): string | null
|
|
694
700
|
form_field_choice_is_item_selected(field: FormField, index: number): boolean
|
|
695
701
|
form_field_choice_select_item(field: FormField, index: number): void
|
|
696
|
-
form_field_choice_set_text(field: FormField, text: string
|
|
702
|
+
form_field_choice_set_text(field: FormField, text: string): void
|
|
697
703
|
form_field_choice_toggle_item(field: FormField, index: number): void
|
|
698
704
|
form_field_choice_unselect_all(field: FormField): void
|
|
699
705
|
form_field_text_get_text(field: FormField): string | null
|
|
700
|
-
form_field_text_set_text(field: FormField, text: string
|
|
706
|
+
form_field_text_set_text(field: FormField, text: string): void
|
|
701
707
|
get_form_fields(page: Page): MappingList
|
|
702
708
|
reset_form(action: LinkAction): void
|
|
703
709
|
|
|
@@ -711,11 +717,11 @@ interface DocumentForms {
|
|
|
711
717
|
vfunc_form_field_choice_get_text(field: FormField): string | null
|
|
712
718
|
vfunc_form_field_choice_is_item_selected(field: FormField, index: number): boolean
|
|
713
719
|
vfunc_form_field_choice_select_item(field: FormField, index: number): void
|
|
714
|
-
vfunc_form_field_choice_set_text(field: FormField, text: string
|
|
720
|
+
vfunc_form_field_choice_set_text(field: FormField, text: string): void
|
|
715
721
|
vfunc_form_field_choice_toggle_item(field: FormField, index: number): void
|
|
716
722
|
vfunc_form_field_choice_unselect_all(field: FormField): void
|
|
717
723
|
vfunc_form_field_text_get_text(field: FormField): string | null
|
|
718
|
-
vfunc_form_field_text_set_text(field: FormField, text: string
|
|
724
|
+
vfunc_form_field_text_set_text(field: FormField, text: string): void
|
|
719
725
|
vfunc_get_form_fields(page: Page): MappingList
|
|
720
726
|
vfunc_reset_form(action: LinkAction): void
|
|
721
727
|
|
|
@@ -843,8 +849,8 @@ interface DocumentLinks {
|
|
|
843
849
|
|
|
844
850
|
// Owm methods of EvinceDocument-3.0.EvinceDocument.DocumentLinks
|
|
845
851
|
|
|
846
|
-
find_link_dest(link_name: string
|
|
847
|
-
find_link_page(link_name: string
|
|
852
|
+
find_link_dest(link_name: string): LinkDest
|
|
853
|
+
find_link_page(link_name: string): number
|
|
848
854
|
get_dest_page(dest: LinkDest): number
|
|
849
855
|
get_dest_page_label(dest: LinkDest): string | null
|
|
850
856
|
get_link_page(link: Link): number
|
|
@@ -855,8 +861,8 @@ interface DocumentLinks {
|
|
|
855
861
|
|
|
856
862
|
// Own virtual methods of EvinceDocument-3.0.EvinceDocument.DocumentLinks
|
|
857
863
|
|
|
858
|
-
vfunc_find_link_dest(link_name: string
|
|
859
|
-
vfunc_find_link_page(link_name: string
|
|
864
|
+
vfunc_find_link_dest(link_name: string): LinkDest
|
|
865
|
+
vfunc_find_link_page(link_name: string): number
|
|
860
866
|
vfunc_get_links(page: Page): MappingList
|
|
861
867
|
vfunc_get_links_model(): Gtk.TreeModel
|
|
862
868
|
vfunc_has_document_links(): boolean
|
|
@@ -976,12 +982,12 @@ interface DocumentSecurity {
|
|
|
976
982
|
// Owm methods of EvinceDocument-3.0.EvinceDocument.DocumentSecurity
|
|
977
983
|
|
|
978
984
|
has_document_security(): boolean
|
|
979
|
-
set_password(password: string
|
|
985
|
+
set_password(password: string): void
|
|
980
986
|
|
|
981
987
|
// Own virtual methods of EvinceDocument-3.0.EvinceDocument.DocumentSecurity
|
|
982
988
|
|
|
983
989
|
vfunc_has_document_security(): boolean
|
|
984
|
-
vfunc_set_password(password: string
|
|
990
|
+
vfunc_set_password(password: string): void
|
|
985
991
|
|
|
986
992
|
// Class property signals of EvinceDocument-3.0.EvinceDocument.DocumentSecurity
|
|
987
993
|
|
|
@@ -1273,19 +1279,19 @@ interface Annotation {
|
|
|
1273
1279
|
* alternate description of the annotation's content for non-text annotations
|
|
1274
1280
|
* @returns a string with the contents of the annotation or %NULL if @annot has no contents.
|
|
1275
1281
|
*/
|
|
1276
|
-
get_contents(): string
|
|
1282
|
+
get_contents(): string
|
|
1277
1283
|
/**
|
|
1278
1284
|
* Get the last modification date of `annot`.
|
|
1279
1285
|
* @returns A string containing the last modification date.
|
|
1280
1286
|
*/
|
|
1281
|
-
get_modified(): string
|
|
1287
|
+
get_modified(): string
|
|
1282
1288
|
/**
|
|
1283
1289
|
* Get the name of `annot`. The name of the annotation is a string
|
|
1284
1290
|
* that uniquely indenftifies `annot` amongs all the annotations
|
|
1285
1291
|
* in the same page.
|
|
1286
1292
|
* @returns the string with the annotation's name.
|
|
1287
1293
|
*/
|
|
1288
|
-
get_name(): string
|
|
1294
|
+
get_name(): string
|
|
1289
1295
|
/**
|
|
1290
1296
|
* Get the page where `annot` appears.
|
|
1291
1297
|
* @returns the #EvPage where @annot appears
|
|
@@ -1322,7 +1328,7 @@ interface Annotation {
|
|
|
1322
1328
|
* @param contents
|
|
1323
1329
|
* @returns %TRUE if the contents have been changed, %FALSE otherwise.
|
|
1324
1330
|
*/
|
|
1325
|
-
set_contents(contents: string
|
|
1331
|
+
set_contents(contents: string): boolean
|
|
1326
1332
|
/**
|
|
1327
1333
|
* Set the last modification date of `annot` to `modified`. To
|
|
1328
1334
|
* set the last modification date using a #time_t, use
|
|
@@ -1332,7 +1338,7 @@ interface Annotation {
|
|
|
1332
1338
|
* @param modified string with the last modification date.
|
|
1333
1339
|
* @returns %TRUE if the last modification date has been updated, %FALSE otherwise.
|
|
1334
1340
|
*/
|
|
1335
|
-
set_modified(modified: string
|
|
1341
|
+
set_modified(modified: string): boolean
|
|
1336
1342
|
/**
|
|
1337
1343
|
* Set the last modification date of `annot` to `utime`. You can
|
|
1338
1344
|
* monitor changes to the last modification date by connecting to the
|
|
@@ -1358,7 +1364,7 @@ interface Annotation {
|
|
|
1358
1364
|
* @param name
|
|
1359
1365
|
* @returns %TRUE when the name has been changed, %FALSE otherwise.
|
|
1360
1366
|
*/
|
|
1361
|
-
set_name(name: string
|
|
1367
|
+
set_name(name: string): boolean
|
|
1362
1368
|
/**
|
|
1363
1369
|
* Set the color of the annotation to `rgba`.
|
|
1364
1370
|
* @param rgba a #GdkRGBA
|
|
@@ -1507,6 +1513,7 @@ module AnnotationText {
|
|
|
1507
1513
|
|
|
1508
1514
|
icon?: AnnotationTextIcon | null
|
|
1509
1515
|
is_open?: boolean | null
|
|
1516
|
+
isOpen?: boolean | null
|
|
1510
1517
|
}
|
|
1511
1518
|
|
|
1512
1519
|
}
|
|
@@ -1517,6 +1524,7 @@ interface AnnotationText extends AnnotationMarkup {
|
|
|
1517
1524
|
|
|
1518
1525
|
icon: AnnotationTextIcon
|
|
1519
1526
|
is_open: boolean
|
|
1527
|
+
isOpen: boolean
|
|
1520
1528
|
|
|
1521
1529
|
// Owm methods of EvinceDocument-3.0.EvinceDocument.AnnotationText
|
|
1522
1530
|
|
|
@@ -1720,10 +1728,10 @@ interface Attachment {
|
|
|
1720
1728
|
// Owm methods of EvinceDocument-3.0.EvinceDocument.Attachment
|
|
1721
1729
|
|
|
1722
1730
|
get_creation_date(): GLib.Time
|
|
1723
|
-
get_description(): string
|
|
1724
|
-
get_mime_type(): string
|
|
1731
|
+
get_description(): string
|
|
1732
|
+
get_mime_type(): string
|
|
1725
1733
|
get_modification_date(): GLib.Time
|
|
1726
|
-
get_name(): string
|
|
1734
|
+
get_name(): string
|
|
1727
1735
|
open(screen: Gdk.Screen, timestamp: number): boolean
|
|
1728
1736
|
save(file: Gio.File): boolean
|
|
1729
1737
|
|
|
@@ -1763,8 +1771,8 @@ class Attachment extends GObject.Object {
|
|
|
1763
1771
|
// Constructors of EvinceDocument-3.0.EvinceDocument.Attachment
|
|
1764
1772
|
|
|
1765
1773
|
constructor(config?: Attachment.ConstructorProperties)
|
|
1766
|
-
constructor(name: string
|
|
1767
|
-
static new(name: string
|
|
1774
|
+
constructor(name: string, description: string, mtime: GLib.Time, ctime: GLib.Time, size: number, data: any | null)
|
|
1775
|
+
static new(name: string, description: string, mtime: GLib.Time, ctime: GLib.Time, size: number, data: any | null): Attachment
|
|
1768
1776
|
_init(config?: Attachment.ConstructorProperties): void
|
|
1769
1777
|
static error_quark(): GLib.Quark
|
|
1770
1778
|
}
|
|
@@ -1796,7 +1804,7 @@ interface Document {
|
|
|
1796
1804
|
// Owm methods of EvinceDocument-3.0.EvinceDocument.Document
|
|
1797
1805
|
|
|
1798
1806
|
check_dimensions(): boolean
|
|
1799
|
-
find_page_by_label(page_label: string
|
|
1807
|
+
find_page_by_label(page_label: string, page_index: number): boolean
|
|
1800
1808
|
get_backend_info(info: DocumentBackendInfo): boolean
|
|
1801
1809
|
/**
|
|
1802
1810
|
* Returns the #EvDocumentInfo for the document.
|
|
@@ -1814,8 +1822,8 @@ interface Document {
|
|
|
1814
1822
|
get_size(): number
|
|
1815
1823
|
get_thumbnail(rc: RenderContext): GdkPixbuf.Pixbuf
|
|
1816
1824
|
get_thumbnail_surface(rc: RenderContext): cairo.Surface
|
|
1817
|
-
get_title(): string
|
|
1818
|
-
get_uri(): string
|
|
1825
|
+
get_title(): string
|
|
1826
|
+
get_uri(): string
|
|
1819
1827
|
has_synctex(): boolean
|
|
1820
1828
|
has_text_page_labels(): boolean
|
|
1821
1829
|
is_page_size_uniform(): boolean
|
|
@@ -1832,7 +1840,7 @@ interface Document {
|
|
|
1832
1840
|
* @param uri the document's URI
|
|
1833
1841
|
* @returns %TRUE on success, or %FALSE on failure.
|
|
1834
1842
|
*/
|
|
1835
|
-
load(uri: string
|
|
1843
|
+
load(uri: string): boolean
|
|
1836
1844
|
/**
|
|
1837
1845
|
* Synchronously loads the document from `fd,` which must refer to
|
|
1838
1846
|
* a regular file.
|
|
@@ -1861,7 +1869,7 @@ interface Document {
|
|
|
1861
1869
|
* @param flags flags from #EvDocumentLoadFlags
|
|
1862
1870
|
* @returns %TRUE on success, or %FALSE on failure.
|
|
1863
1871
|
*/
|
|
1864
|
-
load_full(uri: string
|
|
1872
|
+
load_full(uri: string, flags: DocumentLoadFlags): boolean
|
|
1865
1873
|
/**
|
|
1866
1874
|
* Synchronously loads the document from `file`.
|
|
1867
1875
|
* See ev_document_load() for more information.
|
|
@@ -1886,7 +1894,7 @@ interface Document {
|
|
|
1886
1894
|
* @param uri the target URI
|
|
1887
1895
|
* @returns %TRUE on success, or %FALSE on error with @error filled in
|
|
1888
1896
|
*/
|
|
1889
|
-
save(uri: string
|
|
1897
|
+
save(uri: string): boolean
|
|
1890
1898
|
/**
|
|
1891
1899
|
* Set the `document` modification state as `modified`.
|
|
1892
1900
|
* @param modified a boolean value to set the document as modified or not.
|
|
@@ -1932,7 +1940,7 @@ interface Document {
|
|
|
1932
1940
|
* @param uri the document's URI
|
|
1933
1941
|
* @returns %TRUE on success, or %FALSE on failure.
|
|
1934
1942
|
*/
|
|
1935
|
-
vfunc_load(uri: string
|
|
1943
|
+
vfunc_load(uri: string): boolean
|
|
1936
1944
|
/**
|
|
1937
1945
|
* Synchronously loads the document from `fd,` which must refer to
|
|
1938
1946
|
* a regular file.
|
|
@@ -1976,7 +1984,7 @@ interface Document {
|
|
|
1976
1984
|
* @param uri the target URI
|
|
1977
1985
|
* @returns %TRUE on success, or %FALSE on error with @error filled in
|
|
1978
1986
|
*/
|
|
1979
|
-
vfunc_save(uri: string
|
|
1987
|
+
vfunc_save(uri: string): boolean
|
|
1980
1988
|
vfunc_support_synctex(): boolean
|
|
1981
1989
|
|
|
1982
1990
|
// Class property signals of EvinceDocument-3.0.EvinceDocument.Document
|
|
@@ -2026,7 +2034,7 @@ class Document extends GObject.Object {
|
|
|
2026
2034
|
* @param uri an URI
|
|
2027
2035
|
* @returns a new #EvDocument, or %NULL
|
|
2028
2036
|
*/
|
|
2029
|
-
static factory_get_document(uri: string
|
|
2037
|
+
static factory_get_document(uri: string): Document
|
|
2030
2038
|
/**
|
|
2031
2039
|
* Synchronously creates a #EvDocument for the document from `fd` using the backend
|
|
2032
2040
|
* for loading documents of type `mime_type;` or, if the backend does not support
|
|
@@ -2047,7 +2055,7 @@ class Document extends GObject.Object {
|
|
|
2047
2055
|
* @param cancellable a #GCancellable, or %NULL
|
|
2048
2056
|
* @returns a new #EvDocument, or %NULL
|
|
2049
2057
|
*/
|
|
2050
|
-
static factory_get_document_for_fd(fd: number, mime_type: string
|
|
2058
|
+
static factory_get_document_for_fd(fd: number, mime_type: string, flags: DocumentLoadFlags, cancellable: Gio.Cancellable | null): Document
|
|
2051
2059
|
/**
|
|
2052
2060
|
* Synchronously creates a #EvDocument for the document at `file;` or, if no
|
|
2053
2061
|
* backend handling the document's type is found, or an error occurred on
|
|
@@ -2087,7 +2095,7 @@ class Document extends GObject.Object {
|
|
|
2087
2095
|
* @param flags flags from #EvDocumentLoadFlags
|
|
2088
2096
|
* @returns a new #EvDocument, or %NULL
|
|
2089
2097
|
*/
|
|
2090
|
-
static factory_get_document_full(uri: string
|
|
2098
|
+
static factory_get_document_full(uri: string, flags: DocumentLoadFlags): Document
|
|
2091
2099
|
static fc_mutex_lock(): void
|
|
2092
2100
|
static fc_mutex_trylock(): boolean
|
|
2093
2101
|
static fc_mutex_unlock(): void
|
|
@@ -2360,8 +2368,8 @@ interface Image {
|
|
|
2360
2368
|
get_id(): number
|
|
2361
2369
|
get_page(): number
|
|
2362
2370
|
get_pixbuf(): GdkPixbuf.Pixbuf
|
|
2363
|
-
get_tmp_uri(): string
|
|
2364
|
-
save_tmp(pixbuf: GdkPixbuf.Pixbuf): string
|
|
2371
|
+
get_tmp_uri(): string
|
|
2372
|
+
save_tmp(pixbuf: GdkPixbuf.Pixbuf): string
|
|
2365
2373
|
|
|
2366
2374
|
// Class property signals of EvinceDocument-3.0.EvinceDocument.Image
|
|
2367
2375
|
|
|
@@ -2455,7 +2463,7 @@ interface Link {
|
|
|
2455
2463
|
// Owm methods of EvinceDocument-3.0.EvinceDocument.Link
|
|
2456
2464
|
|
|
2457
2465
|
get_action(): LinkAction
|
|
2458
|
-
get_title(): string
|
|
2466
|
+
get_title(): string
|
|
2459
2467
|
|
|
2460
2468
|
// Class property signals of EvinceDocument-3.0.EvinceDocument.Link
|
|
2461
2469
|
|
|
@@ -2481,8 +2489,8 @@ class Link extends GObject.Object {
|
|
|
2481
2489
|
// Constructors of EvinceDocument-3.0.EvinceDocument.Link
|
|
2482
2490
|
|
|
2483
2491
|
constructor(config?: Link.ConstructorProperties)
|
|
2484
|
-
constructor(title: string
|
|
2485
|
-
static new(title: string
|
|
2492
|
+
constructor(title: string, action: LinkAction)
|
|
2493
|
+
static new(title: string, action: LinkAction): Link
|
|
2486
2494
|
_init(config?: Link.ConstructorProperties): void
|
|
2487
2495
|
}
|
|
2488
2496
|
|
|
@@ -2505,6 +2513,11 @@ module LinkAction {
|
|
|
2505
2513
|
toggle_list?: any | null
|
|
2506
2514
|
type?: LinkActionType | null
|
|
2507
2515
|
uri?: string | null
|
|
2516
|
+
excludeResetFields?: boolean | null
|
|
2517
|
+
hideList?: any | null
|
|
2518
|
+
resetFields?: any | null
|
|
2519
|
+
showList?: any | null
|
|
2520
|
+
toggleList?: any | null
|
|
2508
2521
|
}
|
|
2509
2522
|
|
|
2510
2523
|
}
|
|
@@ -2515,13 +2528,18 @@ interface LinkAction {
|
|
|
2515
2528
|
|
|
2516
2529
|
readonly dest: LinkDest
|
|
2517
2530
|
readonly exclude_reset_fields: boolean
|
|
2531
|
+
readonly excludeResetFields: boolean
|
|
2518
2532
|
readonly filename: string | null
|
|
2519
2533
|
readonly hide_list: any
|
|
2534
|
+
readonly hideList: any
|
|
2520
2535
|
readonly name: string | null
|
|
2521
2536
|
readonly params: string | null
|
|
2522
2537
|
readonly reset_fields: any
|
|
2538
|
+
readonly resetFields: any
|
|
2523
2539
|
readonly show_list: any
|
|
2540
|
+
readonly showList: any
|
|
2524
2541
|
readonly toggle_list: any
|
|
2542
|
+
readonly toggleList: any
|
|
2525
2543
|
readonly type: LinkActionType
|
|
2526
2544
|
readonly uri: string | null
|
|
2527
2545
|
|
|
@@ -2536,14 +2554,14 @@ interface LinkAction {
|
|
|
2536
2554
|
get_action_type(): LinkActionType
|
|
2537
2555
|
get_dest(): LinkDest
|
|
2538
2556
|
get_exclude_reset_fields(): boolean
|
|
2539
|
-
get_filename(): string
|
|
2557
|
+
get_filename(): string
|
|
2540
2558
|
get_hide_list(): Layer[]
|
|
2541
|
-
get_name(): string
|
|
2542
|
-
get_params(): string
|
|
2559
|
+
get_name(): string
|
|
2560
|
+
get_params(): string
|
|
2543
2561
|
get_reset_fields(): string[]
|
|
2544
2562
|
get_show_list(): Layer[]
|
|
2545
2563
|
get_toggle_list(): Layer[]
|
|
2546
|
-
get_uri(): string
|
|
2564
|
+
get_uri(): string
|
|
2547
2565
|
|
|
2548
2566
|
// Class property signals of EvinceDocument-3.0.EvinceDocument.LinkAction
|
|
2549
2567
|
|
|
@@ -2597,11 +2615,11 @@ class LinkAction extends GObject.Object {
|
|
|
2597
2615
|
|
|
2598
2616
|
constructor(config?: LinkAction.ConstructorProperties)
|
|
2599
2617
|
static new_dest(dest: LinkDest): LinkAction
|
|
2600
|
-
static new_external_uri(uri: string
|
|
2601
|
-
static new_launch(filename: string
|
|
2618
|
+
static new_external_uri(uri: string): LinkAction
|
|
2619
|
+
static new_launch(filename: string, params: string): LinkAction
|
|
2602
2620
|
static new_layers_state(show_list: Layer[], hide_list: Layer[], toggle_list: Layer[]): LinkAction
|
|
2603
|
-
static new_named(name: string
|
|
2604
|
-
static new_remote(dest: LinkDest, filename: string
|
|
2621
|
+
static new_named(name: string): LinkAction
|
|
2622
|
+
static new_remote(dest: LinkDest, filename: string): LinkAction
|
|
2605
2623
|
static new_reset_form(fields: string[], exclude_fields: boolean): LinkAction
|
|
2606
2624
|
_init(config?: LinkAction.ConstructorProperties): void
|
|
2607
2625
|
}
|
|
@@ -2624,6 +2642,7 @@ module LinkDest {
|
|
|
2624
2642
|
top?: number | null
|
|
2625
2643
|
type?: LinkDestType | null
|
|
2626
2644
|
zoom?: number | null
|
|
2645
|
+
pageLabel?: string | null
|
|
2627
2646
|
}
|
|
2628
2647
|
|
|
2629
2648
|
}
|
|
@@ -2638,6 +2657,7 @@ interface LinkDest {
|
|
|
2638
2657
|
readonly named: string | null
|
|
2639
2658
|
readonly page: number
|
|
2640
2659
|
readonly page_label: string | null
|
|
2660
|
+
readonly pageLabel: string | null
|
|
2641
2661
|
readonly right: number
|
|
2642
2662
|
readonly top: number
|
|
2643
2663
|
readonly type: LinkDestType
|
|
@@ -2654,9 +2674,9 @@ interface LinkDest {
|
|
|
2654
2674
|
get_bottom(): number
|
|
2655
2675
|
get_dest_type(): LinkDestType
|
|
2656
2676
|
get_left(change_left: boolean): number
|
|
2657
|
-
get_named_dest(): string
|
|
2677
|
+
get_named_dest(): string
|
|
2658
2678
|
get_page(): number
|
|
2659
|
-
get_page_label(): string
|
|
2679
|
+
get_page_label(): string
|
|
2660
2680
|
get_right(): number
|
|
2661
2681
|
get_top(change_top: boolean): number
|
|
2662
2682
|
get_zoom(change_zoom: boolean): number
|
|
@@ -2713,9 +2733,9 @@ class LinkDest extends GObject.Object {
|
|
|
2713
2733
|
static new_fith(page: number, top: number, change_top: boolean): LinkDest
|
|
2714
2734
|
static new_fitr(page: number, left: number, bottom: number, right: number, top: number): LinkDest
|
|
2715
2735
|
static new_fitv(page: number, left: number, change_left: boolean): LinkDest
|
|
2716
|
-
static new_named(named_dest: string
|
|
2736
|
+
static new_named(named_dest: string): LinkDest
|
|
2717
2737
|
static new_page(page: number): LinkDest
|
|
2718
|
-
static new_page_label(page_label: string
|
|
2738
|
+
static new_page_label(page_label: string): LinkDest
|
|
2719
2739
|
static new_xyz(page: number, left: number, top: number, zoom: number, change_left: boolean, change_top: boolean, change_zoom: boolean): LinkDest
|
|
2720
2740
|
_init(config?: LinkDest.ConstructorProperties): void
|
|
2721
2741
|
}
|
|
@@ -2740,7 +2760,7 @@ interface Media {
|
|
|
2740
2760
|
|
|
2741
2761
|
get_page_index(): number
|
|
2742
2762
|
get_show_controls(): boolean
|
|
2743
|
-
get_uri(): string
|
|
2763
|
+
get_uri(): string
|
|
2744
2764
|
set_show_controls(show_controls: boolean): void
|
|
2745
2765
|
|
|
2746
2766
|
// Class property signals of EvinceDocument-3.0.EvinceDocument.Media
|
|
@@ -2761,7 +2781,7 @@ class Media extends GObject.Object {
|
|
|
2761
2781
|
// Constructors of EvinceDocument-3.0.EvinceDocument.Media
|
|
2762
2782
|
|
|
2763
2783
|
constructor(config?: Media.ConstructorProperties)
|
|
2764
|
-
static new_for_uri(page: Page, uri: string
|
|
2784
|
+
static new_for_uri(page: Page, uri: string): Media
|
|
2765
2785
|
_init(config?: Media.ConstructorProperties): void
|
|
2766
2786
|
}
|
|
2767
2787
|
|
|
@@ -2875,6 +2895,7 @@ module TransitionEffect {
|
|
|
2875
2895
|
rectangular?: boolean | null
|
|
2876
2896
|
scale?: number | null
|
|
2877
2897
|
type?: TransitionEffectType | null
|
|
2898
|
+
durationReal?: number | null
|
|
2878
2899
|
}
|
|
2879
2900
|
|
|
2880
2901
|
}
|
|
@@ -2888,6 +2909,7 @@ interface TransitionEffect {
|
|
|
2888
2909
|
direction: TransitionEffectDirection
|
|
2889
2910
|
duration: number
|
|
2890
2911
|
duration_real: number
|
|
2912
|
+
durationReal: number
|
|
2891
2913
|
rectangular: boolean
|
|
2892
2914
|
scale: number
|
|
2893
2915
|
type: TransitionEffectType
|
|
@@ -3061,8 +3083,8 @@ interface DocumentBackendInfo {
|
|
|
3061
3083
|
|
|
3062
3084
|
// Own fields of EvinceDocument-3.0.EvinceDocument.DocumentBackendInfo
|
|
3063
3085
|
|
|
3064
|
-
name: string
|
|
3065
|
-
version: string
|
|
3086
|
+
name: string
|
|
3087
|
+
version: string
|
|
3066
3088
|
}
|
|
3067
3089
|
|
|
3068
3090
|
class DocumentBackendInfo {
|
|
@@ -3077,8 +3099,8 @@ interface DocumentClass {
|
|
|
3077
3099
|
// Own fields of EvinceDocument-3.0.EvinceDocument.DocumentClass
|
|
3078
3100
|
|
|
3079
3101
|
base_class: GObject.ObjectClass
|
|
3080
|
-
load: (document: Document, uri: string
|
|
3081
|
-
save: (document: Document, uri: string
|
|
3102
|
+
load: (document: Document, uri: string) => boolean
|
|
3103
|
+
save: (document: Document, uri: string) => boolean
|
|
3082
3104
|
get_n_pages: (document: Document) => number
|
|
3083
3105
|
get_page: (document: Document, index: number) => Page
|
|
3084
3106
|
get_page_size: (document: Document, page_index: Page) => [ /* width */ number, /* height */ number ]
|
|
@@ -3106,10 +3128,10 @@ interface DocumentFindInterface {
|
|
|
3106
3128
|
// Own fields of EvinceDocument-3.0.EvinceDocument.DocumentFindInterface
|
|
3107
3129
|
|
|
3108
3130
|
base_iface: GObject.TypeInterface
|
|
3109
|
-
find_text: (document_find: DocumentFind, page: Page, text: string
|
|
3110
|
-
find_text_with_options: (document_find: DocumentFind, page: Page, text: string
|
|
3131
|
+
find_text: (document_find: DocumentFind, page: Page, text: string, case_sensitive: boolean) => Rectangle[]
|
|
3132
|
+
find_text_with_options: (document_find: DocumentFind, page: Page, text: string, options: FindOptions) => Rectangle[]
|
|
3111
3133
|
get_supported_options: (document_find: DocumentFind) => FindOptions
|
|
3112
|
-
find_text_extended: (document_find: DocumentFind, page: Page, text: string
|
|
3134
|
+
find_text_extended: (document_find: DocumentFind, page: Page, text: string, options: FindOptions) => FindRectangle[]
|
|
3113
3135
|
}
|
|
3114
3136
|
|
|
3115
3137
|
abstract class DocumentFindInterface {
|
|
@@ -3127,7 +3149,7 @@ interface DocumentFontsInterface {
|
|
|
3127
3149
|
scan: (document_fonts: DocumentFonts, n_pages: number) => boolean
|
|
3128
3150
|
get_progress: (document_fonts: DocumentFonts) => number
|
|
3129
3151
|
fill_model: (document_fonts: DocumentFonts, model: Gtk.TreeModel) => void
|
|
3130
|
-
get_fonts_summary: (document_fonts: DocumentFonts) => string
|
|
3152
|
+
get_fonts_summary: (document_fonts: DocumentFonts) => string
|
|
3131
3153
|
}
|
|
3132
3154
|
|
|
3133
3155
|
abstract class DocumentFontsInterface {
|
|
@@ -3145,7 +3167,7 @@ interface DocumentFormsInterface {
|
|
|
3145
3167
|
get_form_fields: (document_forms: DocumentForms, page: Page) => MappingList
|
|
3146
3168
|
document_is_modified: (document_forms: DocumentForms) => boolean
|
|
3147
3169
|
form_field_text_get_text: (document_forms: DocumentForms, field: FormField) => string | null
|
|
3148
|
-
form_field_text_set_text: (document_forms: DocumentForms, field: FormField, text: string
|
|
3170
|
+
form_field_text_set_text: (document_forms: DocumentForms, field: FormField, text: string) => void
|
|
3149
3171
|
form_field_button_get_state: (document_forms: DocumentForms, field: FormField) => boolean
|
|
3150
3172
|
form_field_button_set_state: (document_forms: DocumentForms, field: FormField, state: boolean) => void
|
|
3151
3173
|
form_field_choice_get_item: (document_forms: DocumentForms, field: FormField, index: number) => string | null
|
|
@@ -3154,7 +3176,7 @@ interface DocumentFormsInterface {
|
|
|
3154
3176
|
form_field_choice_select_item: (document_forms: DocumentForms, field: FormField, index: number) => void
|
|
3155
3177
|
form_field_choice_toggle_item: (document_forms: DocumentForms, field: FormField, index: number) => void
|
|
3156
3178
|
form_field_choice_unselect_all: (document_forms: DocumentForms, field: FormField) => void
|
|
3157
|
-
form_field_choice_set_text: (document_forms: DocumentForms, field: FormField, text: string
|
|
3179
|
+
form_field_choice_set_text: (document_forms: DocumentForms, field: FormField, text: string) => void
|
|
3158
3180
|
form_field_choice_get_text: (document_forms: DocumentForms, field: FormField) => string | null
|
|
3159
3181
|
reset_form: (document_forms: DocumentForms, action: LinkAction) => void
|
|
3160
3182
|
}
|
|
@@ -3217,7 +3239,7 @@ interface DocumentInfo {
|
|
|
3217
3239
|
free(): void
|
|
3218
3240
|
get_created_datetime(): GLib.DateTime | null
|
|
3219
3241
|
get_modified_datetime(): GLib.DateTime | null
|
|
3220
|
-
set_from_xmp(xmp: string
|
|
3242
|
+
set_from_xmp(xmp: string, size: number): boolean
|
|
3221
3243
|
take_created_datetime(datetime: GLib.DateTime): void
|
|
3222
3244
|
take_modified_datetime(datetime: GLib.DateTime): void
|
|
3223
3245
|
}
|
|
@@ -3293,8 +3315,8 @@ interface DocumentLinksInterface {
|
|
|
3293
3315
|
has_document_links: (document_links: DocumentLinks) => boolean
|
|
3294
3316
|
get_links_model: (document_links: DocumentLinks) => Gtk.TreeModel
|
|
3295
3317
|
get_links: (document_links: DocumentLinks, page: Page) => MappingList
|
|
3296
|
-
find_link_dest: (document_links: DocumentLinks, link_name: string
|
|
3297
|
-
find_link_page: (document_links: DocumentLinks, link_name: string
|
|
3318
|
+
find_link_dest: (document_links: DocumentLinks, link_name: string) => LinkDest
|
|
3319
|
+
find_link_page: (document_links: DocumentLinks, link_name: string) => number
|
|
3298
3320
|
}
|
|
3299
3321
|
|
|
3300
3322
|
abstract class DocumentLinksInterface {
|
|
@@ -3350,7 +3372,7 @@ interface DocumentSecurityInterface {
|
|
|
3350
3372
|
|
|
3351
3373
|
base_iface: GObject.TypeInterface
|
|
3352
3374
|
has_document_security: (document_security: DocumentSecurity) => boolean
|
|
3353
|
-
set_password: (document_security: DocumentSecurity, password: string
|
|
3375
|
+
set_password: (document_security: DocumentSecurity, password: string) => void
|
|
3354
3376
|
}
|
|
3355
3377
|
|
|
3356
3378
|
abstract class DocumentSecurityInterface {
|
|
@@ -3399,7 +3421,7 @@ interface FileExporterContext {
|
|
|
3399
3421
|
// Own fields of EvinceDocument-3.0.EvinceDocument.FileExporterContext
|
|
3400
3422
|
|
|
3401
3423
|
format: FileExporterFormat
|
|
3402
|
-
filename: string
|
|
3424
|
+
filename: string
|
|
3403
3425
|
first_page: number
|
|
3404
3426
|
last_page: number
|
|
3405
3427
|
paper_width: number
|
|
@@ -3819,8 +3841,8 @@ class SourceLink {
|
|
|
3819
3841
|
|
|
3820
3842
|
// Constructors of EvinceDocument-3.0.EvinceDocument.SourceLink
|
|
3821
3843
|
|
|
3822
|
-
constructor(filename: string
|
|
3823
|
-
static new(filename: string
|
|
3844
|
+
constructor(filename: string, line: number, col: number)
|
|
3845
|
+
static new(filename: string, line: number, col: number): SourceLink
|
|
3824
3846
|
}
|
|
3825
3847
|
|
|
3826
3848
|
interface TransitionEffectClass {
|
|
@@ -3841,8 +3863,8 @@ interface TypeInfo {
|
|
|
3841
3863
|
|
|
3842
3864
|
// Own fields of EvinceDocument-3.0.EvinceDocument.TypeInfo
|
|
3843
3865
|
|
|
3844
|
-
desc: string
|
|
3845
|
-
mime_types: string
|
|
3866
|
+
desc: string
|
|
3867
|
+
mime_types: string
|
|
3846
3868
|
}
|
|
3847
3869
|
|
|
3848
3870
|
class TypeInfo {
|