1. 04 Feb, 2001 1 commit
    • Jody Goldberg's avatar
      Fix some typos · 870c9d3e
      Jody Goldberg authored
      2001-02-03  Jody Goldberg <jgoldberg@home.com>
      
      	* src/xml-io.c (xml_workbook_read) : bump xml version to 6.
      	(xml_read_style_region) : V6 uses set_range rather than the older
      	  apply_range.  We now save/restore fully qualified styles.
      870c9d3e
  2. 02 Feb, 2001 1 commit
    • Jody Goldberg's avatar
      Init CellRegion::merged. Ditto. Ditto. · 96291ef4
      Jody Goldberg authored
      
      2001-02-02  Jody Goldberg <jgoldberg@home.com>
      
      	* src/gui-clipboard.c (x_selection_to_cell_region) : Init
      	  CellRegion::merged.
      	* src/stf-parse.c (stf_parse_region) : Ditto.
      	* src/xml-io.c (xml_read_selection_clipboard) : Ditto.
      96291ef4
  3. 31 Jan, 2001 2 commits
    • Jody Goldberg's avatar
      typo. · 4d2992b9
      Jody Goldberg authored
      
      2001-01-30  Jody Goldberg <jgoldberg@home.com>
      
      	* src/xml-io.c (xml_sheet_create) : typo.
      4d2992b9
    • Jody Goldberg's avatar
      s/float_t/gnum_float/ s/int_t/gnum_int/ · 9eaf277a
      Jody Goldberg authored
      
      2001-01-30  Jody Goldberg <jgoldberg@home.com>
      
      	s/float_t/gnum_float/
      	s/int_t/gnum_int/
      
      	* src/sheet-style.c (sheet_style_get_uniform) : implement.
      
      	* src/parse-util.c (parse_text_value_or_expr) : dont loose the entered
      	  text.
      
      	* src/history.c (history_menu_insert_separator) : keep case
      	  consistent.
      	* src/workbook-control-gui.c (workbook_menu_file) : ditto.
      
      	* configure.in : update GAL req.
      	* README : ditto.
      	* gnumeric.spec.in : ditto.
      
      2001-01-29  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-style.h : decl for StyleRow.
      
      	* src/xml-io.c : Use the Child and Root aliases to ease ease
      	  transition from xml1 -> xml2.
      	(xml_sheet_create) : default name for sheets that fail to specify one.
      
      	* src/workbook.c (workbook_sheet_by_index) : improve safety.
      9eaf277a
  4. 29 Jan, 2001 1 commit
    • 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
  5. 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
  6. 25 Jan, 2001 1 commit
    • 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
  7. 24 Jan, 2001 1 commit
    • 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
  8. 12 Jan, 2001 1 commit
    • 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
  9. 07 Jan, 2001 1 commit
    • Jon K Hellan's avatar
      New define giving precision for point measures. (xml_set_value_double): · 4d5fdff2
      Jon K Hellan authored
      2001-01-07  Jon K Hellan  <hellan@acm.org>
      
      	* src/xml-io.c (POINT_SIZE_PRECISION): New define giving precision
      	for point measures.
      	(xml_set_value_double): Add precision parameter.  -1 means default
      	(DBL_DIG).
      	(xml_set_value_points): New function. Set a double value for a
      	node with POINT_SIZE_PRECISION digits precision.
      	(xml_set_print_unit): Save in a more natural way.
      	(xml_get_print_unit): Do not expect the node to have a child.
      	(xml_write_print_info): Save margins as children of a "Margins"
      	node.
      	(xml_read_print_margins): New function: Read margins.
      	(xml_read_print_info): Find the PrintInformation node so that we
      	actually read print info.
      	(xml_write_style): Save font size using xml_set_value_points.
      	(xml_write_colrow_info): Save font size using
      	xml_set_value_points.
      	(xml_sheet_write): Save Cols, Rows DefaultSizePts using
      	xml_set_value_points.
      
      	* plugins/xml/xml2.c: Parse print margins.
      	(enum xml2State): Add states for each print margin.
      	(xml2_state_names): Add names fo each print margin.
      	(xml2ParseMargin): New function: Parse a print margin.
      	(xml2StartElement, xml2EndElement, xml2Characters): Add the print
      	margin states.
      4d5fdff2
  10. 02 Jan, 2001 1 commit
    • Jody Goldberg's avatar
      add the new file. · 8f9fa37b
      Jody Goldberg authored
      
      2001-01-02  Jody Goldberg <jgoldberg@home.com>
      
      	* src/Makefile.am : add the new file.
      
      	* src/sheet-style.h : new file split from sheet.h in preparation
      	  for changing the style engine.
      8f9fa37b
  11. 31 Dec, 2000 3 commits
  12. 30 Dec, 2000 1 commit
    • Jody Goldberg's avatar
      Split merge cell support into a seperate file to decrease the size of sheet.c · afb5ea6f
      Jody Goldberg authored
      Add merged cell support to autofill.
      
      2000-12-29  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-autofill.c (sheet_autofill_dir) : support merged cells.
      	(fill_item_new) : Ditto.
      
      	* src/sheet.c
      	(sheet_merge_add) : rename
      	(sheet_merge_remove) : rename
      	(sheet_merge_get_overlap) : rename
      	(sheet_merge_contains_pos) : rename
      	(sheet_merge_is_corner) : rename
      	(sheet_merged_relocate) : rename
      	(sheet_merge_get_adjacent) : rename
      
      	* src/rendered-value.c (rendered_value_new) : Use
      	  sheet_merge_is_corner rather than sheet_region_get_merged_cell.
      afb5ea6f
  13. 29 Dec, 2000 1 commit
    • Jody Goldberg's avatar
      support merged cells. · 7008d180
      Jody Goldberg authored
      
      2000-12-29  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.c (sheet_redraw_cell_region) : support merged cells.
      
      	* src/style.c (style_font_new_simple) : guestimate width.
      	(style_font_get_width) : new function.
      
      	* src/rendered-value.c (rendered_value_new) : appoximate with via pts.
      	  handle merged cells.
      
      2000-12-29  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.c (sheet_region_unmerge) : untag an existing cell as being
      	  merged.
      	(sheet_cell_remove_from_hash) : ditto.
      	(sheet_region_merge) : tag an existing cell as being merged.
      	(sheet_cell_add_to_hash) : ditto.
      
      	* src/item-edit.c (recalc_spans) : support merged cells.
      
      2000-12-29  Jody Goldberg <jgoldberg@home.com>
      
      	* src/xml-io.c (xml_read_cell) : Early versions had newlines at the
      	  end of their content
      
      	* src/sheet.c (sheet_{insert,delete}_{cols,rows}) : no need to update
      	  object positions, we have already moved them.
      
      2000-12-29  Jody Goldberg <jgoldberg@home.com>
      
      	* src/commands.c (GNUMERIC_MAKE_COMMAND_WITH_PARENT) : new macro.
      	(update_after_action) : new function to localize calls to
      	  sheet_update, dirty, recalc.
      	(GnumericCommand) : Add a sheet to help localize repeated calls to
      	  sheet_update, dirty, recalc.
      	(command_undo) : Call update_after_action.
      	(command_redo) : Call update_after_action.
      	(command_push_undo) : Call update_after_action.
      	(cmd_*_{undo,redo}) : remove calls to sheet_update, dirty, recalc.
      	(cmd_*) : set the sheet.
      	(cmd_paste_cut_update_origin) : new function.
      	(cmd_paste_cut_undo) : call cmd_paste_cut_update_origin.
      	(cmd_paste_cut_redo) : ditto.
      
      	* src/commands.c (CmdMergeCells) : inherit from CmdUnmergeCells to
      	  facilitate reuse and implement.
      7008d180
  14. 27 Dec, 2000 1 commit
    • Jody Goldberg's avatar
      fix old off by 1 error. · cbfeec73
      Jody Goldberg authored
      
      2000-12-26  Jody Goldberg <jgoldberg@home.com>
      
      	* src/item-cursor.c (cb_move_cursor) : fix old off by 1 error.
      
      	* src/workbook-format-toolbar.c (workbook_format_toolbar)
      	  merge/unmerge are not toggle items.
      
      	* src/gnumeric.xml : Add entries for merge/unmerge.
      
      	* s/MStyleBorder/StyleBorder/
      cbfeec73
  15. 22 Dec, 2000 1 commit
    • Jody Goldberg's avatar
      new function. (sheet_object_container_new_bonobo) : delete. · 1afafe3a
      Jody Goldberg authored
      
      2000-12-22  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-object-container.c (sheet_object_container_new) : new
      	  function.
      	(sheet_object_container_new_bonobo) : delete.
      
      2000-12-22  Jody Goldberg <jgoldberg@home.com>
      
      	* src/cell.c (cell_set_expr_and_value) : Make linking the
      	  expression optional.
      
      	* src/ranges.c (range_init_full_sheet) : adjusted from
      	  sheet_get_full_range.
      
      2000-12-21  Jody Goldberg <jgoldberg@home.com>
      
      	* src/bonobo-io.c (gnumeric_bonobo_obj_read) : Don't create the object
      	  here.  Pass it in.
      1afafe3a
  16. 20 Dec, 2000 1 commit
    • Chyla Zbigniew's avatar
      Removed "-DGNUMERIC_AUTOFORMATDIR" from INCLUDES. Now we use a function · aafe2895
      Chyla Zbigniew authored
      
      * src/Makefile.am: Removed "-DGNUMERIC_AUTOFORMATDIR" from INCLUDES.
      Now we use a function inside Gnumeric for this.
      
      * src/dialogs/dialog-autoformat.c:
      Marked strings for translation (sample data).
      (struct AutoFormatInfo): Now we have field current_category_group
      (of type FormatTemplateCategoryGroup *) instead of current_category
      and category_groups instead of categories.
      (cb_get_cell_content): Function g_strtod always uses "C" locale,
      used strtod instead.
      (templates_load): Mostly new implementation, uses
      category_group_get_templates_list().
      (cb_remove_current_activated): Now it is implemented.
      (cb_canvas_button_release): Showing real category name
      (template->category->name). Setting sensitivity of
      info->remove_current menu item.
      (cb_category_popwin_hide): Used
      category_group_list_find_category_by_name when setting
      info->current_category_group and category_list_get_names_list
      when calling gtk_combo_set_popdown_strings. Selecting "General"
      category by default if it exists. Displaying current category
      description in the category combo tooltip.
      
      * src/file-autoft.c, src/file-autoft.h: New functions:
      gnumeric_sys_autoformat_dir, gnumeric_usr_autoformat_dir,
      gnumeric_extra_autoformat_dirs,
      category_free, category_get_templates_list, category_list_free,
      category_group_free, category_group_get_templates_list,
      category_group_list_get, category_group_list_find_category_by_name,
      category_group_list_get_names_list, category_group_list_free.
      Removed functions: template_list_load, template_list_free,
      util_list_free, category_list_load, category_list_free.
      
      * src/format-template.c, src/format-template.h:
      New function: format_template_compare_name.
      New structs: FormatTemplateCategory and
      FormatTemplateCategoryGroup.
      (struct FormatTemplate): field category is now of type
      FormatTemplateCategory.
      
      * src/gutils.c, src/gutils.h: New functions: g_create_list,
      g_lang_score_in_lang_list, g_lang_score_is_better (implemented
      as a macro).
      
      * src/xml-io-autoft.c:
      (xml_write_format_template_members): Don't write category
      information.
      (xml_read_format_template_members): Used
      xml_search_child_lang_list instead of xml_search_child to find
      "Information" node. Ignore category information.
      (gnumeric_xml_read_format_template_category): New function.
      
      * src/xml-io-autoft.h: Added
      gnumeric_xml_read_format_template_category function declaration.
      
      * src/xml-io.c, src/xml-io.h: New functions:
      xml_search_child_lang_list, xml_search_child_no_lang,
      xml_search_child_lang_list_with_score (static function).
      
      * templates/autoformat/3D.category,
      templates/autoformat/Financial.category,
      templates/autoformat/Classical.category,
      templates/autoformat/General.category,
      templates/autoformat/Colourful.category,
      templates/autoformat/List.category:
      New files, XML descriptions of default categories.
      
      * templates/autoformat/Makefile.am:
      Templates grouped into categories, now every category is installed
      in separate directory. Installing *.category files as ".category" in
      appropriate directories.
      aafe2895
  17. 19 Dec, 2000 1 commit
    • Jody Goldberg's avatar
      add IO for merged regions. (xml_sheet_write) : Ditto. · c3b39383
      Jody Goldberg authored
      
      2000-12-19  Jody Goldberg <jgoldberg@home.com>
      
      	* src/xml-io.c (xml_sheet_read) : add IO for merged regions.
      	(xml_sheet_write) : Ditto.
      	(xml_read_merged_regions) : new function.
      	(xml_write_merged_regions) : new function.
      c3b39383
  18. 17 Dec, 2000 1 commit
    • Jody Goldberg's avatar
      support merged cells. (sheet_find_boundary_vertical) : ditto. · 17579c92
      Jody Goldberg authored
      
      2000-12-17  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.c (sheet_find_boundary_horizontal) : support merged cells.
      	(sheet_find_boundary_vertical) : ditto.
      	(sheet_set_edit_pos) : Add edit_pos vs edit_pos_real to improve merged
      	  cell support.
      	(sheet_region_get_merged_cell) : new function.
      
      	* src/gnumeric-sheet.c (move_cursor_horizontal) : Use edit_pos_real to
      	  improve handling for merged cells.
      	(move_cursor_vertical) : Ditto.
      	(start_cell_selection) : Ditto.
      
      2000-12-16  Jody Goldberg <jgoldberg@home.com>
      
      	s/Sheet::cursor::edit_pos/Sheet::edit_pos/
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_new) : No need to pass in the
      	  col/row items.  They are available from the sheet control.
      
      	* src/sheet-control-gui.c (sheet_view_construct) : signature change to
      	  gnumeric_sheet_new.
      17579c92
  19. 16 Dec, 2000 1 commit
    • Jody Goldberg's avatar
      Tidy up the naming scheme a bit. s/row_col/colrow/ s/col_row/colrow/ · 30c9841e
      Jody Goldberg authored
      
      2000-12-15  Jody Goldberg <jgoldberg@home.com>
      
      	Tidy up the naming scheme a bit.
      	s/row_col/colrow/
      	s/col_row/colrow/
      	s/SheetSelection/Range/
      
      	* src/workbook-cmd-format.c (workbook_cmd_resize_selected_colrow) :
      	  Merged from workbook_cmd_format_column_width and.
      	  & workbook_cmd_format_row_height
      
      	* src/item-bar.c (item_bar_end_resize) : Call scg_colrow_size_set
      	  directly.
      	(item_bar_class_init) : remove the SIZE_CHANGED signal.
      
      	* src/selection.c (sheet_selection_full_cols_rows) : merge
      	  sheet_selection_full_cols & sheet_selection_full_rows.
      30c9841e
  20. 09 Dec, 2000 2 commits
    • Chema Celorio's avatar
      add NameGuruScope enums (name_guru_warn): warn when deleting a name that · d069b117
      Chema Celorio authored
      2000-12-09  Chema Celorio  <chema@celorio.com>
      
      	* dialog-define-names.c: add NameGuruScope enums
      	(name_guru_warn): warn when deleting a name that is beein used
      	(name_guru_scope_change): handle scope changes
      	(name_guru_set_expr): implement.
      	(name_guru_clear_selection): implement
      	(name_guru_in_list): implement
      	(name_guru_update_sensitivity): implement.
      	(cb_name_guru_select_name): clean
      	(name_guru_scope_get): implement
      	(cb_name_guru_add): fix
      	(name_guru_init): conect sensitivy after (see coment on code)
      
      2000-12-09  Chema Celorio  <chema@celorio.com>
      
      	* src/xml-io.c (xml_write_names): Always wrinte a <Names> node,
      	even if it is empty. (See coment on code for details)
      
      	* src/sheet.c (sheet_new): make sheet->names NULL.
      	(sheet_clone_names): free the list with g_list_free not g_free
      	(sheet_clone_names): add a warning about not duplicating
      	names yet.
      
      	* src/expr-name.h (expr_name_wb2sheet): add prototypes for
      	wb2sheet & sheet2wb
      
      	* src/expr-name.c (expr_name_unlink): new funct. Code form
      	expr_name_remove
      	(expr_name_remove): call expr_name_unlink
      	(expr_name_invalidate_refs_name): add a warning about this function
      	not beeing implemented
      	(expr_name_invalidate_refs_sheet): ditto
      	(expr_name_invalidate_refs_wb): ditto
      	(expr_name_sheet2wb): new funct. changed the scope of a NamedExpression
      	from sheet to workbook.
      	(expr_name_wb2sheet): not implemented yet. Workbook to sheet scope change
      d069b117
    • 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
  21. 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
  22. 29 Nov, 2000 2 commits
  23. 15 Nov, 2000 1 commit
    • 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
  24. 11 Nov, 2000 3 commits
    • Michael Meeks's avatar
      update unref fns. (read_stream_from_storage): upd. · 63673248
      Michael Meeks authored
      2000-11-11  Michael Meeks  <michael@helixcode.com>
      
      	* src/bonobo-io.c (gnumeric_bonobo_obj_write),
      	(write_stream_to_storage): update unref fns.
      	(read_stream_from_storage): upd.
      	(gnumeric_bonobo_obj_read): set the bounds correctly.
      
      	* src/xml-io.c (xml_write_sheet_object): NULL the sheet object
      	we free.
      63673248
    • Michael Meeks's avatar
      kill warning. · 5fb774c0
      Michael Meeks authored
      2000-11-11  Michael Meeks  <michael@helixcode.com>
      
      	* src/clipboard.c (apply_paste_oper_to_values): kill warning.
      
      	* src/xml-io-autoft.c: remove stale enum.
      
      	* src/xml-io.c (xml_check_version): publicized.
      	(xml_parse_ctx_new_full): add version parameter.
      	(xml_parse_ctx_new): update.
      
      	* src/bonobo-io.c (gnumeric_bonobo_read_workbook): use
      	xml_check_version.
      
      	* src/bonobo-io.c (gnumeric_bonobo_write_workbook): open the
      	stream with the correct permissions.
      	(gnumeric_bonobo_io_probe): update to like directories too.
      	(gnumeric_bonobo_io_init): register for '.efs'
      	(gnumeric_bonobo_read_workbook): beef up exception reporting.
      
      2000-11-11  Michael Meeks  <michael@helixcode.com>
      
      	* POTFILES.in: add src/bonobo-io.c
      5fb774c0
    • Michael Meeks's avatar
      fiddle, lots of strange mangling, needs HEAD bonobo to look at all good. · 3848987c
      Michael Meeks authored
      2000-11-11  Michael Meeks  <michael@helixcode.com>
      
      	* src/gnumeric.xml: fiddle, lots of strange mangling, needs HEAD
      	bonobo to look at all good.
      
      	* src/xml-io.c (xml_write_sheet_object): free the node nicely in
      	the failure case.
      3848987c
  25. 06 Nov, 2000 2 commits
    • Almer S. Tigelaar's avatar
      Fix bug #21674. (Fix will kick in once the version number of the XML · 543a2786
      Almer S. Tigelaar authored
      2000-11-03  Almer S. Tigelaar  <almer1@dds.nl>
      
      	Fix bug #21674. (Fix will kick in once the version number of the
      	XML format is bumped to GNUM_XML_V5)
      
      	* src/print-info.c (print_info_new): Add extra commenting.
      
      	* src/xml-io.c:
      	(xml_write_print_repeat_range): New function, for saving a repeat range.
      	(xml_read_print_repeat_range): New function, for loading a repeat range.
      	(xml_write_print_info): Save the row repeat and col repeat range using
      	xml_write_print_repeat_range.
      	(xml_read_print_info): Read col and row repeat range if file format
      	version > GNUM_XML_V4 using xml_read_print_repeat_range.
      543a2786
    • Jody Goldberg's avatar
      Remove 'entered_text' foolishness. · 629daef1
      Jody Goldberg authored
      2000-11-05  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.c (cb_set_cell_content) : Use cell_set_value.
      	(sheet_range_set_text) : remove need for entered_text.
      
      	* src/xml-io.c (xml_read_cell) : Remove 'General' hack.
      
      	* src/dialogs/dialog-cell-format.c (draw_format_preview) : remove
      	  entered_text.
      
      	* src/rendered-value.c (rendered_value_new_ext) : No need for
      	  entered_text.  Use format_value in place of value_as_string.
      
      	* src/format.c (format_value) : No need for entered_text.
      	  Be careful to always set the colour.  This may need to be tuned
      	  if we enter '$10' and use a display format of @ what should be
      	  displayed ?  10 or $10 ?  We may need to pass in the parse format.
      
      	* src/cell.c (cell_cleanout) : Remove entered_text.
      	(cell_copy) : Ditto.
      	(cell_set_text) : Ditto.
      	(cell_set_value) : Ditto, do not render value here.
      	(cell_set_text_and_value) : Delete.
      	(cell_set_expr_and_value) : Remove entered_text, and add format
      	  argument.
      	(cell_set_expr_internal) : No need to manually unref the old expr.
      	  That was already done in cleanout.
      	(cell_make_value) : remove entered_text.
      
      	* src/rendered-value.c (cell_get_entered_text) : Use the stored parse
      	  format and format_value to regenerate the entered text from a value.
      629daef1
  26. 03 Nov, 2000 1 commit
    • Jody Goldberg's avatar
      Bump the xml version. · 9ad5f8da
      Jody Goldberg authored
      
      2000-11-03  Jody Goldberg <jgoldberg@home.com>
      
      	* src/xml-io.c (xml_workbook_write) : Bump the xml version.
      9ad5f8da
  27. 02 Nov, 2000 2 commits
    • JP Rosevear's avatar
      Don't check for a workbook, this is redundant and not even true any more. · fbcc7427
      JP Rosevear authored
      2000-11-02  JP Rosevear  <jpr@helixcode.com>
      
      	* src/xml-io.c (xml_read_attributes): Don't check for a workbook,
      	this is redundant and not even true any more.
      	(xml_workbook_read): Only read the attributes if the workbook is
      	version 5 or later.
      fbcc7427
    • Jody Goldberg's avatar
      Default the parse format to General. Eventually we can simply · 76e697fb
      Jody Goldberg authored
      
      2000-11-01  Jody Goldberg <jgoldberg@home.com>
      
      	* src/xml-io.c (xml_read_cell) : Default the parse format to General.
      	  Eventually we can simply cell_set_value to not guess that the
      	  display format == the parse format.  However, that will require
      	  changing all of the importers.  For now we can cheat, and supply
      	  General as the format.
      
      	* src/functions/fn-string.c (gnumeric_dollar) : use string_get_nocopy.
      76e697fb
  28. 01 Nov, 2000 2 commits
    • Jody Goldberg's avatar
      fix typo · 434ab322
      Jody Goldberg authored
      434ab322
    • Jody Goldberg's avatar
      Split sanity check into new function. (range_check_sanity) : here. · 22587963
      Jody Goldberg authored
      
      2000-11-01  Jody Goldberg <jgoldberg@home.com>
      
      	* src/ranges.c (range_translate) : Split sanity check into new function.
      	(range_check_sanity) : here.
      
      	* src/xml-io.c (xml_read_range) : Use it.
      
      2000-11-01  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.c (sheet_new) : Be mroe fine grained about the changes to
      	  the edit position.
      	(sheet_flag_status_update_cell) : Only content and format have changed.
      	(sheet_flag_status_update_range) : handle the new flags.
      	(sheet_flag_format_update_range) : new function.
      	(sheet_update_editpos) : delete and split up.
      	(sheet_update) : Do each update seperately. NOTE : this is broken.
      	  All of these flags should be at the View level.
      
      2000-11-01  Jody Goldberg <jgoldberg@home.com>
      
      	* src/selection.c (sheet_selection_copy) : pass a workbookcontrol.
      	(sheet_selection_cut) : Ditto.
      
      	* src/commands.c (cmd_format_undo) : flag the format change.
      	(cmd_format_redo) : Ditto.
      
      	* src/workbook-control.h (wb_control_claim_selection) : new virtual.
      	* src/application.c (application_set_selected_sheet) : Used here.
      	(application_clipboard_copy) : Take a WorkbookControl.
      	(application_clipboard_cut) : Ditto.
      
      	* src/workbook-control-gui.c (wbcg_paste_from_selection) : new
      	  function.
      	(workbook_control_gui_ctor_class) : register it.
      
      2000-11-01  Jody Goldberg <jgoldberg@home.com>
      
      	* src/print-cell.c (print_cell_range) : We are only outputing
      	  something in the case of a blank cell if the format is visible.
      22587963
  29. 31 Oct, 2000 1 commit
    • Jody Goldberg's avatar
      Set LC_MONETARY and LC_NUMERIC. Ditto. (xml_workbook_read) : Ditto. · ffac72f5
      Jody Goldberg authored
      
      2000-10-31  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-view.c (wb_view_auto_expr) : Set LC_MONETARY and
      	  LC_NUMERIC.
      	* src/xml-io.c (xml_workbook_write) : Ditto.
      	(xml_workbook_read) : Ditto.
      
      2000-10-31  Jody Goldberg <jgoldberg@home.com>
      
      	* src/dialogs/*.[ch] : WorkbookControlGUI is now required for gui
      	  operations.  A WorkbookView is required to know which sheet is the
      	  current.
      
      	* src/xml-io.c : We now load/save WorkbookViews.
      
      	* src/xml-io-autoft.c : Adjust to signature changes.
      
      	* src/workbook.c : Split the View into WorkbookView.
      	  Abstract the Controler interface, and move the GUI specific
      	  implementation of the Controler into WorkbookControlGUI.
      
      	* src/workbook-view.c : Complete rewrite with correct semantics.
      
      	* src/workbook-private.h : Move all the GUI specific stuff into
      	  WorkbookControlGUI were it belongs.
      
      	* src/workbook-private.c (workbook_private_class_init) : Fix typo.
      
      	* src/workbook-edit.c : These are now WorkbookControlGUI specific.
      	  We should rename the functions eventually.
      	* src/workbook-format-toolbar.c : Ditto.
      	* src/workbook-object-toolbar.c : Ditto.
      
      	* src/workbook-cmd-format.c : Adjust to signature changes.
      	  and use WorkbookControlGUI were necessary.
      
      	* src/style.c (style_font_new_from) : Delete dead code.
      
      	* src/solver-lp.c : Adjust to signature changes.
      	* src/sort.c : Ditto.
      	* src/stf.c : Ditto. Make dialog conditional on gui-ness.
      
      	* src/sheet.c (sheet_new_sheet_view) : IS_SHEET checks for NULL.
      	(sheet_detach_sheet_view) : renamed from sheet_destroy_sheet_view
      	  and only take a SheetView as argument.
      	(sheet_new) : Do not create a view by default.
      	(sheet_update_zoom_controls) : foreach control.
      	(sheet_update_editpos) : ditto.
      	(sheet_update) : handle multiple views and controls.
      
      	* src/sheet-view.c : Commands take WorkbookControls rather than
      	  CommandContexts.
      
      	* src/sheet-object-widget.c : Most things take WorkbookControlGUI
      	  rather than Workbooks.
      
      	* src/sheet-object-container.c (sheet_object_container_new_view) :
      	  Use the uic from the WorkbookControlGUI.
      
      	* src/sheet-control.c : New file. Unused so far.
      	  cp sheet-view.c sheet-control.c
      	  s/SheetView/SheetControl/
      
      	* src/print.c : Make the GUI dependency explicit.
      	  At some point the setup dialog should be split out of here.
      
      	* src/main.c (gnumeric_main) : Explicitly create a WorkbookControlGUI
      	  only adding sheets if nothing was loaded.  Improve handing of exit
      	  request while loading.
      
      	* src/item-grid.c (item_grid_draw) : Filter the edit cell from here
      	  because we know which control to use.
      	(context_menu_hander) : Switch to WorkbookControlGUI.
      	(item_grid_popup_menu) : Ditto.
      
      	* src/item-edit.c : Everything takes a WorkbookControlGUI inplace of a
      	  Workbook now.
      
      	* src/item-cursor.c (item_cursor_target_region_ok) : dialog_run takes
      	  a WorkbookControlGUI.
      	(item_cursor_do_action) : All the commands take WorkbookControls.
      
      	* src/item-bar.c (item_bar_event) : item_grid_popup_menu takes a
      	  SheetView now.
      
      	* src/history.c : Take WorkbookControlGUI.
      	  Update all controls for each workbook.
      
      	* src/gui-clipboard.c : Use 'unsigned char'
      
      	* src/gnumeric.xml : More work to split commands from layout.
      
      	* src/gnumeric-util.c (gnumeric_no_modify_array_notice) : Delete.
      	(gnumeric_notice) : Take a WorkbookControlGUI.
      	(gnumeric_wb_dialog_run) : Ditto.
      	(gnumeric_dialog_run) : Ditto.
      	(gnumeric_dialog_show) : Ditto.
      	(gnumeric_set_transient) : Ditto.
      	(gnumeric_glade_xml_new) : Ditto.
      	(gnumeric_non_modal_dialog) : Ditto.
      	(gnumeric_inject_widget_into_bonoboui) : Ditto.
      
      	* src/gnumeric-sheet.c : SheetView now has a WorkbookControlGUI member
      	  to keep track of which control it is associated with. Use it.
      
      	* src/file.c : Adjust to lots of signature changes.
      	  We now load/save WorkbookView rather than Workbook.
      	  Add a placeholder struct IOContext so that we can consider doing
      	  smarter import/export and dealing with warnings and missing things
      	  smoothly.
      
      	* src/eval.c (workbook_recalc_all) : After a recalc update all views.
      
      	* src/commands.c (undo_redo_menu_labels) : foreach control.
      	(command_undo) : ditto.
      	(command_redo) : ditto.
      	(command_push_undo) : change signature.  The workbookcontrol
      	  now acts as the command context.
      
      	* src/cmd-edit.c : Adjust to signature changes.
      
      	* src/clipboard.c : split the gui specific X handlers out into a new
      	  file.
      	* src/gui-clipboard.c :  here.
      
      	* src/cell-draw.c (cell_draw) : Do not test the sheet for whether or
      	  not to we are editing.  That is at the control level.  Test it in
      	  the rendering loop.
      
      	* src/bonobo-io.c : FIXME. adjusted to signature changes.  Totatly
      	  broken for now.  This needs a View rather than a Model and should be
      	  associated with something.
      
      	* src/application.c (application_workbook_list_add) : New function.
      	(application_workbook_list_remove) : New function.
      	(application_workbook_list) : New function.
      	(application_clipboard_copy) : foreach control.
      	(application_clipboard_cut) : foreach control.
      	(application_clipboard_clear) : foreach control.
      	(application_workbook_foreach) : renamed from workbook_foreach.
      	(application_set_selected_sheet) : FIXME. Disabled for now.
      
      	* src/about.c (cb_closed) : Associated the flag with the control
      	  directly.
      	(dialog_about) : dialogs are associated with gui-controls.
      
      	* src/analysis-tools.c : change all dialog signatures to handle MVC
      	  split of workbook.
      
      2000-10-30  Jody Goldberg <jgoldberg@home.com>
      
      	* src/Makefile.am : Add new command-context,  io-context,
      	  workbook-view, workbook-control, workbook-control-gui files.
      	  Remove old command-context-gui, command-context-corba, and disable
      	  corba-* for now.
      
      2000-10-29  Jody Goldberg <jgoldberg@home.com>
      
      	* idl/gnumeric-graphs.idl : Remove studdly caps.  I wish people would
      	  make up their minds.
      
      	* idl/Gnumeric.idl : Remove Workbook::show.
      
      2000-10-29  Jody Goldberg <jgoldberg@home.com>
      
      	* BUGS : Update.
      	* NEWS : Update.
      	* TODO : Update.
      ffac72f5
  30. 20 Sep, 2000 1 commit
    • Jody Goldberg's avatar
      We always create an in canvas edit item, but sometimes we jump the focus · 9fc2db80
      Jody Goldberg authored
      
      2000-09-20  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-edit.c (workbook_start_editing_at_cursor) : We always
      	  create an in canvas edit item, but sometimes we jump the focus to
      	  the status line.
      
      	* src/value.c (value_new_cellrange_r) : set the sheet for both
      	  cell_refs.
      
      	* src/sheet-object-widget.c (checkbox_set_expr) : Fix.
      
      	* src/graph-series.c (graph_series_seq_scalar) : No need to handle
      	  headers here.
      	(graph_series_seq_date) : or here.
      	(graph_series_seq_string) : or here.
      	(graph_series_eval) : Handle idl rename.
      	(series_get_name) : No need to do this here.
      	(impl_vector_scalar_value) : No need to calculate label.
      	(impl_vector_date_value) : Ditto.
      	(impl_vector_string_value) : Ditto.
      	(graph_series_set_expr) : Correctly register and un register deps.
      	(graph_series_new) : series names are handled at a higher level.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet) : Restore the
      	  behaviour of F2.
      
      	* src/expr.c (cellrange_relocate) : BE smarter about checking for
      	  potential 3d references.
      
      	* idl/gnumeric-graphs.idl : Rename routines using lowercase underscore
      	  rather than StuddyCaps.
      
      	* src/workbook.c (workbook_expr_relocate) : Handle dependents.
      
      	* src/position.c (eval_pos_init_dep) : new function.
      
      	* configure.in : Prepare for release.
      	  Update req for gnome-print to 0.23
      	  Update req for libglade to 0.14
      	  Comment out pspell.
      	  Leave perl disabled.
      
      	* gnumeric.spec.in : Ditto.
      	* README : Ditto.
      
      2000-09-19  Jody Goldberg <jgoldberg@home.com>
      
      	* src/xml-io.c (natural_order_cm) : Using col_info and row_info is
      	  deprecated.
      9fc2db80