EvinceView.JobFind

g EvinceView.Job EvinceView.Job EvinceView.JobFind EvinceView.JobFind EvinceView.Job->EvinceView.JobFind GObject.Object GObject.Object GObject.Object->EvinceView.Job

Subclasses:

None

Methods

Inherited:

EvinceView.Job (12), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (document, start_page, n_pages, text, case_sensitive)

get_n_main_results (page)

get_n_results (pages)

get_options ()

get_progress ()

has_results ()

set_options (options)

Virtual Methods

Inherited:

EvinceView.Job (3), GObject.Object (7)

do_updated (page)

Properties

None

Signals

Inherited:

EvinceView.Job (2), GObject.Object (1)

Name

Short Description

updated

Fields

Inherited:

EvinceView.Job (2), GObject.Object (1)

Name

Type

Access

Description

case_sensitive

bool

r

current_page

int

r

n_pages

int

r

options

EvinceDocument.FindOptions

r

pages

[object]

r

parent

EvinceView.Job

r

start_page

int

r

text

str

r

Class Details

class EvinceView.JobFind(**kwargs)
Bases:

EvinceView.Job

Abstract:

No

Structure:

EvinceView.JobFindClass

classmethod new(document, start_page, n_pages, text, case_sensitive)
Parameters:
Return type:

EvinceView.Job

get_n_main_results(page)
Parameters:

page (int) – number of the page we want to count its match results.

Returns:

total number of match results in page

Return type:

int

This is similar to EvinceView.JobFind.get_n_results() but it takes care to treat any multi-line matches as being only one result.

get_n_results(pages)
Parameters:

pages (int) –

Return type:

int

get_options()
Returns:

the job’s find options

Return type:

EvinceDocument.FindOptions

New in version 3.6.

get_progress()
Return type:

float

has_results()
Return type:

bool

set_options(options)
Parameters:

options (EvinceDocument.FindOptions) –

New in version 3.6.

do_updated(page) virtual
Parameters:

page (int) –

Signal Details

EvinceView.JobFind.signals.updated(job_find, object)
Signal Name:

updated

Flags:

RUN_LAST

Parameters: