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