1. 18 Jul, 2001 3 commits
    • Jody Goldberg's avatar
      Prep for release · fbac0918
      Jody Goldberg authored
    • Jody Goldberg's avatar
      mised commit · 78ec5990
      Jody Goldberg authored
    • Jody Goldberg's avatar
      Fix. SheetControl no longer inherits from Table it now contains it. · 972110b3
      Jody Goldberg authored
      2001-07-17  Jody Goldberg <jgoldberg@home.com>
      	* src/workbook-control-gui.c (wbcg_sheet_move) : Fix.
      	  SheetControl no longer inherits from Table it now contains it.
      	* src/sheet-control-gui.c (cb_sheet_object_view_destroy) : rename from
      	* src/sheet-object.c (cb_sheet_object_configure) : Use
      	  sheet_object_view_obj and sheet_object_view_control.
      	(sheet_object_view_destroyed) : remove the sheetcontrol key from the
      	  view when it is destroyed.  And remove our reference to the control.
      	(sheet_object_new_view) : give the view a ref of the control.
      	* src/item-grid.c (item_grid_draw) : only draw bound lines at pane
      	* src/item-bar.c (item_bar_event) : dont draw the resize bar past the
      	  minimum size.
  2. 17 Jul, 2001 5 commits
    • Jody Goldberg's avatar
      update · 0b34e16e
      Jody Goldberg authored
    • Stanislav Visnovsky's avatar
      Updated Slovak translation. · 41864784
      Stanislav Visnovsky authored
      2001-07-17  Stanislav Visnovsky  <visnovsky@nenya.ms.mff.cuni.cz>
      	* sk.po: Updated Slovak translation.
    • Chyla Zbigniew's avatar
      Updated Polish translation · 15512673
      Chyla Zbigniew authored
    • Jody Goldberg's avatar
      xml sax import for the new frozen pane support. · 11ef7202
      Jody Goldberg authored
      2001-07-16  Jody Goldberg <jgoldberg@home.com>
      	* xml-sax-read.c (xml_sax_attr_cellpos) : new function.
      	(xml_sax_sheet_layout) : new function.
      	(xml_sax_sheet_freezepanes) : new function.
      	(xml_sax_start_element) : handle the new states.
    • 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
      	(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.
  3. 16 Jul, 2001 7 commits
    • Chyla Zbigniew's avatar
      Marked string for translation. · 5d43d0dc
      Chyla Zbigniew authored
      * src/commands.c (cmd_format): Marked string for translation.
    • Morten Welinder's avatar
      Don't reverse the fields in case there are too many. · b047272b
      Morten Welinder authored
      2001-07-16  Morten Welinder  <terra@diku.dk>
      	* src/stf-parse.c (stf_parse_csv_line): Don't reverse the fields
       	in case there are too many.
      	(stf_parse_fixed_line): Ditto.
      	(stf_parse_general): Plug leak.
    • Chyla Zbigniew's avatar
      Don't mmap the file, use read() instead. · 793a76e0
      Chyla Zbigniew authored
      * src/file.c (gnum_file_saver_save_to_stream_real):
      Don't mmap the file, use read() instead.
    • Almer S. Tigelaar's avatar
      Use g_list_append and g_list_reverse. (stf_parse_fixed_line): Idem. · 3dd0345b
      Almer S. Tigelaar authored
      2001-07-16  Almer S. Tigelaar  <almer@gnome.org>
      	* src/stf-parse.c (stf_parse_csv_line): Use g_list_append and
      	(stf_parse_fixed_line): Idem.
      	(stf_parse_general): Idem.
       	* src/item-cursor.c (item_cursor_selection_event): Fix horizontal
      	double-click filling and add extra bound check for vertical
      	double-click filling.
    • Chyla Zbigniew's avatar
      Removed save_to_stream_func member. (gnum_file_saver_setup): Removed · 8a0a4c56
      Chyla Zbigniew authored
      * src/file-priv.h
      (struct _GnumFileSaver): Removed save_to_stream_func member.
      (gnum_file_saver_setup): Removed save_to_stream_func argument.
      * src/file.h
      (gnum_file_saver_new): Removed save_to_stream_func argument.
      (gnum_file_saver_supports_save_to_stream): Removed.
      * src/file.c
      New implementation, uses temporary file and gnum_file_saver_save.
      (gnum_file_saver_setup): Removed save_to_stream_func argument.
      (gnum_file_saver_new): Removed save_to_stream_func argument.
      (gnum_file_saver_supports_save_to_stream): Removed.
      * src/gui-file.c
      (ask_for_file_saver): Show all file savers in format chooser.
      * src/bonobo-io.c (gnumeric_bonobo_io_init),
      src/plugin-service.c (gnum_plugin_file_saver_new),
      src/stf.c (stf_init):
      Adjusted to file.h change (removed save_to_stream_func argument).
      * src/xml-io.c
      (gnumeric_xml_write_workbook_to_stream): Removed.
      (xml_init): Adjusted to file.h change.
    • Morten Welinder's avatar
      New file. · f2c297c3
      Morten Welinder authored
    • Almer S. Tigelaar's avatar
      Fix leakage. · 623fa04b
      Almer S. Tigelaar authored
      2001-07-16  Almer S. Tigelaar  <almer@gnome.org>
      	* stf-parse.c (stf_parse_general): Fix leakage.
  4. 15 Jul, 2001 18 commits
  5. 14 Jul, 2001 7 commits
    • Chyla Zbigniew's avatar
      New. (error_info_new_printf): Use error_info_new_vprintf. · 3537beaf
      Chyla Zbigniew authored
      * src/error-info.[ch]
      (error_info_new_vprintf): New.
      (error_info_new_printf): Use error_info_new_vprintf.
      (error_info_peek_message): Constified.
      * src/command-context-priv.h (struct CommandContextClass): Added
      error.error_info virtual.
      * src/command-context.[ch] (gnumeric_error_error_info): New.
      * src/io-context.[ch]
      (gnumeric_io_error_system, gnumeric_io_error_read,
      gnumeric_io_error_save): Use gnumeric_io_error_string.
      (gnumeric_io_error_string): New.
      (gnumeric_io_error_display): Renamed from
      gnumeric_io_error_info_display. Use CommandContext's virtual -
      (gnumeric_io_error_info_clear, gnumeric_io_has_error_info): Removed.
      * src/gnumeric-util.c
      (ctree_insert_error_info): Automatically expand most nodes (don't expand
      nodes with siblings).
      (gnumeric_error_info_dialog_show_full): Renamed from
      gnumeric_error_info_dialog_show. Display only a tree with error
      details. Don't hardcode ctree column width, make ctree look nicer (no
      lines, triangles as icons).
      (gnumeric_error_info_dialog_show): New function, displays only main part
      of the error and (optionally) "Show details" button. Use standard
      * src/plugin-util.c (gnumeric_fopen_error_info,
      gnumeric_mmap_error_info): Use error_info_new_from_errno.
      (gnumeric_open_error_info): Use error_info_new_from_errno,
      added missing *ret_error.
      * src/workbook-control-gui.c (wbcg_error_error_info): New
      (implementation of CommandContext's virtual).
      (workbook_control_gui_ctor_class): Use it here.
      * src/workbook-view.c (wb_view_save_as, wb_view_save,
      wb_view_open_custom): Don't use removed gnumeric_io_has_error_info.
    • Jody Goldberg's avatar
      adjust signature to take an enum instead of 4 booleans. Add a flag to · 36e082dd
      Jody Goldberg authored
      2001-07-14  Jody Goldberg <jgoldberg@home.com>
      	* src/gnumeric-sheet.c (gnumeric_sheet_handle_motion) : adjust
      	  signature to take an enum instead of 4 booleans.  Add a flag to
      	  allow the caller to handle motion within the visible pane.
      	(gsheet_sliding_callback) : more tuning for reverse motion in unfrozen
      	* src/item-bar.c (item_bar_event) : convert to new
      	  gnumeric_sheet_handle_motion signature.
      	* src/item-grid.c (item_grid_event) : ditto.
      	* src/item-cursor.c (item_cursor_handle_motion) : ditto.
      	* src/sheet-control-gui.c (cb_control_point_event) : ditto.
      	  Handle object motion within visible region locally.
    • Jody Goldberg's avatar
      update · 84dcfe7d
      Jody Goldberg authored
    • Jody Goldberg's avatar
      set the panes. · 2c2ba34c
      Jody Goldberg authored
      2001-07-14  Jody Goldberg <jgoldberg@home.com>
      	* src/sheet.c (sheet_init_sc) : set the panes.
      	* src/sheet-control.c (sc_init_state) : delete unused.
      	* src/sheet-control-gui.c (scg_make_cell_visible) : when landing in a
      	  partially frozen pane (1 or 3) if the panes are coupled move the
      	  other pane too.
      	(scg_set_panes) : Only use herioc measures if panes are changing, not
      	  when initializing.
      	(sheet_control_gui_new) : construct before attaching.
      	(horizontal_scroll_offset_changed) : don't clear wbcg msg text if we
      	  are't connected yet.
      	(vertical_scroll_offset_changed) : ditto.
      	(scg_scrollbar_config) :  no need to clear here.  We are already doing
      	  it in the adjustment handlers.
      	* src/gnumeric-sheet.c (gsheet_sliding_callback) : simplify and
      	  improve feel at bounds when scrolling in reverse.  Also remove debug
    • Jody Goldberg's avatar
      no need to make anything visible here. We already did that in the · f1c48e46
      Jody Goldberg authored
      2001-07-13  Jody Goldberg <jgoldberg@home.com>
      	* src/item-cursor.c (item_cursor_set_bounds_visibly) : no need to make
      	  anything visible here.  We already did that in the autoscroller.
      	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet) : no need to
      	  force a scroll.
    • Karl Eichwalder's avatar
      Update · fe562168
      Karl Eichwalder authored
    • Jody Goldberg's avatar
      new function. (ms_excel_read_sheet) : called from here. · 6cd90ea0
      Jody Goldberg authored
      2001-07-12  Jody Goldberg <jgoldberg@home.com>
      	* ms-excel-read.c (ms_excel_read_pane) : new function.
      	(ms_excel_read_sheet) : called from here.
      	(ms_excel_read_window2) : top left spec is _zero_ based.
      	  Add support for setting the frozen flag.
      	(ms_excel_sheet_new) : init the freeze flag here.
      2001-07-13  Jody Goldberg <jgoldberg@home.com>
      	* src/item-cursor.c (item_cursor_in_drag_handle) : bounding coords
      	  mark the outside of the drag box, center things before checking.
      	(item_cursor_selection_event) : be smarter about handling double
      	  clicks.  This could still be improved see comment.
      	* src/sheet.c (sheet_cell_calc_span) : clear existing span before
      	  recalculating it.
      	(sheet_cell_set_text) : clear existing spans for expressions.
      	(sheet_cell_set_expr): ditto.
      	* src/cellspan.c (cellspan_is_empty) : rename from cell_is_empty
      	  and change order of args to make it clear that the Cell in the cell
      	  in that arg list is _not_ the one being tested for emptiness.  Do
      	  the empty chacek manually because expressions with initial value
      	  'empty' are allowing other cells to continue spanning into them.
      	  However, since the expressions don't calc spans yet, the cell
      	  content is never made visibible.
      	* src/sheet-control-gui.c (scg_resize) : increase the size of the
      	  header canvases by 1.  I don't especially like the like, but I have
      	  no time to track down why the canvas scrolls by 1 pixel if I don't
      	  do this.
      	(cb_control_point_event) : partially fix sheet object movement.
      	* src/gnumeric-sheet.c (gnumeric_sheet_slide_stop) : renamed from
      	(col_scroll_step) : new function.
      	(row_scroll_step) : new function.
      	(gsheet_sliding_callback) : rewrite again to manage scrolling for
      	  panes more smoothly.  Still needs work.
      	(gnumeric_sheet_handle_motion) : handle motin into adjacent panes
      	(gnumeric_sheet_slide_init) : new routine to set adjacency earlier in
      	* src/item-bar.c (item_bar_event) : call gnumeric_sheet_slide_init.
      	* src/item-cursor.c (item_cursor_selection_event) : ditto.
      	(item_cursor_drag_event) : ditto.
      	* src/item-grid.c (item_grid_button_1) : ditto.
      2001-07-12  Jody Goldberg <jgoldberg@home.com>
      	* src/gnumeric-pane.c (gnumeric_pane_header_init) : no need to
      	  calc_size here.  That will be done when the item is realized.
      	* src/sheet-control-gui.c (scg_set_left_col) : And bounds checks and
      	(scg_set_top_row) : ditto.
      	* src/item-cursor.c (item_cursor_draw) : Add a simple test for pane
      	  support when placing the drag handle.