Gnm.SearchReplace

g GObject.Object GObject.Object GOffice.SearchReplace GOffice.SearchReplace GObject.Object->GOffice.SearchReplace Gnm.SearchReplace Gnm.SearchReplace GOffice.SearchReplace->Gnm.SearchReplace

Subclasses:

None

Methods

Inherited:

GOffice.SearchReplace (3), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

cell (ep, repl, res)

comment (ep, repl, res)

query_cell (res)

query_comment (ep, res)

query_fail (res)

verify (repl)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Inherited:

GOffice.SearchReplace (6)

Name

Type

Flags

Short Description

by-row

bool

r/w

Is the search order by Gnm.row?

invert

bool

r/w

Collect non-matching items

is-number

bool

r/w

Search for Specific Number Regardless of Formatting?

query

bool

r/w

Should we query for each replacement?

range-text

str

r/w

The range in which to search.

replace-keep-strings

bool

r/w

Should replacement keep strings as strings?

scope

Gnm.SearchReplaceScope

r/w

Where to search.

search-comments

bool

r/w

Should cell comments be searched?

search-expression-results

bool

r/w

Should the results of expressions be searched?

search-expressions

bool

r/w

Should expressions be searched?

search-other-values

bool

r/w

Should non-strings be searched?

search-scripts

bool

r/w

Should scrips (GOffice.workbook, and worksheet) be searched?

search-strings

bool

r/w

Should strings be searched?

sheet

Gnm.Sheet

r/w

The sheet in which to search.

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

base

GOffice.SearchReplace

r

by_row

bool

r

error_behaviour

Gnm.SearchReplaceError

r

high_number

float

r

invert

bool

r

is_number

bool

r

low_number

float

r

query

bool

r

query_func

object

r

range_text

str

r

replace_keep_strings

bool

r

scope

Gnm.SearchReplaceScope

r

search_comments

bool

r

search_expression_results

bool

r

search_expressions

bool

r

search_other_values

bool

r

search_scripts

bool

r

search_strings

bool

r

sheet

Gnm.Sheet

r

user_data

object

r

Class Details

class Gnm.SearchReplace(**kwargs)
Bases:

GOffice.SearchReplace

Abstract:

No

cell(ep, repl, res)
Parameters:
Return type:

bool

comment(ep, repl, res)
Parameters:
Return type:

bool

query_cell(res)
Parameters:

res (Gnm.SearchReplaceCellResult) –

Return type:

int

query_comment(ep, res)
Parameters:
Return type:

int

query_fail(res)
Parameters:

res (Gnm.SearchReplaceCellResult) –

verify(repl)
Parameters:

repl (bool) –

Return type:

str

Property Details

Gnm.SearchReplace.props.by_row
Name:

by-row

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

Is the search order by Gnm.row?

Gnm.SearchReplace.props.invert
Name:

invert

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

Collect non-matching items

Gnm.SearchReplace.props.is_number
Name:

is-number

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

Search for Specific Number Regardless of Formatting?

Gnm.SearchReplace.props.query
Name:

query

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

Should we query for each replacement?

Gnm.SearchReplace.props.range_text
Name:

range-text

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

The range in which to search.

Gnm.SearchReplace.props.replace_keep_strings
Name:

replace-keep-strings

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

Should replacement keep strings as strings?

Gnm.SearchReplace.props.scope
Name:

scope

Type:

Gnm.SearchReplaceScope

Default Value:

Gnm.SearchReplaceScope.SHEET

Flags:

READABLE, WRITABLE

Where to search.

Gnm.SearchReplace.props.search_comments
Name:

search-comments

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

Should cell comments be searched?

Gnm.SearchReplace.props.search_expression_results
Name:

search-expression-results

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

Should the results of expressions be searched?

Gnm.SearchReplace.props.search_expressions
Name:

search-expressions

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

Should expressions be searched?

Gnm.SearchReplace.props.search_other_values
Name:

search-other-values

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

Should non-strings be searched?

Gnm.SearchReplace.props.search_scripts
Name:

search-scripts

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

Should scrips (GOffice.workbook, and worksheet) be searched?

Gnm.SearchReplace.props.search_strings
Name:

search-strings

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

Should strings be searched?

Gnm.SearchReplace.props.sheet
Name:

sheet

Type:

Gnm.Sheet

Default Value:

None

Flags:

READABLE, WRITABLE

The sheet in which to search.