1. 04 Feb, 2002 1 commit
    • Jody Goldberg's avatar
      don't actually store the value, just start editing with it. · 167c36d3
      Jody Goldberg authored
      2002-02-03  Jody Goldberg <jody@gnome.org>
      
      	* src/workbook-control-gui.c (cb_insert_current_date) : don't actually
      	  store the value, just start editing with it.
      	(cb_insert_current_time) : ditto.
      
      2002-02-03  Jody Goldberg <jody@gnome.org>
      
      	* src/value.c (value_new_*) : init Value*::fmt
      	(value_duplicate) : ref the fmt too.
      	(value_set_fmt) : new.
      
      	* src/cell.c (cell_cleanout) : no more format.
      	(cell_copy) : ditto.
      	(cell_set_text) : ditto.
      	(cell_set_expr_internal) : ditto.
      	(cell_set_expr_unsafe) : ditto.
      	(cell_get_format) : ditto.
      
      	Change all callers.
      	* src/sheet.c (sheet_cell_set_value) : remove format assingment.
      	* src/cell.c (cell_set_expr_and_value) : remove format assignment.
      	(cell_assign_value) : ditto.
      	(cell_set_value) : ditto.
      	(cell_set_expr) : ditto.
      	* src/parser.y (expr_parse_str) : remove arg to return the suggested
      	  format.  That will be handled at run time.
      	* src/number-match.c (format_match) : remove arg to return the parse
      	  formula.  Store it in the value instead.
      167c36d3
  2. 25 Jan, 2002 1 commit
    • Andreas J. Guelzow's avatar
      make sure text is in fact rendered ditto · 0c13df6e
      Andreas J. Guelzow authored
      2002-01-24  Andreas J. Guelzow <aguelzow@taliesin.ca>
      
      	* html.c (html_get_text_color) : make sure text is in fact rendered
      	* latex.c (latex2e_write_multicolumn_cell) : ditto
      
      2002-01-24  Andreas J. Guelzow <aguelzow@taliesin.ca>
      
      	* src/cell.h (cell_get_render_color) : new
      	* src/rendered-value.c (cell_get_render_color) : new
      0c13df6e
  3. 25 Dec, 2001 1 commit
    • Jody Goldberg's avatar
      some added protection just in case. · a1ce8bc1
      Jody Goldberg authored
      2001-12-25  Jody Goldberg <jody@gnome.org>
      
      	* src/gnumeric-graph.c (gnm_graph_add_vector) : some added protection
      	  just in case.
      
      	* src/rendered-value.c (cell_rendered_height) : we can be smarter
      	  about unrendered expressions.
      a1ce8bc1
  4. 21 Dec, 2001 1 commit
  5. 22 Nov, 2001 1 commit
  6. 15 Nov, 2001 1 commit
    • Jody Goldberg's avatar
      simplify. No resize if there is a guru, or we are editing. (ib_set_cursor) · 66176ca9
      Jody Goldberg authored
      2001-11-15  Jody Goldberg <jgoldberg@home.com>
      
      	* src/item-bar.c (is_pointer_on_division) : simplify.  No resize if
      	  there is a guru, or we are editing.
      	(ib_set_cursor) : no need to be fancy, is_pointer_on_division
      	  does the majority of the work now.
      	* src/item-bar.c (item_bar_event) : ditto.
      
      	* src/cell-draw.c (cell_split_text) : split at hyphens.
      	* src/print-cell.c (cell_split_text) : ditto.
      	* src/rendered-value.c (rendered_value_calc_size_ext) : ditto.
      66176ca9
  7. 20 Oct, 2001 1 commit
    • jody goldberg's avatar
      factor in indents too. · 1bdd6b71
      jody goldberg authored
      2001-10-20  jody goldberg <jgoldberg@home.com>
      
      	* src/sheet.c (cb_max_cell_width) : factor in indents too.
      1bdd6b71
  8. 18 Sep, 2001 1 commit
  9. 11 Sep, 2001 1 commit
    • Jody Goldberg's avatar
      store the width in pixels as well as pts. · c332d9dd
      Jody Goldberg authored
      2001-09-11  Jody Goldberg <jgoldberg@home.com>
      
      	* src/style.c (style_font_new_simple) : store the width in pixels as
      	  well as pts.
      
      	* src/print-cell.c (print_cell) : sync with the drawing code.
      c332d9dd
  10. 08 Jun, 2001 1 commit
    • Jody Goldberg's avatar
      Add some sanity checking for safety. ditto. (sheet_redraw_cell_region) : · f2bccd97
      Jody Goldberg authored
      
      2001-06-07  Jody Goldberg <jgoldberg@home.com>
      
      	* src/selection.c (sheet_selection_set_internal) : Add some sanity
      	  checking for safety.
      	* src/sheet.c (sheet_set_edit_pos) : ditto.
      	(sheet_redraw_cell_region) : ditto.
      
      	* src/rendered-value.c (cell_get_rendered_text) : We need this for
      	  now.  There are functions that actualyl rely on the rendered text.
      f2bccd97
  11. 07 Jun, 2001 1 commit
    • Jody Goldberg's avatar
      We need this for now. There are functions that actualyl rely on the · e7082e55
      Jody Goldberg authored
      
      2001-06-07  Jody Goldberg <jgoldberg@home.com>
      
      	* src/rendered-value.c (cell_get_rendered_text) : We need this for
      	  now.  There are functions that actualyl rely on the rendered text.
      
      2001-06-06  Jody Goldberg <jgoldberg@home.com>
      
      	* src/gui-file.c (gui_file_open) : There is no point showing the
      	  create/delete/rename buttons when loading.
      	(gui_file_import) : and importing.
      e7082e55
  12. 04 Jun, 2001 1 commit
    • Jody Goldberg's avatar
      From Juan Pablo Mendoza <pablo_juan@yahoo.com> · fad57259
      Jody Goldberg authored
      
      2001-06-03  Jody Goldberg <jgoldberg@home.com>
      	From Juan Pablo Mendoza <pablo_juan@yahoo.com>
      
      	* rendered-value.c (rendered_value_get_text): Add a check for
      	  rendered value != NULL.
      	(cell_get_rendered_text): Add check for redered value == NULL
      
      2001-06-03  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook.c (workbook_expr_relocate) : flag all sheets as needing
      	  status updates.
      fad57259
  13. 14 May, 2001 1 commit
  14. 12 May, 2001 1 commit
  15. 20 Feb, 2001 1 commit
    • Jody Goldberg's avatar
      More polish for indents. · c7e7c66b
      Jody Goldberg authored
      Improve undo descriptions for formating.
      
      2001-02-19  Jody Goldberg <jgoldberg@home.com>
      
      	* src/commands.c (cmd_format) : Optionally supply a name.
      
      	* src/cell-draw.c (cell_draw) : numbers with indents turn to hashes
      	  too.  Hmm, I do not like the hash marks.
      
      	* src/print-cell.c (print_cell) : merge in the indent code.
      c7e7c66b
  16. 17 Feb, 2001 1 commit
    • Jody Goldberg's avatar
      Use some code from expr.c to simplify binary/unary output and to add · e0f71b51
      Jody Goldberg authored
      2001-02-16  Jody Goldberg <jgoldberg@home.com>
      
      	* ms-formula-write.c (write_node) : Use some code from expr.c
      	  to simplify binary/unary output and to add parens when necessary.
      
      	* ms-excel-write.c (write_formula) : Start at paren level 0.
      	(write_names) : ditto.
      
      2001-02-16  Jody Goldberg <jgoldberg@home.com>
      
      	* src/dialogs/dialog-cell-format.c (fmt_dialog_init_align_page) :
      	  begin support for indenting.
      	* src/workbook-format-toolbar.c : ditto.
      
      2001-02-16  Jody Goldberg <jgoldberg@home.com>
      
      	* configure.in : post release version bump
      
      2001-02-15  Jody Goldberg <jgoldberg@home.com>
      
      	* s/fit_in_cell/wrap_text/
      	rename this in preparation for supporting shrink_to_fit
      e0f71b51
  17. 16 Feb, 2001 1 commit
    • Jody Goldberg's avatar
      Use even_if_only_styles. (print_page) : Ditto. (print_sheet) : Ditto. · f5b71727
      Jody Goldberg authored
      
      2001-02-15  Jody Goldberg <jgoldberg@home.com>
      
      	* src/print.c (compute_sheet_pages) : Use even_if_only_styles.
      	(print_page) : Ditto.
      	(print_sheet) : Ditto.
      
      	* src/xml-io.c (xml_write_print_info) : Support 'even_if_only_styles'
      	(xml_read_print_info) : Ditto.
      	* src/dialogs/dialog-printer-setup.c (do_fetch_page_info) : ditto.
      	(do_setup_page_info) : Ditto.
      	* src/print-info.c (print_info_copy) : ditto.
      	(print_info_new) : ditto.
      	(print_info_save) : ditto.
      f5b71727
  18. 15 Feb, 2001 2 commits
  19. 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
  20. 31 Dec, 2000 1 commit
  21. 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
  22. 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
  23. 15 Nov, 2000 2 commits
    • 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
    • Jody Goldberg's avatar
      Follow convention that the manager is set when attached, and not before. · ad531019
      Jody Goldberg authored
      
      2000-11-15  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-control.c (workbook_control_set_view) : Follow
      	  convention that the manager is set when attached, and not before.
      	* src/workbook-view.c (wb_view_attach_control) : Ditto.  Set the
      	  tile on the new control.
      	* src/workbook.c (workbook_attach_view) : Ditto.
      
      2000-11-15  Jody Goldberg <jgoldberg@home.com>
      
      	* src/command-context-corba.[ch] : This is incorrectly named and used
      	  the wrong way :-( But at least it is compilable.  I'll fix this
      	  later.
      
      2000-11-15  Jody Goldberg <jgoldberg@home.com>
      
      	* src/colrow.c (col_row_foreach) : Use ColRowSegments
      	(col_row_restore_sizes) : Ditto.
      	* src/sheet.c (sheet_{col,row}_add) : Ditto.
      	(sheet_{col,row}_get_info) : Ditto.
      	(sheet_{col,row}_get) : Ditto.
      	(sheet_cell_foreach_range) : Ditto.
      	(sheet_{col,row}_destroy) : Ditto.
      	(sheet_regen_adjacent_spans) : Ditto.
      	(colrow_move) : Ditto.
      	(sheet_{col,row}_get_distance_pixels) : Ditto.
      	(sheet_{col,row}_get_distance_pts) : Ditto.
      	(sheet_{col,row}_set_size_pts) : Ditto.
      
      2000-11-15  Jody Goldberg <jgoldberg@home.com>
      
      	s/sheet-view/sheet-control-gui/
      
      	* src/Makefile.am : Add command-context-corba.[ch] temporarily
      
      	* configure.in : Default to non-bonobo build
      ad531019
  24. 11 Nov, 2000 1 commit
    • Jody Goldberg's avatar
      Renamed and moved from here to here. Added support for displaying · af0271b0
      Jody Goldberg authored
      
      2000-11-11  Jody Goldberg <jgoldberg@home.com>
      
      	* src/value.c (value_get_default_halign) : Renamed and moved from here
      	* src/cell.c (cell_default_halign) : to here.  Added support for
      	  displaying formulas.
      
      	* src/print-cell.c (print_cell) : only draw hash marks for numbers
      	  not when displaying formulas.
      	* src/cell-draw.c (cell_draw) : Ditto.
      	* src/cellspan.c (cell_calc_span) : Ditto.
      	* src/rendered-value.c (rendered_value_calc_size_ext) : Ditto.
      af0271b0
  25. 10 Nov, 2000 1 commit
    • Jody Goldberg's avatar
      Minor optimization to decrease flicker. · df3eb271
      Jody Goldberg authored
      
      2000-11-10  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-format-toolbar.c (workbook_format_toolbutton_update) :
      	  Minor optimization to decrease flicker.
      
      	* src/sheet.c (sheet_cell_calc_span) : Clarify the semantics of
      	  the various flags.
      	(cb_max_cell_width) : If the value used a dynamic format we need to
      	  rerender ignoring the current width.
      
      	* src/rendered-value.c (rendered_value_new) : renamed from
      	  rendered_value_new_ext and delete the old rendered_value_new.
      	  Extend slightly to flag whether or not to handle dynamic formats.
      
      	* src/render-ascii.c (cell_region_render_ascii) : Handle the style
      	  lookup localy.
      
      	* src/cell.c (cell_eval_content) : We need to manually render
      	  the value here, but no longer need to calculate the size
      	  seperately.  That is done automatically in the render.
      	(cell_render_value) : Handle style localy, and calculate the size.
      
      2000-11-09  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-control-gui.c (workbook_control_gui_init) : move the
      	  autosave code here.
      	* src/workbook.c : from here.
      df3eb271
  26. 06 Nov, 2000 1 commit
    • 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
  27. 02 Nov, 2000 1 commit
  28. 18 Oct, 2000 1 commit
    • Jody Goldberg's avatar
      More tuning for General. · a7948285
      Jody Goldberg authored
      2000-10-18  Jody Goldberg <jgoldberg@home.com>
      
      	* src/format.c (fmt_general_float) : clamp the precision at DBL_PREC.
      
      	* src/rendered-value.c (rendered_value_new_ext) : Don't forget the
      	  intercharacter spacing when approximating the width of a character.
      
      	* src/str.c (string_get_nocopy) : new function.
      
      	* src/cell.c (cell_set_value) : Use it.
      
      2000-10-16  Jody Goldberg <jgoldberg@home.com>
      
      	* src/rendered-value.c (rendered_value_new_ext) : fix some leaks.
      a7948285
  29. 16 Oct, 2000 4 commits
    • Jody Goldberg's avatar
      thinko · 33e4e485
      Jody Goldberg authored
      33e4e485
    • Jody Goldberg's avatar
      fix some leaks. · fb6aed04
      Jody Goldberg authored
      
      2000-10-16  Jody Goldberg <jgoldberg@home.com>
      
      	* src/rendered-value.c (rendered_value_new_ext) : fix some leaks.
      fb6aed04
    • Jody Goldberg's avatar
      no need to clear the formats. We are going to be pasting over them later. · bdcf8088
      Jody Goldberg authored
      
      2000-10-15  Jody Goldberg <jgoldberg@home.com>
      
      	* src/clipboard.c (clipboard_paste_region) : no need to clear the
      	  formats.  We are going to be pasting over them later.  This means
      	  that we don't rerender everything in the region then replace it.
      
      	* src/rendered-value.c (rendered_value_new_ext) : Pass colwidth as a
      	  float to get beter resolution.
      	* src/format.c (format_value) : Ditto.
      
      	* src/format.c (fmt_general_float) : More tuning.
      bdcf8088
    • Jody Goldberg's avatar
      RE_RENDER when a span clac is forced. This is a bit brute force for now, · bad302a3
      Jody Goldberg authored
      
      2000-10-15  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.c (sheet_update) : RE_RENDER when a span clac is forced.
      	  This is a bit brute force for now, but is necessary to force the
      	  re-rendering of values that may have width dependent formats.
      	  I've noted a possible future enhancement that would remove this req
      	  at the cost of some complexity.
      
      	* src/format.c (fmt_general_float) : new function.
      	(fmt_general_int) : new function.
      	(format_value) : Use the new routines.
      
      2000-10-15  Jody Goldberg <jgoldberg@home.com>
      
      	* src/cell.c (cell_set_value) : Re-render the entered text to handle
      	  width dependent formats.
      
      2000-10-14  Jody Goldberg <jgoldberg@home.com>
      
      	* src/print-cell.c (print_overflow) : improve drawing of hash marks.
      	* src/cell-draw.c (draw_overflow) : to always draw at least one hash.
      
      	* src/rendered-value.c (rendered_value_new_ext) : pass in approx
      	  column width in characters for use by general.
      bad302a3
  30. 06 Sep, 2000 1 commit
    • Jody Goldberg's avatar
      Remainder of patch to handle non-cell dependents. · 01a95234
      Jody Goldberg authored
      2000-09-05  Jody Goldberg <jgoldberg@home.com>
      
      	* configure.in : Add test for pspell.
      	* acconfig.h : Ditto.
      
      	* s/cell.u.expression/cell.base.expression/
      	* s/cell.generation/cell.base.generation/
      	* s/cell.u.entered_text/cell.entered_text/  <- deprecated
      	* s/workbook.formula_cell_list/workbook.dependents/
      
      	* s/sheet_cell_expr_link/dependent_expr_link/
      	* s/sheet_cell_expr_unlink/dependent_expr_unlink/
      
      	* s/eval_queue_cell/dependent_queue_recalc/
      	* s/eval_queue_list/dependent_queue_recalc_list/
      	* s/eval_unqueue_cell/dependent_unqueue_recalc/
      	* s/eval_unqueue_sheet/dependent_unqueue_recalc_sheet/
      	*
      	* s/cell_add_dependencies/dependent_add_dependencies
      	* s/cell_drop_dependencies/dependent_drop_dependencies
      
      	* s/cell_formula_changed/dependent_changed/
      	* s/sheet_cell_expr_link/dependent_link/
      	* s/CELL_IN_EXPR_LIST/DEPENDENT_IN_EXPR_LIST/
      
      	* src/cell.c (cell_eval_content) : moved from eval.c
      
      	* src/eval.c (sheet_region_get_deps) : Take a Range rather than 4 int.
      	(drop_range_dep) : Use dependent_debug_name.
      	(dependency_range_ctor) : Take a CellPos as an arg rather than a Cell.
      	(handle_cell_single_dep) : Take an optional CellPos and a Dependent.
      	(handle_cell_range_deps) : Ditto. Do not check for singletons here.
      	(handle_tree_deps) : Ditto.  Call handle_cell_single_dep directly.
      	(cell_add_explicit_dependency) : Delete.
      	(get_single_dependencies) : Some const.
      
      	* src/cmd-edit.c (cmd_select_cur_depends) : Use dependent_list_filter
      	  to only show cell dependencies for now.
      
      	* src/dependent.c (dependent_list_filter) : new function.
      	(dependent_debug_name) : new function.
      
      	* src/history.c : Add a comment about File/Print Preview for
      	  translators.
      
      	* src/workbook.c (cb_cell_rerender) : Only cells need this.
      01a95234
  31. 03 Sep, 2000 1 commit
    • Almer. S. Tigelaar's avatar
      Modify to accept a NULL sheet for cell->sheet. · f265f363
      Almer. S. Tigelaar authored
      2000-09-03  Almer. S. Tigelaar.  <almer1@dds.nl>
      
      	* src/cell-draw.c:
      	(cell_draw): Modify to accept a NULL sheet for
      	cell->sheet.
      
      	* src/item-grid.c, src/item-grid.h:
      	(item_grid_draw_border): Export this routine for use
      	by the preview-grid.
      
      	* src/preview-grid.h, src/preview-grid.c:
      	New, preview-grid canvasitem, based upon item-grid.
      
      	* src/preview-grid-controller.h, src/preview-grid-controller.c:
      	New, easy to use wrapper around canvas and preview-grid.
      
      	* src/dialogs/dialogs.h: Add autoformat dialog and
      	autoformat edit dialog invocation functions.
      
      	* src/dialogs/autoformat.glade: New,
      	glade file for autoformat dialog.
      
      	* src/dialogs/autoformat.glade.h: New,
      	translation header for autoformat dialog.
      
      	* src/dialogs/dialog-autoformat.c: New, source
      	for controlling autoformat dialog.
      
      	* src/sheet-view.c:
      	(sheet_view_get_style_font): Modify to accept a
      	NULL sheet. (defaults to zoomlevel 1)
      
      	* src/workbook.c:
      	(workbook_menu_format[]): Add autoformat.
      	(autoformat_cmd): New, invokes autoformat dialog.
      
      	* src/mstyle.c, mstyle.h:
      	(mstyle_replace_element): New, replaces an element
      	in an mstyle with an element from another mstyle.
      
      	* src/rendered-value.c, src/rendered-value.h:
      	(rendered_value_calc_size_ext): Same as the previous
      	rendered_value_calc_size, but accepts an mstyle as
      	extra parameter. the purpose of this and some other
      	minor changes from the rendered_value_calc_size is
      	to be able to calc the size of a sheetless cell.
      	(rendered_value_calc_size): Performs the same role
      	as the previous rendered_value_calc_size and
      	calls upon rendered_value_calc_size_ext to do its
      	thing.
      	(rendered_value_new_ext): Same as previous rendered_value_new
      	but accept an mstyle as parameter for sheetless cells.
      	(rendered_value_new): Exacly the same as the previous
      	render_value_new, but calls upon rendered_value_calc_size_ext.
      
      	* src/xml-io.c, src/xml-io.h:
      	(xml_search_child): Export for use by xml-io-autoft.c.
      	(xml_get_value_string): Idem.
      	(xml_set_value_string): Idem.
      	(xml_get_value_int): Idem.
      	(xml_set_value_int): Idem.
      	(xml_write_style): Idem.
      	(xml_read_style): Idem.
      
      	* src/xml-io-autoft.c, src/xml-io-autoft.h:
      	New, these handle the reading/writing of autoformat templates.
      
      	* src/format-template.h, src/format-template.c:
      	New, wrapper around the loading and saving and managing
      	of format templates.
      
      	* templates/autoformat:
      	Add default autoformat templates
      
      	* configure.in:
      	Modify to include the autoformat templates and define
      	a new variable for the autoformat templates directory
      	so we can find them at run-time
      f265f363
  32. 31 Aug, 2000 1 commit
    • Jody Goldberg's avatar
      New base class for Cells. Convert everything to access the elements that · 8b5866fb
      Jody Goldberg authored
      
      2000-08-30  Jody Goldberg <jgoldberg@home.com>
      
      	* dependent.[ch] : New base class for Cells.
      	  Convert everything to access the elements that are now
      	  in the cell's base.
      	s/Cell::sheet/Cell::Dependent::sheet/
      	s/Cell::cell_flags/Cell::Dependent::flags/
      
      	* Makefile.am : Because of XL we need to build plugins before src.
      	  That will need changing.
      
      	* src/func.c (function_marshal_arg) : Use expr_array_intersection.
      
      	* src/expr.c (eval_expr_real) : Do implicit conversions from strings
      	  to numbers if possible.
      	  Access the first element of an array.  NOTE : This is WRONG
      	  We need to implement array expression behavior some day.
      	(expr_array_intersection) : New routine.
      8b5866fb
  33. 18 Aug, 2000 1 commit
    • Jody Goldberg's avatar
      Leak less. · 76dab008
      Jody Goldberg authored
      
      2000-08-17  Jody Goldberg <jgoldberg@home.com>
      
      	* src/print-info.c (print_info_copy) : Leak less.
      
      	* src/clipboard.c (paste_cell) : Set the pos rather than the row/col
      	  pointers.
      
      	* src/solver-lp.c (solver_lp_copy) : Fix typo, and use Cell::pos.
      76dab008
  34. 06 Jul, 2000 1 commit
    • Jody Goldberg's avatar
      bug 16490. We were attempting to display the entered text rather than the · 2a420f79
      Jody Goldberg authored
      bug 16490.
      We were attempting to display the entered text rather than the formated text
      and falling over when the copied cell had no sheet.  This is not lovely, but it
      is as clean as we'll get for now.
      
      2000-07-06  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-style.c (sheet_style_compute_from_list) : Make public.
      	  and rename from sheet_mstyle_compute_from_list.  Changed all
      	  callers.
      
      	* src/rendered-value.c (rendered_value_new) : Optionaly take a style
      	  list.  Use it if offered.
      
      	* src/cell.c (cell_render_value) : New signature for rendered_value_new.
      
      	* src/render-ascii.c (cell_region_render_ascii) : Temporarily reverse
      	  the style list so that it goes in the correct direction.   Use
      	  rendered_value not entered_text.
      
      	* src/clipboard.c (clipboard_prepend_cell) : Init the Cell::pos with
      	  the offsets.  This is useful in when looking up formats.
      2a420f79
  35. 28 Jun, 2000 1 commit
    • Jody Goldberg's avatar
      new function. · 93f11589
      Jody Goldberg authored
      
      2000-06-28  Jody Goldberg <jgoldberg@home.com>
      
      	* src/functions/fn-sheet.c (GNUMERIC_VERSION) : new function.
      
      	* src/workbook.c (workbook_do_destroy) : No need to release the
      	  clipboard here.  The Sheet does it for us.
      
      	* src/workbook-format-toolbar.c : Add Fill to the default money
      	  format.
      
      	* src/symbol.c : The only symbols are functions.  The global table
      	  should not be world visible.
      
      	* src/sheet.c (sheet_flag_status_update_cell) : Take a CellPos.
      	(sheet_get_extent_cb) : Use Cell::pos rather than adding an
      	  indirection.
      	(cb_set_cell_content) : Use StyleFormat.
      	(sheet_cell_set_value) : Call sheet_flag_status_update_cell.
      	(sheet_cell_set_value) : Ditto.
      	(sheet_destroy) : Prepare to clear out named expressions.
      	(colrow_move) : Handle changes in cell_relocate signature.
      	(sheet_move_range) : Ditto.
      
      	* src/sheet-autofill.c : Use StyleFormats.
      
      	* src/position.c (parse_pos_init) : Global position are permitted.
      
      	* src/parser.y : Large change.  Do not automaticlly look for function
      	  names or named expressions in the lexer.  The lexer returns STRING
      	  and QUOTED_STRING.  The parser then does the appropriate lookups to
      	  potentially convert to something else.  This allows us to have sheet
      	  names that are the same as functions.
      
      	* src/parse-util.c (cellref_name) : Add flag to optionally disable the
      	  addition of the sheet name.  This is useful when printing
      	  Sheet2!A1:A3 rather than Sheet2!A1:Sheet2!A3.
      
      	* src/number-match.c (format_create_regexp) : Handle fill formats.
      
      	* src/mstyle.c (mstyle_get_border) : Fix constness.
      
      	* src/mathfunc.c (combin, fact) : Moved these here from
      	  functions/fn-math.c
      
      	* src/main.c (gnumeric_main) : No more constants_init, or
      	  global_symbol_init.
      
      	* src/func.c () : Reorg.  Remove some dead code.  Begin adding
      	  workbook local function support, Begin adding volatile, and
      	  semi-volatile functions.  Move the use of SymbolTable internal
      	  in preparation for eliminating it.
      
      	* src/format.c (format_number) : Improve support for pound, yen, and euro.
      	  Remember to produce a number when we hit spacing.
      
      	* src/expr.c : Have ExprFunc refer directly to the FunctionDefinition
      	  We still use a SymbolTable internally, but that will be merged out
      	  later.
      
      	* src/expr-name.c : Major reorg.  Not complete.
      
      	* src/corba-sheet.c (fill_corba_value) : Adjust to changes in
      	  cellref_name signature.
      
      	* src/commands.c (cmd_set_date_time_undo) : No need to manually call
      	  update_cell_flag.  cell_remove, and cell_set_text do that for us.
      	(cmd_set_date_time_redo) : Ditto.
      	  Use StyleFormat.
      
      	* src/clipboard.c (paste_cell) : Take the ExprRewriteInfo as an
      	  argument.
      	(clipboard_paste_region) : Init the ExprRewriteInfo.  We need to do
      	  this here rather than in cell_relocate because we may be moving a
      	  region, not just a single cell, and references within the region
      	  should not be changed.
      
      	* src/cell.c (cell_relocate) : Take the relocation info as an
      	  argument.  Non NULL indicates a request to check bounds.  We can not
      	  do this at the cell level. becuase we may be moving a block rather
      	  than just a single cell, and references into the block should NOT be
      	  rewritten.
      	(cell_set_text_and_value) : Take a StyleFormat.
      	(cell_assign_value) : Ditto.
      	(cell_set_value) : Ditto.
      	(cell_set_expr_internal) : Ditto.
      	(cell_set_expr_unsafe) : Ditto.
      	(cell_set_expr) : Ditto.
      
      	* src/auto-format.c (do_af_suggest) : Expression now refers directly
      	  to functionDef.
      93f11589