Gnm.StyleCond

Fields

Name

Type

Access

Description

deps

[Gnm.StyleCondDep]

r/w

op

Gnm.StyleCondOp

r/w

overlay

Gnm.Style

r/w

Methods

class

new (op, sheet)

as_string ()

canonicalize ()

free ()

get_alternate_expr ()

get_expr (idx)

get_sheet ()

is_valid ()

set_expr (texpr, idx)

set_overlay (overlay)

Details

class Gnm.StyleCond
classmethod new(op, sheet)
Parameters:
Return type:

Gnm.StyleCond

as_string()
Return type:

str

canonicalize()

Turns a custom condition into a more specific one, i.e., reverses the effect of using Gnm.StyleCond.get_alternate_expr. Leaves the condition alone if it is not recognized.

free()
get_alternate_expr()
Returns:

An custom expression that can be used in place of self.

Return type:

Gnm.ExprTop or None

get_expr(idx)
Parameters:

idx (int) – index

Returns:

the Gnm.ExprTop for the idx'th condition.

Return type:

Gnm.ExprTop

get_sheet()
Returns:

the Gnm.Sheet.

Return type:

Gnm.Sheet

is_valid()
Returns:

True if self is in a reasonable state

Return type:

bool

set_expr(texpr, idx)
Parameters:
set_overlay(overlay)
Parameters:

overlay (Gnm.Style) –