Class: Gnm::App
- Inherits:
-
Object
- Object
- Gnm::App
- Defined in:
- (unknown)
Class Method Summary collapse
-
.add_extra_ui(group_name, actions, layout, domain) ⇒ Gnm::AppExtraUI
The newly allocated Gnm::AppExtraUI.
-
.app ⇒ GObject::Object
The Gnm::App instance.
-
.clipboard_area_get ⇒ Gnm::Range
The current range in the clipboard.
-
.clipboard_clear(drop_selection) ⇒ nil
Clear and free the contents of the clipboard if it is not empty.
-
.clipboard_contents_get ⇒ Gnm::CellRegion
The current contents of the clipboard.
-
.clipboard_cut_copy(wbc, is_cut, sv, area, animate_range) ⇒ nil
When Cutting we Clear and free the contents of the clipboard and save the sheet and area to be cut.
-
.clipboard_cut_copy_obj(wbc, is_cut, sv, objects) ⇒ nil
Different than copying/cutting a region, this can actually cut an object of Sheet::Object.
- .clipboard_invalidate_sheet(sheet) ⇒ nil
- .clipboard_is_cut ⇒ Boolean
- .clipboard_is_empty ⇒ Boolean
-
.clipboard_sheet_get ⇒ Gnm::Sheet
The current clipboard #Sheet.
-
.clipboard_sheet_view_get ⇒ Gnm::SheetView
The current clipboard Sheet::View.
- .clipboard_unant ⇒ nil
-
.create_opener_filter(openers) ⇒ GObject
Creates a Gtk::FileFilter from the list of file types supported by the openers in the list.
- .display_dpi_get(horizontal) ⇒ Float
- .dpi_to_pixels ⇒ Float
-
.flag_windows_changed_ ⇒ nil
An internal utility routine to flag a regeneration of the window lists.
-
.foreach_extra_ui(func, data) ⇒ nil
Applies func to each Gnm::AppExtraUI.
- .history_add(filename, mimetype) ⇒ nil
-
.history_get_list(max_elements) ⇒ GLib::SList<String>
creating it if necessary.
- .initial_open_complete ⇒ Boolean
-
.recalc ⇒ nil
Recalculate everything dirty in all workbooks that have automatic recalc turned on.
- .recalc_clear_caches ⇒ nil
- .recalc_finish ⇒ nil
- .recalc_start ⇒ nil
- .remove_extra_ui(extra_ui) ⇒ nil
- .sanity_check ⇒ nil
- .shutting_down ⇒ Boolean
-
.workbook_get_by_index(i) ⇒ Gnm::Workbook
Get nth workbook.
-
.workbook_get_by_name(name, ref_uri) ⇒ Gnm::Workbook
The #Workbook or nil.
-
.workbook_list ⇒ GLib::List<Gnm::Workbook>
The workbook list.
-
.workbook_list_add(wb) ⇒ nil
Add wb to the application's list of workbooks.
-
.workbook_list_remove(wb) ⇒ nil
Remove wb from the application's list of workbooks.
Instance Method Summary collapse
-
#file_history_list ⇒ GObject
File-history-list.
- #file_history_list=(file_history_list) ⇒ GObject
- #initial_open_complete=(initial_open_complete) ⇒ Boolean
-
#initial_open_complete? ⇒ Boolean
Initial-open-complete.
- #shutting_down=(shutting_down) ⇒ Boolean
-
#shutting_down? ⇒ Boolean
Shutting-down.
Class Method Details
.add_extra_ui(group_name, actions, layout, domain) ⇒ Gnm::AppExtraUI
Returns the newly allocated Gnm::AppExtraUI.
.app ⇒ GObject::Object
Returns the Gnm::App instance.
.clipboard_area_get ⇒ Gnm::Range
Returns the current range in the clipboard.
.clipboard_clear(drop_selection) ⇒ nil
Clear and free the contents of the clipboard if it is not empty.
.clipboard_contents_get ⇒ Gnm::CellRegion
Returns the current contents of the clipboard.
.clipboard_cut_copy(wbc, is_cut, sv, area, animate_range) ⇒ nil
When Cutting we Clear and free the contents of the clipboard and save the sheet and area to be cut. DO NOT ACTUALLY CUT! Paste will move the region if this was a cut operation.
When Copying we Clear and free the contents of the clipboard and COPY the designated region into the clipboard.
we need to pass wbc as a control rather than a simple command-context so that the control can claim the selection.
.clipboard_cut_copy_obj(wbc, is_cut, sv, objects) ⇒ nil
Different than copying/cutting a region, this can actually cut an object of Sheet::Object
.clipboard_invalidate_sheet(sheet) ⇒ nil
.clipboard_is_cut ⇒ Boolean
.clipboard_is_empty ⇒ Boolean
.clipboard_sheet_get ⇒ Gnm::Sheet
Returns the current clipboard #Sheet.
.clipboard_sheet_view_get ⇒ Gnm::SheetView
Returns the current clipboard Sheet::View.
.clipboard_unant ⇒ nil
.create_opener_filter(openers) ⇒ GObject
Creates a Gtk::FileFilter from the list of file types supported by the openers in the list.
.display_dpi_get(horizontal) ⇒ Float
.dpi_to_pixels ⇒ Float
.flag_windows_changed_ ⇒ nil
An internal utility routine to flag a regeneration of the window lists
.foreach_extra_ui(func, data) ⇒ nil
Applies func to each Gnm::AppExtraUI.
.history_add(filename, mimetype) ⇒ nil
.history_get_list(max_elements) ⇒ GLib::SList<String>
creating it if necessary. freed along with the strings in it.
.initial_open_complete ⇒ Boolean
.recalc ⇒ nil
Recalculate everything dirty in all workbooks that have automatic recalc turned on.
.recalc_clear_caches ⇒ nil
.recalc_finish ⇒ nil
.recalc_start ⇒ nil
.remove_extra_ui(extra_ui) ⇒ nil
.sanity_check ⇒ nil
.shutting_down ⇒ Boolean
.workbook_get_by_index(i) ⇒ Gnm::Workbook
Get nth workbook. Index is zero-based.
.workbook_get_by_name(name, ref_uri) ⇒ Gnm::Workbook
Returns the #Workbook or nil.
.workbook_list ⇒ GLib::List<Gnm::Workbook>
Returns the workbook list.
.workbook_list_add(wb) ⇒ nil
Add wb to the application's list of workbooks.
.workbook_list_remove(wb) ⇒ nil
Remove wb from the application's list of workbooks.
Instance Method Details
#file_history_list ⇒ GObject
Returns file-history-list.
#file_history_list=(file_history_list) ⇒ GObject
#initial_open_complete=(initial_open_complete) ⇒ Boolean
#initial_open_complete? ⇒ Boolean
Returns initial-open-complete.
#shutting_down=(shutting_down) ⇒ Boolean
#shutting_down? ⇒ Boolean
Returns shutting-down.