Gnm.WorkbookView¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w |
Description of the automatically computed sheet function. |
||
w |
The cell position to track. |
||
r/w |
The automatically computed sheet function. |
||
r/w |
Use maximum available precision for auto-expressions |
||
r/w |
The current |
||
r/w |
Auto-complete text |
||
r/w |
Preferred height |
||
r/w |
Preferred width |
||
r/w |
Is view protected? |
||
r/w |
Mark each cell that fails to show the complete content |
||
r/w |
Mark each cell containing a formula |
||
r/w |
Show the horizontal scrollbar |
||
r/w |
Show the notebook tabs for sheets |
||
r/w |
Show the vertical scrollbar |
||
r/w/co |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
base |
r |
||
current_sheet |
r |
||
current_sheet_view |
r |
||
current_style |
r |
||
do_auto_completion |
r |
||
in_cell_combo |
r |
||
is_protected |
r |
||
preferred_height |
r |
||
preferred_width |
r |
||
selection_description |
r |
||
show_extension_markers |
r |
||
show_function_cell_markers |
r |
||
show_horizontal_scrollbar |
r |
||
show_notebook_tabs |
r |
||
show_vertical_scrollbar |
r |
||
wb |
r |
||
wb_controls |
r |
Class Details¶
- class Gnm.WorkbookView(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(wb)¶
- Parameters:
wb (
Gnm.WorkbookorNone) –Gnm.Workbook- Returns:
A new
Gnm.WorkbookViewfor wb (or a fresh one if that isNone).- Return type:
- classmethod new_from_input(input, uri, file_opener, io_context, encoding)¶
- Parameters:
file_opener (
GOffice.FileOpenerorNone) –GOffice.FileOpenerio_context (
GOffice.IOContextorNone) – Context to display errors.encoding (
strorNone) – Encoding for file_opener that understand it
- Returns:
the newly allocated
Gnm.WorkbookVieworNoneon error.- Return type:
Reads uri file using given file opener file_opener, or probes for a valid possibility if file_opener is
None. Reports problems to io_context.
- classmethod new_from_uri(uri, file_opener, io_context, encoding)¶
- Parameters:
uri (
str) – URI for filefile_opener (
GOffice.FileOpenerorNone) –GOffice.FileOpenerio_context (
GOffice.IOContext) – Context to display errors.encoding (
strorNone) – Encoding for file_opener that understands it
- Returns:
the newly allocated
Gnm.WorkbookVieworNoneon error.- Return type:
Reads uri file using given file opener file_opener, or probes for a valid possibility if file_opener is
None. Reports problems to io_context.
- save(cc)¶
- Parameters:
cc (
GOffice.CmdContext) – TheGOffice.CmdContextthat invoked the operation- Returns:
- Return type:
Saves self and
GOffice.workbookit’s attached to into file assigned to theGOffice.workbookusingGOffice.workbook's file saver. If theGOffice.workbookhas no file saver assigned to it, default file saver is used instead.
- save_as(fs, uri, cc)¶
- Parameters:
fs (
GOffice.FileSaver) –GOffice.FileSaverobjecturi (
str) – URI to save as.cc (
GOffice.CmdContext) – TheGOffice.CmdContextthat invoked the operation
- Returns:
- Return type:
Saves self and
GOffice.workbookit’s attached to into uri file using fs file saver. If the format sufficiently advanced make it the saver and update the uri.
- save_to_output(fs, output, io_context)¶
- Parameters:
output (
Gsf.Output) –Gsf.Outputio_context (
GOffice.IOContext) –GOffice.IOContext
NOTE : Temporary api until we get the new output framework.
- save_to_uri(fs, uri, io_context)¶
- Parameters:
uri (
str) – destination URIio_context (
GOffice.IOContext) –GOffice.IOContext
Property Details¶
- Gnm.WorkbookView.props.auto_expr_descr¶
-
Description of the automatically computed sheet function.
- Gnm.WorkbookView.props.auto_expr_eval_pos¶
- Name:
auto-expr-eval-pos- Type:
- Default Value:
- Flags:
The cell position to track.
- Gnm.WorkbookView.props.auto_expr_func¶
-
The automatically computed sheet function.
- Gnm.WorkbookView.props.auto_expr_max_precision¶
-
Use maximum available precision for auto-expressions
- Gnm.WorkbookView.props.auto_expr_value¶
-
The current
GOffice.valueof the auto-expression.
- Gnm.WorkbookView.props.do_auto_completion¶
-
Auto-complete text
- Gnm.WorkbookView.props.preferred_height¶
-
Preferred height
- Gnm.WorkbookView.props.preferred_width¶
-
Preferred width
- Gnm.WorkbookView.props.protected¶
-
Is view protected?
- Gnm.WorkbookView.props.show_extension_markers¶
-
Mark each cell that fails to show the complete content
- Gnm.WorkbookView.props.show_function_cell_markers¶
-
Mark each cell containing a formula
- Gnm.WorkbookView.props.show_horizontal_scrollbar¶
-
Show the horizontal scrollbar
- Gnm.WorkbookView.props.show_notebook_tabs¶
-
Show the notebook tabs for sheets
- Gnm.WorkbookView.props.show_vertical_scrollbar¶
-
Show the vertical scrollbar
- Gnm.WorkbookView.props.workbook¶
- Name:
workbook- Type:
- Default Value:
- Flags: