Class: Gnm::Sheet
- Inherits:
-
Object
- Object
- Gnm::Sheet
- Defined in:
- (unknown)
Class Method Summary collapse
-
.apply_style_undo(sr, style) ⇒ GOffice::Undo
The new #GOUndo.
- .cell_init ⇒ nil
- .cell_queue_respan(cell) ⇒ nil
-
.cell_set_expr(cell, texpr) ⇒ nil
Marks the sheet as dirty Clears old spans.
-
.cell_set_text(cell, str, markup) ⇒ nil
Marks the sheet as dirty Clears old spans.
-
.cell_set_value(cell, v) ⇒ nil
Stores, without copying, the supplied value.
- .cell_shutdown ⇒ nil
-
.clear_region_undo(sr, clear_flags) ⇒ GOffice::Undo
The new #GOUndo.
-
.conditions_share_conditions_add(conds) ⇒ Gnm::StyleConditions
nil if conds had not been seen before.
-
.conditions_share_conditions_remove(conds) ⇒ nil
This notifies the sheet conditions manager that one use of the shared conditions has gone away.
-
.flag_status_update_cell(cell) ⇒ nil
flag the sheet as requiring an update to the status display if the supplied cell location is the edit cursor, or part of the selected region.
-
.merge_relocate(ri, pundo) ⇒ nil
Shifts merged regions that need to move.
-
.move_range(rinfo, pundo, cc) ⇒ nil
Move a range as specified in rinfo report warnings to cc.
- .objects_init ⇒ nil
-
.objects_relocate(rinfo, update, pundo) ⇒ nil
Uses the relocation info and the anchors to decide whether or not, and how to relocate objects when the grid moves (eg ins/del col/row).
- .objects_shutdown ⇒ nil
-
.style_insdel_colrow(rinfo) ⇒ nil
Insert of delete style columns/rows.
-
.style_relocate(rinfo) ⇒ nil
Slide the styles from the origin region to the new position.
-
.suggest_size(cols, rows) ⇒ nil
This function produces a valid sheet size that is reasonable for data of cols columns by rows rows.
- .valid_size(cols, rows) ⇒ Boolean
Instance Method Summary collapse
- #add_sort_setup(key, setup) ⇒ nil
- #apply_border(range, borders) ⇒ nil
-
#apply_style(range, style) ⇒ nil
A mid level routine that applies the supplied partial style style to the target range and performs the necessary respanning and redrawing.
-
#apply_style_gi(range, style) ⇒ nil
A mid level routine that applies the supplied partial style style to the target range and performs the necessary respanning and redrawing.
-
#cell_create(col, row) ⇒ Gnm::Cell
Creates a new cell and adds it to the sheet hash.
-
#cell_fetch(col, row) ⇒ Gnm::Cell
If no cell existed at that location before, it is created.
-
#cell_foreach(callback, data) ⇒ nil
Call callback with an argument of data for each cell in the sheet.
-
#cell_get(col, row) ⇒ Gnm::Cell
A Gnm::Cell, or nil if the cell does not exist.
-
#cell_get_value(col, row) ⇒ Gnm::Value
value will be nil only when the cell does not exist.
-
#cell_positions(comments) ⇒ Array<Gnm::EvalPos>
Collects a GPtrArray of GnmEvalPos pointers for all cells in a sheet.
-
#cell_remove(cell, redraw, queue_recalc) ⇒ nil
Remove the cell from the web of dependencies of a sheet.
-
#cell_set_text_gi(col, row, str) ⇒ nil
Sets the contents of a cell.
-
#cell_set_value_gi(col, row, v) ⇒ nil
Set the value of the cell at (col,row) to v.
-
#cells(r) ⇒ Array<Gnm::Cell>
Retrieves an array of all cells inside r.
-
#cells_count ⇒ Integer
Returns the number of cells with content in the current workbook.
-
#cells_extent ⇒ Gnm::Range
Calculates the area occupied by cells, including empty cells.
-
#clear_region(start_col, start_row, end_col, end_row, clear_flags, cc) ⇒ nil
Clears a region of cells, formats, object, etc.
-
#col_fetch(col) ⇒ Gnm::ColRowInfo
will not be the default Col::RowInfo and may be changed.
-
#col_get(col) ⇒ Gnm::ColRowInfo
if none has been allocated yet.
- #col_get_default_size_pixels ⇒ Integer
-
#col_get_default_size_pts ⇒ Float
This function returns the raw sum, no rounding etc.
-
#col_get_distance_pixels(from, to) ⇒ Integer
measured from the upper left corner.
-
#col_get_distance_pts(from, to) ⇒ Float
measured from the upper left corner.
-
#col_get_info(col) ⇒ Gnm::ColRowInfo
the default Col::RowInfo for columns and should not be changed.
- #col_is_hidden(col) ⇒ Boolean
- #col_set_default_size_pixels(width_pixels) ⇒ nil
- #col_set_default_size_pts(width_pts) ⇒ nil
- #col_set_size_pixels(col, width_pixels, set_by_user) ⇒ nil
-
#col_set_size_pts(col, width_pts, set_by_user) ⇒ nil
Sets width of a col in pts, INCLUDING left and right margins, and the far grid line.
-
#col_size_fit_pixels(col, srow, erow, ignore_strings) ⇒ Integer
This routine computes the ideal size for the column to make the contents all cells in the column visible.
-
#colrow_can_group(r, is_cols) ⇒ Boolean
false otherwise.
- #colrow_copy_info(colrow, is_cols, cri) ⇒ nil
- #colrow_fetch(colrow, is_cols) ⇒ Gnm::ColRowInfo
-
#colrow_foreach(is_cols, first, last, callback, user_data) ⇒ Boolean
Iterates through the existing rows or columns within the range supplied.
- #colrow_get(colrow, is_cols) ⇒ Gnm::ColRowInfo
-
#colrow_get_default(is_cols) ⇒ Gnm::ColRowInfo
The default Col::RowInfo.
-
#colrow_get_distance_pixels(is_cols, from, to) ⇒ Integer
measured from the upper left corner.
- #colrow_get_info(colrow, is_cols) ⇒ Gnm::ColRowInfo
- #colrow_group_ungroup(r, is_cols, inc) ⇒ Boolean
-
#colrow_gutter(is_cols, max_outline) ⇒ nil
Set the maximum outline levels for cols or rows.
- #colrow_optimize ⇒ nil
-
#columns ⇒ Integer
Columns.
- #columns=(columns) ⇒ Integer
- #conditions_add(r, style) ⇒ nil
- #conditions_dump ⇒ nil
- #conditions_init ⇒ nil
- #conditions_link_unlink_dependents(r, qlink) ⇒ nil
- #conditions_remove(r, style) ⇒ nil
- #conditions_simplify ⇒ nil
- #conditions_uninit ⇒ nil
-
#conventions ⇒ Gnm::Conventions
Conventions.
- #conventions=(conventions) ⇒ Gnm::Conventions
-
#date_conv ⇒ GOffice::DateConventions
This is purely a convenience function to access the conventions used for the workbook.
- #delete_cols(col, count, pundo, cc) ⇒ Boolean
- #delete_rows(row, count, pundo, cc) ⇒ Boolean
- #destroy_contents ⇒ nil
- #display_column_header=(display_column_header) ⇒ Boolean
-
#display_column_header? ⇒ Boolean
Display-column-header.
- #display_formulas=(display_formulas) ⇒ Boolean
-
#display_formulas? ⇒ Boolean
Display-formulas.
- #display_grid=(display_grid) ⇒ Boolean
-
#display_grid? ⇒ Boolean
Display-grid.
- #display_outlines=(display_outlines) ⇒ Boolean
-
#display_outlines? ⇒ Boolean
Display-outlines.
- #display_outlines_below=(display_outlines_below) ⇒ Boolean
-
#display_outlines_below? ⇒ Boolean
Display-outlines-below.
- #display_outlines_right=(display_outlines_right) ⇒ Boolean
-
#display_outlines_right? ⇒ Boolean
Display-outlines-right.
- #display_row_header=(display_row_header) ⇒ Boolean
-
#display_row_header? ⇒ Boolean
Display-row-header.
- #display_zeros=(display_zeros) ⇒ Boolean
-
#display_zeros? ⇒ Boolean
Display-zeros.
-
#dup ⇒ Gnm::Sheet
Create a duplicate sheet.
-
#filter_at_pos(pos) ⇒ Gnm::Filter
Gnm::Filter covering pos.
-
#filter_can_be_extended(f, r) ⇒ Gnm::Range
Gnm::Range.
-
#filter_insdel_colrow(is_cols, is_insert, start, count, pundo) ⇒ nil
Adjust filters as necessary to handle col/row insertions and deletions.
-
#filter_intersect_rows(from, to) ⇒ Gnm::Filter
intersects the rows from to to.
-
#find_boundary_horizontal(col, move_row, base_row, count, jump_to_boundaries) ⇒ Integer
Calculate the column index for the column which is count units from start_col doing bounds checking.
-
#find_boundary_vertical(move_col, row, base_col, count, jump_to_boundaries) ⇒ Integer
Calculate the row index for the row which is count units from start_row doing bounds checking.
-
#find_sort_setup(key) ⇒ GObject
The found sort setup or nil.
-
#flag_recompute_spans ⇒ nil
Flag the sheet as requiring a full span recomputation the next time sheet_update is called.
-
#flag_status_update_range(range) ⇒ nil
flag the sheet as requiring an update to the status display if the supplied cell location contains the edit cursor, or intersects of the selected region.
-
#flag_style_update_range(range) ⇒ nil
Flag format changes that will require updating the format indicators.
-
#foreach_cell_in_range(flags, r, callback, closure) ⇒ Gnm::Value
For each existing cell in the range specified, invoke the callback routine.
-
#foreach_cell_in_region(flags, start_col, start_row, end_col, end_row, callback, closure) ⇒ Gnm::Value
For each existing cell in the range specified, invoke the callback routine.
-
#foreach_name(func, data) ⇒ nil
Executes func for each name in sheet.
- #freeze_object_views(qfreeze) ⇒ nil
-
#get_comment(pos) ⇒ Gnm::Comment
If there is a cell comment at pos in sheet return it.
-
#get_extent(spans_and_merges_extend, include_hidden) ⇒ Gnm::Range
calculates the area occupied by cell data.
- #get_printarea(include_styles, ignore_printarea) ⇒ Gnm::Range
-
#get_size2(wb) ⇒ Gnm::SheetSize
Determines the sheet size, either of sheet if that is non-nil or of wb's default sheet.
-
#get_view(wbv) ⇒ Gnm::SheetView
Find the SheetView corresponding to the supplied wbv.
-
#guess_data_range(region) ⇒ nil
Makes a guess at the logical range containing region and returns the possibly expanded result in region.
-
#guess_region(region) ⇒ nil
Makes a guess at the logical containing region and returns the possibly expanded result in region.
-
#hlink_find(pos) ⇒ Gnm::HLink
The found Gnm::HLink.
-
#initialize(wb, name, type, columns, rows) ⇒ Gnm::Sheet
constructor
Create a new Sheet of type type, and associate it with wb.
- #insert_cols(col, count, pundo, cc) ⇒ Boolean
- #insert_rows(row, count, pundo, cc) ⇒ Boolean
- #is_cell_empty(col, row) ⇒ Boolean
-
#is_region_empty(r) ⇒ Boolean
contain any cells.
- #mark_dirty ⇒ nil
-
#merge_add(r, clear, cc) ⇒ Boolean
Add a range to the list of merge targets.
-
#merge_contains_pos(pos) ⇒ Gnm::Range
nil if pos is not within a merged region.
-
#merge_find_bounding_box(r) ⇒ nil
Extends r such that no merged range is split by its boundary.
-
#merge_get_adjacent(pos, left, right) ⇒ nil
Returns the nearest regions to either side of pos.
-
#merge_get_overlap(r) ⇒ GLib::SList<Gnm::Range>
regions that overlap the target region.
-
#merge_is_corner(pos) ⇒ Gnm::Range
top-left corner of a merged region.
-
#merge_remove(r) ⇒ Boolean
Remove a merged range.
-
#name ⇒ String
Name.
- #name=(name) ⇒ String
-
#names_check(r) ⇒ String
sheet!r is the target of a named range.
- #nominal_printarea ⇒ Gnm::Range
-
#objects_clear(r, t, pundo) ⇒ nil
Removes the objects in the region.
-
#objects_dup(dst, range) ⇒ nil
Clones the objects of the src sheet and attaches them into the dst sheet.
-
#objects_get(r, t) ⇒ GLib::SList<Gnm::SheetObject>
containing all objects of exactly the specified type (inheritance does not count) that are completely contained in r.
-
#outline_direction=(is_cols) ⇒ nil
When changing the placement of outline collapse markers the flags need to be recomputed.
- #protected=(protected) ⇒ Boolean
-
#protected? ⇒ Boolean
Protected.
- #protected_allow_cell_formatting=(protected_allow_cell_formatting) ⇒ Boolean
-
#protected_allow_cell_formatting? ⇒ Boolean
Protected-allow-cell-formatting.
- #protected_allow_column_formatting=(protected_allow_column_formatting) ⇒ Boolean
-
#protected_allow_column_formatting? ⇒ Boolean
Protected-allow-column-formatting.
- #protected_allow_delete_columns=(protected_allow_delete_columns) ⇒ Boolean
-
#protected_allow_delete_columns? ⇒ Boolean
Protected-allow-delete-columns.
- #protected_allow_delete_rows=(protected_allow_delete_rows) ⇒ Boolean
-
#protected_allow_delete_rows? ⇒ Boolean
Protected-allow-delete-rows.
- #protected_allow_edit_auto_filters=(protected_allow_edit_auto_filters) ⇒ Boolean
-
#protected_allow_edit_auto_filters? ⇒ Boolean
Protected-allow-edit-auto-filters.
- #protected_allow_edit_objects=(protected_allow_edit_objects) ⇒ Boolean
-
#protected_allow_edit_objects? ⇒ Boolean
Protected-allow-edit-objects.
- #protected_allow_edit_pivottable=(protected_allow_edit_pivottable) ⇒ Boolean
-
#protected_allow_edit_pivottable? ⇒ Boolean
Protected-allow-edit-pivottable.
- #protected_allow_edit_scenarios=(protected_allow_edit_scenarios) ⇒ Boolean
-
#protected_allow_edit_scenarios? ⇒ Boolean
Protected-allow-edit-scenarios.
- #protected_allow_insert_columns=(protected_allow_insert_columns) ⇒ Boolean
-
#protected_allow_insert_columns? ⇒ Boolean
Protected-allow-insert-columns.
- #protected_allow_insert_hyperlinks=(protected_allow_insert_hyperlinks) ⇒ Boolean
-
#protected_allow_insert_hyperlinks? ⇒ Boolean
Protected-allow-insert-hyperlinks.
- #protected_allow_insert_rows=(protected_allow_insert_rows) ⇒ Boolean
-
#protected_allow_insert_rows? ⇒ Boolean
Protected-allow-insert-rows.
- #protected_allow_row_formatting=(protected_allow_row_formatting) ⇒ Boolean
-
#protected_allow_row_formatting? ⇒ Boolean
Protected-allow-row-formatting.
- #protected_allow_select_locked_cells=(protected_allow_select_locked_cells) ⇒ Boolean
-
#protected_allow_select_locked_cells? ⇒ Boolean
Protected-allow-select-locked-cells.
- #protected_allow_select_unlocked_cells=(protected_allow_select_unlocked_cells) ⇒ Boolean
-
#protected_allow_select_unlocked_cells? ⇒ Boolean
Protected-allow-select-unlocked-cells.
- #protected_allow_sort_ranges=(protected_allow_sort_ranges) ⇒ Boolean
-
#protected_allow_sort_ranges? ⇒ Boolean
Protected-allow-sort-ranges.
-
#queue_redraw_range(range) ⇒ nil
This queues a redraw for the indicated range.
-
#queue_respan(start_row, end_row) ⇒ nil
queues a span generation for the selected rows.
- #range_bounding_box(r) ⇒ nil
-
#range_calc_spans(r, flags) ⇒ nil
This is used to re-calculate cell dimensions and re-render a cell's text.
-
#range_contains_merges_or_arrays(r, cc, cmd, merges, arrays) ⇒ Boolean
Check to see if the target region sheet!r contains any merged regions or arrays.
-
#range_has_heading(src, top, ignore_styles) ⇒ Boolean
Checks for a header row in sheet!src.
-
#range_splits_array(r, ignore, cc, cmd) ⇒ Boolean
Check the outer edges of range sheet!r to ensure that if an array is within it then the entire array is within the range.
-
#range_splits_region(r, ignore, cc, cmd) ⇒ Boolean
A utility to see whether moving the range r will split any arrays or merged regions.
-
#range_trim(r, cols, rows) ⇒ Boolean
This removes empty rows/cols from the right hand or bottom edges of the range depending on the value of cols or rows.
-
#range_unrender(r) ⇒ nil
Unrenders all cells in the given range.
-
#ranges_split_region(ranges, cc, cmd) ⇒ Boolean
A utility to see whether moving any of the ranges ranges will split any arrays or merged regions.
-
#recompute_spans_for_col(col) ⇒ nil
This routine recomputes the column span for the cells that touches the column.
- #redraw_all(header) ⇒ nil
-
#redraw_range(range) ⇒ nil
Redraw the indicated range, or at least the visible parts of it.
- #redraw_region(start_col, start_row, end_col, end_row) ⇒ nil
-
#region_queue_recalc(range) ⇒ nil
Queues things that depend on sheet!range for recalc.
-
#resize(cols, rows, cc, perr) ⇒ GOffice::Undo
The newly allocated #GOUndo.
-
#row_fetch(row) ⇒ Gnm::ColRowInfo
will not be the default Col::RowInfo and may be changed.
-
#row_get(row) ⇒ Gnm::ColRowInfo
if none has been allocated yet.
- #row_get_default_size_pixels ⇒ Integer
-
#row_get_default_size_pts ⇒ Float
This function returns the raw sum, no rounding etc.
-
#row_get_distance_pixels(from, to) ⇒ Integer
measured from the upper left corner.
-
#row_get_distance_pts(from, to) ⇒ Float
measured from the upper left corner.
-
#row_get_info(row) ⇒ Gnm::ColRowInfo
the default Col::RowInfo for rows and should not be changed.
- #row_is_hidden(row) ⇒ Boolean
- #row_set_default_size_pixels(height_pixels) ⇒ nil
- #row_set_default_size_pts(height_pts) ⇒ nil
-
#row_set_size_pixels(row, height_pixels, set_by_user) ⇒ nil
Sets height of a row in pixels, INCLUDING top and bottom margins, and the lower grid line.
-
#row_set_size_pts(row, height_pts, set_by_user) ⇒ nil
Sets height of a row in pts, INCLUDING top and bottom margins, and the lower grid line.
-
#row_size_fit_pixels(row, scol, ecol, ignore_strings) ⇒ Integer
This routine computes the ideal size for the row to make all data fit properly.
-
#rows ⇒ Integer
Rows.
- #rows=(rows) ⇒ Integer
- #scenario_add(sc) ⇒ nil
-
#scenario_find(name) ⇒ Gnm::Scenario
The found scenario, or nil.
-
#scenario_new(name) ⇒ Gnm::Scenario
The newly created Gnm::Scenario.
- #scenario_remove(sc) ⇒ nil
- #scrollbar_config ⇒ nil
- #selection_is_allowed(pos) ⇒ Boolean
-
#sheet_type ⇒ Gnm::SheetType
Sheet-type.
- #sheet_type=(sheet_type) ⇒ Gnm::SheetType
-
#size ⇒ Gnm::SheetSize
The sheet size.
-
#slicers_at_pos(pos) ⇒ Gnm::SheetSlicer
Nil or the Gnm::SheetSlicer in sheet that overlaps with pos.
- #solver_params=(param) ⇒ nil
-
#sort_setups ⇒ GLib::HashTable<GObject>
The sort setups for sheet.
-
#style_apply_border(range, borders) ⇒ nil
When a user applies a border to a region we attempt to remove the border from the opposing side to avoid overlapping border specifications.
-
#style_apply_col(col, style) ⇒ nil
NOTE: This is a simple wrapper for now.
-
#style_apply_pos(col, row, style) ⇒ nil
Apply a partial style to a single cell.
-
#style_apply_range(range, pstyle) ⇒ nil
Apply a partial style to a region.
-
#style_apply_range2(range, pstyle) ⇒ nil
Apply a partial style to a region.
-
#style_apply_row(row, style) ⇒ nil
NOTE: This is a simple wrapper for now.
-
#style_collect_conditions(r) ⇒ Gnm::StyleList
responsible for freeing.
-
#style_collect_hlinks(r) ⇒ Gnm::StyleList
responsible for freeing.
-
#style_collect_validations(r) ⇒ Gnm::StyleList
message.
-
#style_default ⇒ Gnm::Style
Default style for the sheet.
-
#style_find(st) ⇒ Gnm::Style
Looks up a style from the sheets collection.
-
#style_find_conflicts(r, style, borders) ⇒ Integer
Bitmask of conflicts.
-
#style_foreach(func, user_data) ⇒ nil
Executes func for each style in the sheet.
-
#style_get(col, row) ⇒ Gnm::Style
the specified cell position.
-
#style_get_auto_pattern_color ⇒ Gnm::Color
in this sheet.
-
#style_get_extent(r) ⇒ nil
A simple implementation that finds the smallest range containing all visible styles and containing res.
- #style_get_nondefault_extent(extent, src, col_defaults) ⇒ nil
- #style_get_nondefault_rows(col_defaults) ⇒ Integer
-
#style_get_range(r) ⇒ Gnm::StyleList
Get a list of rectangles and their associated styles.
-
#style_get_row(sr) ⇒ nil
A utility routine which efficiently retrieves a range of styles within a row.
- #style_get_row2(row) ⇒ Gnm::Style
- #style_init ⇒ nil
- #style_is_default(r, col_defaults) ⇒ Boolean
-
#style_most_common(is_col) ⇒ Gnm::Style
or row.
- #style_optimize ⇒ nil
- #style_range_foreach(r, func, user_data) ⇒ nil
-
#style_region_contains_link(r) ⇒ Gnm::HLink
Utility routine that checks to see if a region contains at least 1 hyper link and returns the 1st one it finds.
- #style_resize(cols, rows) ⇒ nil
-
#style_set_auto_pattern_color(grid_color) ⇒ nil
Set the color for rendering auto colored patterns in this sheet.
-
#style_set_list(corner, l, range_modify, data) ⇒ Gnm::SpanCalcFlags
Overwrites the styles of the ranges given by corner with the content of list.
-
#style_set_pos(col, row, style) ⇒ nil
Change the complete style for a single cell.
-
#style_set_range(range, style) ⇒ nil
Change the complete style for a region.
- #style_shutdown ⇒ nil
- #style_unlink(st) ⇒ nil
-
#style_update_grid_color(context) ⇒ nil
This function updates the color of gnm_style_border_none when the sheet to be rendered is known.
-
#tab_background ⇒ Gnm::Color
Tab-background.
- #tab_background=(tab_background) ⇒ Gnm::Color
-
#tab_foreground ⇒ Gnm::Color
Tab-foreground.
- #tab_foreground=(tab_foreground) ⇒ Gnm::Color
- #text_is_rtl=(text_is_rtl) ⇒ Boolean
-
#text_is_rtl? ⇒ Boolean
Text-is-rtl.
-
#update ⇒ nil
Should be called after a logical command has finished processing to request redraws for any pending events, and to update the various status regions.
-
#update_only_grid ⇒ nil
Should be called after a logical command has finished processing to request redraws for any pending events.
- #use_r1c1=(use_r1c1) ⇒ Boolean
-
#use_r1c1? ⇒ Boolean
Use-r1c1.
-
#visibility ⇒ Gnm::SheetVisibility
Visibility.
- #visibility=(visibility) ⇒ Gnm::SheetVisibility
-
#workbook ⇒ Gnm::Workbook
Workbook.
- #workbook=(workbook) ⇒ Gnm::Workbook
-
#zoom_factor ⇒ Float
Zoom-factor.
- #zoom_factor=(zoom_factor) ⇒ Float
Constructor Details
#initialize(wb, name, type, columns, rows) ⇒ Gnm::Sheet
Create a new Sheet of type type, and associate it with wb. The type cannot be changed later.
Class Method Details
.apply_style_undo(sr, style) ⇒ GOffice::Undo
Returns the new #GOUndo.
.cell_init ⇒ nil
.cell_queue_respan(cell) ⇒ nil
.cell_set_expr(cell, texpr) ⇒ nil
Marks the sheet as dirty Clears old spans. Flags status updates Queues recalcs
.cell_set_text(cell, str, markup) ⇒ nil
Marks the sheet as dirty Clears old spans. Flags status updates Queues recalcs
.cell_set_value(cell, v) ⇒ nil
Stores, without copying, the supplied value. It marks the sheet as dirty.
The value is rendered and spans are calculated. It queues a redraw and checks to see if the edit region or selection content changed.
NOTE : This DOES check for array partitioning.
.cell_shutdown ⇒ nil
.clear_region_undo(sr, clear_flags) ⇒ GOffice::Undo
Returns the new #GOUndo.
.conditions_share_conditions_add(conds) ⇒ Gnm::StyleConditions
nil if conds had not been seen before.
.conditions_share_conditions_remove(conds) ⇒ nil
This notifies the sheet conditions manager that one use of the shared conditions has gone away.
.flag_status_update_cell(cell) ⇒ nil
flag the sheet as requiring an update to the status display if the supplied cell location is the edit cursor, or part of the selected region.
Will cause the format toolbar, the edit area, and the auto expressions to be updated if appropriate.
.merge_relocate(ri, pundo) ⇒ nil
Shifts merged regions that need to move.
.move_range(rinfo, pundo, cc) ⇒ nil
Move a range as specified in rinfo report warnings to cc. if pundo is non-nil, invalidate references to the target region that are being cleared, and store the undo information in pundo. If it is nil do NOT INVALIDATE.
.objects_init ⇒ nil
.objects_relocate(rinfo, update, pundo) ⇒ nil
Uses the relocation info and the anchors to decide whether or not, and how to relocate objects when the grid moves (eg ins/del col/row).
.objects_shutdown ⇒ nil
.style_insdel_colrow(rinfo) ⇒ nil
Insert of delete style columns/rows.
For the insert case, we stretch the preceding column/row into there space we open.
.style_relocate(rinfo) ⇒ nil
Slide the styles from the origin region to the new position.
.suggest_size(cols, rows) ⇒ nil
This function produces a valid sheet size that is reasonable for data of cols columns by rows rows. If possible, this will be a size bigger in both dimensions. However, that is not always possible and when it is not, the suggested will be smaller in one or both directions.
.valid_size(cols, rows) ⇒ Boolean
Instance Method Details
#add_sort_setup(key, setup) ⇒ nil
#apply_border(range, borders) ⇒ nil
#apply_style(range, style) ⇒ nil
A mid level routine that applies the supplied partial style style to the target range and performs the necessary respanning and redrawing.
#apply_style_gi(range, style) ⇒ nil
A mid level routine that applies the supplied partial style style to the target range and performs the necessary respanning and redrawing.
#cell_create(col, row) ⇒ Gnm::Cell
Creates a new cell and adds it to the sheet hash.
#cell_fetch(col, row) ⇒ Gnm::Cell
If no cell existed at that location before, it is created.
#cell_foreach(callback, data) ⇒ nil
Call callback with an argument of data for each cell in the sheet
#cell_get(col, row) ⇒ Gnm::Cell
Returns a Gnm::Cell, or nil if the cell does not exist.
#cell_get_value(col, row) ⇒ Gnm::Value
value will be nil only when the cell does not exist.
#cell_positions(comments) ⇒ Array<Gnm::EvalPos>
Collects a GPtrArray of GnmEvalPos pointers for all cells in a sheet. No particular order should be assumed.
#cell_remove(cell, redraw, queue_recalc) ⇒ nil
Remove the cell from the web of dependencies of a sheet. Do NOT free the cell, optionally redraw it, optionally queue it for recalc.
#cell_set_text_gi(col, row, str) ⇒ nil
Sets the contents of a cell.
#cell_set_value_gi(col, row, v) ⇒ nil
Set the value of the cell at (col,row) to v.
The value is rendered and spans are calculated. It queues a redraw and checks to see if the edit region or selection content changed.
#cells(r) ⇒ Array<Gnm::Cell>
Retrieves an array of all cells inside r.
#cells_count ⇒ Integer
Returns the number of cells with content in the current workbook.
#cells_extent ⇒ Gnm::Range
Calculates the area occupied by cells, including empty cells.
#clear_region(start_col, start_row, end_col, end_row, clear_flags, cc) ⇒ nil
Clears a region of cells, formats, object, etc. as indicated by clear_flags.
#col_fetch(col) ⇒ Gnm::ColRowInfo
will not be the default Col::RowInfo and may be changed.
#col_get(col) ⇒ Gnm::ColRowInfo
if none has been allocated yet.
#col_get_default_size_pixels ⇒ Integer
#col_get_default_size_pts ⇒ Float
This function returns the raw sum, no rounding etc.
#col_get_distance_pixels(from, to) ⇒ Integer
measured from the upper left corner.
#col_get_distance_pts(from, to) ⇒ Float
measured from the upper left corner.
#col_get_info(col) ⇒ Gnm::ColRowInfo
the default Col::RowInfo for columns and should not be changed.
#col_is_hidden(col) ⇒ Boolean
#col_set_default_size_pixels(width_pixels) ⇒ nil
#col_set_default_size_pts(width_pts) ⇒ nil
#col_set_size_pixels(col, width_pixels, set_by_user) ⇒ nil
#col_set_size_pts(col, width_pts, set_by_user) ⇒ nil
Sets width of a col in pts, INCLUDING left and right margins, and the far grid line. This is a low level internal routine. It does NOT redraw, or reposition objects.
#col_size_fit_pixels(col, srow, erow, ignore_strings) ⇒ Integer
This routine computes the ideal size for the column to make the contents all cells in the column visible. flags doubles as an indicator that numeric cells should only cause a widening when they would otherwise cause "####" to be displayed.
#colrow_can_group(r, is_cols) ⇒ Boolean
false otherwise. You can invert the result if you need to find out if a group can be ungrouped.
#colrow_copy_info(colrow, is_cols, cri) ⇒ nil
#colrow_fetch(colrow, is_cols) ⇒ Gnm::ColRowInfo
#colrow_foreach(is_cols, first, last, callback, user_data) ⇒ Boolean
Iterates through the existing rows or columns within the range supplied. If a callback returns true, iteration stops.
#colrow_get(colrow, is_cols) ⇒ Gnm::ColRowInfo
#colrow_get_default(is_cols) ⇒ Gnm::ColRowInfo
Returns the default Col::RowInfo.
#colrow_get_distance_pixels(is_cols, from, to) ⇒ Integer
measured from the upper left corner.
#colrow_get_info(colrow, is_cols) ⇒ Gnm::ColRowInfo
#colrow_group_ungroup(r, is_cols, inc) ⇒ Boolean
#colrow_gutter(is_cols, max_outline) ⇒ nil
Set the maximum outline levels for cols or rows.
#colrow_optimize ⇒ nil
#columns ⇒ Integer
Returns columns.
#columns=(columns) ⇒ Integer
#conditions_add(r, style) ⇒ nil
#conditions_dump ⇒ nil
#conditions_init ⇒ nil
#conditions_link_unlink_dependents(r, qlink) ⇒ nil
#conditions_remove(r, style) ⇒ nil
#conditions_simplify ⇒ nil
#conditions_uninit ⇒ nil
#conventions ⇒ Gnm::Conventions
Returns conventions.
#conventions=(conventions) ⇒ Gnm::Conventions
#date_conv ⇒ GOffice::DateConventions
This is purely a convenience function to access the conventions used for the workbook. All sheets in a workbook share the same date conventions.
#delete_cols(col, count, pundo, cc) ⇒ Boolean
#delete_rows(row, count, pundo, cc) ⇒ Boolean
#destroy_contents ⇒ nil
#display_column_header=(display_column_header) ⇒ Boolean
#display_column_header? ⇒ Boolean
Returns display-column-header.
#display_formulas=(display_formulas) ⇒ Boolean
#display_formulas? ⇒ Boolean
Returns display-formulas.
#display_grid=(display_grid) ⇒ Boolean
#display_grid? ⇒ Boolean
Returns display-grid.
#display_outlines=(display_outlines) ⇒ Boolean
#display_outlines? ⇒ Boolean
Returns display-outlines.
#display_outlines_below=(display_outlines_below) ⇒ Boolean
#display_outlines_below? ⇒ Boolean
Returns display-outlines-below.
#display_outlines_right=(display_outlines_right) ⇒ Boolean
#display_outlines_right? ⇒ Boolean
Returns display-outlines-right.
#display_row_header=(display_row_header) ⇒ Boolean
#display_row_header? ⇒ Boolean
Returns display-row-header.
#display_zeros=(display_zeros) ⇒ Boolean
#display_zeros? ⇒ Boolean
Returns display-zeros.
#dup ⇒ Gnm::Sheet
Create a duplicate sheet.
#filter_at_pos(pos) ⇒ Gnm::Filter
Returns Gnm::Filter covering pos.
#filter_can_be_extended(f, r) ⇒ Gnm::Range
Returns Gnm::Range.
#filter_insdel_colrow(is_cols, is_insert, start, count, pundo) ⇒ nil
Adjust filters as necessary to handle col/row insertions and deletions
#filter_intersect_rows(from, to) ⇒ Gnm::Filter
intersects the rows from to to.
#find_boundary_horizontal(col, move_row, base_row, count, jump_to_boundaries) ⇒ Integer
Calculate the column index for the column which is count units from start_col doing bounds checking. If jump_to_boundaries is true then count must be 1 and the jump is to the edge of the logical range.
This routine implements the logic necessary for ctrl-arrow style movement. That is more complicated than simply finding the last in a list of cells with content. If you are at the end of a range it will find the start of the next. Make sure that is the sort of behavior you want before calling this.
#find_boundary_vertical(move_col, row, base_col, count, jump_to_boundaries) ⇒ Integer
Calculate the row index for the row which is count units from start_row doing bounds checking. If jump_to_boundaries is true then count must be 1 and the jump is to the edge of the logical range.
This routine implements the logic necessary for ctrl-arrow style movement. That is more complicated than simply finding the last in a list of cells with content. If you are at the end of a range it will find the start of the next. Make sure that is the sort of behavior you want before calling this.
#find_sort_setup(key) ⇒ GObject
Returns the found sort setup or nil.
#flag_recompute_spans ⇒ nil
Flag the sheet as requiring a full span recomputation the next time sheet_update is called.
#flag_status_update_range(range) ⇒ nil
flag the sheet as requiring an update to the status display if the supplied cell location contains the edit cursor, or intersects of the selected region.
Will cause the format toolbar, the edit area, and the auto expressions to be updated if appropriate.
#flag_style_update_range(range) ⇒ nil
Flag format changes that will require updating the format indicators.
#foreach_cell_in_range(flags, r, callback, closure) ⇒ Gnm::Value
For each existing cell in the range specified, invoke the callback routine. If the only_existing flag is passed, then callbacks are only invoked for existing cells.
Note: this function does not honour the CELL_ITER_IGNORE_SUBTOTAL flag. NOTE: between 0.56 and 0.57, the traversal order changed. The order is now
1 2 3
4 5 6
7 8 9
(This appears to be the order in which XL looks at the values of ranges.) If your code depends on any particular ordering, please add a very visible comment near the call.
#foreach_cell_in_region(flags, start_col, start_row, end_col, end_row, callback, closure) ⇒ Gnm::Value
For each existing cell in the range specified, invoke the callback routine. If the only_existing flag is passed, then callbacks are only invoked for existing cells.
Note: this function does not honour the CELL_ITER_IGNORE_SUBTOTAL flag. NOTE: between 0.56 and 0.57, the traversal order changed. The order is now
1 2 3
4 5 6
7 8 9
(This appears to be the order in which XL looks at the values of ranges.) If your code depends on any particular ordering, please add a very visible comment near the call.
#foreach_name(func, data) ⇒ nil
Executes func for each name in sheet.
#freeze_object_views(qfreeze) ⇒ nil
#get_comment(pos) ⇒ Gnm::Comment
If there is a cell comment at pos in sheet return it.
Caller does get a reference to the object if it exists.
#get_extent(spans_and_merges_extend, include_hidden) ⇒ Gnm::Range
calculates the area occupied by cell data.
NOTE: When spans_and_merges_extend is true, this function will calculate all spans. That might be expensive.
NOTE: This refers to visible contents. Cells with empty values, including formulas with such values, are *ignored.
#get_printarea(include_styles, ignore_printarea) ⇒ Gnm::Range
#get_size2(wb) ⇒ Gnm::SheetSize
Determines the sheet size, either of sheet if that is non-nil or of wb's default sheet. One of sheet and wb must be non-nil.
#get_view(wbv) ⇒ Gnm::SheetView
Find the SheetView corresponding to the supplied wbv.
#guess_data_range(region) ⇒ nil
Makes a guess at the logical range containing region and returns the possibly expanded result in region. The range is also expanded upwards.
#guess_region(region) ⇒ nil
Makes a guess at the logical containing region and returns the possibly expanded result in region.
#hlink_find(pos) ⇒ Gnm::HLink
Returns the found Gnm::HLink.
#insert_cols(col, count, pundo, cc) ⇒ Boolean
#insert_rows(row, count, pundo, cc) ⇒ Boolean
#is_cell_empty(col, row) ⇒ Boolean
#is_region_empty(r) ⇒ Boolean
contain any cells
#mark_dirty ⇒ nil
#merge_add(r, clear, cc) ⇒ Boolean
Add a range to the list of merge targets. Checks for array splitting returns true if there was an error. Queues a respan. Only queues a redraw if clear is true.
#merge_contains_pos(pos) ⇒ Gnm::Range
nil if pos is not within a merged region.
#merge_find_bounding_box(r) ⇒ nil
Extends r such that no merged range is split by its boundary.
#merge_get_adjacent(pos, left, right) ⇒ nil
Returns the nearest regions to either side of pos.
#merge_get_overlap(r) ⇒ GLib::SList<Gnm::Range>
regions that overlap the target region. The list is ordered from top to bottom and RIGHT TO LEFT (by start coord).
#merge_is_corner(pos) ⇒ Gnm::Range
top-left corner of a merged region.
#merge_remove(r) ⇒ Boolean
Remove a merged range. Queues a redraw.
#name ⇒ String
Returns name.
#name=(name) ⇒ String
#names_check(r) ⇒ String
sheet!r is the target of a named range.
Preference is given to workbook scope over sheet.
#nominal_printarea ⇒ Gnm::Range
#objects_clear(r, t, pundo) ⇒ nil
Removes the objects in the region. t #GType
#objects_dup(dst, range) ⇒ nil
Clones the objects of the src sheet and attaches them into the dst sheet
#objects_get(r, t) ⇒ GLib::SList<Gnm::SheetObject>
containing all objects of exactly the specified type (inheritance does not count) that are completely contained in r.
#outline_direction=(is_cols) ⇒ nil
When changing the placement of outline collapse markers the flags need to be recomputed.
#protected=(protected) ⇒ Boolean
#protected? ⇒ Boolean
Returns protected.
#protected_allow_cell_formatting=(protected_allow_cell_formatting) ⇒ Boolean
#protected_allow_cell_formatting? ⇒ Boolean
Returns protected-allow-cell-formatting.
#protected_allow_column_formatting=(protected_allow_column_formatting) ⇒ Boolean
#protected_allow_column_formatting? ⇒ Boolean
Returns protected-allow-column-formatting.
#protected_allow_delete_columns=(protected_allow_delete_columns) ⇒ Boolean
#protected_allow_delete_columns? ⇒ Boolean
Returns protected-allow-delete-columns.
#protected_allow_delete_rows=(protected_allow_delete_rows) ⇒ Boolean
#protected_allow_delete_rows? ⇒ Boolean
Returns protected-allow-delete-rows.
#protected_allow_edit_auto_filters=(protected_allow_edit_auto_filters) ⇒ Boolean
#protected_allow_edit_auto_filters? ⇒ Boolean
Returns protected-allow-edit-auto-filters.
#protected_allow_edit_objects=(protected_allow_edit_objects) ⇒ Boolean
#protected_allow_edit_objects? ⇒ Boolean
Returns protected-allow-edit-objects.
#protected_allow_edit_pivottable=(protected_allow_edit_pivottable) ⇒ Boolean
#protected_allow_edit_pivottable? ⇒ Boolean
Returns protected-allow-edit-pivottable.
#protected_allow_edit_scenarios=(protected_allow_edit_scenarios) ⇒ Boolean
#protected_allow_edit_scenarios? ⇒ Boolean
Returns protected-allow-edit-scenarios.
#protected_allow_insert_columns=(protected_allow_insert_columns) ⇒ Boolean
#protected_allow_insert_columns? ⇒ Boolean
Returns protected-allow-insert-columns.
#protected_allow_insert_hyperlinks=(protected_allow_insert_hyperlinks) ⇒ Boolean
#protected_allow_insert_hyperlinks? ⇒ Boolean
Returns protected-allow-insert-hyperlinks.
#protected_allow_insert_rows=(protected_allow_insert_rows) ⇒ Boolean
#protected_allow_insert_rows? ⇒ Boolean
Returns protected-allow-insert-rows.
#protected_allow_row_formatting=(protected_allow_row_formatting) ⇒ Boolean
#protected_allow_row_formatting? ⇒ Boolean
Returns protected-allow-row-formatting.
#protected_allow_select_locked_cells=(protected_allow_select_locked_cells) ⇒ Boolean
#protected_allow_select_locked_cells? ⇒ Boolean
Returns protected-allow-select-locked-cells.
#protected_allow_select_unlocked_cells=(protected_allow_select_unlocked_cells) ⇒ Boolean
#protected_allow_select_unlocked_cells? ⇒ Boolean
Returns protected-allow-select-unlocked-cells.
#protected_allow_sort_ranges=(protected_allow_sort_ranges) ⇒ Boolean
#protected_allow_sort_ranges? ⇒ Boolean
Returns protected-allow-sort-ranges.
#queue_redraw_range(range) ⇒ nil
This queues a redraw for the indicated range. The redraw will happen when Gnumeric returns to the gui main loop.
#queue_respan(start_row, end_row) ⇒ nil
queues a span generation for the selected rows. the caller is responsible for queuing a redraw
#range_bounding_box(r) ⇒ nil
#range_calc_spans(r, flags) ⇒ nil
This is used to re-calculate cell dimensions and re-render a cell's text. eg. if a format has changed we need to re-render the cached version of the rendered text in the cell.
#range_contains_merges_or_arrays(r, cc, cmd, merges, arrays) ⇒ Boolean
Check to see if the target region sheet!r contains any merged regions or arrays. Report an error to the cc if it is supplied. arrays.
#range_has_heading(src, top, ignore_styles) ⇒ Boolean
Checks for a header row in sheet!src. If top is true it looks for a header row from the top and if false it looks for a header col from the left
#range_splits_array(r, ignore, cc, cmd) ⇒ Boolean
Check the outer edges of range sheet!r to ensure that if an array is within it then the entire array is within the range. ignore is useful when src and dest ranges may overlap.
#range_splits_region(r, ignore, cc, cmd) ⇒ Boolean
A utility to see whether moving the range r will split any arrays or merged regions.
#range_trim(r, cols, rows) ⇒ Boolean
This removes empty rows/cols from the right hand or bottom edges of the range depending on the value of cols or rows.
#range_unrender(r) ⇒ nil
Unrenders all cells in the given range. If r is nil, the all cells in the sheet are unrendered.
#ranges_split_region(ranges, cc, cmd) ⇒ Boolean
A utility to see whether moving any of the ranges ranges will split any arrays or merged regions.
#recompute_spans_for_col(col) ⇒ nil
This routine recomputes the column span for the cells that touches the column.
#redraw_all(header) ⇒ nil
#redraw_range(range) ⇒ nil
Redraw the indicated range, or at least the visible parts of it.
#redraw_region(start_col, start_row, end_col, end_row) ⇒ nil
#region_queue_recalc(range) ⇒ nil
Queues things that depend on sheet!range for recalc.
If range is nil the entire sheet is used.
#resize(cols, rows, cc, perr) ⇒ GOffice::Undo
Returns the newly allocated #GOUndo.
#row_fetch(row) ⇒ Gnm::ColRowInfo
will not be the default Col::RowInfo and may be changed.
#row_get(row) ⇒ Gnm::ColRowInfo
if none has been allocated yet.
#row_get_default_size_pixels ⇒ Integer
#row_get_default_size_pts ⇒ Float
This function returns the raw sum, no rounding etc.
#row_get_distance_pixels(from, to) ⇒ Integer
measured from the upper left corner.
#row_get_distance_pts(from, to) ⇒ Float
measured from the upper left corner.
#row_get_info(row) ⇒ Gnm::ColRowInfo
the default Col::RowInfo for rows and should not be changed.
#row_is_hidden(row) ⇒ Boolean
#row_set_default_size_pixels(height_pixels) ⇒ nil
#row_set_default_size_pts(height_pts) ⇒ nil
#row_set_size_pixels(row, height_pixels, set_by_user) ⇒ nil
Sets height of a row in pixels, INCLUDING top and bottom margins, and the lower grid line.
#row_set_size_pts(row, height_pts, set_by_user) ⇒ nil
Sets height of a row in pts, INCLUDING top and bottom margins, and the lower grid line. This is a low level internal routine. It does NOT redraw, or reposition objects.
#row_size_fit_pixels(row, scol, ecol, ignore_strings) ⇒ Integer
This routine computes the ideal size for the row to make all data fit properly.
#rows ⇒ Integer
Returns rows.
#rows=(rows) ⇒ Integer
#scenario_add(sc) ⇒ nil
#scenario_find(name) ⇒ Gnm::Scenario
Returns the found scenario, or nil.
#scenario_new(name) ⇒ Gnm::Scenario
Returns the newly created Gnm::Scenario.
#scenario_remove(sc) ⇒ nil
#scrollbar_config ⇒ nil
#selection_is_allowed(pos) ⇒ Boolean
#sheet_type ⇒ Gnm::SheetType
Returns sheet-type.
#sheet_type=(sheet_type) ⇒ Gnm::SheetType
#size ⇒ Gnm::SheetSize
Returns the sheet size.
#slicers_at_pos(pos) ⇒ Gnm::SheetSlicer
Returns nil or the Gnm::SheetSlicer in sheet that overlaps with pos.
#solver_params=(param) ⇒ nil
#sort_setups ⇒ GLib::HashTable<GObject>
Returns the sort setups for sheet.
#style_apply_border(range, borders) ⇒ nil
When a user applies a border to a region we attempt to remove the border from the opposing side to avoid overlapping border specifications. eg if we apply a top border to a range, we would clear the bottom border of the range offset upwards.
#style_apply_col(col, style) ⇒ nil
NOTE: This is a simple wrapper for now. When we support col/row styles it will make life easier.
Apply a partial style to a full col.
#style_apply_pos(col, row, style) ⇒ nil
Apply a partial style to a single cell
#style_apply_range(range, pstyle) ⇒ nil
Apply a partial style to a region.
#style_apply_range2(range, pstyle) ⇒ nil
Apply a partial style to a region.
#style_apply_row(row, style) ⇒ nil
NOTE: This is a simple wrapper for now. When we support col/row styles it will make life easier.
Apply a partial style to a full col.
#style_collect_conditions(r) ⇒ Gnm::StyleList
responsible for freeing.
#style_collect_hlinks(r) ⇒ Gnm::StyleList
responsible for freeing.
#style_collect_validations(r) ⇒ Gnm::StyleList
message.
#style_default ⇒ Gnm::Style
Returns default style for the sheet.
#style_find(st) ⇒ Gnm::Style
Looks up a style from the sheets collection. Linking if necessary.
#style_find_conflicts(r, style, borders) ⇒ Integer
Returns bitmask of conflicts.
#style_foreach(func, user_data) ⇒ nil
Executes func for each style in the sheet.
#style_get(col, row) ⇒ Gnm::Style
the specified cell position
#style_get_auto_pattern_color ⇒ Gnm::Color
in this sheet.
#style_get_extent(r) ⇒ nil
A simple implementation that finds the smallest range containing all visible styles and containing res.
#style_get_nondefault_extent(extent, src, col_defaults) ⇒ nil
#style_get_nondefault_rows(col_defaults) ⇒ Integer
#style_get_range(r) ⇒ Gnm::StyleList
Get a list of rectangles and their associated styles. Caller is responsible for freeing. Note that when a range is given, the resulting ranges are relative to the input range.
#style_get_row(sr) ⇒ nil
A utility routine which efficiently retrieves a range of styles within a row. It also merges adjacent borders as necessary.
#style_get_row2(row) ⇒ Gnm::Style
#style_init ⇒ nil
#style_is_default(r, col_defaults) ⇒ Boolean
#style_most_common(is_col) ⇒ Gnm::Style
or row.
#style_optimize ⇒ nil
#style_range_foreach(r, func, user_data) ⇒ nil
#style_region_contains_link(r) ⇒ Gnm::HLink
Utility routine that checks to see if a region contains at least 1 hyper link and returns the 1st one it finds.
#style_resize(cols, rows) ⇒ nil
#style_set_auto_pattern_color(grid_color) ⇒ nil
Set the color for rendering auto colored patterns in this sheet.
#style_set_list(corner, l, range_modify, data) ⇒ Gnm::SpanCalcFlags
Overwrites the styles of the ranges given by corner with the content of list. Optionally transposing the ranges
#style_set_pos(col, row, style) ⇒ nil
Change the complete style for a single cell.
#style_set_range(range, style) ⇒ nil
Change the complete style for a region.
#style_shutdown ⇒ nil
#style_unlink(st) ⇒ nil
#style_update_grid_color(context) ⇒ nil
This function updates the color of gnm_style_border_none when the sheet to be rendered is known. gnm_style_border_none tells how to render the grid. Because the grid color may be different for different sheets, the functions which render the grid call this function first. The rule for selecting the grid color, which is the same as in Excel, is: - if the auto pattern color is default (which is black), the grid color is gray, as returned by style_color_grid (). - otherwise, the auto pattern color is used for the grid.
#tab_background ⇒ Gnm::Color
Returns tab-background.
#tab_background=(tab_background) ⇒ Gnm::Color
#tab_foreground ⇒ Gnm::Color
Returns tab-foreground.
#tab_foreground=(tab_foreground) ⇒ Gnm::Color
#text_is_rtl=(text_is_rtl) ⇒ Boolean
#text_is_rtl? ⇒ Boolean
Returns text-is-rtl.
#update ⇒ nil
Should be called after a logical command has finished processing to request redraws for any pending events, and to update the various status regions
#update_only_grid ⇒ nil
Should be called after a logical command has finished processing to request redraws for any pending events
#use_r1c1=(use_r1c1) ⇒ Boolean
#use_r1c1? ⇒ Boolean
Returns use-r1c1.
#visibility ⇒ Gnm::SheetVisibility
Returns visibility.
#visibility=(visibility) ⇒ Gnm::SheetVisibility
#workbook ⇒ Gnm::Workbook
Returns workbook.
#workbook=(workbook) ⇒ Gnm::Workbook
#zoom_factor ⇒ Float
Returns zoom-factor.