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:
- Trueif 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.commentauthor.
- text ( - str) –- Gnm.commenttext.
- markup ( - Pango.AttrList) –- Gnm.commentmarkup.
 
- 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 line
- width ( - int) – including margins and leading grid line
- h_center ( - int) –
- show_extension_markers ( - bool) –
- style ( - Gnm.CellDrawStyleor- None) –
 
 
 - 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.valuehas 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.valuemost appropriate for editing- quoted:
- Whether a single quote was used to force string interpretation 
- cursor_pos:
- Desired initial - Gnm.cursorposition
 
- Return type:
 
 - has_expr()¶
 - is_blank()¶
- Returns:
- True, if the cell has not been created, has- Gnm.ValueType.EMPTY, or has an empty- Gnm.ValueType.STRING.
- Return type:
 
 - is_empty()¶
- Returns:
- True, If the cell has not been created, or has- Gnm.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()¶