Gnm.Cell¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
base |
r/w |
||
pos |
r/w |
||
value |
r/w |
Methods¶
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class Gnm.Cell¶
- classmethod set_array(sheet, r, texpr)¶
- Parameters:
sheet (
Gnm.Sheet
) – The sheet to set the array expression in.r (
Gnm.Range
) – The range to set.texpr (
Gnm.ExprTop
) – an expression (the inner expression, not a corner or element)
- Returns:
True
if the operation succeeded.NOTE : This adds a reference to the expression.
Does not regenerate spans, dimensions or autosize cols/rows.
DOES CHECK for array partitioning.
- Return type:
Set an array expression for a range. Uses cell_set_expr_internal to store the expr as an ‘array-formula’. The supplied expression is wrapped in an array operator for each cell in the range and scheduled for recalc.
- classmethod set_array_formula_undo(sr, texpr)¶
- Parameters:
sr (
Gnm.SheetRange
) –texpr (
Gnm.ExprTop
) –
- Returns:
the newly allocated
GOffice.Undo
.- Return type:
- classmethod set_comment(sheet, pos, author, text, markup)¶
- Parameters:
pos (
Gnm.CellPos
) – the position.author (
str
) –Gnm.comment
author.text (
str
) –Gnm.comment
text.markup (
Pango.AttrList
) –Gnm.comment
markup.
- Returns:
the newly allocated
Gnm.Comment
.- Return type:
- array_bound()¶
- calc_layout(rv, y_direction, width, height, h_center, res_color, res_x, res_y)¶
- convert_expr_to_value()¶
NOTE : the cell’s expression cannot be linked into the expression * list.
The cell is rendered but spans are not calculated, the cell is NOT marked for recalc.
WARNING : This is an internal routine that does not queue redraws, does not auto-resize, and does not calculate spans.
- draw(cr, x, y, height, width, h_center, show_extension_markers, style)¶
- Parameters:
cr (
cairo.Context
) –cairo.Context
x (
int
) –y (
int
) –height (
int
) – including margins and leading grid linewidth (
int
) – including margins and leading grid lineh_center (
int
) –show_extension_markers (
bool
) –style (
Gnm.CellDrawStyle
orNone
) –
- eval()¶
- finish_layout(rv, col_width, inhibit_overflow)¶
- Parameters:
rv (
Gnm.RenderedValue
) –col_width (
int
) –inhibit_overflow (
bool
) –
- foreach_dep(func, user)¶
- Parameters:
func (
Gnm.DepFunc
) –
- get_effective_style()¶
- Returns:
the fully qualified style for self, taking any conditional formats into account.
- Return type:
- get_entered_text()¶
- Returns:
a text expression if the cell contains a formula, or a string representation of the
GOffice.value
.- Return type:
- get_format()¶
- Returns:
the effective format for the cell, i.e., the cell style’s format unless that is General and the cell
GOffice.value
has a format.- Return type:
- get_text_for_editing()¶
- Returns:
A string suitable for editing
Primary user of this function is the formula entry. This function should return the
GOffice.value
most appropriate for editing- quoted:
Whether a single quote was used to force string interpretation
- cursor_pos:
Desired initial
Gnm.cursor
position
- Return type:
- has_expr()¶
- is_blank()¶
- Returns:
True
, if the cell has not been created, hasGnm.ValueType.EMPTY
, or has an emptyGnm.ValueType.STRING
.- Return type:
- is_empty()¶
- Returns:
True
, If the cell has not been created, or hasGnm.ValueType.EMPTY
.- Return type:
- is_error()¶
- is_nonsingleton_array()¶
- queue_recalc()¶
Queue the cell and everything that depends on it for recalculation. If a dependency is already queued ignore it.
- unregister_span()¶
- unrender()¶