1. 26 Jan, 2001 6 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
    • Stano Visnovsky's avatar
      Updated Slovak translation · 4d04942e
      Stano Visnovsky authored
      4d04942e
    • Valek Frob's avatar
      Updated russian translation. · 63fd304f
      Valek Frob authored
      63fd304f
    • 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
    • Michael Meeks's avatar
      install plugin.xml · aaa709e0
      Michael Meeks authored
      2001-01-26  Michael Meeks  <michael@helixcode.com>
      
      	* Makefile.am (gnum_gb_la_SOURCES): install plugin.xml
      
      	* plugin.c (init_plugin): fix bit rot.
      	(can_deactivate_plugin): rename
      	(cleanup_plugin): cleanup.
      aaa709e0
  2. 25 Jan, 2001 9 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
    • Morten Welinder's avatar
      Trim. · c50ac325
      Morten Welinder authored
      c50ac325
    • Chyla Zbigniew's avatar
      Defined gnumeric_plugin_version variable containing Gnumeric version · 37665894
      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.
      37665894
    • 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
  3. 24 Jan, 2001 9 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
      Define font Underline/Italic as toggles. · 5bb3736e
      Jody Goldberg authored
      
      2001-01-24  Jody Goldberg <jgoldberg@home.com>
      
      	* src/gnumeric.xml : Define font Underline/Italic as toggles.
      5bb3736e
    • Morten Welinder's avatar
      Brag. · c2e9a01c
      Morten Welinder authored
      c2e9a01c
    • Morten Welinder's avatar
      Gripe over underline button. · cb1bb316
      Morten Welinder authored
      cb1bb316
    • Szabolcs Ban's avatar
      Tons of fixes by Andras and Emese (spelling, terminology, headers) · 157253e4
      Szabolcs Ban authored
      2001-01-24  Szabolcs Ban  <shooby@gnome.hu>
      
              * hu.po: Tons of fixes by Andras and Emese (spelling,
                terminology, headers)
      157253e4
    • 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
  4. 23 Jan, 2001 9 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
    • Valek Frob's avatar
      Updated russian translation. · e59f62be
      Valek Frob authored
      e59f62be
    • 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
    • Yuri Syrota's avatar
      Updated Ukrainian translation · 9f610e76
      Yuri Syrota authored
      9f610e76
    • Yuri Syrota's avatar
      Updated Ukrainian translation · ae6989fb
      Yuri Syrota authored
      ae6989fb
    • Yuri Syrota's avatar
      Updated Ukrainian translation · f16d3d6e
      Yuri Syrota authored
      f16d3d6e
    • Yuri Syrota's avatar
      Updated Ukrainian translation · 43a96bdf
      Yuri Syrota authored
      43a96bdf
    • Kenneth Christiansen's avatar
      translations gnumeric/po/da.po helix-setup-tools/po/da.po libgda/po/da.po · 11b4fa19
      Kenneth Christiansen authored
      translations
      gnumeric/po/da.po helix-setup-tools/po/da.po libgda/po/da.po
      11b4fa19
    • 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
  5. 22 Jan, 2001 7 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
      Prefer our .h files over the systems. · 40b4119b
      Morten Welinder authored
      2001-01-22  Morten Welinder  <terra@diku.dk>
      
      	* Makefile.am (INCLUDES): Prefer our .h files over the systems.
      40b4119b
    • 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