1. 15 Feb, 2002 1 commit
    • Jody Goldberg's avatar
      We can now make distcheck · f84a08c5
      Jody Goldberg authored
      Requires a GAL update, and a gtk+ update
      
      2002-02-15  Jody Goldberg <jody@gnome.org>
      
      	* src/item-cursor.c (item_cursor_tip_setlabel) : enable now that the
      	  canvas bug is fixed.
      
      	* src/sheet-control-gui.c (cb_hscrollbar_adjust_bounds) : new.
      	(cb_vscrollbar_adjust_bounds) : new.
      
      	* src/gui-util.c (gtk_button_stock_alignment_set) : new.
      	(gnumeric_init_help_button) : new.
      
      	* src/gnumeric-canvas.h : Move declaration of
      	  GnumericCanvasSlideHandler here.
      
      	* src/gnumeric-canvas.c (gnm_canvas_guru_key) : forward to the entry,
      	  not the GnumericExprEntry wrapper.
      	(gnm_canvas_key_mode_sheet) : ditto.
      
      	* src/formats.c (cell_format_classify) : handle general.
      
      	* src/file-priv.h : Inherit from GObject.
      
      	* src/complete-sheet.c (complete_sheet_finalize) : call class_peek
      	  here to avoid potential reference problems.
      
      	* src/commands.c (cmd_set_text) : doh!  fix multi-line text.
      	(cmd_autoformat) : const.
      
      	* src/cell.c (cell_relocate) : const.
      	* src/clipboard.c (paste_cell_with_operation) : const.
      	(paste_cell) : ditto.
      
      	* src/application.c (application_init) : add jimmac's expr-entry icon.
      
      	* src/Makefile.am : distribute the marshaller.list
      
      	s/GtkType/GType/
      	s/GtkSignalFunc/GCallback/
      	s/gtk_signal_connect/g_signal_connect/  + reformating.
      	s/GTK_CHECK_CAST/G_TYPE_CHECK_INSTANCE_CAST/
      	s/GTK_CHECK_TYPE/G_TYPE_CHECK_CLASS_CAST/
      	s/GTK_CHECK_CLASS_CAST/G_TYPE_CHECK_INSTANCE_TYPE/
      	s/GTK_CHECK_CLASS_TYPE/G_TYPE_CHECK_CLASS_TYPE/
      
      2002-02-11  Jody Goldberg <jody@gnome.org>
      
      	* src/stf.c (stf_init) : Make the names of the text import/export
      	  clearer.
      f84a08c5
  2. 24 Jan, 2002 1 commit
  3. 23 Jan, 2002 1 commit
  4. 21 Dec, 2001 1 commit
  5. 19 Dec, 2001 1 commit
  6. 21 Oct, 2001 1 commit
    • Jody Goldberg's avatar
      handle visibility. ditto. ditto. (sheet_object_filled_update_bounds) : · 93466901
      Jody Goldberg authored
      2001-10-21  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-object-container.c (sheet_object_container_update_bounds) :
      	  handle visibility.
      	* src/sheet-object-cell-comment.c (cell_comment_update_bounds) : ditto.
      	* src/sheet-object-graphic.c (sheet_object_graphic_update_bounds) : ditto.
      	(sheet_object_filled_update_bounds) : ditto.
      	* src/sheet-object-widget.c (sheet_object_widget_update_bounds) : ditto.
      
      	* src/sheet-object.c (sheet_object_init) : init is_visible.
      	  Not really needed, but lets be careful.
      	(sheet_object_update_bounds) : check to visibility.
      93466901
  7. 19 Oct, 2001 1 commit
    • Jody Goldberg's avatar
      ditto. · 00d1b34a
      Jody Goldberg authored
      2001-10-19  Jody Goldberg <jgoldberg@home.com>
      
      	* dialog-analysis-tools.c (dialog_tool_init) Register as a guru.
      	(dialog_random_tool_init) : ditto.
      
      	* dialog-goal-seek.c (dialog_init) : Register as a guru.
      
      2001-10-19  Jody Goldberg <jgoldberg@home.com>
      
      	* configure.in : Until the gb plugin works with newer gb make
      	the test == 0.17
      00d1b34a
  8. 10 Oct, 2001 2 commits
  9. 27 Sep, 2001 2 commits
    • Jody Goldberg's avatar
      fix the color mapping. This should really be a convenience routine. ditto. · f09bd6ed
      Jody Goldberg authored
      2001-09-27  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-object-graphic.c (sheet_object_filled_print) : fix the
      	  color mapping.  This should really be a convenience routine.
      	* src/sheet-object-graphic.c (sheet_object_graphic_print) : ditto.
      f09bd6ed
    • Jody Goldberg's avatar
      Add a property bag type interface to the escher parser. · 909174cd
      Jody Goldberg authored
      2001-09-26  Jody Goldberg <jgoldberg@home.com>
      
      	* ms-escher.c (ms_escher_parse) : call ms_escher_header_release.
      	(ms_escher_read_container) : ditto.
      	(ms_escher_header_release) : new to handle attrs.
      	(ms_escher_header_add_attr) : ditto.
      	(ms_escher_read_ClientData) : pass the attributes to the object
      	  and move the blip handing to the container.
      
      	* ms-obj.c (ms_object_attr_new_flag) : new.
      	(ms_object_attr_new_int) : new.
      	(ms_object_attr_new_ptr) : new.
      	(ms_object_attr_destroy) : new.
      	(ms_object_attr_bag_new) : ditto.
      	(ms_object_attr_bag_destroy) : ditto.
      	(ms_object_attr_bag_insert) : ditto.
      	(ms_object_attr_bag_lookup) : ditto.
      
      	* ms-excel-read.c (ms_excel_read_workbook) : interface change to
      	  ms_read_OBJ.
      	(ms_excel_read_sheet) : ditto.
      	(ms_sheet_create_obj) : move the blip handing from escher to here.
      
      2001-09-27  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-object-graphic.c (sheet_object_graphic_fill_color_set) :
      	  Use StyleColors and make public.
      	(sheet_object_graphic_destroy) : unref the fill colour.
      	(sheet_object_graphic_new_view) : translate from stylecolor to gdk.
      	(sheet_object_graphic_read_xml) : use style colors.
      	(sheet_object_graphic_write_xml) : use style colors.
      	(sheet_object_graphic_clone) : reference the fill colour.
      	(sheet_object_graphic_print) : use style colour.
      	(cb_dialog_graphic_clicked) : ditto.
      	(cb_dialog_filled_clicked) : ditto.
      	(sheet_object_graphic_user_config) : ditto.
      	(sheet_object_filled_user_config) : ditto.
      
      	* src/style-color.c (style_color_ref) : NULL is ok.
      	(style_color_unref) : ditto.
      
      	* src/xml-io.c (xml_node_get_color) : rename and tidy up.
      	(xml_node_get_gdkcolor) : delete.
      	(xml_node_set_gdkcolor) : delete.
      	(xml_read_style_border) : changes to get_color.
      	(xml_read_style) : ditto.
      909174cd
  10. 20 Sep, 2001 1 commit
    • Jody Goldberg's avatar
      Init the fill colour for lines and arrows to black. · 301c7e17
      Jody Goldberg authored
      2001-09-20  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-object-graphic.c (sheet_object_graphic_init) : Init the
      	  fill colour for lines and arrows to black.
      	(sheet_object_filled_init) : Use a name rather than assuming 0 = black
      	  for outline colour, and convert the fill colour to white.
      301c7e17
  11. 29 Aug, 2001 1 commit
  12. 28 Aug, 2001 1 commit
    • Jody Goldberg's avatar
      fix a warning on exit when closing 1 of many open sheets. · 6891d63e
      Jody Goldberg authored
      2001-08-28  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-control-gui.c (scg_mode_edit) : fix a warning on exit
      	  when closing 1 of many open sheets.
      
      	* src/gnumeric-graph.c : make the debug spew conditional.
      	(CMANAGER1) : new macro.
      	(gnm_graph_new) : add more safety checks.
      	(gnm_graph_arrange_vectors) : use the versioning macros.
      	(gnm_graph_import_specification) : new routine.
      
      	* idl/gnumeric-graphs.idl (importSpecification) : new routine.
      
      	* src/xml-io.c : clean up.
      	s/xml_get_value_int/xml_prop_get_int/
      	s/xml_set_value_int/xml_prop_set_int/
      	s/xml_get_value_double/xml_prop_get_double/
      	s/xml_set_value_double/xml_prop_set_double/
      	s/xml_set_value_points/xml_prop_set_points/
      	s/xml_set_value_cstr/xml_prop_set_cstr/
      	s/xml_set_prop_cellpos/xml_prop_set_cellpos/
      	s/xml_get_prop_cellpos/xml_prop_get_cellpos/
      	s/xml_read_range/xml_prop_get_range/
      	s/xml_get_print_hf/xml_prop_get_print_hf/
      	s/xml_set_print_hf/xml_prop_set_print_hf/
      	s/xml_set_color_value/xml_prop_set_color/
      	s/xml_get_color_value/xml_prop_get_color/
      	s/xml_set_value_color/xml_prop_set_gdkcolor/
      	s/xml_get_value_color/xml_prop_get_gdkcolor/
      
      	Remove the pointless searching of children for content.
      	We never relied on those semantics, nor do we want them.
      
      	(xml_sheet_create) : Use xmlGetProp directly.
      	(xml_sheet_read) : ditto.
      	(xml_read_solver) : ditto.
      	(xml_write_solver) : use xml_prop_set_cstr.
      	(xml_write_print_info) : Use xmlNewChild.
      	(xml_value_get) : delete and use xmlGetProp directly.
      
      2001-08-27  Jody Goldberg <jgoldberg@home.com>
      
      	* src/gnumeric-graph.c (gnm_graph_vector_set_expr) : remove debuggin
      	  cruft.
      6891d63e
  13. 27 Aug, 2001 1 commit
  14. 24 Aug, 2001 2 commits
    • Jody Goldberg's avatar
      Rename gnumeric-utils.h gui-utils.h to be more accurate. · d531765d
      Jody Goldberg authored
      Clean out a bunch includes.
      d531765d
    • Chyla Zbigniew's avatar
      Replace mega-include <gnome.h> with something smaller. · ac93e10a
      Chyla Zbigniew authored
      * src/analysis-tools.c, src/application.c, src/bonobo-io.c,
      src/clipboard.c, src/cmd-edit.c, src/command-context.c,
      src/commands.c, src/corba-args.c, src/corba-workbook-factory.c,
      src/dates.c, src/dialogs/dialog-about.c,
      src/dialogs/dialog-advanced-filter.c,
      src/dialogs/dialog-analysis-tools.c, src/dialogs/dialog-autocorrect.c,
      src/dialogs/dialog-autoformat.c, src/dialogs/dialog-autosave.c,
      src/dialogs/dialog-cell-comment.c, src/dialogs/dialog-cell-format.c,
      src/dialogs/dialog-cell-sort.c, src/dialogs/dialog-consolidate.c,
      src/dialogs/dialog-define-names.c, src/dialogs/dialog-delete-cells.c,
      src/dialogs/dialog-function-wizard.c, src/dialogs/dialog-goal-seek.c,
      src/dialogs/dialog-goto-cell.c, src/dialogs/dialog-graph-guru.c,
      src/dialogs/dialog-insert-cells.c, src/dialogs/dialog-paste-special.c,
      src/dialogs/dialog-plugin-manager.c,
      src/dialogs/dialog-printer-setup.c,
      src/dialogs/dialog-search-replace.c, src/dialogs/dialog-sheet-order.c,
      src/dialogs/dialog-simple-input.c, src/dialogs/dialog-solver.c,
      src/dialogs/dialog-stf-export-private.h,
      src/dialogs/dialog-stf-export-sheet-page.c,
      src/dialogs/dialog-stf-export.c, src/dialogs/dialog-stf-preview.h,
      src/dialogs/dialog-stf.c, src/dialogs/dialog-stf.h,
      src/dialogs/dialog-summary.c, src/dialogs/dialog-validate.c,
      src/dialogs/dialog-workbook-attr.c, src/dialogs/dialog-zoom.c,
      src/dialogs/utils-dialog.c, src/expr-name.c, src/expr.c,
      src/file-autoft.c, src/format-template.c, src/format.c, src/formats.c,
      src/func.c, src/global-gnome-font.c, src/gnumeric-util.h,
      src/gui-clipboard.c, src/gui-file.c, src/gui-gnumeric.h, src/gutils.c,
      src/history.c, src/item-bar.c, src/item-cursor.c, src/item-debug.c,
      src/main.c, src/normal-args.c, src/number-match-test.c,
      src/number-match.c, src/parse-util.c, src/parser.y, src/pattern.h,
      src/preview-grid.c, src/print-cell.c, src/print-info.c, src/print.c,
      src/search.c, src/selection.c, src/sheet-autofill.c,
      src/sheet-merge.c, src/sheet-object-bonobo.c,
      src/sheet-object-container.c, src/sheet-object-graphic.c,
      src/sheet-object-item.c, src/sheet-object-widget.c,
      src/sheet-object.c, src/sheet.c, src/stf-parse.h, src/stf.c,
      src/style-color.c, src/style.c, src/test-format.c, src/value-sheet.c,
      src/value.c, src/widgets/gnumeric-dashed-canvas-line.h,
      src/widgets/gnumeric-hscrollbar.c, src/widgets/gnumeric-toolbar.c,
      src/widgets/gnumeric-vscrollbar.c,
      src/widgets/widget-editable-label.c,
      src/widgets/widget-font-selector.c, src/workbook-cmd-format.c,
      src/workbook-control.c, src/workbook-format-toolbar.c,
      src/workbook-object-toolbar.c, src/workbook-private.h,
      src/xml-io-autoft.c, src/xml-io.c:
      Replace mega-include <gnome.h> with something smaller.
      ac93e10a
  15. 20 Aug, 2001 1 commit
    • Jody Goldberg's avatar
      All we need is a wbc. (sheet_object_anchor_set) : new routine to replace · b459aaa7
      Jody Goldberg authored
      
      2001-08-20  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-object.c (sheet_object_remove_cb) : All we need is a wbc.
      	(sheet_object_anchor_set) : new routine to replace range_set.
      	(sheet_object_anchor_get) : new.
      	(sheet_object_anchor_cpy) : new.
      	(sheet_object_anchor_init) : new routine to bundle up object
      	  positioning more neatly.
      
      	* src/sheet-object-cell-comment.c (cell_set_comment) : Only use anchor
      	  types that are implemented.  Use the new SheetObjectAnchor scheme.
      
      	* src/sheet-control-gui.c (scg_object_move) : track whether the ctrl
      	  point causes a move or a resize.
      	(cb_control_point_event) : store the initial anchor rather than the
      	  control specific position,  and assume that the changes are simple
      	  movements until a resize occurs.
      	(scg_object_calc_position) : adjust to using SheetObjectAnchor.
      	(scg_colrow_distance_get_virtual) : new routine.
      	(scg_class_init) : register it here.
      
      	* src/sheet-control.c (sc_colrow_distance_get) : a new new virtual.
      
      	* src/gnumeric-canvas.c (gnm_canvas_key_mode_object) : delete newly
      	  created objects too.
      	(gnm_canvas_filenames_dropped) : signature change
      	  for sheet_object_container_new_file.
      
      	* src/gnumeric.h : add GnmGraph.
      
      	* src/Makefile.am : rename graph-vector -> gnumeric-graph
      
      	* idl/gnumeric-graphs.idl : Add some versioning.
      	  Move the header arg out of the value callback.
      	  Replace VectorNotify::remove with Manger::clearVectors.
      	  Merge freeze & thaw.
      	  Renamed 'nameChange' to 'headerChanged'
      	  Add an 'id' arg when registering vectors.
      
      2001-08-19  Jody Goldberg <jgoldberg@home.com>
      
      	* src/commands.c
      	    s/insert_object/object_insert/
      	    s/move_object/object_move/
      	    s/delete_object/object/delete/
      	(cmd_object_insert_redo) : The object knows its position based on its
      	  anchor. No need to set the control specific coordinates for an
      	  arbitrary control.  No need to tweak the reference count either.
      	(cmd_object_insert) :  ditto.
      	(cmd_object_insert_undo) : no need to tweak the ref count.
      	(cmd_object_delete_redo) : keep it simple, just set the sheet.
      	(cmd_object_delete_undo) : just clear the sheet.
      	(cmd_object_delete_destroy) : very simple.
      	(cmd_object_move_redo) : store the anchor, not the position for a
      	  specific control.  Be careful not to move the object the firs time
      	  through.  We've already done that.
      	(cmd_move_object_undo) : just call redo.
      	(cmd_object_move) : store the old anchor and take a flag indicating
      	  move vs resize.
      
      	* src/workbook-control-gui.c (wb_control_gui_toplevel) : Add some
      	  protection.
      
      	* src/sheet-object.c (sheet_object_update_bounds) : rename from
      	  sheet_object_position to have a clearer name.
      
      	* src/embeddable-grid.c (embeddable_grid_init_anon) : init the sheet.
      	(grid_view_new) : use scg_toplevel.
      
      	* src/sheet-control-gui.c (scg_toplevel) : new function.
      
      2001-08-18  Jody Goldberg <jgoldberg@home.com>
      
      	* src/gnumeric-graph.c : Major reorg to fix life cycle issues.
      	(gnm_graph_new) : don't dangle the reference returned by oaf.
      	(gnm_graph_destroy) : deactivate & _fini the corba obj.
      	(gnm_graph_vector_destroy) : ditto.
      
      	* src/expr.c (expr_to_graph_vector) : delete this function.
      	  we have no need to disassemble the expression in graphs.
      
      	* src/item-grid.c : revert switch from destroy -> finalize.
      	* src/item-bar.c : ditto.
      
      	* src/sheet-object-container.c : no need to include gnorba.
      	  no need to include sheet-control-gui-priv anymore.
      	(sheet_object_container_destroy) : delete unused.
      	(sheet_object_container_new) : weaken requirements to take a workbook,
      	  rather than a sheet as the container.
      	(sheet_object_container_new_object) : ditto.
      	(sheet_object_container_new_file) : ditto.
      
      	* src/workbook-private.c : delete some unnecessary code.
      
      	* src/workbook.c : include sheet-control vs sheet-control-gui.
      	(workbook_expr_unrelocate) : it is ok to attempt to relocate to a
      	  non-existent cell.
      
      	* src/commands.c (cmd_paste_cut_undo) : restore the original content
      	  AFTER unrelocating the expressions.
      
      	* src/workbook-control-gui.c (workbook_control_gui_init) : Add the
      	  magic to enable the bonobo toolbar config utility.
      	(workbook_menu_edit) : Fix the accelerators and sync the text with the
      	  bonobo version.
      	(wbcg_menu_state_update) : Fix the capitalization for freeze/unfreeze.
      	(change_menu_label) : Fix accelerator display, we still don't set
      	  them, but at least we display them correctly.
      	(insert_bonobo_object) : signature change to
      	  sheet_object_container_new_object.
      
      2001-08-17  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.c (sheet_freeze_panes) : set the initial top_left position
      	  based on the frozen pane when unfreezing.
      
      	* src/sheet-control-gui.c (scg_set_panes) : prepare for h/v only splits.
      	  Reformat.  Remove code to set the topleft after the panes are
      	  created or removed.  That is handled by sheet.
      
      	* src/GNOME_Gnumeric.xml : enable the font accelerators in the bonobo
      	  build by making them standalone rather than associating them with
      	  toolbuttons.  It appears as if bonobo does not support accelerators
      	  for toolbuttons as yet.
      b459aaa7
  16. 14 Aug, 2001 4 commits
    • Lutz Müller's avatar
      Set the dialogs parent so that the dialog will get placed correctly. I did · afe9a51f
      Lutz Müller authored
      2001-08-14  Lutz Mller <urc8@rz.uni-karlsruhe.de>
      
              * src/sheet-object-graphic.c (sheet_object_filled_user_config): Set
              the dialogs parent so that the dialog will get placed correctly. I did
              it already in sheet_object_graphic_user_config but forgot to add
              it here, too.
      afe9a51f
    • Lutz Müller's avatar
      Let the user configure arrow shapes only if the object is an arrow. Update · 513aa010
      Lutz Müller authored
      2001-08-14  Lutz Müller <urc8@rz.uni-karlsruhe.de>
      
              * src/sheet-object-graphic.c: Let the user configure arrow shapes only
              if the object is an arrow. Update the color of the arrow in the preview.
      513aa010
    • Lutz Müller's avatar
      Remove all bonobo-related stuff. (print_sheet_objects): New. Prints all · e1c9cdd2
      Lutz Müller authored
      2001-08-14  Lutz Mller <urc8@rz.uni-karlsruhe.de>
      
              * src/print.c: Remove all bonobo-related stuff.
              (print_sheet_objects): New. Prints all objects that overlap a given
              range and clips to that range.
              (print_page_cells): Call print_sheet_objects from here.
              (print_page_object): Removed.
              (print_page): Check for sheet objects if no printable cells can be
              found.
              (render_sheet_objects): Removed.
              * src/sheet-object-bonobo.c (sheet_object_bonobo_print): Move the
              bonobo printing stuff in here.
              * src/sheet-object-impl.h: The virtual method print now has only
              three arguments: The PrintContext and the base (x & y) where to
              start printing.
              * src/sheet-object.[c,h]: Adjusted to new syntax.
              * src/sheet-object-cell-commend.c (cell_comment_print): Same here.
              * src/sheet-object-graphic.c (sheet_object_graphic_print): And here.
              Fixed some broken logic. Printing of arrows implemented.
              (sheet_object_filled_print): Fixed.
              * src/sheet.c (sheet_col_get_distance_pts): Make sign double like in
              sheet_row_get_distance_pts. This didn't fix my problem but it is
              nicer this way (problem got fixed by Jody's fix below).
      e1c9cdd2
    • Lutz Müller's avatar
      Add a note that this function is left empty intentionally Let the user · 6ad6f871
      Lutz Müller authored
      2001-08-14  Lutz Müller <urc8@rz.uni-karlsruhe.de>
      
              * src/sheet-object-cell-comment.c (cell_comment_print): Add a note that
              this function is left empty intentionally
              * src/sheet-object-graphic.c: Let the user configure the arrow shape
      6ad6f871
  17. 10 Aug, 2001 1 commit
    • Lutz Müller's avatar
      Use GdkColors instead of strings. Implemented printing. Objects aren't in · 55ca2396
      Lutz Müller authored
      2001-08-11  Lutz Mller <urc8@rz.uni-karlsruhe.de>
      
              * src/sheet-object-graphic.c: Use GdkColors instead of strings.
              Implemented printing. Objects aren't in the right place though. Still
              needs some tuning. Configuration implemented (border width, outline
              color, fill color).
              * src/sheet-object-graphic.h: Be consistent, rename
              IS_SHEET_GRAPHIC_OBJECT -> IS_SHEET_OBJECT_GRAPHIC and
              IS_SHEET_FILLED_OBJECT -> IS_SHEET_OBJECT_FILLED
              * sheet-object.c: (sheet_object_read_xml): Remove "Old crufty IO"
              (quoted from code). Get and set the direction here instead of in
              sheet-object-graphic.
              * src/xml-io.[c,h]: Make xml_[get,set]_value_double and
              xml_[get,set]_value_color public.
      55ca2396
  18. 30 Jul, 2001 2 commits
    • Jody Goldberg's avatar
      rename gnumeric-sheet -> gnumeric-canvas · 3cb12424
      Jody Goldberg authored
      2001-07-30  Jody Goldberg <jgoldberg@home.com>
      
      	* src/Makefile.am : rename gnumeric-sheet -> gnumeric-canvas
      3cb12424
    • Jody Goldberg's avatar
      new. (sc_sheet) : const. (sc_update_cursor_pos) : delete. · 43215bb3
      Jody Goldberg authored
      2001-07-30  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-control.c (sc_wbc) : new.
      	(sc_sheet) : const.
      	(sc_update_cursor_pos) : delete.
      
      	* src/gnumeric-pane.c (gnm_pane_special_cursor_bound_set) : new.
      	(gnm_pane_special_cursor_start) : ditto.
      	(gnm_pane_special_cursor_start) : ditto.
      
      	* src/sheet-control-gui.c (scg_update_cursor_pos)  : fold into
      	  scg_resize.
      	(scg_resize) : reposition all of the cursors.
      	(scg_edit_start) renamed from scg_create_editor.
      	(scg_edit_stop) : renamed from scg_stop_editing.
      	(scg_special_cursor_start) : new.
      	(scg_special_cursor_stop) : new.
      	(scg_special_cursor_bound_set) : new.
      
      	* src/item-cursor.c (item_cursor_selection_event) : Use
      	  scg_special_cursor_start, and scg_special_cursor_bound_set.
      	(item_cursor_do_action) : use scg_special_cursor_stop.
      	(item_cursor_do_drop) : ditto.
      	(item_cursor_autofill_event) : ditto.
      	(item_cursor_set_bounds_visibly) : Doh! fix my stupidity.
      	  We need to change the visibility here because we explicitly disable
      	  doing it in the scroll handlers.  We are constraining the scroll
      	  so we need to do it manually.
      
      2001-07-30  Jody Goldberg <jgoldberg@home.com>
      
      	s/GnumericSheet/GnumericCanvas/
      	s/gsheet/gcanvas/
      	s/gnumeric_sheet_*/gnm_canvas_/
      	s/gnumeric_pane_*/gnm_pane_/
      	Move the std and rangesel cursors from GnumericSheet -> GnumericPane
      	Move the grid and editor from GnumericSheet -> GnumericPane
      
      2001-07-28  Jody Goldberg <jgoldberg@home.com>
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_handle_motion) : fix autoscroll
      	  from bottom/right panes into adjcant regions that do not scroll as
      	  reported by almer.
      
      2001-07-28  Jody Goldberg <jgoldberg@home.com>
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_handle_motion) : work towards
      	  support h only or v only freezes by using the geometry of pane 1 or 3
      	  in place of pane 2 which only exists in the h&v case.
      	(gsheet_sliding_callback) : ditto.
      	(gnumeric_sheet_slide_init: ditto.
      43215bb3
  19. 17 Jul, 2001 1 commit
    • Jody Goldberg's avatar
      implement. (ms_excel_read_window2) : store initial top left. · 9a5de7db
      Jody Goldberg authored
      2001-07-16  Jody Goldberg <jgoldberg@home.com>
      
      	* ms-excel-read.c (ms_excel_read_pane) : implement.
      	(ms_excel_read_window2) : store initial top left.
      
      2001-07-16  Jody Goldberg <jgoldberg@home.com>
      
      	* applix-read.c (applix_read_view) : Use sheet_set_initial_top_left.
      
      2001-07-16  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-object-graphic.c (sheet_object_graphic_write_xml) : use cstr.
      	(sheet_object_filled_write_xml) : ditto.
      
      	* src/xml-io-autoft.c (xml_write_format_template_members) : remove
      	  extra copying to and fro.
      
      	* src/xml-io.c (xml_set_value_string) : delete this bogosity.
      	(xml_write_solver) : Use xmlSetProp in its place.
      	(xml_set_value_double) : remove the searchiing silliness.
      	(xml_read_sheet_layout) : new function.
      	(xml_sheet_read) : called from here.
      	(xml_write_sheet_layout) : new function.
      	(xml_sheet_write) : called from here.
      
      2001-07-16  Jody Goldberg <jgoldberg@home.com>
      
      	* src/gnumeric-sheet.c (gsheet_compute_visible_region) : add a
      	  comment.
      	(gnumeric_sheet_button_release) : Fix scroll wheel handling.
      	  And make the scroll by 1/4 of a page rather than a full page.
      
      	* src/workbook-control-gui.c (cb_sheet_label_button_press) : while
      	  selecting a range all buttons switch pages.
      	(cb_view_freeze_panes) : Improve handling of border cases.
      
      	* src/sheet-control-gui.c (scg_set_top_left) : new function.
      	(scg_class_init) : tied in here.
      	(scg_scrollbar_config) : Some usability tuning.
      
      	* src/sheet.c (sheet_new) : init 'initial_top_left'
      	(sheet_set_initial_top_left) : new function.
      	(sheet_init_sc) : Set the initial top left.
      	(sheet_update_cursor_pos) : delete unnecessary.
      	(sheet_update_only_grid) : It is only called from here.  And even this
      	  seems questionable.
      	(sheet_find_boundary_{vertical,horizontal}) : adds more comments.
      
      	* src/sheet-control.c (sc_set_top_left) : new function.
      9a5de7db
  20. 07 Jul, 2001 1 commit
    • Jody Goldberg's avatar
      go one past the last visible in case the last visible == the last full. · 85ff8354
      Jody Goldberg authored
      2001-07-06  Jody Goldberg <jgoldberg@home.com>
      
      	* src/item-cursor.c (item_cursor_update) : go one past the last
      	  visible in case the last visible == the last full.
      
      	* src/item-bar.c (item_bar_end_resize) : fix typo.
      
      	* src/sheet.c (sheet_update_only_grid) : force a resize after col/row
      	  resizes with frozen panes.
      85ff8354
  21. 05 Jul, 2001 1 commit
    • Jody Goldberg's avatar
      Initial support for frozen panes. · 99073bd9
      Jody Goldberg authored
      2001-07-04  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-merge.c (sheet_merge_add) : Use sheet_redraw_range.
      
      	* src/sheet-control.c (sc_set_panes) : new virtual.
      	(sc_set_sheet) : renamed from sc_invalidate_sheet.
      
      	* src/sheet-control-gui.c (scg_primary_pane) : new function. Be very
      	  careful when using this.  It should not be necessary in most cases.
      	(scg_get_wbcg) : convenience routine.
      	(scg_redraw_all) : frozen panes.
      	(scg_redraw_region) : renamed from scg_redraw_cell_region, and frozen
      	  pane support.
      	(scg_redraw_headers) : merge in the code from gnumeric-sheet.
      	(scg_update_cursor_pos) : pane support.
      	(scg_resize) : ditto.
      	(scg_set_zoom_factor) : ditto.  Broken. needs to resize the panes.
      	(scg_scrollbar_config) : adjust to panes.
      	(scg_make_edit_pos_visible) : use scg_make_cell_visible.
      	(scg_colrow_select) : reorg a bit.
      	(vertical_scroll_offset_changed) : adjust to panes.
      	(horizontal_scroll_offset_changed) : ditto.
      	(cb_table_destroy) : ditto.
      	(scg_init) : init the top here.
      	(bar_set_left_col) : from gnumeric-sheet. Still needs work for panes.
      	(bar_set_top_row) : ditto.
      	(gnumeric_sheet_set_left_col) : ditto.
      	(gnumeric_sheet_set_top_row) : ditto.
      	(scg_set_left_col) : TODO.
      	(scg_set_top_row) : ditto.
      	(gnumeric_sheet_set_top_left) : new function split from.
      	(gnumeric_sheet_make_cell_visible) : here.
      	(scg_make_cell_visible) : adjsut to panes and do the real work here.
      	(scg_make_cell_visible_virt : wrapper for use as virtual.
      	(gnumeric_pane_new) : new function.
      	(gnumeric_pane_delete) : ditto.
      	(scg_set_panes) : ditto.
      	(scg_construct) : move the table attachments around and move the
      	  canvas groups into the panes.
      	(sheet_control_gui_new) : beef this up.
      	(scg_unant) : adjust to panes.
      	(scg_ant) : ditto.
      	(scg_cursor_visible) : ditto.
      	(scg_cursor_bound) : ditto.
      	(scg_adjust_preferences) : ditto.
      	(scg_compute_visible_region) : ditto.
      	(scg_create_editor) : ditto.
      	(scg_stop_editing) : ditto.
      	(scg_take_focus) : ditto.
      	(scg_sliding_callback) : adjust top panes, but is still much too
      	  stupid.
      	(scg_start_sliding) : ditto.
      	(cb_slide_handler) : ditto.
      	(cb_control_point_event) : ditto.
      	(new_control_point) : ditto.
      	(set_item_x_y) : ditto.
      	(set_acetate_coords) : ditto.
      	(scg_object_calc_position) : ditto.
      	(scg_object_view_position) : ditto.
      	(scg_rangesel_changed) : ditto.
      	(scg_rangesel_start) : ditto.
      	(scg_rangesel_stop) : ditto.
      	(scg_rangesel_move) : ditto.
      	(scg_rangesel_extend) : ditto.
      
      	* src/item-grid.c (sheet_object_begin_creation) : Use the group
      	  associated with the gsheet, not the scg, and use GNUMERIC_IS_SHEET
      	  in preference to != NULL.
      
      	* src/item-bar.c : Store the gnumeric-sheet rather than the scg so
      	  that we can get to the Pane.
      
      	* src/embeddable-grid.c (grid_view_activate) : Use scg_take_focus.
      	(grid_view_new) : Use sheet_control_gui_new in place of sheet_new_scg.
      
      	* convert to E_MAKE_TYPE
      	* Use IS_SHEET in preference to sheet != NULL
      	* sheet_range_calc_spans signature change
      
      	* src/clipboard.c (clipboard_paste_region) : special handling when
      	  pasting into a selection that consists of a single merged cell.
      
      	* src/application.c (application_set_selected_sheet) : Use IS_SHEET.
      	(application_clipboard_copy) : ditto.
      	(application_clipboard_cut) : ditto.
      
      	* src/Makefile.am :
      	    command-context-corba -> workbook-control-corba
      
      	* src/sheet.c : convert to using IS_SHEET in place of sheet != NULL in
      	  several places.
      	(sheet_is_frozen) : new function.
      	(sheet_freeze_panes) : implement.
      	(sheet_new) : init frozen pane data.
      	(sheet_range_calc_spans) : pass a pointer rather than copy of the range.
      	  and use sheet_redraw_range.
      	(sheet_apply_style) : use sheet_redraw_range.
      	(cb_sheet_get_extent) : premature optimization is evil.
      	(sheet_redraw_region) : rename from sheet_redraw_cell_region.
      	(sheet_set_edit_pos) : use sheet_redraw_range.
      	(sheet_move_range) : ditto.
      	(sheet_init_sc) : new routine.
      	(sheet_attach_control) : rename and task from sheet_new_scg.
      	(sheet_redraw_region) : renamed from sheet_redraw_cell_region.
      
      	* src/item-cursor.c (item_cursor_update) : increase the spacing for
      	  the autohandle.
      
      	* src/GNOME_Gnumeric.xml :
      	  - Use Control*colon and Control*semicolon
      	  - desensitize the graph guru for now.
      	  - Add freeze/thaw
      
      	* src/item-bar.c (item_bar_unrealize) : no need to double unref the
      	  fonts.
      
      	* src/print-cell.c (print_merged_range) : This is not being drawn on
      	  the screen, no need for all the fancy calcs to only draw the visible
      	  bits.  We will just clip it.
      	* src/print-cell.c (print_cell) : Use the calulated width, not the col
      	  width for splitting.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet) : Use the scg_
      	  versions of things in preference to the gnumeric_sheet_ versions.
      	(gnumeric_sheet_new) : Store the Pane that this is associated with.
      	(gnumeric_sheet_bar_set_top_row) : moved to sheet-control-gui.c
      	(gnumeric_sheet_set_top_row) : ditto.
      	(gnumeric_sheet_bar_set_left_col) : ditto.
      	(gnumeric_sheet_set_left_col) : ditto.
      	(gnumeric_sheet_make_cell_visible) : ditto.
      	(gsheet_compute_visible_region) : handle panes.
      99073bd9
  22. 30 May, 2001 1 commit
    • Jon K Hellan's avatar
      Previous attempt to commit failed. Trying again. · 37876eb7
      Jon K Hellan authored
      2001-05-30  Jon K Hellan  <hellan@acm.org>
      
      	Previous attempt to commit failed. Trying again.
      
      	* src/sheet-control-gui-priv.h: New file. Implementation details
      	for SheetControlGUI and methods directly accessible from the GUI
      	layer.
      
      	* src/Makefile.am: Add sheet-control-gui-priv.h
      
      	* src/sheet-control-gui.h: Move struct _SheetControlGUI to
      	sheet-control-gui-priv.h. Remove declarations of methods which
      	have been made virtual.
      
      	* src/sheet-control-gui.c: Include sheet-control-gui-priv.h instead
      	of sheet-control-gui.h.
      	Casts and temp variables because:
      	- virtual scg methods now take a SheetControl parameter.
              - sheet member now lives in SheetControl.
      	Make following methods static - externally available only as
      	virtual SheetControl method: scg_redraw_all,
      	scg_redraw_cell_region, scg_redraw_headers, scg_update_cursor_pos,
      	scg_resize, scg_unant, scg_ant, scg_cursor_bound,
      	scg_compute_visible_region, scg_make_cell_visible. Initialize
      	class object with these as virtual methods together with
      	scg_set_zoom_factor, scg_adjust_preferences, scg_scrollbar_config
      	and scg_mode_edit.  Rename context_menu_hander (sic!) to
      	context_menu_handler.
      
      	*src/sheet-control.c (SC_VIRTUAL_FULL): Fix typo.
      	(sc_destroy): Comment out unused variable.
      	(sheet_control_init_state): Rename to sc_init_state.
      	(sc_sheet): New accessor - returns sheet attribute.
      	(sc_invalidate_sheet): New function - sets sheet attribute to
      	NULL.
      	(resize, set_zoom_factor, redraw_all, redraw_cell_region,
      	redraw_headers, ant, unant, adjust_preferences, update_cursor_pos,
      	scrollbar_config, mode_edit, compute_visible_region,
      	make_cell_visible, cursor_bound): New virtual methods.
      
      	* src/sheet-control.h: Declare new methods in sheet-control.c
      
      	* src/selection.c: Use sc_redraw_cell_region, sc_redraw_headers
      	instead of scg methods.
      
      	* src/sheet.c (sheet_unant): Use sc_unant instead o scg_unant.
      	(sheet_ant): Use sc_ant instead of scg_ant.
      	(sheet_redraw_all): Use sc_redraw_all instead of scg_redraw_all.
      	(sheet_redraw_all): Use sc_redraw_headers instead of
      	scg_redraw_headers.
      	(sheet_new_scg): Use sc_cursor_bound instead of scg_cursor_bound.
      	(sheet_detach_scg): Rename to sheet_detach_control. Change
      	parameter from SheetControlGUI to SheetControl. Use sc_sheet and
      	sc_invalidate_sheet instead of direct attribute access.
      	(sheet_set_zoom_factor): Use sc_set_zoom_factor instead of
      	scg_set_zoom_factor.
      	(sheet_update_only_grid): Use sc_compute_visible_region instead of
      	scg_compute_visible_region.
      	(sheet_col_row_gutter): Use sc_resize instead of scg_resize.
      	(sheet_redraw_cell_region, sheet_redraw_partial_row,
      	sheet_redraw_cell): Use sc_redraw_cell_region instead of
      	scg_redraw_cell_region.
      	(sheet_make_cell_visible): Use sc_make_cell_visible instead of
      	scg_make_cell_visible.
      	(sheet_cursor_set): Use sc_cursor_bound instead of
      	scg_cursor_bound.
      	(sheet_update_cursor_pos): Use sc_update_cursor_pos instead of
      	scg_update_cursor_pos.
      	(sheet_scrollbar_config): Use sc_scrollbar_config instead of
      	scg_scrollbar_config.
      	(sheet_adjust_preferences): Use sc_adjust_preferences, sc_resize
      	and sc_redraw_all instead of scg_adjust_preferences, scg_resize
      	and scg_redraw_all.
      
      	* src/sheet.h (SHEET_FOREACH_CONTROL): Take list of SheetControls
      	instead of SheetControlGUIs.
      
      	* src/workbook.c (workbook_sheet_detach): Use sc_mode_edit instead
      	of scg_mode_edit.
      
      	* src/embeddable-grid.h: Include sheet-control-gui-priv.h instead
      	of sheet-control-gui.h.
      
      	* src/sheet-object-graphic.c: Ditto.
      
      	* src/gnumeric-sheet.c: Include sheet-control-gui-priv.h instead
      	of sheet-control-gui.h.
      	Casts and temp variables because:
      	- virtual scg methods now take a SheetControl parameter.
              - sheet now lives in SheetControl.
      
      	* src/item-bar.c: Ditto.
      
      	* src/item-cursor.c: Ditto.
      
      	* src/item-edit.c: Ditto.
      
      	* src/item-grid.c: Ditto.
      
      	* src/sheet-object-cell-comment.c: Ditto.
      
      	* src/sheet-object-cell-container.c: Ditto.
      
      	* src/sheet-object-item.c: Ditto.
      
      	* src/sheet-object-widget.c: Ditto.
      
      	* src/workbook-control-gui.c: Ditto.
      
      	* src/workbook-object-toolbar.c: Ditto, but don't include
      	sheet-control-gui-priv.h
      
      	* src/sheet-object.c (sheet_object_realize): Cast control to
      	SheetControlGUI.
      37876eb7
  23. 21 May, 2001 1 commit
    • Chema Celorio's avatar
      initialize the so->direction to _UNKNOWN (sheet_object_direction_set): · 857e7027
      Chema Celorio authored
      2001-05-20  Chema Celorio  <chema@celorio.com>
      
      	* src/sheet-object.c (sheet_object_init): initialize the so->direction
      	to _UNKNOWN
      	(sheet_object_direction_set): impl.
      	(sheet_object_rubber_band_directly): impl a small convenience function
      	to get the value of SO_CLASS(so)->rubber_band_directly
      
      	* src/sheet-object-widget.c (sheet_widget_checkbox_construct_with_range):
      	add a label argument to also optionaly specify a label
      	(sheet_widget_checkbox_clone): when cloning a checkbox, copy it's value
      	too
      	add a ->label and rename ->entry to ->expresion in CheckboxConfigState
      	(cb_checkbox_label_changed): impl.
      	(sheet_widget_checkbox_user_config): add an entry for the label of
      	the checkbutton
      	(sheet_widget_checkbox_set_sheet): call _set_active when setting the
      	sheet of a checkbox
      
      	* src/sheet-object-impl.h: add the SheetObjectDirection enums
      	add ->direction to SheetObject
      	add ->rubber_band_directly to SheetObjectClass
      
      	* src/sheet-object-graphic.c (sheet_object_graphic_read_xml): read
      	the object's direction
      	(sheet_object_graphic_write_xml): save the direction of the object
      	(sheet_object_graphic_class_init): so->direction = TRUE
      	(sheet_object_graphic_init): initlalize so->direction
      
      	* src/sheet-control-gui.c (scg_object_move): calculate the new direction
      	of the object when moving a handle.
      	(scg_object_view_position): the coordinates of the object depend on
      	it's ->direction now.
      
      	* src/item-grid.c (cb_obj_create_motion): if we are rubberbanding directly,
      	calculate the sheet object direction and position.
      	(cb_obj_create_button_release): only set the sheet if we are not rubber_banding_
      	direcly. Objects that are rubber banded directly have already been attached to
      	a sheet.
      	(sheet_object_begin_creation): if we are rubber_banding_direclty the object,
      	attach it to a sheet.
      
      	* src/sheet-object-widget.c (sheet_widget_checkbox_destroy): check if
      	the dependent has been linked before unlinking. We might have created
      	the object without attaching it to a sheet.
      857e7027
  24. 27 Apr, 2001 1 commit
    • Chema Celorio's avatar
      add the header for clone_sheet · 2ba8959f
      Chema Celorio authored
      2001-04-27  Chema Celorio  <chema@celorio.com>
      
      	* src/sheet-object.h: add the header for clone_sheet
      
      	* src/sheet-object.c (sheet_object_clone): implement
      	(sheet_object_clone_sheet): implemnt.
      
      	* src/sheet-object-widget.c (SOW_MAKE_TYPE): add read_xml, write_xml
      	and clone methods to macro
      	(sheet_object_widget_clone): implement.
      	Implement for X in label, frame, button, checkbox
      	(sheet_widget_x_construct_with_label):
      	(sheet_widget_x_destroy):
      	(sheet_widget_x_clone):
      	(sheet_widget_x_write_xml):
      	(sheet_widget_x_read_xml):
      
      	(sheet_object_widget_register): implement
      
      	* src/sheet-object-impl.h: add the clone method
      
      	* src/sheet-object-graphic.c (sheet_object_graphic_clone): implement.
      	(sheet_object_filled_clone): implement.
      
      	* src/sheet-object-cell-comment.c (cell_comment_clone): implement
      2ba8959f
  25. 09 Dec, 2000 1 commit
    • Jody Goldberg's avatar
      delete. (sheet_object_set_bounds) : Delete. (sheet_object_set_sheet) : new · 313e9dc3
      Jody Goldberg authored
      
      2000-12-09  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-object.c (sheet_object_construct) : delete.
      	(sheet_object_set_bounds) : Delete.
      	(sheet_object_set_sheet) : new function.
      	(sheet_object_clear_sheet) : new function.
      	(sheet_object_read_xml) : implement.
      	(sheet_object_write_xml) : implement.
      	(sheet_object_range_get) : support setting the range without a having
      	  a sheet.
      	(sheet_relocate_objects) : Use set_sheet & clear_sheet.
      	(sheet_object_register) : new function.
      
      	* src/sheet-object-widget.c (sheet_widget_checkbox_set_sheet) : new
      	  function.  we need to move the dependent into the new sheet.
      	(sheet_widget_checkbox_clear_sheet) :  ditto.
      
      	* src/sheet-object-graphic.c : (sheet_object_graphic_{read,write)_xml) :
      	  new functions.
      	(sheet_object_filled_{read,write)_xml) : new functions.
      
      	* src/sheet-object-container.c (view_activated_cb) : no more
      	  sheet_object_construct.
      
      	* src/sheet-object-cell-comment.c (cell_comment_{read,write)_xml) :
      	  new functions.
      
      	* src/sheet-object-bonobo.c (sheet_object_bonobo_{read,write)_xml) :
      	  New functions.  These need work.  the 'read_fn' and 'write_fn' do
      	  not merge nicely yet.
      
      	* src/main.c (gnumeric_main) : Register the sheet obect types.
      	  We need this until the plugin scheme is ready.
      
      	* src/item-grid.c (cb_obj_create_button_release) : Use set_sheet
      	  rather than realize.
      
      	* src/bonobo-io.c (gnumeric_bonobo_obj_write) : constness.
      313e9dc3
  26. 01 Dec, 2000 1 commit
    • Jody Goldberg's avatar
      new function. (sheet_object_position_pixels) : new function. · f4cc38b8
      Jody Goldberg authored
      
      2000-12-01  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-object.c (sheet_object_position_pts) : new function.
      	(sheet_object_position_pixels) : new function.
      
      2000-11-30  Jody Goldberg <jgoldberg@home.com>
      
      	* src/xml-io.c : Begin moving the sheet object xml io into virtuals.
      
      2000-11-30  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.c : Add SHEET_FOREACH_CONTROL to help abstract the
      	  implementation of controls and simplify changes later.
      	(sheet_set_zoom_factor) : reposition objects not just comments.
      	(sheet_get_objects) : New function.
      
      2000-11-30  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-object.c : Move most (not yet all) of the GUI aspects into
      	  the sheet control.  Revamp the semantics of the sheet-object
      	  virtuals.
      	new_view : now handles the sizing and realizing of objects.
      	Add support for persistance here.
      	Delete get/set bound.
      
      	* src/sheet-object-container.c : convert to new object management design
      	* src/sheet-object-graphic.c : Ditto.
      	* src/sheet-object-item.c : Ditto.
      	* src/sheet-object-widget.c : Ditto.
      
      	* src/sheet-object-bonobo.c (sheet_object_bonobo_construct) :
      	  sheet_object_construct now takes a default size.
      
      2000-11-30  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-control-gui.c : Move cell comment and sheet object
      	  placement routines here.  Rather than scattering them in non-gui
      	  modules.
      
      2000-11-30  Jody Goldberg <jgoldberg@home.com>
      
      	* src/print.c (print_object_view_position) : Convert object position
      	  to points.
      
      	* src/selection.c (sheet_selection_redraw) : simplify.
      
      2000-11-30  Jody Goldberg <jgoldberg@home.com>
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_object) : SheetObject
      	  editing is now specific to the SheetControl.
      	(gnumeric_sheet_key_press) : Ditto.
      	(gnumeric_sheet_key_release) : Ditto.
      
      	* src/selection.c (sheet_is_cell_selected) : Ditto.
      	(sheet_col_selection_type) : Ditto.
      	(sheet_row_selection_type) : Ditto.
      
      	* src/item-bar.c (item_bar_draw) : Ditto.
      
      	* src/item-grid.c (item_grid_draw_background) : Ditto.
      	(item_grid_button_1) : Ditto.
      	(item_grid_event) : Ditto.
      	(cb_obj_create_motion) : Move the object creation GUI here.
      	(cb_obj_create_button_release) : and add partial support for
      	  autoscroll.
      	(sheet_object_begin_creation) : Ditto.
      
      2000-11-30  Jody Goldberg <jgoldberg@home.com>
      
      	* src/cell.c (cell_copy) : Comments are no longer associated directly
      	  with cells.
      	* src/clipboard.c (paste_cell) : Ditto.
      	(clipboard_release) : Ditto.
      
      	* src/bonobo-io.c (gnumeric_bonobo_obj_read) : No need to set bounds
      	  or realize the object here.  That is handed at a higher level.
      
      2000-11-30  Jody Goldberg <jgoldberg@home.com>
      
      	* src/number-match.c (compute_value) : Use strtol to simplify things.
      
      	* src/func.c (tokenized_help_new) : translate the help text.
      
      2000-11-27  Jody Goldberg <jgoldberg@home.com>
      
      	* src/formats.c (currency_date_format_init) : quote the currency
      	  names.
      f4cc38b8
  27. 15 Nov, 2000 2 commits
    • Morten Welinder's avatar
      Remove trailing white-space from files that have it. · 5570aef3
      Morten Welinder authored
      (The following command was done in src/ and plugins/.  Note, that the
      grep has a space and a tab.)
      
      for i in `find . -name '*.[ch]' -print`; do if grep '[         ]$' $i >/dev/null; then echo $i; perl -pi -e 's/[ \t]+$//' $i; fi; done
      5570aef3
    • Jody Goldberg's avatar
      Follow convention that the manager is set when attached, and not before. · ad531019
      Jody Goldberg authored
      
      2000-11-15  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-control.c (workbook_control_set_view) : Follow
      	  convention that the manager is set when attached, and not before.
      	* src/workbook-view.c (wb_view_attach_control) : Ditto.  Set the
      	  tile on the new control.
      	* src/workbook.c (workbook_attach_view) : Ditto.
      
      2000-11-15  Jody Goldberg <jgoldberg@home.com>
      
      	* src/command-context-corba.[ch] : This is incorrectly named and used
      	  the wrong way :-( But at least it is compilable.  I'll fix this
      	  later.
      
      2000-11-15  Jody Goldberg <jgoldberg@home.com>
      
      	* src/colrow.c (col_row_foreach) : Use ColRowSegments
      	(col_row_restore_sizes) : Ditto.
      	* src/sheet.c (sheet_{col,row}_add) : Ditto.
      	(sheet_{col,row}_get_info) : Ditto.
      	(sheet_{col,row}_get) : Ditto.
      	(sheet_cell_foreach_range) : Ditto.
      	(sheet_{col,row}_destroy) : Ditto.
      	(sheet_regen_adjacent_spans) : Ditto.
      	(colrow_move) : Ditto.
      	(sheet_{col,row}_get_distance_pixels) : Ditto.
      	(sheet_{col,row}_get_distance_pts) : Ditto.
      	(sheet_{col,row}_set_size_pts) : Ditto.
      
      2000-11-15  Jody Goldberg <jgoldberg@home.com>
      
      	s/sheet-view/sheet-control-gui/
      
      	* src/Makefile.am : Add command-context-corba.[ch] temporarily
      
      	* configure.in : Default to non-bonobo build
      ad531019
  28. 09 Nov, 2000 1 commit
    • Jody Goldberg's avatar
      Initialize fully, add prepared_to_drag_flag. (item_cursor_selection_event) · a3602968
      Jody Goldberg authored
      
      2000-11-08  Jody Goldberg <jgoldberg@home.com>
      
      	* src/item-cursor.c (item_cursor_init) : Initialize fully, add
      	  prepared_to_drag_flag.
      	(item_cursor_selection_event) : Move most of the state change
      	  associated with BUTTON_PRESS into MOTION_NOTIFY.  And use the
      	  prepared_to_drag_flag flag to indicate a requirement to initiate a
      	  drag. Move most of the double click handling here.  The resone for
      	  these changes was that there was a race condition in the old
      	  version.  We were creating a new item cursor when we did a button
      	  press.  It started in exactly the same position as the current
      	  cursor.  2BUTTON_PRESS were sometimes being sent to the new cusor
      	  and sometimes showing up as PRESS events on the old with no RELEASE.
      	  This patch attempts to delay creating the new drag cursor until we
      	  are sure this is not a double click so that the proper event
      	  sequence is sent to the main cursor.
      
      	* src/border.c (style_border_unref) : Unref the colour.
      	(style_border_fetch) : unref the colour when needed.
      a3602968
  29. 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
  30. 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
  31. 31 Aug, 2000 1 commit
    • Jody Goldberg's avatar
      New base class for Cells. Convert everything to access the elements that · 8b5866fb
      Jody Goldberg authored
      
      2000-08-30  Jody Goldberg <jgoldberg@home.com>
      
      	* dependent.[ch] : New base class for Cells.
      	  Convert everything to access the elements that are now
      	  in the cell's base.
      	s/Cell::sheet/Cell::Dependent::sheet/
      	s/Cell::cell_flags/Cell::Dependent::flags/
      
      	* Makefile.am : Because of XL we need to build plugins before src.
      	  That will need changing.
      
      	* src/func.c (function_marshal_arg) : Use expr_array_intersection.
      
      	* src/expr.c (eval_expr_real) : Do implicit conversions from strings
      	  to numbers if possible.
      	  Access the first element of an array.  NOTE : This is WRONG
      	  We need to implement array expression behavior some day.
      	(expr_array_intersection) : New routine.
      8b5866fb
  32. 14 Apr, 2000 1 commit
    • Michael Meeks's avatar
      Make component printing, at least in the non-scissored case work. · 8a4b4824
      Michael Meeks authored
      2000-04-14  Michael Meeks  <michael@helixcode.com>
      
      	* src/print.c (print_job_info_get): setup sheet object list.
      	(print_job_info_destroy): check it. (print_sheet_range): build a list of
      	pre-printed sheet objects. (print_page_object): updated.
      
      	* src/sheet-object-bonobo.c (sheet_object_bonobo_print): simplify muchly
      	to new API.
      8a4b4824