Class: Gnm::Workbook
- Inherits:
-
GOffice::Doc
- Object
- GOffice::Doc
- Gnm::Workbook
- Defined in:
- (unknown)
Class Method Summary collapse
- .attach_view(wbv) ⇒ nil
- .cmd_autofit_selection(wbc, sheet, is_cols) ⇒ nil
- .cmd_dec_indent(wbc) ⇒ nil
- .cmd_inc_indent(wbc) ⇒ nil
- .cmd_resize_selected_colrow(wbc, sheet, is_cols, new_size_pixels) ⇒ nil
- .cmd_wrap_sort(wbc, type) ⇒ nil
- .detach_view(wbv) ⇒ nil
-
.foreach_cell_in_range(pos, cell_range, flags, handler, closure) ⇒ Gnm::Value
The supplied value must be a cellrange.
-
.sheet_delete(sheet) ⇒ nil
This function detaches the given sheet from its parent workbook and invalidates all references to the deleted sheet from other sheets and clears all references in the clipboard to this sheet.
-
.sheet_move(sheet, direction) ⇒ nil
Moves the sheet up or down direction spots in the sheet list If direction is negative, move left.
Instance Method Summary collapse
- #1904=(base1904) ⇒ nil
- #being_loaded=(being_loaded) ⇒ Boolean
-
#being_loaded? ⇒ Boolean
Being-loaded.
-
#cells(comments, vis) ⇒ Array<Gnm::EvalPos>
Collects a GPtrArray of GnmEvalPos pointers for all cells in a workbook.
-
#date_conv ⇒ GOffice::DateConventions
The date conventions in effect for the workbook.
-
#date_conv=(date_conv) ⇒ nil
Sets the date convention date_conv.
- #enable_recursive_dirty(enable) ⇒ Boolean
-
#file_exporter ⇒ GOffice::FileSaver
The exporter for the Workbook.
- #file_exporter=(fs) ⇒ nil
-
#file_saver ⇒ GOffice::FileSaver
The saver for the Workbook.
-
#find_command(is_undo, cmd) ⇒ Integer
(which would be a programmer error).
- #foreach_name(globals_only, func, data) ⇒ nil
-
#initialize(sheet_count) ⇒ Gnm::Workbook
constructor
sheets on it.
- #iteration_enabled(enable) ⇒ nil
- #iteration_max_number(max_number) ⇒ nil
- #iteration_tolerance(tolerance) ⇒ nil
-
#last_export_uri ⇒ String
The URI for export.
- #last_export_uri=(uri) ⇒ nil
- #mark_dirty ⇒ nil
- #optimize_style ⇒ nil
- #queue_all_recalc ⇒ nil
- #queue_volatile_recalc ⇒ nil
-
#recalc ⇒ nil
Computes all dependents in wb that have been flaged as requiring recomputation.
-
#recalc_all ⇒ nil
Queues all dependents for recalc and recalculates.
- #recalc_mode=(recalc_mode) ⇒ Boolean
-
#recalc_mode? ⇒ Boolean
Recalc-mode.
- #recalcmode ⇒ Boolean
- #recalcmode=(enable) ⇒ nil
-
#set_saveinfo(lev, saver) ⇒ Boolean
If level is sufficiently advanced, assign the info.
- #share_expressions(freeit) ⇒ Gnm::ExprSharer
-
#sheet_add(pos, columns, rows) ⇒ Gnm::Sheet
Create and name a new sheet, putting it at position pos.
-
#sheet_add_with_type(sheet_type, pos, columns, rows) ⇒ Gnm::Sheet
Create and name a new sheet, putting it at position pos.
-
#sheet_attach(new_sheet) ⇒ nil
Add new_sheet to wb, placing it at the end.
-
#sheet_attach_at_pos(new_sheet, pos) ⇒ nil
Add new_sheet to wb, placing it at pos.
-
#sheet_by_index(i) ⇒ Gnm::Sheet
A #Sheet.
-
#sheet_by_name(sheet_name) ⇒ Gnm::Sheet
A #Sheet.
- #sheet_count ⇒ Integer
-
#sheet_get_free_name(base, always_suffix, handle_counter) ⇒ String
Gets a new unquoted name for a sheets such that it does not exist on the workbook.
-
#sheet_rename(sheet_indices, new_names, cc) ⇒ Boolean
Adjusts the names of the sheets.
-
#sheet_reorder(new_order) ⇒ Boolean
Adjusts the order of the sheets.
-
#sheet_size ⇒ Gnm::SheetSize
not of uniform size, this will be some size that is big enough in both directions for all sheets.
- #sheet_state_restore(wss) ⇒ nil
-
#sheets ⇒ Array<Gnm::Sheet>
Get an ordered list of the sheets in the workbook.
-
#sheets0 ⇒ GLib::SList<Gnm::Sheet>
Get an ordered list of the sheets in the workbook.
- #update_graphs ⇒ nil
- #update_history(type) ⇒ nil
Constructor Details
#initialize(sheet_count) ⇒ Gnm::Workbook
sheets on it
Class Method Details
.attach_view(wbv) ⇒ nil
.cmd_autofit_selection(wbc, sheet, is_cols) ⇒ nil
.cmd_dec_indent(wbc) ⇒ nil
.cmd_inc_indent(wbc) ⇒ nil
.cmd_resize_selected_colrow(wbc, sheet, is_cols, new_size_pixels) ⇒ nil
.cmd_wrap_sort(wbc, type) ⇒ nil
.detach_view(wbv) ⇒ nil
.foreach_cell_in_range(pos, cell_range, flags, handler, closure) ⇒ Gnm::Value
The supplied value must be a cellrange. The range bounds are calculated relative to the eval position and normalized. For each existing cell in the range specified, invoke the callback routine. If the only_existing flag is true, then callbacks are only invoked for existing cells.
Note: this function does not honour the CELL_ITER_IGNORE_SUBTOTAL flag.
.sheet_delete(sheet) ⇒ nil
This function detaches the given sheet from its parent workbook and invalidates all references to the deleted sheet from other sheets and clears all references in the clipboard to this sheet.
.sheet_move(sheet, direction) ⇒ nil
Moves the sheet up or down direction spots in the sheet list If direction is negative, move left. If positive, move right. for left.
Instance Method Details
#1904=(base1904) ⇒ nil
#being_loaded=(being_loaded) ⇒ Boolean
#being_loaded? ⇒ Boolean
Returns being-loaded.
#cells(comments, vis) ⇒ Array<Gnm::EvalPos>
Collects a GPtrArray of GnmEvalPos pointers for all cells in a workbook. No particular order should be assumed.
#date_conv ⇒ GOffice::DateConventions
Returns the date conventions in effect for the workbook.
#date_conv=(date_conv) ⇒ nil
Sets the date convention date_conv. NOTE : THIS IS NOT A SMART ROUTINE. If you want to actually change this We'll need to recalc and rerender everything. That will need to be done externally.
#enable_recursive_dirty(enable) ⇒ Boolean
#file_exporter ⇒ GOffice::FileSaver
Returns the exporter for the Workbook.
#file_exporter=(fs) ⇒ nil
#file_saver ⇒ GOffice::FileSaver
Returns the saver for the Workbook.
#find_command(is_undo, cmd) ⇒ Integer
(which would be a programmer error).
#foreach_name(globals_only, func, data) ⇒ nil
#iteration_enabled(enable) ⇒ nil
#iteration_max_number(max_number) ⇒ nil
#iteration_tolerance(tolerance) ⇒ nil
#last_export_uri ⇒ String
Returns the URI for export.
#last_export_uri=(uri) ⇒ nil
#mark_dirty ⇒ nil
#optimize_style ⇒ nil
#queue_all_recalc ⇒ nil
#queue_volatile_recalc ⇒ nil
#recalc ⇒ nil
Computes all dependents in wb that have been flaged as requiring recomputation.
NOTE! This does not recalc dependents in other workbooks.
#recalc_all ⇒ nil
Queues all dependents for recalc and recalculates.
#recalc_mode=(recalc_mode) ⇒ Boolean
#recalc_mode? ⇒ Boolean
Returns recalc-mode.
#recalcmode ⇒ Boolean
#recalcmode=(enable) ⇒ nil
#set_saveinfo(lev, saver) ⇒ Boolean
If level is sufficiently advanced, assign the info. FIXME : Add a check to ensure the name is unique.
#share_expressions(freeit) ⇒ Gnm::ExprSharer
#sheet_add(pos, columns, rows) ⇒ Gnm::Sheet
Create and name a new sheet, putting it at position pos. The sheet returned is not ref'd. (The ref belongs to the workbook.)
#sheet_add_with_type(sheet_type, pos, columns, rows) ⇒ Gnm::Sheet
Create and name a new sheet, putting it at position pos. The sheet returned is not ref'd. (The ref belongs to the workbook.)
#sheet_attach(new_sheet) ⇒ nil
Add new_sheet to wb, placing it at the end. SURPRISE: This assumes a ref to the sheet.
#sheet_attach_at_pos(new_sheet, pos) ⇒ nil
Add new_sheet to wb, placing it at pos.
#sheet_by_index(i) ⇒ Gnm::Sheet
Returns A #Sheet.
#sheet_by_name(sheet_name) ⇒ Gnm::Sheet
Returns A #Sheet.
#sheet_count ⇒ Integer
#sheet_get_free_name(base, always_suffix, handle_counter) ⇒ String
Gets a new unquoted name for a sheets such that it does not exist on the workbook.
#sheet_rename(sheet_indices, new_names, cc) ⇒ Boolean
Adjusts the names of the sheets. We assume that everything is valid. If in doubt call workbook_sheet_reorder_check first.
#sheet_reorder(new_order) ⇒ Boolean
Adjusts the order of the sheets.
Returns false when it was successful
#sheet_size ⇒ Gnm::SheetSize
not of uniform size, this will be some size that is big enough in both directions for all sheets. That size isn't necessarily one that could be used to create a new sheet.
#sheet_state_restore(wss) ⇒ nil
#sheets ⇒ Array<Gnm::Sheet>
Get an ordered list of the sheets in the workbook
#sheets0 ⇒ GLib::SList<Gnm::Sheet>
Get an ordered list of the sheets in the workbook