1. 18 Apr, 2001 1 commit
    • Jody Goldberg's avatar
      implement. · 203ab6fe
      Jody Goldberg authored
      	* src/workbook-control-gui.c (wbcg_init_state) : implement.
      
      2001-04-16  Jody Goldberg <jgoldberg@home.com>
      
      	s/workbook_control_sheets_init/workbook_control_init_state/
      
      	* src/commands.c (command_setup_combos) : new function to initialize
      	  the undo/redo combos into a known state.
      	* src/workbook-control.c (workbook_control_sheets_init) : called here.
      
      	* src/workbook-control.c (wb_control_change_view) : new virtual.
      	(workbook_control_set_view) : called here.
      203ab6fe
  2. 17 Apr, 2001 2 commits
  3. 16 Apr, 2001 1 commit
    • Jody Goldberg's avatar
      bump GAL version reqs. · 65b29b3b
      Jody Goldberg authored
      
      2001-04-16  Jody Goldberg <jgoldberg@home.com>
      
      	* configure.in : bump GAL version reqs.
      
      	* src/workbook-format-toolbar.c (workbook_create_format_toolbar) :
      	  Jump to updated interface.  Partially fix the shared group problems.
      65b29b3b
  4. 15 Apr, 2001 8 commits
    • Almer S. Tigelaar's avatar
      Within all functions where the ItemGrid is a variable, s/item_grid/ig, · 57f9f587
      Almer S. Tigelaar authored
      2001-04-15  Almer S. Tigelaar  <almer@gnome.org>
      
              * src/item-grid.c : Within all functions
              where the ItemGrid is a variable, s/item_grid/ig,
              s/grid/ig.
      57f9f587
    • Jody Goldberg's avatar
      Hide merged cells. (item_grid_draw_merged_range) : calculate the size the · e6dbc465
      Jody Goldberg authored
      
      2001-04-15  Jody Goldberg <jgoldberg@home.com>
      
      	* src/item-grid.c (item_grid_draw) : Hide merged cells.
      	(item_grid_draw_merged_range) : calculate the size the same way we do
      	  it in cell_draw.
      e6dbc465
    • Jody Goldberg's avatar
      new virtual (workbook_control_gui_ctor_class) : connect it here. · b4e680c8
      Jody Goldberg authored
      
      2001-04-15  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-control-gui.c (wbcg_finish_editing) : new virtual
      	(workbook_control_gui_ctor_class) : connect it here.
      	(wbcg_sheet_remove_all) : be sure we are no longer editing.
      
      	* src/workbook-control-priv.h : new virtual.
      	* src/workbook-control.c : ditto.
      	* src/workbook-control.h : ditto.
      
      	* src/colrow.c (colrow_visibility) : One last potential NULL.
      
      	* src/graph-vector.c : some portability fixes.
      b4e680c8
    • Almer S. Tigelaar's avatar
      Add detailed parser error messages. · fa7e253a
      Almer S. Tigelaar authored
      2001-04-15  Almer S. Tigelaar  <almer@gnome.org>
      
      	* src/parser.y : Add detailed parser error messages.
      
      	* src/workbook-edit.c (workbook_finish_editing) : Abort
      	if the expression is invalid and return a boolean indicating
      	success or failure.
      
      	* src/expr.c (expr_parse_string): Set error message to the
      	result of gnumeric_expr_parser.
      
      	* src/parse-util.c (parse_error_init) : Properly initialize
      	begin and end character.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet): Don't
      	change the cursor position if workbook_finish_editing failed.
      	(move_cursor): Idem.
      
      	* src/item-grid.c (item_grid_button_1): Idem.
      fa7e253a
    • Almer S. Tigelaar's avatar
      Remove grid gc. (preview_grid_unrealize) : Idem. · 021cb3d3
      Almer S. Tigelaar authored
      2001-04-15  Almer S. Tigelaar  <almer@gnome.org>
      
      	* src/preview-grid.c
      	(preview_grid_realize) : Remove grid gc.
      	(preview_grid_unrealize) : Idem.
      
      	* src/item-grid.c
      	(item_grid_realize) : Use gc.fill, gc.cell
      	and gc.empty instead of fill_gc, etc.
      	(item_grid_unrealize) : Idem.
      	(item_grid_draw_merged_range) : Idem.
      	(item_grid_draw_background) : Idem.
      	(item_grid_draw) : Idem.
      021cb3d3
    • Almer S. Tigelaar's avatar
      Remove entirely, the preview-grid-controller abstraction is no longer · f43567fa
      Almer S. Tigelaar authored
      2001-04-15  Almer S. Tigelaar  <almer@gnome.org>
      
      	* src/preview-grid-controller.c,
      	src/preview-grid-controller.h : Remove entirely, the
      	preview-grid-controller abstraction is no longer
      	needed.
      f43567fa
    • Almer S. Tigelaar's avatar
      Calls upon cb_cell_get_style, if NULL use default. (pg_get_row_height) : · 8959f61e
      Almer S. Tigelaar authored
      2001-04-15  Almer S. Tigelaar  <almer@gnome.org>
      
      	* src/preview-grid.c (pgrid_get_style) : Calls upon
      	cb_cell_get_style, if NULL use default.
      	(pg_get_row_height) : Retrieve row height.
      	(pg_get_col_width) : Retrieve col width.
      	(pg_get_row_offset) : Get offset of row.
      	(pg_get_col_offset) : Get offset of column.
      	(pg_construct_cell) : Construct a cell from a value.
      	(pg_destruct_cell) : Destruct a cell.
      	(preview_grid_realize) : Initialize default mstyle.
      	(preview_grid_unrealize) : Free default mstyle.
      	(preview_grid_set_arg) : Add support for row height and col
      	width.
      	(pg_style_get_row) : Use pg_* routines.
      	(preview_grid_draw) : Idem.
      8959f61e
    • Almer S. Tigelaar's avatar
      Reverted this · e93ad113
      Almer S. Tigelaar authored
      2001-04-14  Almer S. Tigelaar  <almer@gnome.org>
      
      	Reverted this
      
      	* src/commands.c (cmd_paste_cut) : Init saved_sizes.
      	(cmd_paste_cut_destroy) : Free saved_sizes.
      	(cmd_paste_cut_redo) : Store saved_sizes and don't allow
      	shrinking when autofitting row heights.
      	(cmd_paste_cut_undo) : Restore saved_sizes.
      	(cmd_paste_copy_undo) : Store/Restore saved_sizes, don't
      	set PASTE_UPDATE_ROW_HEIGHT flag. It's been removed. Also,
      	don't allow shrinking when autofitting row heights.
      	(cmd_paste_copy_destroy) : Free saved_sizes.
      	(cmd_paste_copy) : Init saved_sizes.
      	(cmd_format_undo) : Allow shrink when autofitting row heights.
      	(cmd_autoformat_undo) : Idem.
      
      	* src/sheet.c (sheet_apply_style) : Allow shrink when autofitting
      	row heights.
      	(sheet_clear_region) : Idem.
      
      	* src/clipboard.c (clipboard_paste_region) : Remove the
      	PASTE_UPDATE_ROW_HEIGHT flag.
      
      	* src/colrow.c :
      	(rows_height_update) : Add an extra flag allow_shrink, if set rows
      	will be autofitted even if this means that the size of the row must
      	be reduced.
      	(cb_autofit_height) : Add support for allow_shrink.
      e93ad113
  5. 14 Apr, 2001 2 commits
    • Almer S. Tigelaar's avatar
      Init saved_sizes. (cmd_paste_cut_destroy) : Free saved_sizes. · 18651ef5
      Almer S. Tigelaar authored
      2001-04-14  Almer S. Tigelaar  <almer@gnome.org>
      
      	* src/commands.c (cmd_paste_cut) : Init saved_sizes.
      	(cmd_paste_cut_destroy) : Free saved_sizes.
      	(cmd_paste_cut_redo) : Store saved_sizes and don't allow
      	shrinking when autofitting row heights.
      	(cmd_paste_cut_undo) : Restore saved_sizes.
      	(cmd_paste_copy_undo) : Store/Restore saved_sizes, don't
      	set PASTE_UPDATE_ROW_HEIGHT flag. It's been removed. Also,
      	don't allow shrinking when autofitting row heights.
      	(cmd_paste_copy_destroy) : Free saved_sizes.
      	(cmd_paste_copy) : Init saved_sizes.
      	(cmd_format_undo) : Allow shrink when autofitting row heights.
      	(cmd_autoformat_undo) : Idem.
      
      	* src/sheet.c (sheet_apply_style) : Allow shrink when autofitting
      	row heights.
      	(sheet_clear_region) : Idem.
      
      	* src/clipboard.c (clipboard_paste_region) : Remove the
      	PASTE_UPDATE_ROW_HEIGHT flag.
      
      	* src/colrow.c :
      	(rows_height_update) : Add an extra flag allow_shrink, if set rows
      	will be autofitted even if this means that the size of the row must
      	be reduced.
      	(cb_autofit_height) : Add support for allow_shrink.
      18651ef5
    • Jody Goldberg's avatar
      automate removing the generated files. · 5ae7eceb
      Jody Goldberg authored
      
      2001-04-13  Jody Goldberg <jgoldberg@home.com>
      
      	* idl/Makefile.am (dist-hook) : automate removing the generated files.
      
      	* src/workbook-control-gui.c (workbook_menu_data_outline) : new menu.
      5ae7eceb
  6. 13 Apr, 2001 5 commits
    • Jody Goldberg's avatar
      missing changelog · 7daf5711
      Jody Goldberg authored
      7daf5711
    • Jon K Hellan's avatar
      Use gtk_idle_add to postpone clipboard setup. For mysterious reasons, · 62fb7f8d
      Jon K Hellan authored
      2001-04-13  Jon K Hellan  <hellan@acm.org>
      
      	* src/workbook-control-gui.c (workbook_control_gui_init): Use
      	gtk_idle_add to postpone clipboard setup. For mysterious reasons,
      	connecting callbacks to the table doesn't work. Toplevel does
      	work, but we must wait until we live inside a toplevel.
      
      	* src/gui-clipboard.c (x_selection_received,
      	x_clipboard_bind_workbook): Use wb_control_gui_toplevel to
      	determine toplevel.
      
      	* src/gui-clipboard.[ch] (x_clipboard_bind_workbook): Change
      	signature to make it callable as an idle function. Make it
      	determine the toplevel from
      62fb7f8d
    • Jody Goldberg's avatar
      Take the easy way out. · 73d89ecc
      Jody Goldberg authored
      2001-04-13  Jody Goldberg <jgoldberg@home.com>
      
      	* src/style.c (font_init) : rename fontmap -> fontmap2 for newer
      	  versions of gnome-print.
      73d89ecc
    • Jody Goldberg's avatar
      rename gnumeric.xml GNOME_Gnumeric.xml. · e15d0a2c
      Jody Goldberg authored
      
      2001-04-12  Jody Goldberg <jgoldberg@home.com>
      
      	* src/Makefile.am : rename gnumeric.xml GNOME_Gnumeric.xml.
      
      	* src/sheet.c (sheet_col_add) : update the max outline_level.
      	(sheet_row_add) : ditto.
      
      	* src/xml-io.c (xml_read_colrow_info) : restore the col/row outline
      	  level data.
      	(xml_write_colrow_info) : store it here.
      e15d0a2c
    • Jody Goldberg's avatar
      Outline mode events and undo/redo are working. · c0aa8960
      Jody Goldberg authored
      2001-04-12  Jody Goldberg <jgoldberg@home.com>
      
      	* src/colrow.c (colrow_set_visibility) : don't collapse things unless
      	  they are at the end of the region.  Always uncollapse things.
      
      2001-04-11  Jody Goldberg <jgoldberg@home.com>
      
      	* src/item-bar.c (item_bar_draw) : tweak the redraw a bit to match
      	  event handling
      
      	* src/mstyle.c (mstyle_elements_equal) : remove pointless asserts and
      	  correct the logic.
      	(mstyle_element_equal) : Stop passing structs.
      	(mstyle_elements_equal) : adjust here.
      	(mstyle_elements_compare) : and here.
      
      2001-04-12  Jody Goldberg <jgoldberg@home.com>
      
      	* src/colrow.c (colrow_set_visibility) : collapse state changes can
      	  occur more than once within a range.
      
      	* src/sheet.c (sheet_col_row_gutter_pts) : simplify, no need to store
      	  sizes in pts.  Outline level is enough.
      	  s/sheet_col_row_gutter_pts/sheet_col_row_gutter/
      c0aa8960
  7. 12 Apr, 2001 3 commits
    • Morten Welinder's avatar
      Portability fixes. · 81335ae3
      Morten Welinder authored
      81335ae3
    • Jody Goldberg's avatar
      53096 · 53253569
      Jody Goldberg authored
      2001-04-12  Jody Goldberg <jgoldberg@home.com>
      
      	* src/commands.c (cmd_paste_copy_undo) : Make the corner of the
      	  restored region visible.
      	(cmd_autofill_undo) : Ditto.
      	(cmd_autofill_redo) : Ditto.
      53253569
    • Jody Goldberg's avatar
      fix chema's spanning problem. · 5c3d4bf0
      Jody Goldberg authored
      
      2001-04-10  Jody Goldberg <jgoldberg@home.com>
      
      	* src/cellspan.c (cell_calc_span) : fix chema's spanning problem.
      
      	* src/workbook-control-gui.c (workbook_menu_data) : Add an icon for
      	  the sort menu item.
      
      2001-04-9  Jody Goldberg <jgoldberg@home.com>
      
      	s/cmd_hide_selection_colrow/cmd_colrow_hide_selection/
      
      	* src/commands.c (cmd_colrow_outline_change) : new wrapper for
      	  colrow_hide that handled outline changes.
      
      	* src/workbook-control-gui.c (cb_insert_{cols,rows}) : cancel edit.
      	(cb_select_auto_expr) : return a value.
      
      	* src/colrow.c (cb_col_row_visibility) : Use get rather than fetch.
      	(colrow_find_outline_bound) : new function.
      	(cb_colrow_visibility) : turn this into a wrapper for.
      	(colrow_visibility) : this, and add honour_collapse flag.
      	  invert the search to go fro mthe end to the start in preparation for
      	  supporting the honour_collapse flag.  Insert the items into a sorted
      	  list in case we want to merge them some day.
      	(colrow_get_outline_toggle) : use new routine here too.
      
      2001-04-05  Jody Goldberg <jgoldberg@home.com>
      
      	* src/item-bar.c (item_bar_event) : Doh!  The outline events are
      	  controled by the minor coordinate.
      
      2001-04-01  Jody Goldberg <jgoldberg@home.com>
      
      	* src/main.c (gnumeric_main) : shut plugins down first.
      5c3d4bf0
  8. 04 Apr, 2001 2 commits
    • Morten Welinder's avatar
      Improve error message. Constify. · 1eee143f
      Morten Welinder authored
      2001-04-04  Morten Welinder  <terra@diku.dk>
      
      	* src/style.c (font_init): Improve error message.  Constify.
      1eee143f
    • Morten Welinder's avatar
      Refer to bugzilla, not bugs. · 1157a82b
      Morten Welinder authored
      2001-04-04  Morten Welinder  <terra@diku.dk>
      
      	* src/style.c (font_init): Refer to bugzilla, not bugs.
      
      2001-04-04  Morten Welinder  <terra@diku.dk>
      
      	* authors.sgml: refer to bugzilla, not bugs.
      1157a82b
  9. 01 Apr, 2001 2 commits
    • Chyla Zbigniew's avatar
      Don't update saved active plugin ids if PLUGIN_DEBUG is defined. · 21423699
      Chyla Zbigniew authored
      
      * src/plugin.c
      (plugin_db_activate_saved_active_plugins): Don't update saved active
      plugin ids if PLUGIN_DEBUG is defined.
      (plugins_shutdown): Update saved active plugin ids only if needed.
      21423699
    • Almer S. Tigelaar's avatar
      Don't mirror the size of the selected cols/rows, instead look at the next · a29ca1d7
      Almer S. Tigelaar authored
      2001-04-01  Almer S. Tigelaar  <almer@gnome.org>
      
      	* src/commands.c
      	(cmd_ins_del_colrow_redo): Don't mirror the size of the
      	selected cols/rows, instead look at the next visible col/row
      	to the top/left for the size.
      	(cmd_hide_colrow_correct_selection): Pass extra "forward" parameter
      	value to colrow_find_adjacent_visible.
      
      	* src/colrow.h, src/colrow.c
      	(colrow_find_adjacent_visible): Add optional "forward" parameter.
      	If unset it will seek to the right/bottom otherwise to the left/top.
      a29ca1d7
  10. 31 Mar, 2001 2 commits
    • Chyla Zbigniew's avatar
      Replaced PLUGIN_MESSAGE macro with plugin_message function to avoid · f9ad8cb6
      Chyla Zbigniew authored
      
      * src/plugin.[ch]: Replaced PLUGIN_MESSAGE macro with plugin_message
      function to avoid portability problems (some compilers don't support
      vararg macros), added "level" argument.
      
      * src/plugin-loader.c (gnumeric_plugin_loader_load,
      gnumeric_plugin_loader_unload): Adjusted to plugin.h.
      f9ad8cb6
    • Jody Goldberg's avatar
      Some improvements to blip loading. · 186ac28d
      Jody Goldberg authored
      and some tuning that greatly improves startup time.
      
      2001-03-30  Jody Goldberg <jgoldberg@home.com>
      
      	* ms-container.c (ms_container_init) : Take a parent container.
      	(ms_container_finalize) : handle NULL blips smoothly.
      	(ms_container_get_blip) : check the container if we are empty.
      
      	* ms-escher.c (ms_escher_read_Blip) : always register a blip, even if
      	  it is NULL, otherwise the index gets confused.  Move the
      	  registration here.
      	(ms_escher_blip_new) : from here.
      	(ms_escher_read_ClientData) : replace blips we can't understand with
      	  rectangles.
      
      	* ms-chart.c (ms_excel_chart) : Pass in the charts container.
      
      	* ms-excel-read.c (ms_excel_workbook_new) : workbook have no parents.
      	(ms_excel_sheet_new) : Sheets are contained by workbooks.
      
      2001-03-30  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-control-gui.c (wbcg_sheet_remove_all) : clear the
      	  notebook BEFORE deleting it to avoid updating during destuction.
      
      	* src/cellspan.c (cell_calc_span) : Cells in hidden columns can not
      	  have spans.
      
      	* src/file.c (file_finish_load) : no need to manually respan this will
      	  happen via sheet_update.  This gives us a nice speed up.
      
      	* src/sheet.c (sheet_cell_calc_span) : don't reregister spans that
      	  have not changed.
      	(sheet_new) : init all flags to true to ensure things get updated.
      186ac28d
  11. 30 Mar, 2001 2 commits
  12. 29 Mar, 2001 3 commits
  13. 28 Mar, 2001 2 commits
  14. 27 Mar, 2001 2 commits
    • Morten Welinder's avatar
      (cmd_search_replace_undo, cmd_search_replace_redo): Fix for · 9c183f15
      Morten Welinder authored
       	missing cells with comments.
      9c183f15
    • Morten Welinder's avatar
      New function, extracted from cmd_search_replace_do. · 9afef623
      Morten Welinder authored
      2001-03-26  Morten Welinder  <terra@diku.dk>
      
      	* src/workbook.c (workbook_cells): New function, extracted from
       	cmd_search_replace_do.
      
      	* src/sheet.c (sheet_cells): New function, extracted from
       	cmd_search_replace_do.
      
      	* src/cell.c (cell_has_comment_pos): New function for those cells
       	that aren't really there.
      
      	* src/commands.c (cmd_search_replace_do): Use workbook_cells and
       	sheet_cells.
      	(cmd_search_replace_do_cell): Change to take position instead of
       	cell.  Handle missing cells without crashing.
      9afef623
  15. 25 Mar, 2001 2 commits
  16. 23 Mar, 2001 1 commit