Class: Gnm::Dao
- Inherits:
-
Gtk::Box
- Object
- Gtk::Box
- Gnm::Dao
- Defined in:
- (unknown)
Class Method Summary collapse
-
.adjust(dao, cols, rows) ⇒ nil
shrinks the dao to the given cols/rows (or enlarges it if dao was a singleton).
- .append_date(buf) ⇒ nil
-
.autofit_columns(dao) ⇒ nil
fits all columns to their content.
- .autofit_rows(dao) ⇒ nil
-
.autofit_these_columns(dao, from_col, to_col) ⇒ nil
Fits the specified columns to their content.
- .autofit_these_rows(dao, from_row, to_row) ⇒ nil
- .cell_is_visible(dao, col, row) ⇒ Boolean
-
.command_descriptor(dao, format, result) ⇒ String
Uses format to provide a string to be used as command descriptor for undo/redo.
- .find_name(sheet, col, row) ⇒ String
-
.format_output(dao, cmd) ⇒ Boolean
Formats the output range according to the settings.
- .free(dao) ⇒ nil
- .get_cellref(dao, x, y) ⇒ Gnm::Expr
- .get_colrow_state_list(dao, is_cols) ⇒ Gnm::ColRowStateList
- .get_rangeref(dao, ax, ay, bx, by) ⇒ Gnm::Expr
- .go_data_vector(dao, ax, ay, bx, by) ⇒ GOffice::Data
-
.init(dao, type) ⇒ Gnm::data_analysis_output_t
Initialize dao to given type.
- .init_new_sheet(dao) ⇒ Gnm::data_analysis_output_t
- .load_from_value(dao, output_range) ⇒ Gnm::data_analysis_output_t
-
.prepare_output(wbc, dao, name) ⇒ nil
prepares the output by creating a new sheet or workbook as appropriate.
- .put_formulas(dao) ⇒ Boolean
- .redraw_respan(dao) ⇒ nil
-
.set_align(dao, col1, row1, col2, row2, align_h, align_v) ⇒ nil
set the given horizontal and vertical alignment to a cell range.
- .set_array_expr(dao, col, row, cols, rows, expr) ⇒ nil
-
.set_bold(dao, col1, row1, col2, row2) ⇒ nil
sets the given cell range to bold.
- .set_border(dao, col1, row1, col2, row2, elem, border, color, orientation) ⇒ nil
-
.set_cell(dao, col, row, text) ⇒ nil
set cell to a string.
-
.set_cell_array_expr(dao, col, row, expr) ⇒ nil
Sets a singleton array expression.
-
.set_cell_comment(dao, col, row, comment) ⇒ nil
set a cell comment.
-
.set_cell_expr(dao, col, row, expr) ⇒ nil
Sets a singleton array expression.
- .set_cell_float(dao, col, row, v) ⇒ nil
-
.set_cell_float_na(dao, col, row, v, is_valid) ⇒ nil
set cell to a gnm_float or NA as appropriate.
- .set_cell_int(dao, col, row, v) ⇒ nil
-
.set_cell_na(dao, col, row) ⇒ nil
set cell to NA.
-
.set_cell_printf(dao, col, row, fmt, array) ⇒ nil
create format string and set cell.
-
.set_cell_value(dao, col, row, v) ⇒ nil
set cell to a value.
-
.set_colors(dao, col1, row1, col2, row2, fore, back) ⇒ nil
set the given cell range to given background and text colors.
- .set_colrow_state_list(dao, is_cols, list) ⇒ nil
-
.set_date(dao, col1, row1, col2, row2) ⇒ nil
set the given cell range to date format.
-
.set_format(dao, col1, row1, col2, row2, format) ⇒ nil
set the given cell range to given format.
-
.set_italic(dao, col1, row1, col2, row2) ⇒ nil
sets the given cell range to italic.
- .set_merge(dao, col1, row1, col2, row2) ⇒ nil
- .set_omit_so(dao, omit) ⇒ nil
-
.set_percent(dao, col1, row1, col2, row2) ⇒ nil
set the given cell range to percent format.
- .set_sheet_object(dao, col, row, so) ⇒ nil
- .surrender_so(dao) ⇒ GLib::SList<GObject::Object>
-
.write_header(dao, toolname, title, sheet) ⇒ nil
Writes the titles of a report.
Instance Method Summary collapse
- #focus_output_range ⇒ nil
- #get_data(dao) ⇒ Boolean
- #initialize(wbcg, inplace_str) ⇒ Gtk::Widget constructor
- #inplace=(inplace_str) ⇒ nil
- #is_finite ⇒ Boolean
- #is_ready ⇒ Boolean
- #load_range(range) ⇒ nil
- #set_put(show_put, put_formulas) ⇒ nil
Constructor Details
#initialize(wbcg, inplace_str) ⇒ Gtk::Widget
Class Method Details
.adjust(dao, cols, rows) ⇒ nil
shrinks the dao to the given cols/rows (or enlarges it if dao was a singleton)
.append_date(buf) ⇒ nil
.autofit_columns(dao) ⇒ nil
fits all columns to their content
.autofit_rows(dao) ⇒ nil
.autofit_these_columns(dao, from_col, to_col) ⇒ nil
Fits the specified columns to their content
.autofit_these_rows(dao, from_row, to_row) ⇒ nil
.cell_is_visible(dao, col, row) ⇒ Boolean
.command_descriptor(dao, format, result) ⇒ String
Uses format to provide a string to be used as command descriptor for undo/redo
.find_name(sheet, col, row) ⇒ String
.format_output(dao, cmd) ⇒ Boolean
Formats the output range according to the settings
.free(dao) ⇒ nil
.get_cellref(dao, x, y) ⇒ Gnm::Expr
.get_colrow_state_list(dao, is_cols) ⇒ Gnm::ColRowStateList
.get_rangeref(dao, ax, ay, bx, by) ⇒ Gnm::Expr
.go_data_vector(dao, ax, ay, bx, by) ⇒ GOffice::Data
.init(dao, type) ⇒ Gnm::data_analysis_output_t
Initialize dao to given type.
.init_new_sheet(dao) ⇒ Gnm::data_analysis_output_t
.load_from_value(dao, output_range) ⇒ Gnm::data_analysis_output_t
.prepare_output(wbc, dao, name) ⇒ nil
prepares the output by creating a new sheet or workbook as appropriate
.put_formulas(dao) ⇒ Boolean
.redraw_respan(dao) ⇒ nil
.set_align(dao, col1, row1, col2, row2, align_h, align_v) ⇒ nil
set the given horizontal and vertical alignment to a cell range
.set_array_expr(dao, col, row, cols, rows, expr) ⇒ nil
.set_bold(dao, col1, row1, col2, row2) ⇒ nil
sets the given cell range to bold
.set_border(dao, col1, row1, col2, row2, elem, border, color, orientation) ⇒ nil
.set_cell(dao, col, row, text) ⇒ nil
set cell to a string
.set_cell_array_expr(dao, col, row, expr) ⇒ nil
Sets a singleton array expression.
.set_cell_comment(dao, col, row, comment) ⇒ nil
set a cell comment
.set_cell_expr(dao, col, row, expr) ⇒ nil
Sets a singleton array expression.
.set_cell_float(dao, col, row, v) ⇒ nil
.set_cell_float_na(dao, col, row, v, is_valid) ⇒ nil
set cell to a gnm_float or NA as appropriate
.set_cell_int(dao, col, row, v) ⇒ nil
.set_cell_na(dao, col, row) ⇒ nil
set cell to NA
.set_cell_printf(dao, col, row, fmt, array) ⇒ nil
create format string and set cell.
.set_cell_value(dao, col, row, v) ⇒ nil
set cell to a value
Note: the rows/cols specification for all dao_set_cell_... commands are relative to the location of the output
.set_colors(dao, col1, row1, col2, row2, fore, back) ⇒ nil
set the given cell range to given background and text colors
.set_colrow_state_list(dao, is_cols, list) ⇒ nil
.set_date(dao, col1, row1, col2, row2) ⇒ nil
set the given cell range to date format
.set_format(dao, col1, row1, col2, row2, format) ⇒ nil
set the given cell range to given format
.set_italic(dao, col1, row1, col2, row2) ⇒ nil
sets the given cell range to italic
.set_merge(dao, col1, row1, col2, row2) ⇒ nil
.set_omit_so(dao, omit) ⇒ nil
.set_percent(dao, col1, row1, col2, row2) ⇒ nil
set the given cell range to percent format
.set_sheet_object(dao, col, row, so) ⇒ nil
.surrender_so(dao) ⇒ GLib::SList<GObject::Object>
.write_header(dao, toolname, title, sheet) ⇒ nil
Writes the titles of a report.