@girs/evincedocument-3.0 45.0.0-3.2.6 → 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 +94 -94
- package/evincedocument-3.0.d.ts +94 -94
- package/package.json +15 -15
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for EvinceDocument-3.0, generated from library version 45.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.
|
|
8
|
+
GJS TypeScript type definitions for EvinceDocument-3.0, generated from library version 45.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.7.
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
## Install
|
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
|
|
@@ -363,12 +363,12 @@ export interface AnnotationMarkup extends Annotation {
|
|
|
363
363
|
|
|
364
364
|
// Owm methods of EvinceDocument-3.0.EvinceDocument.AnnotationMarkup
|
|
365
365
|
|
|
366
|
-
get_label(): string
|
|
366
|
+
get_label(): string
|
|
367
367
|
get_opacity(): number
|
|
368
368
|
get_popup_is_open(): boolean
|
|
369
369
|
get_rectangle(ev_rect: Rectangle): void
|
|
370
370
|
set_has_popup(has_popup: boolean): boolean
|
|
371
|
-
set_label(label: string
|
|
371
|
+
set_label(label: string): boolean
|
|
372
372
|
set_opacity(opacity: number): boolean
|
|
373
373
|
set_popup_is_open(is_open: boolean): boolean
|
|
374
374
|
set_rectangle(ev_rect: Rectangle): boolean
|
|
@@ -597,16 +597,16 @@ export interface DocumentFind {
|
|
|
597
597
|
|
|
598
598
|
// Owm methods of EvinceDocument-3.0.EvinceDocument.DocumentFind
|
|
599
599
|
|
|
600
|
-
find_text(page: Page, text: string
|
|
601
|
-
find_text_extended(page: Page, text: string
|
|
602
|
-
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[]
|
|
603
603
|
get_supported_options(): FindOptions
|
|
604
604
|
|
|
605
605
|
// Own virtual methods of EvinceDocument-3.0.EvinceDocument.DocumentFind
|
|
606
606
|
|
|
607
|
-
vfunc_find_text(page: Page, text: string
|
|
608
|
-
vfunc_find_text_extended(page: Page, text: string
|
|
609
|
-
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[]
|
|
610
610
|
vfunc_get_supported_options(): FindOptions
|
|
611
611
|
|
|
612
612
|
// Class property signals of EvinceDocument-3.0.EvinceDocument.DocumentFind
|
|
@@ -644,14 +644,14 @@ export interface DocumentFonts {
|
|
|
644
644
|
// Owm methods of EvinceDocument-3.0.EvinceDocument.DocumentFonts
|
|
645
645
|
|
|
646
646
|
fill_model(model: Gtk.TreeModel): void
|
|
647
|
-
get_fonts_summary(): string
|
|
647
|
+
get_fonts_summary(): string
|
|
648
648
|
get_progress(): number
|
|
649
649
|
scan(n_pages: number): boolean
|
|
650
650
|
|
|
651
651
|
// Own virtual methods of EvinceDocument-3.0.EvinceDocument.DocumentFonts
|
|
652
652
|
|
|
653
653
|
vfunc_fill_model(model: Gtk.TreeModel): void
|
|
654
|
-
vfunc_get_fonts_summary(): string
|
|
654
|
+
vfunc_get_fonts_summary(): string
|
|
655
655
|
vfunc_get_progress(): number
|
|
656
656
|
vfunc_scan(n_pages: number): boolean
|
|
657
657
|
|
|
@@ -697,11 +697,11 @@ export interface DocumentForms {
|
|
|
697
697
|
form_field_choice_get_text(field: FormField): string | null
|
|
698
698
|
form_field_choice_is_item_selected(field: FormField, index: number): boolean
|
|
699
699
|
form_field_choice_select_item(field: FormField, index: number): void
|
|
700
|
-
form_field_choice_set_text(field: FormField, text: string
|
|
700
|
+
form_field_choice_set_text(field: FormField, text: string): void
|
|
701
701
|
form_field_choice_toggle_item(field: FormField, index: number): void
|
|
702
702
|
form_field_choice_unselect_all(field: FormField): void
|
|
703
703
|
form_field_text_get_text(field: FormField): string | null
|
|
704
|
-
form_field_text_set_text(field: FormField, text: string
|
|
704
|
+
form_field_text_set_text(field: FormField, text: string): void
|
|
705
705
|
get_form_fields(page: Page): MappingList
|
|
706
706
|
reset_form(action: LinkAction): void
|
|
707
707
|
|
|
@@ -715,11 +715,11 @@ export interface DocumentForms {
|
|
|
715
715
|
vfunc_form_field_choice_get_text(field: FormField): string | null
|
|
716
716
|
vfunc_form_field_choice_is_item_selected(field: FormField, index: number): boolean
|
|
717
717
|
vfunc_form_field_choice_select_item(field: FormField, index: number): void
|
|
718
|
-
vfunc_form_field_choice_set_text(field: FormField, text: string
|
|
718
|
+
vfunc_form_field_choice_set_text(field: FormField, text: string): void
|
|
719
719
|
vfunc_form_field_choice_toggle_item(field: FormField, index: number): void
|
|
720
720
|
vfunc_form_field_choice_unselect_all(field: FormField): void
|
|
721
721
|
vfunc_form_field_text_get_text(field: FormField): string | null
|
|
722
|
-
vfunc_form_field_text_set_text(field: FormField, text: string
|
|
722
|
+
vfunc_form_field_text_set_text(field: FormField, text: string): void
|
|
723
723
|
vfunc_get_form_fields(page: Page): MappingList
|
|
724
724
|
vfunc_reset_form(action: LinkAction): void
|
|
725
725
|
|
|
@@ -847,8 +847,8 @@ export interface DocumentLinks {
|
|
|
847
847
|
|
|
848
848
|
// Owm methods of EvinceDocument-3.0.EvinceDocument.DocumentLinks
|
|
849
849
|
|
|
850
|
-
find_link_dest(link_name: string
|
|
851
|
-
find_link_page(link_name: string
|
|
850
|
+
find_link_dest(link_name: string): LinkDest
|
|
851
|
+
find_link_page(link_name: string): number
|
|
852
852
|
get_dest_page(dest: LinkDest): number
|
|
853
853
|
get_dest_page_label(dest: LinkDest): string | null
|
|
854
854
|
get_link_page(link: Link): number
|
|
@@ -859,8 +859,8 @@ export interface DocumentLinks {
|
|
|
859
859
|
|
|
860
860
|
// Own virtual methods of EvinceDocument-3.0.EvinceDocument.DocumentLinks
|
|
861
861
|
|
|
862
|
-
vfunc_find_link_dest(link_name: string
|
|
863
|
-
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
|
|
864
864
|
vfunc_get_links(page: Page): MappingList
|
|
865
865
|
vfunc_get_links_model(): Gtk.TreeModel
|
|
866
866
|
vfunc_has_document_links(): boolean
|
|
@@ -980,12 +980,12 @@ export interface DocumentSecurity {
|
|
|
980
980
|
// Owm methods of EvinceDocument-3.0.EvinceDocument.DocumentSecurity
|
|
981
981
|
|
|
982
982
|
has_document_security(): boolean
|
|
983
|
-
set_password(password: string
|
|
983
|
+
set_password(password: string): void
|
|
984
984
|
|
|
985
985
|
// Own virtual methods of EvinceDocument-3.0.EvinceDocument.DocumentSecurity
|
|
986
986
|
|
|
987
987
|
vfunc_has_document_security(): boolean
|
|
988
|
-
vfunc_set_password(password: string
|
|
988
|
+
vfunc_set_password(password: string): void
|
|
989
989
|
|
|
990
990
|
// Class property signals of EvinceDocument-3.0.EvinceDocument.DocumentSecurity
|
|
991
991
|
|
|
@@ -1277,19 +1277,19 @@ export interface Annotation {
|
|
|
1277
1277
|
* alternate description of the annotation's content for non-text annotations
|
|
1278
1278
|
* @returns a string with the contents of the annotation or %NULL if @annot has no contents.
|
|
1279
1279
|
*/
|
|
1280
|
-
get_contents(): string
|
|
1280
|
+
get_contents(): string
|
|
1281
1281
|
/**
|
|
1282
1282
|
* Get the last modification date of `annot`.
|
|
1283
1283
|
* @returns A string containing the last modification date.
|
|
1284
1284
|
*/
|
|
1285
|
-
get_modified(): string
|
|
1285
|
+
get_modified(): string
|
|
1286
1286
|
/**
|
|
1287
1287
|
* Get the name of `annot`. The name of the annotation is a string
|
|
1288
1288
|
* that uniquely indenftifies `annot` amongs all the annotations
|
|
1289
1289
|
* in the same page.
|
|
1290
1290
|
* @returns the string with the annotation's name.
|
|
1291
1291
|
*/
|
|
1292
|
-
get_name(): string
|
|
1292
|
+
get_name(): string
|
|
1293
1293
|
/**
|
|
1294
1294
|
* Get the page where `annot` appears.
|
|
1295
1295
|
* @returns the #EvPage where @annot appears
|
|
@@ -1326,7 +1326,7 @@ export interface Annotation {
|
|
|
1326
1326
|
* @param contents
|
|
1327
1327
|
* @returns %TRUE if the contents have been changed, %FALSE otherwise.
|
|
1328
1328
|
*/
|
|
1329
|
-
set_contents(contents: string
|
|
1329
|
+
set_contents(contents: string): boolean
|
|
1330
1330
|
/**
|
|
1331
1331
|
* Set the last modification date of `annot` to `modified`. To
|
|
1332
1332
|
* set the last modification date using a #time_t, use
|
|
@@ -1336,7 +1336,7 @@ export interface Annotation {
|
|
|
1336
1336
|
* @param modified string with the last modification date.
|
|
1337
1337
|
* @returns %TRUE if the last modification date has been updated, %FALSE otherwise.
|
|
1338
1338
|
*/
|
|
1339
|
-
set_modified(modified: string
|
|
1339
|
+
set_modified(modified: string): boolean
|
|
1340
1340
|
/**
|
|
1341
1341
|
* Set the last modification date of `annot` to `utime`. You can
|
|
1342
1342
|
* monitor changes to the last modification date by connecting to the
|
|
@@ -1362,7 +1362,7 @@ export interface Annotation {
|
|
|
1362
1362
|
* @param name
|
|
1363
1363
|
* @returns %TRUE when the name has been changed, %FALSE otherwise.
|
|
1364
1364
|
*/
|
|
1365
|
-
set_name(name: string
|
|
1365
|
+
set_name(name: string): boolean
|
|
1366
1366
|
/**
|
|
1367
1367
|
* Set the color of the annotation to `rgba`.
|
|
1368
1368
|
* @param rgba a #GdkRGBA
|
|
@@ -1726,10 +1726,10 @@ export interface Attachment {
|
|
|
1726
1726
|
// Owm methods of EvinceDocument-3.0.EvinceDocument.Attachment
|
|
1727
1727
|
|
|
1728
1728
|
get_creation_date(): GLib.Time
|
|
1729
|
-
get_description(): string
|
|
1730
|
-
get_mime_type(): string
|
|
1729
|
+
get_description(): string
|
|
1730
|
+
get_mime_type(): string
|
|
1731
1731
|
get_modification_date(): GLib.Time
|
|
1732
|
-
get_name(): string
|
|
1732
|
+
get_name(): string
|
|
1733
1733
|
open(screen: Gdk.Screen, timestamp: number): boolean
|
|
1734
1734
|
save(file: Gio.File): boolean
|
|
1735
1735
|
|
|
@@ -1769,8 +1769,8 @@ export class Attachment extends GObject.Object {
|
|
|
1769
1769
|
// Constructors of EvinceDocument-3.0.EvinceDocument.Attachment
|
|
1770
1770
|
|
|
1771
1771
|
constructor(config?: Attachment.ConstructorProperties)
|
|
1772
|
-
constructor(name: string
|
|
1773
|
-
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
|
|
1774
1774
|
_init(config?: Attachment.ConstructorProperties): void
|
|
1775
1775
|
static error_quark(): GLib.Quark
|
|
1776
1776
|
}
|
|
@@ -1802,7 +1802,7 @@ export interface Document {
|
|
|
1802
1802
|
// Owm methods of EvinceDocument-3.0.EvinceDocument.Document
|
|
1803
1803
|
|
|
1804
1804
|
check_dimensions(): boolean
|
|
1805
|
-
find_page_by_label(page_label: string
|
|
1805
|
+
find_page_by_label(page_label: string, page_index: number): boolean
|
|
1806
1806
|
get_backend_info(info: DocumentBackendInfo): boolean
|
|
1807
1807
|
/**
|
|
1808
1808
|
* Returns the #EvDocumentInfo for the document.
|
|
@@ -1820,8 +1820,8 @@ export interface Document {
|
|
|
1820
1820
|
get_size(): number
|
|
1821
1821
|
get_thumbnail(rc: RenderContext): GdkPixbuf.Pixbuf
|
|
1822
1822
|
get_thumbnail_surface(rc: RenderContext): cairo.Surface
|
|
1823
|
-
get_title(): string
|
|
1824
|
-
get_uri(): string
|
|
1823
|
+
get_title(): string
|
|
1824
|
+
get_uri(): string
|
|
1825
1825
|
has_synctex(): boolean
|
|
1826
1826
|
has_text_page_labels(): boolean
|
|
1827
1827
|
is_page_size_uniform(): boolean
|
|
@@ -1838,7 +1838,7 @@ export interface Document {
|
|
|
1838
1838
|
* @param uri the document's URI
|
|
1839
1839
|
* @returns %TRUE on success, or %FALSE on failure.
|
|
1840
1840
|
*/
|
|
1841
|
-
load(uri: string
|
|
1841
|
+
load(uri: string): boolean
|
|
1842
1842
|
/**
|
|
1843
1843
|
* Synchronously loads the document from `fd,` which must refer to
|
|
1844
1844
|
* a regular file.
|
|
@@ -1867,7 +1867,7 @@ export interface Document {
|
|
|
1867
1867
|
* @param flags flags from #EvDocumentLoadFlags
|
|
1868
1868
|
* @returns %TRUE on success, or %FALSE on failure.
|
|
1869
1869
|
*/
|
|
1870
|
-
load_full(uri: string
|
|
1870
|
+
load_full(uri: string, flags: DocumentLoadFlags): boolean
|
|
1871
1871
|
/**
|
|
1872
1872
|
* Synchronously loads the document from `file`.
|
|
1873
1873
|
* See ev_document_load() for more information.
|
|
@@ -1892,7 +1892,7 @@ export interface Document {
|
|
|
1892
1892
|
* @param uri the target URI
|
|
1893
1893
|
* @returns %TRUE on success, or %FALSE on error with @error filled in
|
|
1894
1894
|
*/
|
|
1895
|
-
save(uri: string
|
|
1895
|
+
save(uri: string): boolean
|
|
1896
1896
|
/**
|
|
1897
1897
|
* Set the `document` modification state as `modified`.
|
|
1898
1898
|
* @param modified a boolean value to set the document as modified or not.
|
|
@@ -1938,7 +1938,7 @@ export interface Document {
|
|
|
1938
1938
|
* @param uri the document's URI
|
|
1939
1939
|
* @returns %TRUE on success, or %FALSE on failure.
|
|
1940
1940
|
*/
|
|
1941
|
-
vfunc_load(uri: string
|
|
1941
|
+
vfunc_load(uri: string): boolean
|
|
1942
1942
|
/**
|
|
1943
1943
|
* Synchronously loads the document from `fd,` which must refer to
|
|
1944
1944
|
* a regular file.
|
|
@@ -1982,7 +1982,7 @@ export interface Document {
|
|
|
1982
1982
|
* @param uri the target URI
|
|
1983
1983
|
* @returns %TRUE on success, or %FALSE on error with @error filled in
|
|
1984
1984
|
*/
|
|
1985
|
-
vfunc_save(uri: string
|
|
1985
|
+
vfunc_save(uri: string): boolean
|
|
1986
1986
|
vfunc_support_synctex(): boolean
|
|
1987
1987
|
|
|
1988
1988
|
// Class property signals of EvinceDocument-3.0.EvinceDocument.Document
|
|
@@ -2032,7 +2032,7 @@ export class Document extends GObject.Object {
|
|
|
2032
2032
|
* @param uri an URI
|
|
2033
2033
|
* @returns a new #EvDocument, or %NULL
|
|
2034
2034
|
*/
|
|
2035
|
-
static factory_get_document(uri: string
|
|
2035
|
+
static factory_get_document(uri: string): Document
|
|
2036
2036
|
/**
|
|
2037
2037
|
* Synchronously creates a #EvDocument for the document from `fd` using the backend
|
|
2038
2038
|
* for loading documents of type `mime_type;` or, if the backend does not support
|
|
@@ -2053,7 +2053,7 @@ export class Document extends GObject.Object {
|
|
|
2053
2053
|
* @param cancellable a #GCancellable, or %NULL
|
|
2054
2054
|
* @returns a new #EvDocument, or %NULL
|
|
2055
2055
|
*/
|
|
2056
|
-
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
|
|
2057
2057
|
/**
|
|
2058
2058
|
* Synchronously creates a #EvDocument for the document at `file;` or, if no
|
|
2059
2059
|
* backend handling the document's type is found, or an error occurred on
|
|
@@ -2093,7 +2093,7 @@ export class Document extends GObject.Object {
|
|
|
2093
2093
|
* @param flags flags from #EvDocumentLoadFlags
|
|
2094
2094
|
* @returns a new #EvDocument, or %NULL
|
|
2095
2095
|
*/
|
|
2096
|
-
static factory_get_document_full(uri: string
|
|
2096
|
+
static factory_get_document_full(uri: string, flags: DocumentLoadFlags): Document
|
|
2097
2097
|
static fc_mutex_lock(): void
|
|
2098
2098
|
static fc_mutex_trylock(): boolean
|
|
2099
2099
|
static fc_mutex_unlock(): void
|
|
@@ -2366,8 +2366,8 @@ export interface Image {
|
|
|
2366
2366
|
get_id(): number
|
|
2367
2367
|
get_page(): number
|
|
2368
2368
|
get_pixbuf(): GdkPixbuf.Pixbuf
|
|
2369
|
-
get_tmp_uri(): string
|
|
2370
|
-
save_tmp(pixbuf: GdkPixbuf.Pixbuf): string
|
|
2369
|
+
get_tmp_uri(): string
|
|
2370
|
+
save_tmp(pixbuf: GdkPixbuf.Pixbuf): string
|
|
2371
2371
|
|
|
2372
2372
|
// Class property signals of EvinceDocument-3.0.EvinceDocument.Image
|
|
2373
2373
|
|
|
@@ -2461,7 +2461,7 @@ export interface Link {
|
|
|
2461
2461
|
// Owm methods of EvinceDocument-3.0.EvinceDocument.Link
|
|
2462
2462
|
|
|
2463
2463
|
get_action(): LinkAction
|
|
2464
|
-
get_title(): string
|
|
2464
|
+
get_title(): string
|
|
2465
2465
|
|
|
2466
2466
|
// Class property signals of EvinceDocument-3.0.EvinceDocument.Link
|
|
2467
2467
|
|
|
@@ -2487,8 +2487,8 @@ export class Link extends GObject.Object {
|
|
|
2487
2487
|
// Constructors of EvinceDocument-3.0.EvinceDocument.Link
|
|
2488
2488
|
|
|
2489
2489
|
constructor(config?: Link.ConstructorProperties)
|
|
2490
|
-
constructor(title: string
|
|
2491
|
-
static new(title: string
|
|
2490
|
+
constructor(title: string, action: LinkAction)
|
|
2491
|
+
static new(title: string, action: LinkAction): Link
|
|
2492
2492
|
_init(config?: Link.ConstructorProperties): void
|
|
2493
2493
|
}
|
|
2494
2494
|
|
|
@@ -2552,14 +2552,14 @@ export interface LinkAction {
|
|
|
2552
2552
|
get_action_type(): LinkActionType
|
|
2553
2553
|
get_dest(): LinkDest
|
|
2554
2554
|
get_exclude_reset_fields(): boolean
|
|
2555
|
-
get_filename(): string
|
|
2555
|
+
get_filename(): string
|
|
2556
2556
|
get_hide_list(): Layer[]
|
|
2557
|
-
get_name(): string
|
|
2558
|
-
get_params(): string
|
|
2557
|
+
get_name(): string
|
|
2558
|
+
get_params(): string
|
|
2559
2559
|
get_reset_fields(): string[]
|
|
2560
2560
|
get_show_list(): Layer[]
|
|
2561
2561
|
get_toggle_list(): Layer[]
|
|
2562
|
-
get_uri(): string
|
|
2562
|
+
get_uri(): string
|
|
2563
2563
|
|
|
2564
2564
|
// Class property signals of EvinceDocument-3.0.EvinceDocument.LinkAction
|
|
2565
2565
|
|
|
@@ -2613,11 +2613,11 @@ export class LinkAction extends GObject.Object {
|
|
|
2613
2613
|
|
|
2614
2614
|
constructor(config?: LinkAction.ConstructorProperties)
|
|
2615
2615
|
static new_dest(dest: LinkDest): LinkAction
|
|
2616
|
-
static new_external_uri(uri: string
|
|
2617
|
-
static new_launch(filename: string
|
|
2616
|
+
static new_external_uri(uri: string): LinkAction
|
|
2617
|
+
static new_launch(filename: string, params: string): LinkAction
|
|
2618
2618
|
static new_layers_state(show_list: Layer[], hide_list: Layer[], toggle_list: Layer[]): LinkAction
|
|
2619
|
-
static new_named(name: string
|
|
2620
|
-
static new_remote(dest: LinkDest, filename: string
|
|
2619
|
+
static new_named(name: string): LinkAction
|
|
2620
|
+
static new_remote(dest: LinkDest, filename: string): LinkAction
|
|
2621
2621
|
static new_reset_form(fields: string[], exclude_fields: boolean): LinkAction
|
|
2622
2622
|
_init(config?: LinkAction.ConstructorProperties): void
|
|
2623
2623
|
}
|
|
@@ -2672,9 +2672,9 @@ export interface LinkDest {
|
|
|
2672
2672
|
get_bottom(): number
|
|
2673
2673
|
get_dest_type(): LinkDestType
|
|
2674
2674
|
get_left(change_left: boolean): number
|
|
2675
|
-
get_named_dest(): string
|
|
2675
|
+
get_named_dest(): string
|
|
2676
2676
|
get_page(): number
|
|
2677
|
-
get_page_label(): string
|
|
2677
|
+
get_page_label(): string
|
|
2678
2678
|
get_right(): number
|
|
2679
2679
|
get_top(change_top: boolean): number
|
|
2680
2680
|
get_zoom(change_zoom: boolean): number
|
|
@@ -2731,9 +2731,9 @@ export class LinkDest extends GObject.Object {
|
|
|
2731
2731
|
static new_fith(page: number, top: number, change_top: boolean): LinkDest
|
|
2732
2732
|
static new_fitr(page: number, left: number, bottom: number, right: number, top: number): LinkDest
|
|
2733
2733
|
static new_fitv(page: number, left: number, change_left: boolean): LinkDest
|
|
2734
|
-
static new_named(named_dest: string
|
|
2734
|
+
static new_named(named_dest: string): LinkDest
|
|
2735
2735
|
static new_page(page: number): LinkDest
|
|
2736
|
-
static new_page_label(page_label: string
|
|
2736
|
+
static new_page_label(page_label: string): LinkDest
|
|
2737
2737
|
static new_xyz(page: number, left: number, top: number, zoom: number, change_left: boolean, change_top: boolean, change_zoom: boolean): LinkDest
|
|
2738
2738
|
_init(config?: LinkDest.ConstructorProperties): void
|
|
2739
2739
|
}
|
|
@@ -2758,7 +2758,7 @@ export interface Media {
|
|
|
2758
2758
|
|
|
2759
2759
|
get_page_index(): number
|
|
2760
2760
|
get_show_controls(): boolean
|
|
2761
|
-
get_uri(): string
|
|
2761
|
+
get_uri(): string
|
|
2762
2762
|
set_show_controls(show_controls: boolean): void
|
|
2763
2763
|
|
|
2764
2764
|
// Class property signals of EvinceDocument-3.0.EvinceDocument.Media
|
|
@@ -2779,7 +2779,7 @@ export class Media extends GObject.Object {
|
|
|
2779
2779
|
// Constructors of EvinceDocument-3.0.EvinceDocument.Media
|
|
2780
2780
|
|
|
2781
2781
|
constructor(config?: Media.ConstructorProperties)
|
|
2782
|
-
static new_for_uri(page: Page, uri: string
|
|
2782
|
+
static new_for_uri(page: Page, uri: string): Media
|
|
2783
2783
|
_init(config?: Media.ConstructorProperties): void
|
|
2784
2784
|
}
|
|
2785
2785
|
|
|
@@ -3081,8 +3081,8 @@ export interface DocumentBackendInfo {
|
|
|
3081
3081
|
|
|
3082
3082
|
// Own fields of EvinceDocument-3.0.EvinceDocument.DocumentBackendInfo
|
|
3083
3083
|
|
|
3084
|
-
name: string
|
|
3085
|
-
version: string
|
|
3084
|
+
name: string
|
|
3085
|
+
version: string
|
|
3086
3086
|
}
|
|
3087
3087
|
|
|
3088
3088
|
export class DocumentBackendInfo {
|
|
@@ -3097,8 +3097,8 @@ export interface DocumentClass {
|
|
|
3097
3097
|
// Own fields of EvinceDocument-3.0.EvinceDocument.DocumentClass
|
|
3098
3098
|
|
|
3099
3099
|
base_class: GObject.ObjectClass
|
|
3100
|
-
load: (document: Document, uri: string
|
|
3101
|
-
save: (document: Document, uri: string
|
|
3100
|
+
load: (document: Document, uri: string) => boolean
|
|
3101
|
+
save: (document: Document, uri: string) => boolean
|
|
3102
3102
|
get_n_pages: (document: Document) => number
|
|
3103
3103
|
get_page: (document: Document, index: number) => Page
|
|
3104
3104
|
get_page_size: (document: Document, page_index: Page) => [ /* width */ number, /* height */ number ]
|
|
@@ -3126,10 +3126,10 @@ export interface DocumentFindInterface {
|
|
|
3126
3126
|
// Own fields of EvinceDocument-3.0.EvinceDocument.DocumentFindInterface
|
|
3127
3127
|
|
|
3128
3128
|
base_iface: GObject.TypeInterface
|
|
3129
|
-
find_text: (document_find: DocumentFind, page: Page, text: string
|
|
3130
|
-
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[]
|
|
3131
3131
|
get_supported_options: (document_find: DocumentFind) => FindOptions
|
|
3132
|
-
find_text_extended: (document_find: DocumentFind, page: Page, text: string
|
|
3132
|
+
find_text_extended: (document_find: DocumentFind, page: Page, text: string, options: FindOptions) => FindRectangle[]
|
|
3133
3133
|
}
|
|
3134
3134
|
|
|
3135
3135
|
export abstract class DocumentFindInterface {
|
|
@@ -3147,7 +3147,7 @@ export interface DocumentFontsInterface {
|
|
|
3147
3147
|
scan: (document_fonts: DocumentFonts, n_pages: number) => boolean
|
|
3148
3148
|
get_progress: (document_fonts: DocumentFonts) => number
|
|
3149
3149
|
fill_model: (document_fonts: DocumentFonts, model: Gtk.TreeModel) => void
|
|
3150
|
-
get_fonts_summary: (document_fonts: DocumentFonts) => string
|
|
3150
|
+
get_fonts_summary: (document_fonts: DocumentFonts) => string
|
|
3151
3151
|
}
|
|
3152
3152
|
|
|
3153
3153
|
export abstract class DocumentFontsInterface {
|
|
@@ -3165,7 +3165,7 @@ export interface DocumentFormsInterface {
|
|
|
3165
3165
|
get_form_fields: (document_forms: DocumentForms, page: Page) => MappingList
|
|
3166
3166
|
document_is_modified: (document_forms: DocumentForms) => boolean
|
|
3167
3167
|
form_field_text_get_text: (document_forms: DocumentForms, field: FormField) => string | null
|
|
3168
|
-
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
|
|
3169
3169
|
form_field_button_get_state: (document_forms: DocumentForms, field: FormField) => boolean
|
|
3170
3170
|
form_field_button_set_state: (document_forms: DocumentForms, field: FormField, state: boolean) => void
|
|
3171
3171
|
form_field_choice_get_item: (document_forms: DocumentForms, field: FormField, index: number) => string | null
|
|
@@ -3174,7 +3174,7 @@ export interface DocumentFormsInterface {
|
|
|
3174
3174
|
form_field_choice_select_item: (document_forms: DocumentForms, field: FormField, index: number) => void
|
|
3175
3175
|
form_field_choice_toggle_item: (document_forms: DocumentForms, field: FormField, index: number) => void
|
|
3176
3176
|
form_field_choice_unselect_all: (document_forms: DocumentForms, field: FormField) => void
|
|
3177
|
-
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
|
|
3178
3178
|
form_field_choice_get_text: (document_forms: DocumentForms, field: FormField) => string | null
|
|
3179
3179
|
reset_form: (document_forms: DocumentForms, action: LinkAction) => void
|
|
3180
3180
|
}
|
|
@@ -3237,7 +3237,7 @@ export interface DocumentInfo {
|
|
|
3237
3237
|
free(): void
|
|
3238
3238
|
get_created_datetime(): GLib.DateTime | null
|
|
3239
3239
|
get_modified_datetime(): GLib.DateTime | null
|
|
3240
|
-
set_from_xmp(xmp: string
|
|
3240
|
+
set_from_xmp(xmp: string, size: number): boolean
|
|
3241
3241
|
take_created_datetime(datetime: GLib.DateTime): void
|
|
3242
3242
|
take_modified_datetime(datetime: GLib.DateTime): void
|
|
3243
3243
|
}
|
|
@@ -3313,8 +3313,8 @@ export interface DocumentLinksInterface {
|
|
|
3313
3313
|
has_document_links: (document_links: DocumentLinks) => boolean
|
|
3314
3314
|
get_links_model: (document_links: DocumentLinks) => Gtk.TreeModel
|
|
3315
3315
|
get_links: (document_links: DocumentLinks, page: Page) => MappingList
|
|
3316
|
-
find_link_dest: (document_links: DocumentLinks, link_name: string
|
|
3317
|
-
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
|
|
3318
3318
|
}
|
|
3319
3319
|
|
|
3320
3320
|
export abstract class DocumentLinksInterface {
|
|
@@ -3370,7 +3370,7 @@ export interface DocumentSecurityInterface {
|
|
|
3370
3370
|
|
|
3371
3371
|
base_iface: GObject.TypeInterface
|
|
3372
3372
|
has_document_security: (document_security: DocumentSecurity) => boolean
|
|
3373
|
-
set_password: (document_security: DocumentSecurity, password: string
|
|
3373
|
+
set_password: (document_security: DocumentSecurity, password: string) => void
|
|
3374
3374
|
}
|
|
3375
3375
|
|
|
3376
3376
|
export abstract class DocumentSecurityInterface {
|
|
@@ -3419,7 +3419,7 @@ export interface FileExporterContext {
|
|
|
3419
3419
|
// Own fields of EvinceDocument-3.0.EvinceDocument.FileExporterContext
|
|
3420
3420
|
|
|
3421
3421
|
format: FileExporterFormat
|
|
3422
|
-
filename: string
|
|
3422
|
+
filename: string
|
|
3423
3423
|
first_page: number
|
|
3424
3424
|
last_page: number
|
|
3425
3425
|
paper_width: number
|
|
@@ -3839,8 +3839,8 @@ export class SourceLink {
|
|
|
3839
3839
|
|
|
3840
3840
|
// Constructors of EvinceDocument-3.0.EvinceDocument.SourceLink
|
|
3841
3841
|
|
|
3842
|
-
constructor(filename: string
|
|
3843
|
-
static new(filename: string
|
|
3842
|
+
constructor(filename: string, line: number, col: number)
|
|
3843
|
+
static new(filename: string, line: number, col: number): SourceLink
|
|
3844
3844
|
}
|
|
3845
3845
|
|
|
3846
3846
|
export interface TransitionEffectClass {
|
|
@@ -3861,8 +3861,8 @@ export interface TypeInfo {
|
|
|
3861
3861
|
|
|
3862
3862
|
// Own fields of EvinceDocument-3.0.EvinceDocument.TypeInfo
|
|
3863
3863
|
|
|
3864
|
-
desc: string
|
|
3865
|
-
mime_types: string
|
|
3864
|
+
desc: string
|
|
3865
|
+
mime_types: string
|
|
3866
3866
|
}
|
|
3867
3867
|
|
|
3868
3868
|
export class TypeInfo {
|
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
|
|
@@ -365,12 +365,12 @@ interface AnnotationMarkup extends Annotation {
|
|
|
365
365
|
|
|
366
366
|
// Owm methods of EvinceDocument-3.0.EvinceDocument.AnnotationMarkup
|
|
367
367
|
|
|
368
|
-
get_label(): string
|
|
368
|
+
get_label(): string
|
|
369
369
|
get_opacity(): number
|
|
370
370
|
get_popup_is_open(): boolean
|
|
371
371
|
get_rectangle(ev_rect: Rectangle): void
|
|
372
372
|
set_has_popup(has_popup: boolean): boolean
|
|
373
|
-
set_label(label: string
|
|
373
|
+
set_label(label: string): boolean
|
|
374
374
|
set_opacity(opacity: number): boolean
|
|
375
375
|
set_popup_is_open(is_open: boolean): boolean
|
|
376
376
|
set_rectangle(ev_rect: Rectangle): boolean
|
|
@@ -599,16 +599,16 @@ interface DocumentFind {
|
|
|
599
599
|
|
|
600
600
|
// Owm methods of EvinceDocument-3.0.EvinceDocument.DocumentFind
|
|
601
601
|
|
|
602
|
-
find_text(page: Page, text: string
|
|
603
|
-
find_text_extended(page: Page, text: string
|
|
604
|
-
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[]
|
|
605
605
|
get_supported_options(): FindOptions
|
|
606
606
|
|
|
607
607
|
// Own virtual methods of EvinceDocument-3.0.EvinceDocument.DocumentFind
|
|
608
608
|
|
|
609
|
-
vfunc_find_text(page: Page, text: string
|
|
610
|
-
vfunc_find_text_extended(page: Page, text: string
|
|
611
|
-
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[]
|
|
612
612
|
vfunc_get_supported_options(): FindOptions
|
|
613
613
|
|
|
614
614
|
// Class property signals of EvinceDocument-3.0.EvinceDocument.DocumentFind
|
|
@@ -646,14 +646,14 @@ interface DocumentFonts {
|
|
|
646
646
|
// Owm methods of EvinceDocument-3.0.EvinceDocument.DocumentFonts
|
|
647
647
|
|
|
648
648
|
fill_model(model: Gtk.TreeModel): void
|
|
649
|
-
get_fonts_summary(): string
|
|
649
|
+
get_fonts_summary(): string
|
|
650
650
|
get_progress(): number
|
|
651
651
|
scan(n_pages: number): boolean
|
|
652
652
|
|
|
653
653
|
// Own virtual methods of EvinceDocument-3.0.EvinceDocument.DocumentFonts
|
|
654
654
|
|
|
655
655
|
vfunc_fill_model(model: Gtk.TreeModel): void
|
|
656
|
-
vfunc_get_fonts_summary(): string
|
|
656
|
+
vfunc_get_fonts_summary(): string
|
|
657
657
|
vfunc_get_progress(): number
|
|
658
658
|
vfunc_scan(n_pages: number): boolean
|
|
659
659
|
|
|
@@ -699,11 +699,11 @@ interface DocumentForms {
|
|
|
699
699
|
form_field_choice_get_text(field: FormField): string | null
|
|
700
700
|
form_field_choice_is_item_selected(field: FormField, index: number): boolean
|
|
701
701
|
form_field_choice_select_item(field: FormField, index: number): void
|
|
702
|
-
form_field_choice_set_text(field: FormField, text: string
|
|
702
|
+
form_field_choice_set_text(field: FormField, text: string): void
|
|
703
703
|
form_field_choice_toggle_item(field: FormField, index: number): void
|
|
704
704
|
form_field_choice_unselect_all(field: FormField): void
|
|
705
705
|
form_field_text_get_text(field: FormField): string | null
|
|
706
|
-
form_field_text_set_text(field: FormField, text: string
|
|
706
|
+
form_field_text_set_text(field: FormField, text: string): void
|
|
707
707
|
get_form_fields(page: Page): MappingList
|
|
708
708
|
reset_form(action: LinkAction): void
|
|
709
709
|
|
|
@@ -717,11 +717,11 @@ interface DocumentForms {
|
|
|
717
717
|
vfunc_form_field_choice_get_text(field: FormField): string | null
|
|
718
718
|
vfunc_form_field_choice_is_item_selected(field: FormField, index: number): boolean
|
|
719
719
|
vfunc_form_field_choice_select_item(field: FormField, index: number): void
|
|
720
|
-
vfunc_form_field_choice_set_text(field: FormField, text: string
|
|
720
|
+
vfunc_form_field_choice_set_text(field: FormField, text: string): void
|
|
721
721
|
vfunc_form_field_choice_toggle_item(field: FormField, index: number): void
|
|
722
722
|
vfunc_form_field_choice_unselect_all(field: FormField): void
|
|
723
723
|
vfunc_form_field_text_get_text(field: FormField): string | null
|
|
724
|
-
vfunc_form_field_text_set_text(field: FormField, text: string
|
|
724
|
+
vfunc_form_field_text_set_text(field: FormField, text: string): void
|
|
725
725
|
vfunc_get_form_fields(page: Page): MappingList
|
|
726
726
|
vfunc_reset_form(action: LinkAction): void
|
|
727
727
|
|
|
@@ -849,8 +849,8 @@ interface DocumentLinks {
|
|
|
849
849
|
|
|
850
850
|
// Owm methods of EvinceDocument-3.0.EvinceDocument.DocumentLinks
|
|
851
851
|
|
|
852
|
-
find_link_dest(link_name: string
|
|
853
|
-
find_link_page(link_name: string
|
|
852
|
+
find_link_dest(link_name: string): LinkDest
|
|
853
|
+
find_link_page(link_name: string): number
|
|
854
854
|
get_dest_page(dest: LinkDest): number
|
|
855
855
|
get_dest_page_label(dest: LinkDest): string | null
|
|
856
856
|
get_link_page(link: Link): number
|
|
@@ -861,8 +861,8 @@ interface DocumentLinks {
|
|
|
861
861
|
|
|
862
862
|
// Own virtual methods of EvinceDocument-3.0.EvinceDocument.DocumentLinks
|
|
863
863
|
|
|
864
|
-
vfunc_find_link_dest(link_name: string
|
|
865
|
-
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
|
|
866
866
|
vfunc_get_links(page: Page): MappingList
|
|
867
867
|
vfunc_get_links_model(): Gtk.TreeModel
|
|
868
868
|
vfunc_has_document_links(): boolean
|
|
@@ -982,12 +982,12 @@ interface DocumentSecurity {
|
|
|
982
982
|
// Owm methods of EvinceDocument-3.0.EvinceDocument.DocumentSecurity
|
|
983
983
|
|
|
984
984
|
has_document_security(): boolean
|
|
985
|
-
set_password(password: string
|
|
985
|
+
set_password(password: string): void
|
|
986
986
|
|
|
987
987
|
// Own virtual methods of EvinceDocument-3.0.EvinceDocument.DocumentSecurity
|
|
988
988
|
|
|
989
989
|
vfunc_has_document_security(): boolean
|
|
990
|
-
vfunc_set_password(password: string
|
|
990
|
+
vfunc_set_password(password: string): void
|
|
991
991
|
|
|
992
992
|
// Class property signals of EvinceDocument-3.0.EvinceDocument.DocumentSecurity
|
|
993
993
|
|
|
@@ -1279,19 +1279,19 @@ interface Annotation {
|
|
|
1279
1279
|
* alternate description of the annotation's content for non-text annotations
|
|
1280
1280
|
* @returns a string with the contents of the annotation or %NULL if @annot has no contents.
|
|
1281
1281
|
*/
|
|
1282
|
-
get_contents(): string
|
|
1282
|
+
get_contents(): string
|
|
1283
1283
|
/**
|
|
1284
1284
|
* Get the last modification date of `annot`.
|
|
1285
1285
|
* @returns A string containing the last modification date.
|
|
1286
1286
|
*/
|
|
1287
|
-
get_modified(): string
|
|
1287
|
+
get_modified(): string
|
|
1288
1288
|
/**
|
|
1289
1289
|
* Get the name of `annot`. The name of the annotation is a string
|
|
1290
1290
|
* that uniquely indenftifies `annot` amongs all the annotations
|
|
1291
1291
|
* in the same page.
|
|
1292
1292
|
* @returns the string with the annotation's name.
|
|
1293
1293
|
*/
|
|
1294
|
-
get_name(): string
|
|
1294
|
+
get_name(): string
|
|
1295
1295
|
/**
|
|
1296
1296
|
* Get the page where `annot` appears.
|
|
1297
1297
|
* @returns the #EvPage where @annot appears
|
|
@@ -1328,7 +1328,7 @@ interface Annotation {
|
|
|
1328
1328
|
* @param contents
|
|
1329
1329
|
* @returns %TRUE if the contents have been changed, %FALSE otherwise.
|
|
1330
1330
|
*/
|
|
1331
|
-
set_contents(contents: string
|
|
1331
|
+
set_contents(contents: string): boolean
|
|
1332
1332
|
/**
|
|
1333
1333
|
* Set the last modification date of `annot` to `modified`. To
|
|
1334
1334
|
* set the last modification date using a #time_t, use
|
|
@@ -1338,7 +1338,7 @@ interface Annotation {
|
|
|
1338
1338
|
* @param modified string with the last modification date.
|
|
1339
1339
|
* @returns %TRUE if the last modification date has been updated, %FALSE otherwise.
|
|
1340
1340
|
*/
|
|
1341
|
-
set_modified(modified: string
|
|
1341
|
+
set_modified(modified: string): boolean
|
|
1342
1342
|
/**
|
|
1343
1343
|
* Set the last modification date of `annot` to `utime`. You can
|
|
1344
1344
|
* monitor changes to the last modification date by connecting to the
|
|
@@ -1364,7 +1364,7 @@ interface Annotation {
|
|
|
1364
1364
|
* @param name
|
|
1365
1365
|
* @returns %TRUE when the name has been changed, %FALSE otherwise.
|
|
1366
1366
|
*/
|
|
1367
|
-
set_name(name: string
|
|
1367
|
+
set_name(name: string): boolean
|
|
1368
1368
|
/**
|
|
1369
1369
|
* Set the color of the annotation to `rgba`.
|
|
1370
1370
|
* @param rgba a #GdkRGBA
|
|
@@ -1728,10 +1728,10 @@ interface Attachment {
|
|
|
1728
1728
|
// Owm methods of EvinceDocument-3.0.EvinceDocument.Attachment
|
|
1729
1729
|
|
|
1730
1730
|
get_creation_date(): GLib.Time
|
|
1731
|
-
get_description(): string
|
|
1732
|
-
get_mime_type(): string
|
|
1731
|
+
get_description(): string
|
|
1732
|
+
get_mime_type(): string
|
|
1733
1733
|
get_modification_date(): GLib.Time
|
|
1734
|
-
get_name(): string
|
|
1734
|
+
get_name(): string
|
|
1735
1735
|
open(screen: Gdk.Screen, timestamp: number): boolean
|
|
1736
1736
|
save(file: Gio.File): boolean
|
|
1737
1737
|
|
|
@@ -1771,8 +1771,8 @@ class Attachment extends GObject.Object {
|
|
|
1771
1771
|
// Constructors of EvinceDocument-3.0.EvinceDocument.Attachment
|
|
1772
1772
|
|
|
1773
1773
|
constructor(config?: Attachment.ConstructorProperties)
|
|
1774
|
-
constructor(name: string
|
|
1775
|
-
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
|
|
1776
1776
|
_init(config?: Attachment.ConstructorProperties): void
|
|
1777
1777
|
static error_quark(): GLib.Quark
|
|
1778
1778
|
}
|
|
@@ -1804,7 +1804,7 @@ interface Document {
|
|
|
1804
1804
|
// Owm methods of EvinceDocument-3.0.EvinceDocument.Document
|
|
1805
1805
|
|
|
1806
1806
|
check_dimensions(): boolean
|
|
1807
|
-
find_page_by_label(page_label: string
|
|
1807
|
+
find_page_by_label(page_label: string, page_index: number): boolean
|
|
1808
1808
|
get_backend_info(info: DocumentBackendInfo): boolean
|
|
1809
1809
|
/**
|
|
1810
1810
|
* Returns the #EvDocumentInfo for the document.
|
|
@@ -1822,8 +1822,8 @@ interface Document {
|
|
|
1822
1822
|
get_size(): number
|
|
1823
1823
|
get_thumbnail(rc: RenderContext): GdkPixbuf.Pixbuf
|
|
1824
1824
|
get_thumbnail_surface(rc: RenderContext): cairo.Surface
|
|
1825
|
-
get_title(): string
|
|
1826
|
-
get_uri(): string
|
|
1825
|
+
get_title(): string
|
|
1826
|
+
get_uri(): string
|
|
1827
1827
|
has_synctex(): boolean
|
|
1828
1828
|
has_text_page_labels(): boolean
|
|
1829
1829
|
is_page_size_uniform(): boolean
|
|
@@ -1840,7 +1840,7 @@ interface Document {
|
|
|
1840
1840
|
* @param uri the document's URI
|
|
1841
1841
|
* @returns %TRUE on success, or %FALSE on failure.
|
|
1842
1842
|
*/
|
|
1843
|
-
load(uri: string
|
|
1843
|
+
load(uri: string): boolean
|
|
1844
1844
|
/**
|
|
1845
1845
|
* Synchronously loads the document from `fd,` which must refer to
|
|
1846
1846
|
* a regular file.
|
|
@@ -1869,7 +1869,7 @@ interface Document {
|
|
|
1869
1869
|
* @param flags flags from #EvDocumentLoadFlags
|
|
1870
1870
|
* @returns %TRUE on success, or %FALSE on failure.
|
|
1871
1871
|
*/
|
|
1872
|
-
load_full(uri: string
|
|
1872
|
+
load_full(uri: string, flags: DocumentLoadFlags): boolean
|
|
1873
1873
|
/**
|
|
1874
1874
|
* Synchronously loads the document from `file`.
|
|
1875
1875
|
* See ev_document_load() for more information.
|
|
@@ -1894,7 +1894,7 @@ interface Document {
|
|
|
1894
1894
|
* @param uri the target URI
|
|
1895
1895
|
* @returns %TRUE on success, or %FALSE on error with @error filled in
|
|
1896
1896
|
*/
|
|
1897
|
-
save(uri: string
|
|
1897
|
+
save(uri: string): boolean
|
|
1898
1898
|
/**
|
|
1899
1899
|
* Set the `document` modification state as `modified`.
|
|
1900
1900
|
* @param modified a boolean value to set the document as modified or not.
|
|
@@ -1940,7 +1940,7 @@ interface Document {
|
|
|
1940
1940
|
* @param uri the document's URI
|
|
1941
1941
|
* @returns %TRUE on success, or %FALSE on failure.
|
|
1942
1942
|
*/
|
|
1943
|
-
vfunc_load(uri: string
|
|
1943
|
+
vfunc_load(uri: string): boolean
|
|
1944
1944
|
/**
|
|
1945
1945
|
* Synchronously loads the document from `fd,` which must refer to
|
|
1946
1946
|
* a regular file.
|
|
@@ -1984,7 +1984,7 @@ interface Document {
|
|
|
1984
1984
|
* @param uri the target URI
|
|
1985
1985
|
* @returns %TRUE on success, or %FALSE on error with @error filled in
|
|
1986
1986
|
*/
|
|
1987
|
-
vfunc_save(uri: string
|
|
1987
|
+
vfunc_save(uri: string): boolean
|
|
1988
1988
|
vfunc_support_synctex(): boolean
|
|
1989
1989
|
|
|
1990
1990
|
// Class property signals of EvinceDocument-3.0.EvinceDocument.Document
|
|
@@ -2034,7 +2034,7 @@ class Document extends GObject.Object {
|
|
|
2034
2034
|
* @param uri an URI
|
|
2035
2035
|
* @returns a new #EvDocument, or %NULL
|
|
2036
2036
|
*/
|
|
2037
|
-
static factory_get_document(uri: string
|
|
2037
|
+
static factory_get_document(uri: string): Document
|
|
2038
2038
|
/**
|
|
2039
2039
|
* Synchronously creates a #EvDocument for the document from `fd` using the backend
|
|
2040
2040
|
* for loading documents of type `mime_type;` or, if the backend does not support
|
|
@@ -2055,7 +2055,7 @@ class Document extends GObject.Object {
|
|
|
2055
2055
|
* @param cancellable a #GCancellable, or %NULL
|
|
2056
2056
|
* @returns a new #EvDocument, or %NULL
|
|
2057
2057
|
*/
|
|
2058
|
-
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
|
|
2059
2059
|
/**
|
|
2060
2060
|
* Synchronously creates a #EvDocument for the document at `file;` or, if no
|
|
2061
2061
|
* backend handling the document's type is found, or an error occurred on
|
|
@@ -2095,7 +2095,7 @@ class Document extends GObject.Object {
|
|
|
2095
2095
|
* @param flags flags from #EvDocumentLoadFlags
|
|
2096
2096
|
* @returns a new #EvDocument, or %NULL
|
|
2097
2097
|
*/
|
|
2098
|
-
static factory_get_document_full(uri: string
|
|
2098
|
+
static factory_get_document_full(uri: string, flags: DocumentLoadFlags): Document
|
|
2099
2099
|
static fc_mutex_lock(): void
|
|
2100
2100
|
static fc_mutex_trylock(): boolean
|
|
2101
2101
|
static fc_mutex_unlock(): void
|
|
@@ -2368,8 +2368,8 @@ interface Image {
|
|
|
2368
2368
|
get_id(): number
|
|
2369
2369
|
get_page(): number
|
|
2370
2370
|
get_pixbuf(): GdkPixbuf.Pixbuf
|
|
2371
|
-
get_tmp_uri(): string
|
|
2372
|
-
save_tmp(pixbuf: GdkPixbuf.Pixbuf): string
|
|
2371
|
+
get_tmp_uri(): string
|
|
2372
|
+
save_tmp(pixbuf: GdkPixbuf.Pixbuf): string
|
|
2373
2373
|
|
|
2374
2374
|
// Class property signals of EvinceDocument-3.0.EvinceDocument.Image
|
|
2375
2375
|
|
|
@@ -2463,7 +2463,7 @@ interface Link {
|
|
|
2463
2463
|
// Owm methods of EvinceDocument-3.0.EvinceDocument.Link
|
|
2464
2464
|
|
|
2465
2465
|
get_action(): LinkAction
|
|
2466
|
-
get_title(): string
|
|
2466
|
+
get_title(): string
|
|
2467
2467
|
|
|
2468
2468
|
// Class property signals of EvinceDocument-3.0.EvinceDocument.Link
|
|
2469
2469
|
|
|
@@ -2489,8 +2489,8 @@ class Link extends GObject.Object {
|
|
|
2489
2489
|
// Constructors of EvinceDocument-3.0.EvinceDocument.Link
|
|
2490
2490
|
|
|
2491
2491
|
constructor(config?: Link.ConstructorProperties)
|
|
2492
|
-
constructor(title: string
|
|
2493
|
-
static new(title: string
|
|
2492
|
+
constructor(title: string, action: LinkAction)
|
|
2493
|
+
static new(title: string, action: LinkAction): Link
|
|
2494
2494
|
_init(config?: Link.ConstructorProperties): void
|
|
2495
2495
|
}
|
|
2496
2496
|
|
|
@@ -2554,14 +2554,14 @@ interface LinkAction {
|
|
|
2554
2554
|
get_action_type(): LinkActionType
|
|
2555
2555
|
get_dest(): LinkDest
|
|
2556
2556
|
get_exclude_reset_fields(): boolean
|
|
2557
|
-
get_filename(): string
|
|
2557
|
+
get_filename(): string
|
|
2558
2558
|
get_hide_list(): Layer[]
|
|
2559
|
-
get_name(): string
|
|
2560
|
-
get_params(): string
|
|
2559
|
+
get_name(): string
|
|
2560
|
+
get_params(): string
|
|
2561
2561
|
get_reset_fields(): string[]
|
|
2562
2562
|
get_show_list(): Layer[]
|
|
2563
2563
|
get_toggle_list(): Layer[]
|
|
2564
|
-
get_uri(): string
|
|
2564
|
+
get_uri(): string
|
|
2565
2565
|
|
|
2566
2566
|
// Class property signals of EvinceDocument-3.0.EvinceDocument.LinkAction
|
|
2567
2567
|
|
|
@@ -2615,11 +2615,11 @@ class LinkAction extends GObject.Object {
|
|
|
2615
2615
|
|
|
2616
2616
|
constructor(config?: LinkAction.ConstructorProperties)
|
|
2617
2617
|
static new_dest(dest: LinkDest): LinkAction
|
|
2618
|
-
static new_external_uri(uri: string
|
|
2619
|
-
static new_launch(filename: string
|
|
2618
|
+
static new_external_uri(uri: string): LinkAction
|
|
2619
|
+
static new_launch(filename: string, params: string): LinkAction
|
|
2620
2620
|
static new_layers_state(show_list: Layer[], hide_list: Layer[], toggle_list: Layer[]): LinkAction
|
|
2621
|
-
static new_named(name: string
|
|
2622
|
-
static new_remote(dest: LinkDest, filename: string
|
|
2621
|
+
static new_named(name: string): LinkAction
|
|
2622
|
+
static new_remote(dest: LinkDest, filename: string): LinkAction
|
|
2623
2623
|
static new_reset_form(fields: string[], exclude_fields: boolean): LinkAction
|
|
2624
2624
|
_init(config?: LinkAction.ConstructorProperties): void
|
|
2625
2625
|
}
|
|
@@ -2674,9 +2674,9 @@ interface LinkDest {
|
|
|
2674
2674
|
get_bottom(): number
|
|
2675
2675
|
get_dest_type(): LinkDestType
|
|
2676
2676
|
get_left(change_left: boolean): number
|
|
2677
|
-
get_named_dest(): string
|
|
2677
|
+
get_named_dest(): string
|
|
2678
2678
|
get_page(): number
|
|
2679
|
-
get_page_label(): string
|
|
2679
|
+
get_page_label(): string
|
|
2680
2680
|
get_right(): number
|
|
2681
2681
|
get_top(change_top: boolean): number
|
|
2682
2682
|
get_zoom(change_zoom: boolean): number
|
|
@@ -2733,9 +2733,9 @@ class LinkDest extends GObject.Object {
|
|
|
2733
2733
|
static new_fith(page: number, top: number, change_top: boolean): LinkDest
|
|
2734
2734
|
static new_fitr(page: number, left: number, bottom: number, right: number, top: number): LinkDest
|
|
2735
2735
|
static new_fitv(page: number, left: number, change_left: boolean): LinkDest
|
|
2736
|
-
static new_named(named_dest: string
|
|
2736
|
+
static new_named(named_dest: string): LinkDest
|
|
2737
2737
|
static new_page(page: number): LinkDest
|
|
2738
|
-
static new_page_label(page_label: string
|
|
2738
|
+
static new_page_label(page_label: string): LinkDest
|
|
2739
2739
|
static new_xyz(page: number, left: number, top: number, zoom: number, change_left: boolean, change_top: boolean, change_zoom: boolean): LinkDest
|
|
2740
2740
|
_init(config?: LinkDest.ConstructorProperties): void
|
|
2741
2741
|
}
|
|
@@ -2760,7 +2760,7 @@ interface Media {
|
|
|
2760
2760
|
|
|
2761
2761
|
get_page_index(): number
|
|
2762
2762
|
get_show_controls(): boolean
|
|
2763
|
-
get_uri(): string
|
|
2763
|
+
get_uri(): string
|
|
2764
2764
|
set_show_controls(show_controls: boolean): void
|
|
2765
2765
|
|
|
2766
2766
|
// Class property signals of EvinceDocument-3.0.EvinceDocument.Media
|
|
@@ -2781,7 +2781,7 @@ class Media extends GObject.Object {
|
|
|
2781
2781
|
// Constructors of EvinceDocument-3.0.EvinceDocument.Media
|
|
2782
2782
|
|
|
2783
2783
|
constructor(config?: Media.ConstructorProperties)
|
|
2784
|
-
static new_for_uri(page: Page, uri: string
|
|
2784
|
+
static new_for_uri(page: Page, uri: string): Media
|
|
2785
2785
|
_init(config?: Media.ConstructorProperties): void
|
|
2786
2786
|
}
|
|
2787
2787
|
|
|
@@ -3083,8 +3083,8 @@ interface DocumentBackendInfo {
|
|
|
3083
3083
|
|
|
3084
3084
|
// Own fields of EvinceDocument-3.0.EvinceDocument.DocumentBackendInfo
|
|
3085
3085
|
|
|
3086
|
-
name: string
|
|
3087
|
-
version: string
|
|
3086
|
+
name: string
|
|
3087
|
+
version: string
|
|
3088
3088
|
}
|
|
3089
3089
|
|
|
3090
3090
|
class DocumentBackendInfo {
|
|
@@ -3099,8 +3099,8 @@ interface DocumentClass {
|
|
|
3099
3099
|
// Own fields of EvinceDocument-3.0.EvinceDocument.DocumentClass
|
|
3100
3100
|
|
|
3101
3101
|
base_class: GObject.ObjectClass
|
|
3102
|
-
load: (document: Document, uri: string
|
|
3103
|
-
save: (document: Document, uri: string
|
|
3102
|
+
load: (document: Document, uri: string) => boolean
|
|
3103
|
+
save: (document: Document, uri: string) => boolean
|
|
3104
3104
|
get_n_pages: (document: Document) => number
|
|
3105
3105
|
get_page: (document: Document, index: number) => Page
|
|
3106
3106
|
get_page_size: (document: Document, page_index: Page) => [ /* width */ number, /* height */ number ]
|
|
@@ -3128,10 +3128,10 @@ interface DocumentFindInterface {
|
|
|
3128
3128
|
// Own fields of EvinceDocument-3.0.EvinceDocument.DocumentFindInterface
|
|
3129
3129
|
|
|
3130
3130
|
base_iface: GObject.TypeInterface
|
|
3131
|
-
find_text: (document_find: DocumentFind, page: Page, text: string
|
|
3132
|
-
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[]
|
|
3133
3133
|
get_supported_options: (document_find: DocumentFind) => FindOptions
|
|
3134
|
-
find_text_extended: (document_find: DocumentFind, page: Page, text: string
|
|
3134
|
+
find_text_extended: (document_find: DocumentFind, page: Page, text: string, options: FindOptions) => FindRectangle[]
|
|
3135
3135
|
}
|
|
3136
3136
|
|
|
3137
3137
|
abstract class DocumentFindInterface {
|
|
@@ -3149,7 +3149,7 @@ interface DocumentFontsInterface {
|
|
|
3149
3149
|
scan: (document_fonts: DocumentFonts, n_pages: number) => boolean
|
|
3150
3150
|
get_progress: (document_fonts: DocumentFonts) => number
|
|
3151
3151
|
fill_model: (document_fonts: DocumentFonts, model: Gtk.TreeModel) => void
|
|
3152
|
-
get_fonts_summary: (document_fonts: DocumentFonts) => string
|
|
3152
|
+
get_fonts_summary: (document_fonts: DocumentFonts) => string
|
|
3153
3153
|
}
|
|
3154
3154
|
|
|
3155
3155
|
abstract class DocumentFontsInterface {
|
|
@@ -3167,7 +3167,7 @@ interface DocumentFormsInterface {
|
|
|
3167
3167
|
get_form_fields: (document_forms: DocumentForms, page: Page) => MappingList
|
|
3168
3168
|
document_is_modified: (document_forms: DocumentForms) => boolean
|
|
3169
3169
|
form_field_text_get_text: (document_forms: DocumentForms, field: FormField) => string | null
|
|
3170
|
-
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
|
|
3171
3171
|
form_field_button_get_state: (document_forms: DocumentForms, field: FormField) => boolean
|
|
3172
3172
|
form_field_button_set_state: (document_forms: DocumentForms, field: FormField, state: boolean) => void
|
|
3173
3173
|
form_field_choice_get_item: (document_forms: DocumentForms, field: FormField, index: number) => string | null
|
|
@@ -3176,7 +3176,7 @@ interface DocumentFormsInterface {
|
|
|
3176
3176
|
form_field_choice_select_item: (document_forms: DocumentForms, field: FormField, index: number) => void
|
|
3177
3177
|
form_field_choice_toggle_item: (document_forms: DocumentForms, field: FormField, index: number) => void
|
|
3178
3178
|
form_field_choice_unselect_all: (document_forms: DocumentForms, field: FormField) => void
|
|
3179
|
-
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
|
|
3180
3180
|
form_field_choice_get_text: (document_forms: DocumentForms, field: FormField) => string | null
|
|
3181
3181
|
reset_form: (document_forms: DocumentForms, action: LinkAction) => void
|
|
3182
3182
|
}
|
|
@@ -3239,7 +3239,7 @@ interface DocumentInfo {
|
|
|
3239
3239
|
free(): void
|
|
3240
3240
|
get_created_datetime(): GLib.DateTime | null
|
|
3241
3241
|
get_modified_datetime(): GLib.DateTime | null
|
|
3242
|
-
set_from_xmp(xmp: string
|
|
3242
|
+
set_from_xmp(xmp: string, size: number): boolean
|
|
3243
3243
|
take_created_datetime(datetime: GLib.DateTime): void
|
|
3244
3244
|
take_modified_datetime(datetime: GLib.DateTime): void
|
|
3245
3245
|
}
|
|
@@ -3315,8 +3315,8 @@ interface DocumentLinksInterface {
|
|
|
3315
3315
|
has_document_links: (document_links: DocumentLinks) => boolean
|
|
3316
3316
|
get_links_model: (document_links: DocumentLinks) => Gtk.TreeModel
|
|
3317
3317
|
get_links: (document_links: DocumentLinks, page: Page) => MappingList
|
|
3318
|
-
find_link_dest: (document_links: DocumentLinks, link_name: string
|
|
3319
|
-
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
|
|
3320
3320
|
}
|
|
3321
3321
|
|
|
3322
3322
|
abstract class DocumentLinksInterface {
|
|
@@ -3372,7 +3372,7 @@ interface DocumentSecurityInterface {
|
|
|
3372
3372
|
|
|
3373
3373
|
base_iface: GObject.TypeInterface
|
|
3374
3374
|
has_document_security: (document_security: DocumentSecurity) => boolean
|
|
3375
|
-
set_password: (document_security: DocumentSecurity, password: string
|
|
3375
|
+
set_password: (document_security: DocumentSecurity, password: string) => void
|
|
3376
3376
|
}
|
|
3377
3377
|
|
|
3378
3378
|
abstract class DocumentSecurityInterface {
|
|
@@ -3421,7 +3421,7 @@ interface FileExporterContext {
|
|
|
3421
3421
|
// Own fields of EvinceDocument-3.0.EvinceDocument.FileExporterContext
|
|
3422
3422
|
|
|
3423
3423
|
format: FileExporterFormat
|
|
3424
|
-
filename: string
|
|
3424
|
+
filename: string
|
|
3425
3425
|
first_page: number
|
|
3426
3426
|
last_page: number
|
|
3427
3427
|
paper_width: number
|
|
@@ -3841,8 +3841,8 @@ class SourceLink {
|
|
|
3841
3841
|
|
|
3842
3842
|
// Constructors of EvinceDocument-3.0.EvinceDocument.SourceLink
|
|
3843
3843
|
|
|
3844
|
-
constructor(filename: string
|
|
3845
|
-
static new(filename: string
|
|
3844
|
+
constructor(filename: string, line: number, col: number)
|
|
3845
|
+
static new(filename: string, line: number, col: number): SourceLink
|
|
3846
3846
|
}
|
|
3847
3847
|
|
|
3848
3848
|
interface TransitionEffectClass {
|
|
@@ -3863,8 +3863,8 @@ interface TypeInfo {
|
|
|
3863
3863
|
|
|
3864
3864
|
// Own fields of EvinceDocument-3.0.EvinceDocument.TypeInfo
|
|
3865
3865
|
|
|
3866
|
-
desc: string
|
|
3867
|
-
mime_types: string
|
|
3866
|
+
desc: string
|
|
3867
|
+
mime_types: string
|
|
3868
3868
|
}
|
|
3869
3869
|
|
|
3870
3870
|
class TypeInfo {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/evincedocument-3.0",
|
|
3
|
-
"version": "45.0.0-3.2.
|
|
3
|
+
"version": "45.0.0-3.2.7",
|
|
4
4
|
"description": "GJS TypeScript type definitions for EvinceDocument-3.0, generated from library version 45.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "evincedocument-3.0.js",
|
|
@@ -25,20 +25,20 @@
|
|
|
25
25
|
"test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit evincedocument-3.0.d.cts"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@girs/atk-1.0": "^2.50.0-3.2.
|
|
29
|
-
"@girs/cairo-1.0": "^1.0.0-3.2.
|
|
30
|
-
"@girs/freetype2-2.0": "^2.0.0-3.2.
|
|
31
|
-
"@girs/gdk-3.0": "^3.24.38-3.2.
|
|
32
|
-
"@girs/gdkpixbuf-2.0": "^2.0.0-3.2.
|
|
33
|
-
"@girs/gio-2.0": "^2.78.0-3.2.
|
|
34
|
-
"@girs/gjs": "^3.2.
|
|
35
|
-
"@girs/glib-2.0": "^2.78.0-3.2.
|
|
36
|
-
"@girs/gmodule-2.0": "^2.0.0-3.2.
|
|
37
|
-
"@girs/gobject-2.0": "^2.78.0-3.2.
|
|
38
|
-
"@girs/gtk-3.0": "^3.24.38-3.2.
|
|
39
|
-
"@girs/harfbuzz-0.0": "^8.2.1-3.2.
|
|
40
|
-
"@girs/pango-1.0": "^1.51.0-3.2.
|
|
41
|
-
"@girs/xlib-2.0": "^2.0.0-3.2.
|
|
28
|
+
"@girs/atk-1.0": "^2.50.0-3.2.7",
|
|
29
|
+
"@girs/cairo-1.0": "^1.0.0-3.2.7",
|
|
30
|
+
"@girs/freetype2-2.0": "^2.0.0-3.2.7",
|
|
31
|
+
"@girs/gdk-3.0": "^3.24.38-3.2.7",
|
|
32
|
+
"@girs/gdkpixbuf-2.0": "^2.0.0-3.2.7",
|
|
33
|
+
"@girs/gio-2.0": "^2.78.0-3.2.7",
|
|
34
|
+
"@girs/gjs": "^3.2.7",
|
|
35
|
+
"@girs/glib-2.0": "^2.78.0-3.2.7",
|
|
36
|
+
"@girs/gmodule-2.0": "^2.0.0-3.2.7",
|
|
37
|
+
"@girs/gobject-2.0": "^2.78.0-3.2.7",
|
|
38
|
+
"@girs/gtk-3.0": "^3.24.38-3.2.7",
|
|
39
|
+
"@girs/harfbuzz-0.0": "^8.2.1-3.2.7",
|
|
40
|
+
"@girs/pango-1.0": "^1.51.0-3.2.7",
|
|
41
|
+
"@girs/xlib-2.0": "^2.0.0-3.2.7"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"typescript": "*"
|