1. 29 Jan, 2001 3 commits
    • Almer S. Tigelaar's avatar
      Rename to sheet_selection_reset. · 2862b796
      Almer S. Tigelaar authored
      2001-01-30  Almer S. Tigelaar  <almer1@dds.nl>
      
      	* src/selection.c, src/selection.h:
      	(sheet_selection_reset_only): Rename to sheet_selection_reset.
      
      	* src/cmd-edit.c: s/sheet_selection_reset_only/sheet_selection_reset.
      	* src/commands.c: Ditto.
      	* src/gnumeric-sheet.c: Ditto.
      	* src/item-grid.c: Ditto.
      	* src/sheet.c: Ditto.
      	* src/sheet-control-gui.c: Ditto.
      	* src/xml-io.c: Ditto.
      
      2001-01-30  Almer S. Tigelaar  <almer1@dds.nl>
      
      	* ms-excel-read.c (ms_excel_read_selection):
      	Rename sheet_selection_reset_only to sheet_selection_reset.
      
      2001-01-30  Almer S. Tigelaar  <almer1@dds.nl>
      
      	* xml2.c
      	(xml2ParseSelection): Rename sheet_selection_reset_only
      	to sheet_selection_reset.
      2862b796
    • Almer S. Tigelaar's avatar
      Add flags for insert cols/rows and paste special. · 0acb7687
      Almer S. Tigelaar authored
      2001-01-29  Almer S. Tigelaar  <almer1@dds.nl>
      
      	* src/sheet.h: Add flags for insert cols/rows and paste special.
      
      	* src/selection.c
      	(sheet_selection_add_range):
      	Remove the settings of insert cols/rows here.
      	(sheet_selection_set_internal):
      	Set insert cols/rows menu items and flags correctly.
      	(sheet_selection_reset_only): Reset insert cols/rows flags.
      
      	* src/application.c
      	(application_clipboard_clear): Set enable paste special flag.
      	(application_clipboard_copy): Ditto.
      	(application_clipboard_cut): Ditto.
      
      	* src/workbook-view.c, src/workbook-view.h
      	(wb_view_menus_update): New function, updates the
      	insert cols/rows and paste special menu items.
      	(wb_view_sheet_focus): Call menus_update here.
      	(wb_view_sheet_add): Ditto.
      
      	* src/workbook-control-gui.c
      	(workbook_control_gui_init): Update menu items here.
      0acb7687
    • Fatih Demir's avatar
      Hm, some more cvsignore · 37a8e135
      Fatih Demir authored
      37a8e135
  2. 28 Jan, 2001 1 commit
    • Chyla Zbigniew's avatar
      s/xml_search_child/e_xml_get_child_by_name/ · b7ee664e
      Chyla Zbigniew authored
      
      * src/plugin.c, src/xml-io-autoft.c:
      s/xml_search_child/e_xml_get_child_by_name/
      s/xml_search_child_lang_list/e_xml_get_child_by_name_by_lang_list/
      
      * src/xml-io.[ch]:
      Removed function: xml_search_child.
      Functions moved to GAL:
      xml_search_child_lang_list_with_score,
      xml_search_child_lang_list,
      xml_search_child_no_lang.
      Use e_xml_get_child_by_name instead of xml_search_child everywhere.
      b7ee664e
  3. 27 Jan, 2001 2 commits
    • Chyla Zbigniew's avatar
      Making Gnumeric -Werror friendly (well, almost). · b3f070c4
      Chyla Zbigniew authored
      
      Making Gnumeric -Werror friendly (well, almost).
      
      * plugins/excel/ms-chart.c: Added "#if 0/#endif" around declarations
      of unused variables.
      
      * plugins/gda/plugin-gda.c (display_recordset): Removed unused
      variable, fixed some errors (that's why I use -Werror).
      
      * plugins/xml2/xml2.c (init_plugin): Used xml2_probe function.
      
      * src/search.c: Included "ranges.h".
      
      * src/style.c: Included "sheet.h"
      b3f070c4
    • Chyla Zbigniew's avatar
      Set policy to AUTOMATIC for some scrollbars. · 17361383
      Chyla Zbigniew authored
      
      * src/dialogs/plugin-manager.glade: Set policy to AUTOMATIC for some
      scrollbars.
      17361383
  4. 26 Jan, 2001 3 commits
    • Chyla Zbigniew's avatar
      Added missing file_finish_load(). Displaying error dialog in non-bonobo · 94956cc8
      Chyla Zbigniew authored
      
      * src/gnumeric-sheet.c (gnumeric_sheet_filenames_dropped): Added
      missing file_finish_load(). Displaying error dialog in non-bonobo
      version if file has unknown format.
      94956cc8
    • Jon K Hellan's avatar
      new functions to wrap direct calls to gsheet. · 41e094ad
      Jon K Hellan authored
      2001-01-26  Jon K Hellan  <hellan@acm.org>
      
      	* src/sheet-control-gui.[ch] (scg_rangesel_cursor_extend,
      	  scg_take_focus): new functions to wrap direct calls to gsheet.
      
      	* src/sheet-control-gui.c (sheet_view_destroy): Yield focus if we
      	have it.
      
      	* src/workbook-control-gui.c (wb_control_gui_focus_cur_sheet): Use
      	scg_take_focus instead of gtk_window_set_focus.
      	(yield_focus): Remove. sheet_view_destroy now takes care of this.
      	(wbcg_sheet_add): Do not attach yield_focus.
      
      	* src/item-grid.c (cb_extend_expr_range): Use
      	scg_rangesel_cursor_extend instead of gnumeric_sheet version.
      41e094ad
    • Michael Meeks's avatar
      g_new0 the PluginInfo so the umpteen function pointers are NULL'd. · dba842fa
      Michael Meeks authored
      2001-01-26  Michael Meeks  <michael@helixcode.com>
      
      	* src/plugin.c (plugin_info_read): g_new0 the PluginInfo so the
      	umpteen function pointers are NULL'd.
      dba842fa
  5. 25 Jan, 2001 7 commits
    • Almer S. Tigelaar's avatar
      Remove insert struct, there is only one function in it anyway so no need · 26a47636
      Almer S. Tigelaar authored
      2001-01-25  Almer S. Tigelaar  <almer1@dds.nl>
      
              * src/workbook-control-priv.h: Remove insert struct, there
      	is only one function in it anyway so no need for a struct.
      
      	* src/workbook-control.c: Adjust for removal of the insert struct.
      
      	* src/workbook-control-gui.c
      	(wbcg_paste_special_enable): Use change_menu_sensitivity.
      	(workbook_control_gui_ctor_class): Adjust for removal of the insert struct.
      26a47636
    • Morten Welinder's avatar
      Delete unused variable. · 09be334a
      Morten Welinder authored
      2001-01-25  Morten Welinder  <terra@diku.dk>
      
      	* src/commands.c (cmd_search_replace_update_after_action): Delete
       	unused variable.
      
      	* src/parser.y (parse_ref_or_string): Constify.
      	(gnumeric_parse_error): Fix prototype.
      	(STRING '(' arg_list ')'): plug leak and use proper error
       	reporting method.
      09be334a
    • Chyla Zbigniew's avatar
      Defined gnumeric_plugin_version variable containing Gnumeric version · 2fb61c09
      Chyla Zbigniew authored
      
      * plugins/applix/boot.c plugins/dif/dif.c plugins/excel/boot.c
      plugins/gb/plugin.c plugins/gda/plugin-gda.c plugins/guile/plugin.c
      plugins/html/boot.c plugins/html/boot.h plugins/html/html.c
      plugins/html/html.h plugins/html/latex.c plugins/html/latex.h
      plugins/html/roff.c plugins/html/roff.h plugins/lotus-123/boot.c
      plugins/numtheory/numtheory.c plugins/oleo/boot.c
      plugins/plan-perfect/pln.c plugins/python/python.c plugins/sc/sc.c
      plugins/sylk/sylk.c plugins/xbase/boot.c plugins/xml2/xml2.c:
      Defined gnumeric_plugin_version variable containing Gnumeric version
      string for every plugin.
      Added user_data parameter to "probe", "open" and "save" functions.
      Changed PluginData to PluginInfo.
      Modified can_deactivate_plugin, cleanup_plugin and init_plugin
      functions to match new prototypes in plugin.h.
      Storing registered opener_id/saver_id in variables and using them
      while unregistering.
      
      * plugins/applix/Makefile.am plugins/dif/Makefile.am
      plugins/gda/Makefile.am plugins/html/Makefile.am
      plugins/lotus-123/Makefile.am plugins/numtheory/Makefile.am
      plugins/oleo/Makefile.am plugins/plan-perfect/Makefile.am
      plugins/sc/Makefile.am plugins/sylk/Makefile.am
      plugins/xbase/Makefile.am plugins/xml2/Makefile.am:
      Installing every plugin in separate directory, together with plugin
      descriptions (plugin.xml files).
      
      * plugins/applix/plugin.xml, plugins/dif/plugin.xml,
      plugins/gda/plugin.xml, plugins/html/plugin.xml,
      plugins/lotus-123/plugin.xml, plugins/numtheory/plugin.xml,
      plugins/oleo/plugin.xml, plugins/plan-perfect/plugin.xml,
      plugins/python/plugin.xml, plugins/sc/plugin.xml,
      plugins/sylk/plugin.xml, plugins/xbase/plugin.xml,
      plugins/xml2/plugin.xml:
      New files - plugin descriptions in XML files.
      2fb61c09
    • Chyla Zbigniew's avatar
      Added error-info.[ch] · fbc4a7c5
      Chyla Zbigniew authored
      
      * src/Makefile.am (GNUMERIC_BASE_SOURCES): Added error-info.[ch]
      
      * error-info.[ch]: New files.
      
      * src/plugin.[ch]: New plugin engine.
      
      * src/dialogs/dialog-plugin-manager.c,
      src/dialogs/plugin-manager.glade,
      src/dialogs/plugin-manager.glade.h:
      New plugin manager.
      
      * src/main.c (gnumeric_main): Call plugins_shutdown() on shutdown.
      
      * src/bonobo-io.c
      (gnumeric_bonobo_write_workbook, gnumeric_bonobo_read_workbook,
      gnumeric_bonobo_io_probe): Added "user_data" arg.
      (gnumeric_bonobo_io_init): Saving saver/opener id.
      
      * src/file-autoft.c (gnumeric_extra_autoformat_dirs): Used
      gnumeric_config_get_string_list function.
      
      * src/file.c
      (file_format_register_open, file_format_register_save): Added
      user_data parameter, return FileOpenerId/FileSaverId.
      (file_format_unregister_open, file_format_unregister_save): Take
      only FileOpenerId/FileSaverId as parameter.
      (get_file_saver_by_id, get_file_opener_by_id): New functions.
      (do_load_from): Pass user_data parameter to "probe" and "open"
      functions.
      (workbook_save_as, workbook_save): Pass user_data parameter to "save"
      function.
      
      * src/file.h
      (FileFormatProbe, FileFormatOpen, FileFormatSave): Adder user_data
      parameter.
      (struct _FileOpener, struct _FileSaver): Added opener_id/saver_id
      field.
      (file_format_register_open, file_format_register_save):
      Added user_data parameter, return FileOpenerId/FileSaverId.
      (file_format_unregister_open, file_format_unregister_save):
      Take only FileOpenerId/FileSaverId as parameter.
      
      * src/gnumeric-util.[ch]
      (gnumeric_error_info_dialog_show, static ctree_insert_error_info):
      New functions displaying dialog with ErrorInfo contents.
      
      * src/gui-file.c (gui_file_import): Pass user_data parameter to
      "open" function.
      
      * src/gutils.[ch]
      New functions: gnumeric_config_get_string_list,
      gnumeric_config_set_string_list, g_string_list_copy,
      g_strsplit_to_list.
      (g_create_list): Added missing va_end().
      
      * src/stf.c (stf_read_workbook, stf_write_workbook): Added user_data
      parameter.
      
      * src/workbook.[ch] (workbook_set_saveinfo): Now takes file_saver_id
      instead of save_fn.
      
      * src/xml-io.c
      (xml_probe, gnumeric_xml_read_workbook, gnumeric_xml_write_workbook):
      Added user_data parameter.
      (xml_init): Store xml_opener_id and xml_saver_id.
      (gnumeric_xml_get_opener_id, gnumeric_xml_get_saver_id): New
      functions.
      fbc4a7c5
    • Almer S. Tigelaar's avatar
      Add PASTE_UPDATE_ROW_HEIGHT as a new paste flag. · c46a5465
      Almer S. Tigelaar authored
      2001-01-25  Almer S. Tigelaar  <almer1@dds.nl>
      
              * src/clipboard.h : Add PASTE_UPDATE_ROW_HEIGHT as a new paste flag.
      
              * src/commands.c
              (cmd_paste_copy_undo): Add PASTE_UPDATE_ROW_HEIGHT to the paste flags.
              (cmd_paste_cut_redo): Update the row heights of the target region after
              pasting for consistency with the behaviour of copy.
              (cmd_paste_cut): Show source cut range in undo descriptor.
      
              * src/clipboard.c (clipboard_paste_region): Update row height after
              pasting if PASTE_UPDATE_ROW_HEIGHT flag is given.
      c46a5465
    • Jody Goldberg's avatar
      Merged Cells are now complete. · 0426031a
      Jody Goldberg authored
      Please beat the crap out of them
      
      2001-01-25  Jody Goldberg <jgoldberg@home.com>
      
      	* src/cmd-edit.c (cmd_paste_to_selection) : allow merged regions
      
      	* src/clipboard.c (clipboard_paste_region) : Optionally paste merged
      	  regions too.
      
      	* src/style-border.c (style_border_fetch) : add margins.
      0426031a
    • Morten Welinder's avatar
      Better XL emulation. · 10efe742
      Morten Welinder authored
      Implement s-a-r on expressions.
      
      
      2001-01-24  Morten Welinder  <terra@diku.dk>
      
      	* src/commands.c (cmd_search_replace_update_after_action): New
       	function.
      	(cmd_search_replace_undo, cmd_search_replace_redo,
       	cmd_search_replace_do): Call
       	cmd_search_replace_update_after_action.
      	(cmd_search_replace_do_cell): Change to work on entered text which
       	is, we believe, what XL does.
      10efe742
  6. 24 Jan, 2001 5 commits
    • Jody Goldberg's avatar
      disable stupid cruft until I actually write this function. · e3496b8e
      Jody Goldberg authored
      
      2001-01-24  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-style.c (sheet_style_get_uniform) : disable stupid cruft
      	  until I actually write this function.
      
      	* src/format-template.c (format_template_recalc_hash) : remove the
      	  cruft to apply shifted borders.
      e3496b8e
    • Jody Goldberg's avatar
      save the merged regions. (clipboard_release) : cleanup merged regions. · b18b73be
      Jody Goldberg authored
      
      2001-01-24  Jody Goldberg <jgoldberg@home.com>
      
      	* src/clipboard.c (clipboard_copy_range) : save the merged regions.
      	(clipboard_release) : cleanup merged regions.
      
      	* src/commands.c (cmd_merge_cells_redo) : move the non-corner content
      	  clearing from here.
      	* src/sheet-merge.c (sheet_merge_add) : to here.  Apply the style from
      	  the corner to the entire region.
      
      	* src/sheet.c (sheet_range_set_text) : clear range_filled merged
      	  regions.
      
      	* src/item-grid.c (item_grid_draw) : borders & grids for merged cells.
      
      2001-01-23  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-style.c (style_row) : move the clearing of grid lines
      	* src/item-grid.c (item_grid_draw) : from here.
      b18b73be
    • Almer S. Tigelaar's avatar
      Let the sensitivity filter function exacly like the display filter. · 783d67db
      Almer S. Tigelaar authored
      2001-01-24  Almer S. Tigelaar  <almer1@dds.nl>
      
              * src/gnumeric-util.c (gnumeric_create_popup_menu):
              Let the sensitivity filter function exacly like the
              display filter.
      
              * src/sheet-control-gui.c (scg_context_menu):
              Disable insert rows/cols according to the selected
              rows/cols. We don't want people to insert anything if
              the whole sheet is selected or if there are multiple
              selections of whole rows and cols.
      
              * src/workbook-control-gui.c (wbcg_insert_cols_rows_enable):
              Fix typo, "Cols" should be "Columns".
      783d67db
    • Almer S. Tigelaar's avatar
      Update row heights after pasting a region. Fixes #38176. · 52105ea8
      Almer S. Tigelaar authored
      2001-01-24  Almer S. Tigelaar  <almer1@dds.nl>
      
              * src/clipboard.c (clipboard_paste_region):
              Update row heights after pasting a region. Fixes #38176.
      52105ea8
    • Morten Welinder's avatar
      Implement search-and-replace in range. · 3555777c
      Morten Welinder authored
      2001-01-23  Morten Welinder  <terra@diku.dk>
      
      	* src/commands.c (cmd_search_replace_do): Implement
       	search-and-replace in range.
      3555777c
  7. 23 Jan, 2001 3 commits
    • Morten Welinder's avatar
      New function. Implements case preservation. · 04365f9d
      Morten Welinder authored
      2001-01-23  Morten Welinder  <terra@diku.dk>
      
      	* src/search.c (calculate_replacement): New function.  Implements
       	case preservation.
      04365f9d
    • Jody Goldberg's avatar
      If we are not selecting a range for an expression then we should cancel · 63e24beb
      Jody Goldberg authored
      
      2001-01-23  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-control-gui.c (scg_colrow_select) : If we are not
      	  selecting a range for an expression then we should cancel editing.
      	(scg_context_menu) : cancel editing.
      
      2001-01-22  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.c : Use the new wrapper function in scg (for now) rather
      	  than a direct call to gsheet.
      
      	* src/sheet-control-gui.c (scg_set_cursor_bounds) : new function to
      	  wrap direct calls to gsheet.  This is prep for supporting panes.
      	(scg_compute_visible_region) : new function
      	(scg_make_cell_visible) : new function
      	(scg_create_editor) : new function
      	(scg_stop_editing) : new function
      	(scg_stop_cell_selection) : new function
      
      	* src/pattern.c (gnumeric_background_set_gc) : no need for setting GC
      	  in non selection case.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_create_editor) : renamed from
      	  gnumeric_sheet_create_editing_cursor.
      	(gsheet_compute_visible_region) : rename from
      	  gnumeric_sheet_compute_visible_ranges
      63e24beb
    • Morten Welinder's avatar
      I got this right-end condition wrong. Oh dear. · 14e3515d
      Morten Welinder authored
      2001-01-22  Morten Welinder  <terra@diku.dk>
      
      	* src/search.c (match_is_word): I got this right-end condition
       	wrong.  Oh dear.
      
      	* src/cell.c (cell_has_comment): Resurrect.
      
      	* src/commands.c (cmd_search_replace_do_cell): No need for the
       	sheet argument.
      	(command_push_undo): Remove duplicate call to update_after_action.
        	First check parameters, then use them.
      	(command_register_undo): New function, split from
       	command_push_undo.
      	(command_push_undo): Use command_register_undo.
      	(truncate_undo_info): Change to take a Workbook directly.  Caller
       	changed.
      	(cmd_search_replace): Use command_register_undo and eliminate
       	gross hack.
      14e3515d
  8. 22 Jan, 2001 6 commits
    • Morten Welinder's avatar
      More search-and-replace features. · f8ed619c
      Morten Welinder authored
      
      2001-01-22  Morten Welinder  <terra@diku.dk>
      
      	* src/search.c (search_replace_verify): When relevant, check that
       	the range text is not empty.  Implement searching for whole words.
      
      2001-01-22  Morten Welinder  <terra@diku.dk>
      
      	* dialog-search-replace.c (dialog_search_replace): Handle the new
       	ignore-case and whole-word checkbuttons.  Handle the new
       	preserve-case checkbutton (though the actual replacement code does
       	not yet).
      f8ed619c
    • Morten Welinder's avatar
      When relevant, check that the range text is not empty. · aead02d0
      Morten Welinder authored
      2001-01-22  Morten Welinder  <terra@diku.dk>
      
      	* src/search.c (search_replace_verify): When relevant, check that
       	the range text is not empty.
      
      	* src/application.c (application_dpi_to_pixels): Fix prototype.
      	(application_history_update_list): Constify.
      	(application_display_dpi_get, application_display_dpi_set): Change
       	to using doubles, not floats.
      aead02d0
    • Morten Welinder's avatar
      Search and replace should now be working for strings in an entire · 7121765e
      Morten Welinder authored
      sheet.
      
      
      
      2001-01-22  Morten Welinder  <terra@diku.dk>
      
      	* src/commands.c (cmd_search_replace_redo): hack: don't do
       	anything the first time around.
      	(cmd_search_replace_do_cell): Partially implement.
      	(cb_search_replace_collect): New function.
      	(cb_order_sheet_row_col): New function.
      	(cmd_search_replace_do): Partially implement.
      
      	* src/workbook-control-gui.c (cb_edit_search_replace): Activate
       	undo/redo support.
      7121765e
    • Almer S. Tigelaar's avatar
      Fixes #32417 · f359d7fe
      Almer S. Tigelaar authored
      2001-01-22  Almer S. Tigelaar  <almer1@dds.nl>
      
      	Fixes #32417
      
      	* src/workbook-control-gui.c, src/workbook-control-gui-priv.h:
      	(wbcg_insert_cols_rows_enable): New, handles enabling/disabling
      	of insert cols/rows menu items.
      	(change_menu_sensitivity): New, for settings the sensitivity
      	of menu items.
      	(workbook_control_gui_ctor_class): Add insert_cols_rows.enable
      	here.
      
      	* src/workbook-control.c, src/workbook-control.h: Add
      	insert_cols_rows_enable as a virtual function.
      
      	* src/workbook-control-priv.h: Add struct for insert_cols_rows
      	here.
      
      	* src/selection.c
      	(sheet_selection_add_range): After adding a range, find out if
      	any range specifies either a whole row or whole col selection
      	and disable insert rows/cols accordingly.
      	(sheet_selection_reset_only): Re-enable insert rows/cols here.
      f359d7fe
    • Morten Welinder's avatar
      Still work in progress, but some people report compilation problems. · 1bd036b8
      Morten Welinder authored
      
      2001-01-18  Morten Welinder  <terra@diku.dk>
      
      	* src/search.c (search_replace_verify, search_replace_string): New
       	functions.
      
      	* src/commands (cmd_search_replace_do_cell): new function.
      1bd036b8
    • Almer S. Tigelaar's avatar
      Make the sheet that was subject to an undo/redo operation the active sheet · 6851bbef
      Almer S. Tigelaar authored
      2001-01-22  Almer S. Tigelaar  <almer1@dds.nl>
      
              * src/commands.c (update_after_action):
              Make the sheet that was subject to an undo/redo operation
              the active sheet after the operation has succeeded. Fixes #38208.
      6851bbef
  9. 21 Jan, 2001 1 commit
  10. 17 Jan, 2001 1 commit
    • Morten Welinder's avatar
      New functions, partly from jpablo. · 5b5b8640
      Morten Welinder authored
      2001-01-17  Morten Welinder  <terra@diku.dk>
      
      	* src/commands.c (cmd_search_replace_undo,
       	cmd_search_replace_redo, cmd_search_replace_do,
       	cmd_search_replace, cmd_search_replace_destroy): New functions,
       	partly from jpablo.
      
      2001-01-17  Morten Welinder  <terra@diku.dk>
      
      	* dialog-search-replace.c (dialog_search_replace): Extract the
       	entered values.
      5b5b8640
  11. 16 Jan, 2001 3 commits
    • Morten Welinder's avatar
      UMR fixes from jody. · 667fc2f3
      Morten Welinder authored
      2001-01-16  Morten Welinder  <terra@diku.dk>
      
      	* src/item-grid.c (item_grid_draw): UMR fixes from jody.
      667fc2f3
    • Jody Goldberg's avatar
      Borders now work. We still don't handle the intersection cases properly. · 925863b2
      Jody Goldberg authored
      And the top and left of merged cells will look odd.
      
      2001-01-16  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-style.c (sheet_style_get_uniform) : don't leak border ref.
      
      	* src/workbook.c (workbook_sheet_delete) : disable the undo/redo
      	  combos when we clear the undo stack.
      
      2001-01-14  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-style.c (style_row) : don't apply none to a cleared
      	  border.
      
      	* src/sheet-style.h (StyleRow) : const.
      
      	* src/mstyle.c (mstyle_get_color) : const.
      
      	* src/pattern.c (gnumeric_background_set_gc) : remove duplicate
      	  test, const.
      
      2001-01-13  Jody Goldberg <jgoldberg@home.com>
      
      	* src/item-grid.c (item_grid_draw) : rewrite.
      
      	* src/sheet-control-gui.c (sheet_view_redraw_cell_region) : make the
      	  borders wider.
      
      	* src/commands.c (cmd_format) : if there are no borders there is no
      	  need to save the surroundings.
      
      	* src/selection.c (selection_contains_colrow) : const
      
      	* src/sheet-style.c (get_style_row) : Fix stupidity.
      	(style_row) : ditto.
      
      2001-01-12  Jody Goldberg <jgoldberg@home.com>
      
      	* src/cell-draw.c (cell_draw) : const.
      
      	* src/pattern.c (gnumeric_background_set_gc) : const.
      	(gnumeric_background_set_pc) : const.
      
      	* src/sheet-control-gui.c (sheet_view_selection_ant) : No more 'grid'
      	  argument.
      
      	* src/item-grid.c : privatize the structure in preparation for panes.
      
      	* src/item-edit.c (entry_create_feedback_range) : no more grid
      	  argument.  Use scg instead.
      	(item_edit_set_arg) : ditto.
      
      	* src/item-cursor.c (item_cursor_set_arg) : delete the GRID argument
      	  it was useless.
      
      	* src/gnumeric-sheet.c (start_cell_selection_at) : Avoid casting the
      	  result of a function call.  Remove setting 'Grid' deleted argument.
      	(gnumeric_sheet_new) : No more Grid argument.
      
      	* src/preview-grid.c (preview_grid_draw_border) : moved here from
      	  item-grid.
      925863b2
    • Jody Goldberg's avatar
      Switch to AM_GNOME_GETTEXT and remove the AC_LINK_FILES line so that · bf47395d
      Jody Goldberg authored
      
      2001-01-16  Jody Goldberg <jgoldberg@home.com>
      
      	* configure.in : Switch to AM_GNOME_GETTEXT and remove the
      	  AC_LINK_FILES line so that things configure and compile again.
      bf47395d
  12. 12 Jan, 2001 3 commits
    • Morten Welinder's avatar
      Plug leak. · 1df76530
      Morten Welinder authored
      2001-01-12  Morten Welinder  <terra@diku.dk>
      
              * src/history.c (file_history_cmd) [ENABLE_BONOBO]: Plug leak.
      1df76530
    • Jody Goldberg's avatar
      new function. (sheet_style_get_extent) : quick easy implementation. · 4b40747a
      Jody Goldberg authored
      
      2001-01-12  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-style.c (cb_style_extent) : new function.
      	(sheet_style_get_extent) : quick easy implementation.
      4b40747a
    • Jody Goldberg's avatar
      Rework the style engine. Mostly functional. see BUGS for remaining details. · 9e615b65
      Jody Goldberg authored
      NOTE : I have not tested persistance.
      
      2001-01-11  Jody Goldberg <jgoldberg@home.com>
      
      	* src/mstyle.c (mstyle_ref_multiple) : new function.
      	(mstyle_copy_merge) : new function.
      	(mstyle_new_default) : Do not cache the result.  That is done at the
      	  sheet level.
      	(mstyle_do_merge) : delete.
      	(mstyle_get_format) : constness.
      
      	* src/format-template.c (cb_format_sheet_border) : delete.
      	(format_template_apply_to_sheet_regions) : borders are no longer special.
      
      	* src/expr.c (expr_tree_array_formula_corner) : do not store the
      	  corner anymore.
      	(expr_tree_new_array) : ditto.
      	(do_expr_tree_unref) : ditto.
      
      	* src/cell.c (cell_relocate) : Arrays are simplified.  No need to keep
      	  a pointer to the corner.  It made the system too brittle.
      	(cell_set_mstyle) : delete.
      
      	* src/Makefile.am : remove test.[ch]
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_find_{col,row}) : There is no
      	  1 pixel border.
      
      2001-01-09  Jody Goldberg <jgoldberg@home.com>
      
      	* src/mstyle.h : Change order of borders to match BorderLocation
      
      2001-01-08  Jody Goldberg <jgoldberg@home.com>
      
      	* src/ranges.c (range_has_header) : avoid leaking styles.
      
      	* src/cell.c (cell_get_mstyle) : Use sheet_style_get, and do not bump
      	  the ref count.
      	(cell_render_value) : Adjust.
      	(cell_get_format : Adjust.
      	(cell_set_text) : Adjust.
      
      	* src/functions/fn-information.c (gnumeric_cell) : sheet_style_get
      	  does not make a reference. Use it.
      	* src/workbook-format-toolbar.c (modify_cell_format) :  Ditto.
      	(change_selection_font) : Ditto.
      	* src/sheet-autofill.c (fill_item_new) : ditto.
      	* src/print-cell.c (print_cell_range) : ditto.
      	* src/cellspan.c (cell_calc_span) : ditto.
      	* src/sheet.c (sheet_cell_set_text) : ditto.
      	* src/rendered-value.c (rendered_value_calc_size) : ditto.
      	* src/workbook-view.c (wb_view_format_feedback) : ditto.
      
      2001-01-07  Jody Goldberg <jgoldberg@home.com>
      
      	* src/dialogs/dialog-cell-format.c (dialog_cell_format) :
      	  init initial style to NULL.
      	(fmt_dialog_selection_type) : call sheet_style_get_uniform here.
      
      	* src/commands.c (cmd_format_redo) : Now that apply_border is not
      	  doing a redraw we need to if there is no style applied.
      
      	* src/selection.c (sheet_selection_extend_to) : Add support akin to
      	  gnumeric_sheet_rangesel_cursor_extend to extend to full col/row.
      
      	* src/sheet-control-gui.c (scg_colrow_select) : extend to full col/row
      	  if necessary.
      
      	* src/item-bar.c (item_bar_event) : Set the selection, not extend it.
      9e615b65
  13. 11 Jan, 2001 2 commits