1. 20 Oct, 2010 1 commit
  2. 12 Jul, 2010 1 commit
    • Andreas J. Guelzow 's avatar
      Add menu item to wrap SORT around an existing range. · 1d9a24c7
      Andreas J. Guelzow authored
      2010-07-12  Andreas J. Guelzow <aguelzow@pyrshep.ca>
      
      	* component/Gnumeric-embed.xml.in: add submenu to Insert menu
      	* src/GNOME_Gnumeric-gtk.xml.in: add submenu to Insert menu
      	* src/HILDON_Gnumeric-gtk.xml.in: add submenu to Insert menu
      	* src/wbc-gtk-actions.c (cb_insert_sort_*cending): new actions
      	(permanent_actions): add MenuInsertFormulaWrap, InsertSortDecreasing
      	  and InsertSortIncreasing
      	* src/wbc-gtk.c (wbcg_menu_state_update): handle the above new actions
      	* src/workbook-cmd-format.c (workbook_cmd_wrap_sort): new
      	(cb_get_cell_content): new
      	* src/workbook-cmd-format.h (workbook_cmd_wrap_sort): new
      1d9a24c7
  3. 08 Jul, 2010 1 commit
    • Andreas J. Guelzow 's avatar
      Add menu item to autofit column width or row height based on the selection only. [#125595] · 41a7b257
      Andreas J. Guelzow authored
      2010-07-08  Andreas J. Guelzow <aguelzow@pyrshep.ca>
      
      	* component/Gnumeric-embed.xml.in: add menu items to Format->Cells
      	* src/GNOME_Gnumeric-gtk.xml.in: ditto
      	* src/HILDON_Gnumeric-gtk.xml.in: ditto
      	* src/colrow.c (colrow_set_sizes): add arguments to restrict the
      	  range of autofitting.
      	* src/colrow.h (colrow_set_sizes): add arguments
      	* src/commands.c (cmd_autofit_selection): new
      	(cmd_resize_colrow): adjust call of colrow_set_sizes
      	* src/commands.h (cmd_autofit_selection): new
      	* src/stf-parse.c (stf_parse_sheet): adjust call of colrow_set_sizes
      	* src/undo.c (gnm_undo_colrow_set_sizes_new): ditto
      	(gnm_undo_colrow_set_sizes_undo): adjust call of colrow_set_sizes
      	* src/undo.h (_GNMUndoColrowSetSizesClass): add from/to specifiers
      	(gnm_undo_colrow_set_sizes_new): ditto
      	* src/wbc-gtk-actions.c (cb_format_cells_auto_fit_height): new
      	(cb_format_cells_auto_fit_width): new
      	(FormatCellsFitHeight): new action
      	(FormatCellsFitWidth): new action
      	* src/workbook-cmd-format.c (workbook_cmd_autofit_selection): new
      	* src/workbook-cmd-format.h (workbook_cmd_autofit_selection): new
      41a7b257
  4. 16 Nov, 2007 1 commit
    • Jody Goldberg's avatar
      add G_BEGIN_DECL/G_END_DECL around the header content. · f85b4715
      Jody Goldberg authored
              reformat the guard decls
              Add a vim/emacs fmt line
              fix namespacing of preproc flags from configure.in that go into public headers
      
              2007-10-12  Jody Goldberg <jody@gnome.org>
      
              	* libspreadsheet-1.7.pc.in : Set the cflags to include the target, and
              	  subdir until we fix the header includes and rename /src.
              	  Add LIBDIR/include to cflags
              	  Add PluginDir.
      
      svn path=/trunk/; revision=16149
      f85b4715
  5. 08 Aug, 2007 1 commit
  6. 16 Jul, 2007 1 commit
  7. 11 Nov, 2006 1 commit
    • Jody Goldberg's avatar
      renamed from wbcg_scroll_wheel_support_cb and make static. · d53e9dc3
      Jody Goldberg authored
      2006-11-11  Jody Goldberg <jody@gnome.org>
      
      	* src/workbook-control-gui.c (cb_scroll_wheel) : renamed from
      	  wbcg_scroll_wheel_support_cb and make static.
      
      2006-11-11  Jody Goldberg <jody@gnome.org>
      
      	* src/GNOME_Gnumeric-gtk.xml.in : Remove inc/dec indent from the menu.
      	  They do not belong there.  Remove them from the accel list too, gtk
      	  silently invalidates accels for Tab.  Handle them manually.
      	* src/gnumeric-canvas.c (gnm_canvas_key_mode_sheet) : here.  Use the
      	  new functions from ...
      	* src/workbook-cmd-format.c (workbook_cmd_inc_indent) : here.  That
      	  are transfered from ...
      	* src/wbcg-actions.c : here.
      d53e9dc3
  8. 06 Jul, 2004 1 commit
    • Jody Goldberg's avatar
      apply theme style for graphs to do a full init. · a9f2efca
      Jody Goldberg authored
      2004-07-06  Jody Goldberg <jody@gnome.org>
      
      	* graph/gog-graph.c (gog_graph_init) : apply theme style for graphs
      	  to do a full init.
      
      2004-07-04  Jody Goldberg <jody@gnome.org>
      
      	* graph/gog-styled-object.c (gog_styled_object_parent_changed) :
      	    initialize the style completely using the theme when we have a
      	    theme.
      
      2004-07-05  Jody Goldberg <jody@gnome.org>
      
      	* ms-excel-read.c (excel_read_IMDATA) : Add an optional mechanism for
      	  doing something with the data.  Still not entirely sure what format
      	  it is.  I'd hoped BMP but that does not appear to work.
      
      	* biff-types.h : Add a few more records
      
      2004-07-05  Jody Goldberg <jody@gnome.org>
      
      	* src/workbook-cmd-format.c (workbook_cmd_mutate_borders) :  move into
      	  wbcg-actions.c
      
      	* src/sheet-autofill.c (fill_item_new) : fix an old leak
      
      	* src/gnumeric-canvas.c (gnm_canvas_key_mode_sheet) :  no need to
      	  check for accelerators here any more.
      	(gnm_canvas_commit_cb) :  nor here.
      	(gnm_check_ctrl_mask) :  delete and make these real accelerators the
      	  way they belong.
      
      	* src/wbcg-actions.c
      	(cb_format_as_number) : a real accelerator
      	(cb_format_as_currency) : ditto
      	(cb_format_as_accounting) : ditto
      	(cb_format_as_percentage) : ditto
      	(cb_format_as_scientific) : ditto
      	(cb_format_as_time) : ditto
      	(cb_format_as_date) : ditto
      	(cb_format_add_borders) : ditto
      	(cb_format_clear_borders) : ditto
      
      	* src/GNOME_Gnumeric-gtk.xml :  Add the new accelerators
      	* src/application.c (gnumeric_application_setup_icons) : Rename the
      	  icons to match the verbs (Percentage, Accounting)
      a9f2efca
  9. 06 Mar, 2004 1 commit
    • Jody Goldberg's avatar
      new. (ms_obj_attr_get_markup) : new. (ms_obj_attr_destroy) : teach about · 09ad1ad2
      Jody Goldberg authored
      2004-03-06  Jody Goldberg <jody@gnome.org>
      
      	* ms-obj.c (ms_obj_attr_new_markup) : new.
      	(ms_obj_attr_get_markup) : new.
      	(ms_obj_attr_destroy) : teach about PangoAttrList
      	(append_txorun) : new.
      	(ms_obj_read_pre_biff8_obj) : font colours come with the FONT info in
      	  txoruns.  The docs are wrong the colour in the record is useless.
      	  Remove some extra debug spew.
      
      	* ms-excel-read.c (excel_wb_get_fmt) : no point using pointers to
      	  ints.  Just use G_INT_TO_POINTER.
      	(ms_sheet_get_fmt) : ditto.
      	(excel_read_BOUNDSHEET) : ditto.
      	(excel_workbook_new) : ditto.
      	(excel_workbook_reset_style) : ditto.
      	(base_char_width_for_read) : ditto.
      	(excel_read_FORMAT) : ditto.
      	(excel_read_FONT) : ditto.
      	(excel_get_font) : ditto.
      	  Also no need for this to take a sheet, take a workbook.
      	(biff_font_data_destroy) : free the new optional attr lists.
      	(ms_sheet_create_obj) : Use markup rather than a single colour.
      	(biff_guint16_hash (guint16 const *d)
      	(biff_guint32_hash (guint32 const *d)
      	(biff_guint16_equal) : delete.
      	(biff_guint32_equal) : delete.
      	(excel_get_style_from_xf) : remove some useless code now that font
      	  substitution is handled at the app level.
      	(add_attr) : new.
      	(ms_wb_get_font_markup) : new.  build a PangoAttrList from a FONT record.
      
      	* ms-container.c (ms_container_get_fmt) : automatically chain up
      	(ms_container_get_markup) : new.
      
      	* ms-chart.c (chart_get_fmt) : delete.
      
      2004-03-06  Jody Goldberg <jody@gnome.org>
      
      	* src/sheet-object-graphic.c (sheet_object_text_finalize) : release
      	  the markup.
      	(sheet_object_text_new_view) : set the attributes.
      	(sheet_object_text_clone) : handle the attributes.
      	(gnm_so_text_set_font_color) : delete.
      	(gnm_so_text_set_markup) : new.
      
      2004-03-05  Jody Goldberg <jody@gnome.org>
      
      	* src/colrow.c (colrow_set_sizes) : force re-render of variable width cells
      	(colrow_restore_state_group) : ditto
      
      	* src/rendered-value.c (rendered_value_render) : privatize
      
      	* src/style.c (required_updates_for_style) : Now that rendered values
      	  contain size info too we can dispense with the distinction between
      	  rendering and sizing.  Without this changing the font size would not
      	  resize because the rendered value cached the size and was not
      	  re-rendered until draw, rather than at row-height calc.
      09ad1ad2
  10. 30 Jul, 2001 1 commit
  11. 16 Dec, 2000 1 commit
    • Jody Goldberg's avatar
      Tidy up the naming scheme a bit. s/row_col/colrow/ s/col_row/colrow/ · 30c9841e
      Jody Goldberg authored
      
      2000-12-15  Jody Goldberg <jgoldberg@home.com>
      
      	Tidy up the naming scheme a bit.
      	s/row_col/colrow/
      	s/col_row/colrow/
      	s/SheetSelection/Range/
      
      	* src/workbook-cmd-format.c (workbook_cmd_resize_selected_colrow) :
      	  Merged from workbook_cmd_format_column_width and.
      	  & workbook_cmd_format_row_height
      
      	* src/item-bar.c (item_bar_end_resize) : Call scg_colrow_size_set
      	  directly.
      	(item_bar_class_init) : remove the SIZE_CHANGED signal.
      
      	* src/selection.c (sheet_selection_full_cols_rows) : merge
      	  sheet_selection_full_cols & sheet_selection_full_rows.
      30c9841e
  12. 31 Oct, 2000 1 commit
    • Jody Goldberg's avatar
      Set LC_MONETARY and LC_NUMERIC. Ditto. (xml_workbook_read) : Ditto. · ffac72f5
      Jody Goldberg authored
      
      2000-10-31  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-view.c (wb_view_auto_expr) : Set LC_MONETARY and
      	  LC_NUMERIC.
      	* src/xml-io.c (xml_workbook_write) : Ditto.
      	(xml_workbook_read) : Ditto.
      
      2000-10-31  Jody Goldberg <jgoldberg@home.com>
      
      	* src/dialogs/*.[ch] : WorkbookControlGUI is now required for gui
      	  operations.  A WorkbookView is required to know which sheet is the
      	  current.
      
      	* src/xml-io.c : We now load/save WorkbookViews.
      
      	* src/xml-io-autoft.c : Adjust to signature changes.
      
      	* src/workbook.c : Split the View into WorkbookView.
      	  Abstract the Controler interface, and move the GUI specific
      	  implementation of the Controler into WorkbookControlGUI.
      
      	* src/workbook-view.c : Complete rewrite with correct semantics.
      
      	* src/workbook-private.h : Move all the GUI specific stuff into
      	  WorkbookControlGUI were it belongs.
      
      	* src/workbook-private.c (workbook_private_class_init) : Fix typo.
      
      	* src/workbook-edit.c : These are now WorkbookControlGUI specific.
      	  We should rename the functions eventually.
      	* src/workbook-format-toolbar.c : Ditto.
      	* src/workbook-object-toolbar.c : Ditto.
      
      	* src/workbook-cmd-format.c : Adjust to signature changes.
      	  and use WorkbookControlGUI were necessary.
      
      	* src/style.c (style_font_new_from) : Delete dead code.
      
      	* src/solver-lp.c : Adjust to signature changes.
      	* src/sort.c : Ditto.
      	* src/stf.c : Ditto. Make dialog conditional on gui-ness.
      
      	* src/sheet.c (sheet_new_sheet_view) : IS_SHEET checks for NULL.
      	(sheet_detach_sheet_view) : renamed from sheet_destroy_sheet_view
      	  and only take a SheetView as argument.
      	(sheet_new) : Do not create a view by default.
      	(sheet_update_zoom_controls) : foreach control.
      	(sheet_update_editpos) : ditto.
      	(sheet_update) : handle multiple views and controls.
      
      	* src/sheet-view.c : Commands take WorkbookControls rather than
      	  CommandContexts.
      
      	* src/sheet-object-widget.c : Most things take WorkbookControlGUI
      	  rather than Workbooks.
      
      	* src/sheet-object-container.c (sheet_object_container_new_view) :
      	  Use the uic from the WorkbookControlGUI.
      
      	* src/sheet-control.c : New file. Unused so far.
      	  cp sheet-view.c sheet-control.c
      	  s/SheetView/SheetControl/
      
      	* src/print.c : Make the GUI dependency explicit.
      	  At some point the setup dialog should be split out of here.
      
      	* src/main.c (gnumeric_main) : Explicitly create a WorkbookControlGUI
      	  only adding sheets if nothing was loaded.  Improve handing of exit
      	  request while loading.
      
      	* src/item-grid.c (item_grid_draw) : Filter the edit cell from here
      	  because we know which control to use.
      	(context_menu_hander) : Switch to WorkbookControlGUI.
      	(item_grid_popup_menu) : Ditto.
      
      	* src/item-edit.c : Everything takes a WorkbookControlGUI inplace of a
      	  Workbook now.
      
      	* src/item-cursor.c (item_cursor_target_region_ok) : dialog_run takes
      	  a WorkbookControlGUI.
      	(item_cursor_do_action) : All the commands take WorkbookControls.
      
      	* src/item-bar.c (item_bar_event) : item_grid_popup_menu takes a
      	  SheetView now.
      
      	* src/history.c : Take WorkbookControlGUI.
      	  Update all controls for each workbook.
      
      	* src/gui-clipboard.c : Use 'unsigned char'
      
      	* src/gnumeric.xml : More work to split commands from layout.
      
      	* src/gnumeric-util.c (gnumeric_no_modify_array_notice) : Delete.
      	(gnumeric_notice) : Take a WorkbookControlGUI.
      	(gnumeric_wb_dialog_run) : Ditto.
      	(gnumeric_dialog_run) : Ditto.
      	(gnumeric_dialog_show) : Ditto.
      	(gnumeric_set_transient) : Ditto.
      	(gnumeric_glade_xml_new) : Ditto.
      	(gnumeric_non_modal_dialog) : Ditto.
      	(gnumeric_inject_widget_into_bonoboui) : Ditto.
      
      	* src/gnumeric-sheet.c : SheetView now has a WorkbookControlGUI member
      	  to keep track of which control it is associated with. Use it.
      
      	* src/file.c : Adjust to lots of signature changes.
      	  We now load/save WorkbookView rather than Workbook.
      	  Add a placeholder struct IOContext so that we can consider doing
      	  smarter import/export and dealing with warnings and missing things
      	  smoothly.
      
      	* src/eval.c (workbook_recalc_all) : After a recalc update all views.
      
      	* src/commands.c (undo_redo_menu_labels) : foreach control.
      	(command_undo) : ditto.
      	(command_redo) : ditto.
      	(command_push_undo) : change signature.  The workbookcontrol
      	  now acts as the command context.
      
      	* src/cmd-edit.c : Adjust to signature changes.
      
      	* src/clipboard.c : split the gui specific X handlers out into a new
      	  file.
      	* src/gui-clipboard.c :  here.
      
      	* src/cell-draw.c (cell_draw) : Do not test the sheet for whether or
      	  not to we are editing.  That is at the control level.  Test it in
      	  the rendering loop.
      
      	* src/bonobo-io.c : FIXME. adjusted to signature changes.  Totatly
      	  broken for now.  This needs a View rather than a Model and should be
      	  associated with something.
      
      	* src/application.c (application_workbook_list_add) : New function.
      	(application_workbook_list_remove) : New function.
      	(application_workbook_list) : New function.
      	(application_clipboard_copy) : foreach control.
      	(application_clipboard_cut) : foreach control.
      	(application_clipboard_clear) : foreach control.
      	(application_workbook_foreach) : renamed from workbook_foreach.
      	(application_set_selected_sheet) : FIXME. Disabled for now.
      
      	* src/about.c (cb_closed) : Associated the flag with the control
      	  directly.
      	(dialog_about) : dialogs are associated with gui-controls.
      
      	* src/analysis-tools.c : change all dialog signatures to handle MVC
      	  split of workbook.
      
      2000-10-30  Jody Goldberg <jgoldberg@home.com>
      
      	* src/Makefile.am : Add new command-context,  io-context,
      	  workbook-view, workbook-control, workbook-control-gui files.
      	  Remove old command-context-gui, command-context-corba, and disable
      	  corba-* for now.
      
      2000-10-29  Jody Goldberg <jgoldberg@home.com>
      
      	* idl/gnumeric-graphs.idl : Remove studdly caps.  I wish people would
      	  make up their minds.
      
      	* idl/Gnumeric.idl : Remove Workbook::show.
      
      2000-10-29  Jody Goldberg <jgoldberg@home.com>
      
      	* BUGS : Update.
      	* NEWS : Update.
      	* TODO : Update.
      ffac72f5
  13. 14 Sep, 2000 1 commit
    • Jody Goldberg's avatar
      Use sheet_selection_full_rows and workbook_cmd_format_row_height. · 01af4e73
      Jody Goldberg authored
      
      2000-09-14  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-view.c (sheet_view_row_size_changed) : Use
      	  sheet_selection_full_rows and workbook_cmd_format_row_height.
      	(sheet_view_col_size_changed) : Use
      	  sheet_selection_full_cols and workbook_cmd_format_column_width.
      
      	* src/item-grid.c (context_row_height) : Use sheet_dialog_set_row_height.
      	(context_col_width) : Use sheet_dialog_set_column_width.
      
      	* src/workbook-cmd-format.c (sheet_dialog_set_column_width) : Split
      	  the gui into here.
      	(workbook_cmd_format_column_width) : And the action into here.  Use
      	  the appropriate commands to get undo support.
      	(workbook_cmd_format_column_auto_fit) : Use workbook_cmd_format_column_width.
      	(sheet_dialog_set_row_height) : Split the gui into here.
      	(workbook_cmd_format_row_height) : And the action into here.  Use
      	  the appropriate commands to get undo support.
      	(workbook_cmd_format_row_auto_fit) : Use workbook_cmd_format_row_height.
      
      	* src/selection.c (sheet_row_selection_type) : moved from sheet.c
      	(sheet_col_selection_type) : moved from sheet.c
      	(sheet_selection_full_cols) : new routine.
      	(sheet_selection_full_rows) : new routine.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet) : Don't jump
      	  directly to the edit line with F2.  Start editing in sheet first.
      
      	* src/selection.c (selection_foreach_range) : Add the option of
      	  iterating the list backwards.
      
      	* src/workbook-cmd-format.c (cb_colrow_collect) : New function.
      
      	* src/workbook-cmd-format.c (workbook_cmd_format_column_width) : Fix.
      	(workbook_cmd_format_row_height) : Fix.
      
      	* src/sheet-object-graphic.c (sheet_object_graphic_update_bounds) :
      	  new function.
      	(sheet_object_filled_new_view) : Set the bounds when a new view is
      	  constructed.  DO NOT rely on the realized list, new objects are not
      	  added until AFTER construction.
      	* src/sheet-object.c (sheet_object_update_bounds) : delete.
      
      2000-09-13  Jody Goldberg <jgoldberg@home.com>
      
      	* src/expr.c (cellref_relocate) : Return more information so that we
      	  can differentiate relocating rows, cols, or both.
      	(cellrange_relocate) : Use the new information to extend the
      	  heuristic for when to relocate a range.  In the past we assumed that
      	  unless both ends of the range were moving we should not do the
      	  relocation.  It seems that there are other cases which will also
      	  relocate.  When inserting/deleting rows/cols or cutting a region
      	  that includes an entire side of the source region we should
      	  relocate.
      	  Sadly this patch is incomplete.  It relocates too much now.
      	  If you cut B2 and paste it into B3 the source region A1:B2 will
      	  resize to A1:B3 even though it should not.  At least ins/del row/col
      	  will now work.
      
      2000-09-12  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook.c (create_bonobo_object) : Fixed.
      
      	* src/sheet-object-bonobo.c (sheet_object_bonobo_new_from_oid) :
      	  Delete duplicate function.
      
      2000-09-11  Jody Goldberg <jgoldberg@home.com>
      
      	* src/commands.c (cmd_ins_del_row_col_{undo,redo}) : Insert/delete
      	  rows/cols clears the cut buffer.  Copies are preserved.
      
      	* src/sheet-object.c (cb_obj_create_button_release) :  remove the
      	  bonobo specific file handling.  That is to be done earlier
      	  or in a different place.  This routine is strictly for placement,
      	  not content.
      	(sheet_mode_clear) : Move the deactivation here for now.  Hopefully
      	  move it to a virtual.
      
      	* src/about.c (dialog_about) : suppress warning.
      01af4e73
  14. 11 Sep, 2000 1 commit
    • Jody Goldberg's avatar
      The initial version of active objects. · ccdc4a78
      Jody Goldberg authored
      2000-09-10  Jody Goldberg <jgoldberg@home.com>
      
      	* src/xml-io.c (xml_read_sheet_object) : objects have their positions
      	  set after creation, not before.
      	NOTE : This routine is incomplete.  It does not handle all of the
      	  objects.  It is questionable whether or not it even belongs here.
      	  We may want to encapsulate the persistence on a per object basis.
      	(xml_sheet_read) : localize and improve variable naming.
      
      	* src/workbook.c : Add an ifdef around the GnomeUI handler in bonobo
      	  mode.  Move the object creation cruft into its own file.
      	(select_component_id) : new function.
      	(create_embedded_component_cmd) : simplify.
      	(create_embedded_item_cmd) : simplify.
      	(create_button_cmd) : Delete.
      	(create_checkbox_cmd) : Delete.
      	(create_line_cmd) : Delete.
      	(create_arrow_cmd) : Delete.
      	(create_rectangle_cmd) : delete.
      	(create_ellipse_cmd) : delete.
      	(cut_cmd) : simplify object handling.
      	(insert_object_cmd) : Use sheet_object_bonobo_new_from_oid.
      	(do_focus_sheet) : Handle object toolbar too.
      	(workbook_detach_sheet) : Before messing with the views go back to
      	  simple edit mode.
      
      	* src/workbook-object-toolbar.c (create_object_command) : new
      	  function.
      	(cmd_create_*) : Use here.
      
      	* src/workbook-edit.c (workbook_edit_set_sensitive) : Add the object
      	  toolbar.
      
      	* src/sheet-object.c (sheet_release_coords) : delete.
      	(sheet_object_destroy) : simplify.
      	(SheetObject::end_popup) : remove.
      	(SheetObject::populate_menu) : rename from start_popup.
      	(SheetObject::new_view) : rename from realize.
      	(SheetObject::user_config) : New virtual.
      	(sheet_object_construct) : initialize dragging to FALSE.
      	  s/Sheet::objects/Sheet::sheet_objects/
      	(sheet_object_drop_file) : Moved.
      	(sheet_object_realize) : No need for SheetView::temp_item.
      	(button_widget_create) : delete.
      	(checkbox_widget_create) : delete.
      	(sheet_object_create_button) : delete.
      	(sheet_object_create_checkbox) : delete.
      	(create_object) : delete.
      	(cb_obj_create_motion) : rename from sheet_motion_notify.  Simplify.
      	  Rubber band a rectangle rather than the actual object.
      	  Keep track of whether or not a we have resized larger than the
      	  minimum 5x5 size.
      	(cb_obj_create_button_release) : rename from sheet_button_release.
      	  Change behavior to have the release do the realizing and bound
      	  setting.  Set the bounds to the current coord ONLY if we have moved
      	  enough, otherwise just use the default size of the object tranformed
      	  to the location of the original button press.
      	(shutdown_sheet_object_creation) : merge into button release.
      	(sheet_leave_notify) : Delete.
      	(sheet_button_press) : Delete.
      	(sheet_object_begin_creation) : Delete.
      	(sheet_finish_object_creation) : merge into button release and clear
      	  out all the cruft requiring removal of signals.
      	(sheet_mode_clear) : new function.  Does some object management.
      	(sheet_set_mode_type) : delete.
      	(sheet_set_mode_type_full) : delete content.  Split logical action into.
      	(sheet_mode_edit) : here.
      	(sheet_mode_edit_object) : here.
      	(sheet_mode_create_object) : and here.
      	(sheet_object_destroy_control_points) : be more pedantic a about
      	  checking that we have a valid view.
      	(sheet_object_stop_editing) : Adjust for new object editing semantics.
      	(set_item_x) : Merge this
      	(set_item_y) : and this.
      	(set_item_x_y) : into here.  And add the logic to call
      	  new_control_point.
      	(new_control_point) : Set the cursor here.
      	(update_bbox) : Recall that the bounding box excludes the far coords.
      	(control_point_handle_event) : No need to make object the current, if
      	  we are being called we are current.
      	(sheet_object_populate_menu) : rename from sheet_object_start_popup.
      	(sheet_object_end_popup) : delete.
      	(sheet_object_canvas_event) : adjust to function renaming.
      	(sheet_object_widget_event) : delete.
      	(sheet_object_widget_handle) : delete.
      	(sheet_object_start_editing) : delete, no need.  update_bbox does all
      	  of this.
      	(sheet_object_make_current) : delete.
      	(sheet_object_insert) : this was not what its name suggested.  It was
      	  a rather specialized bonobo utility.  Move it where it belongs.
      
      	* src/sheet-object-widget.c : Rewrite.
      
      	* src/sheet-object-item.c (sheet_object_item_new_view) : rename from
      	  sheet_object_item_realize.
      
      	* src/sheet-object-graphic.c (sheet_object_graphic_new_view) :
      	  rename from sheet_object_graphic_realize.
      	(sheet_object_filled_new_view) : renamed from sheet_object_filled_realize.
      	(sheet_object_create_line) : No need to take position, do that later.
      	(sheet_object_create_filled) : Ditto.
      
      	* src/sheet-object-container.c (user_activation_request_cb) : Adjust
      	  to changes in sheet mode handling.
      	(sheet_object_container_new_view) : rename from sheet_object_container_realize.
      	(sheet_object_container_new_bonobo) : No need to take pos info, that
      	  is set later.
      	(sheet_object_container_new_object) : Ditto.
      	(sheet_object_container_new_file) : Moved and renamed from sheet_object_drop_file.
      
      	* src/sheet-object-bonobo.c (sheet_object_bonobo_construct) : No need
      	  to take position info.  Bounds are set later.
      	(sheet_object_bonobo_new_from_oid) : Move from sheet_object_insert
      	  which was much to generic a name and location for this.
      
      	* src/print.c (print_sheet_range) : Adjust to rename of the
      	  sheet_object list.
      
      	* src/pixmaps.h : Remove the pixmaps that moved to the object toolbar.
      
      	* src/item-grid.c (item_grid_button_1) : Handle object creation and
      	  finishing object editing directly, no more need for adding and
      	  removing handlers.  Adjust arg to be a Button event.
      	(item_grid_event) : Add a new cursor for object creation.
      	(item_grid_event) : Do not change to edit mode until we know why the
      	  button was pressed.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_object) :
      	  s/sheet_set_mode_type/sheet_mode_edit/
      	(gnumeric_sheet_key_press) : Adjust to new mode scheme.
      	(gnumeric_sheet_key_release) : Ditto.
      	(gnumeric_sheet_filenames_dropped) : Ditto.
      
      	* src/gnumeric.h : Add fwd decl of SheetObject.
      
      	* src/gnumeric-sheet.h : delete GnumericSheet::mode .
      
      	* src/gnumeric-type-util.h : Rename GNUMERIC_MAKE_TYPE_WITH_PARENT
      	  to GNUMERIC_MAKE_TYPE_WITH_CLASS.  That makes more sense.
      
      	* src/eval.c (invalidate_refs) : Use dependent_set_expr.
      	(cell_eval) : New need to check generation If we are called we are out
      	  of date.
      
      	* src/dependent.c (dependent_eval) : moved from eval.c.
      	(dependent_type_register) : New routine.
      	(dependent_set_expr) ; Ditto.
      	(dependent_debug_name) : Use the new registry.
      
      	* src/dependent.h : Reorder flags, remove explicit types for graphs
      	  and checkboxes.  Those are handled by the virtual table.
      
      	* src/commands.c : s/PARENT/CLASS/
      
      	* src/cell.h : Reorder the CellFlags.
      
      	* src/bonobo-io.c (gnumeric_bonobo_obj_read) : Do not pass the
      	  position to sheet_object_containter_new_object.
      
      	* src/Makefile.am : Add workbook-object-toolbar.[ch]
      	  and graph-series.[ch]
      	  merge the libraries from the two idl files.
      
      2000-09-09  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-view.c (sheet_view_construct) : Init control points to NULL.
      	(SheetView::temp_item) : remove this.
      
      	* src/sheet.c (sheet_new) : Init the members associated with objects.
      	(sheet_destroy) : Destroy objects.
      	(Sheet::mode) : remove.
      
      	* src/gnumeric.xml : Add a label for the selection menu.
      
      	* src/sheet-object-container.c (sheet_object_container_realize) :
      	  Fix warning.
      
      2000-09-07  Jody Goldberg <jgoldberg@home.com>
      
      	* src/item-bar.c (colrow_tip_setlabel) : mark the size tooltips as
      	  containing pts.
      	* src/dialogs/row-height.glade :
      	* src/dialogs/col-width.glade : Ditto.
      ccdc4a78
  15. 18 Jan, 2000 1 commit
    • Jody Goldberg's avatar
      - gnome-xml is is CVS now. Prepare for release and require it. · 943bf40e
      Jody Goldberg authored
      - Row/Col hiding.
      
      2000-01-18  Jody Goldberg <jgoldberg@home.com>
      
      	* src/xml-io.c (xml_write_colrow_info) : Save whether or not a row/col
      	  is hidden.
      	(xml_read_colrow_info) : Restore the hidden-ness.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_compute_visible_ranges) :
      	  Col/Row pixel width < 0 indicates the row is hidden.
      	(gnumeric_sheet_make_cell_visible) : Ditto.
      	(colrow_set_units) : Ditto.
      	(sheet_{row,col}_info_set_{height,width}) : Ditto.
      	(sheet_{row,col}_set_internal_{height,width}) : Ditto.
      	(sheet_{row,col}_get_distance) : Ditto.
      	(sheet_{row,col}_get_unit_distance) : Ditto.
      	(sheet_{row,col}_is_hidden) : Utility routines.
      	(sheet_find_boundary_{vertical,horizontal}) : Skip hidden rows/cols.
      	(sheet_row_col_visible) : Mark a contiguous set of rows/cols as
      	  visible or hidden.
      
      	* src/sheet.c (sheet_compute_col_row_new_size) : Ditto.
      
      	* src/item-bar.c (item_bar_draw) : Ditto.
      	(is_pointer_on_division) : Ditto.
      	(get_col_from_pos) : Ditto.
      
      	* src/item-grid.c (item_grid_find_{col,row}) : Ditto.
      	(item_grid_draw) : Skip cells in hidden rows cols.
      	(item_grid_paint_empty_cell) : Ditto, just in case.
      	(item_grid_draw_cell) : Ditto.
      	(context_{col,row}_{hide,unhide}) : New functions.
      	(item_grid_context_menu) : Add new menu items.
      
      	* src/selection.c (selection_row_col_visible) : New function.
      	cb_row_col_visibility : Utility function.
      
      	* src/workbook-cmd-format.c
      	(workbook_cmd_format_{column,row}_{hide,unhide}) : New functions.
      	(workbook_cmd_format_column_std_width) : Stub.
      	(workbook_cmd_format_row_std_height) : Stub.
      
      	* src/workbook.c : Add hide/unhide to the row/col format menus.
      
      2000-01-18  Jody Goldberg <jgoldberg@home.com>
      
      	* configure.in : Add test for gnome-xml >= 1.8.5. This is
      	  required to support the problems with versions 1.8.[234].
      	* gnumeric.spec.in : Ditto.
      943bf40e
  16. 26 Oct, 1999 1 commit
  17. 22 Sep, 1999 1 commit
    • Miguel de Icaza's avatar
      Set size here to get correct feedback results. · b99fe1a1
      Miguel de Icaza authored
      1999-09-21  Miguel de Icaza  <miguel@gnu.org>
      
      	* src/sheet.c (cell_is_homogeneous): Set size here to get correct
      	feedback results.
      
      	* src/workbook-format-toolbar.c (change_font_in_selection_cmd):
      	Simplified to use apply_style_to_selection
      	(apply_style_to_selection): Big nice wrapper.
      	(change_font_size_in_selection_cmd): Implement.
      
      	* src/pixmaps.h: Removed GNUMERIC_TEST_ACTIVE_OBJECT for release.
      
      	* src/workbook-format-toolbar.c: More toolbar work, now we have
      	color selectors for foreground and background.
      
      	* src/workbook.c: Split the format toolbar
      
      	* src/workbook-format-toolbar.[ch]: Now they contain the
      	format-toolbar code.
      
      	* src/sheet-object-graphic.c (sheet_object_filled_realize): Width
      	is now in points, not pixels.
      
      	* src/widgets/gtk-combo-box.[ch]: New files, they implement an
      	extensible ComboBox for Gtk.
      
      	* src/widgets/color-combo.[ch]: New files, they implement the
      	ColorCombo box.
      b99fe1a1
  18. 17 Sep, 1999 1 commit
    • Miguel de Icaza's avatar
      New file. Moved a bunch of commands here, and move to be moved. · dd6fabaa
      Miguel de Icaza authored
      1999-09-17  Miguel de Icaza  <miguel@gnu.org>
      
      	* src/workbook-cmd.c: New file.  Moved a bunch of commands here,
      	and move to be moved.
      	Implemented the set money format;   Implemented the percent formt.
      
      1999-09-16  Miguel de Icaza  <miguel@gnu.org>
      
      	* src/sheet.c (sheet_update_controls, cell_is_homogeneous):
      	Include checks for font name and font size.
      
      	* src/dialogs/dialog-printer-setup.c (dialog_printer_setup): Add
      	call to gnome_dialog_set_parent here.
      
      	* src/tools.h: New file, moved here all the tools declarations.
      	Please, try to keep indentation for public functions as the rest
      	of the Gnumeric ones.
      
      	* src/workbook.c: Enable comands Format/Column, Format/Row and
      	Format/Sheet.
      	(create_format_toolbar): Add font selector toolbar widget.
      	(change_font_in_selection_cmd): New routine.  Applies a font to a
      	selection in the workbook.
      	(workbook_feedback_set): Upgraded feedback interface
      
      	* src/sheet-view.c (sheet_view_row_size_changed): There is no need
      	to call gnumeric_compute_visible_ranges, the sheet_row_set_height
      	code does this.
      
      	* src/item-bar.c (item_bar_event): Support also row-autosizing.
      
      	* src/sheet.c (sheet_col_size_fit): Add this routine.
      	(sheet_col_set_internal_width): New function.  Similar to its
      	counterpart
      
      	* src/dialogs/dialog-cell-format.c (dialog_cell_format): Change
      	call to g_list_free for sheet_cell_list_free.
      
      	* src/selection.c (sheet_cell_list_free): New routine.
      
      	* src/workbook.c: Reworked toolbars again.  We now only have 2
      	toolbars instead of 8 or so.
      
      	* src/sheet.h (SHEET_MAX_ROWS): New excel supports 64k rows, mimic this.
      
      	* src/widgets/gnumeric-toolbar.c: Added new file.  Handles the
      	Gnumeric toolbars.
      dd6fabaa