1. 08 Aug, 2016 1 commit
  2. 24 Apr, 2016 1 commit
  3. 28 Jun, 2015 1 commit
  4. 26 Oct, 2014 1 commit
    • Morten Welinder's avatar
      Standards: be C99 compliant when accessing GnmValue's type. · d660a287
      Morten Welinder authored
      There are three standards compliant ways of getting the tag field
      for a union like GnmValue.
      
      1. Via the subtype struct that the value has.  That only works (and
         is utterly pointless) when we already know the value type.
      
      2. Via another union member that is a structure having one or more
         initial members matching the actual struct type.  The silly thing
         is that this rule only applies to structs; I guess that is an
         oversight, but a fat lot of good that does us now.  In practice
         this means we should use ->v_any.type for that.
      
      3. Using the pointer-to-first-struct-member rule.
      
      To simplify matters, define VALUE_IS_ARRAY and VALUE_IS_CELLRANGE
      macros.
      d660a287
  5. 16 Aug, 2012 1 commit
  6. 12 Aug, 2012 1 commit
  7. 15 Jun, 2009 1 commit
  8. 10 Jun, 2009 1 commit
  9. 08 Jun, 2009 1 commit
  10. 28 Jun, 2008 1 commit
  11. 21 May, 2008 1 commit
    • Morten Welinder's avatar
      Always NULL ->cell_iter. · e85ac992
      Morten Welinder authored
      2008-05-21  Morten Welinder  <terra@gnome.org>
      
      	* src/value-sheet.c (value_area_foreach): Always NULL ->cell_iter.
      
      2008-05-21  Morten Welinder  <terra@gnome.org>
      
      	* functions.c (gnumeric_countblank): Use value_area_* functions.
      	Fixes #534204.
      
      
      svn path=/trunk/; revision=16595
      e85ac992
  12. 20 May, 2008 1 commit
  13. 27 Oct, 2007 1 commit
  14. 08 Sep, 2007 1 commit
  15. 26 Feb, 2007 1 commit
    • Morten Welinder's avatar
      Use the hash table to report leaked strings. Use slice allocator when · a8111ec6
      Morten Welinder authored
      2007-02-26  Morten Welinder  <terra@gnome.org>
      
      	* src/str.c (gnm_string_shutdown): Use the hash table to report
      	leaked strings.  Use slice allocator when available.
      
      	* src/value.c (value_shutdown): Use slice allocator when
      	available.  Keep a running count of allocations and report leaks
      	on shutdown.
      
      	* src/commands.c (cmd_copyrel): Handle non-singleton areas.
      	[#112847] Also switch to GOUndo.
      
      	* */*.c: Use <stdio.h> only when needed.
      
      
      svn path=/trunk/; revision=15433
      a8111ec6
  16. 25 Jan, 2007 1 commit
  17. 24 Jan, 2007 1 commit
  18. 28 Nov, 2006 1 commit
  19. 25 Nov, 2006 2 commits
    • Jody Goldberg's avatar
      init ep in the cellrange case, and region in both cases. · b0b31430
      Jody Goldberg authored
      2006-11-25  Jody Goldberg <jody@gnome.org>
      
      	* src/value-sheet.c (value_area_foreach) : init ep in the cellrange
      	  case, and region in both cases.
      b0b31430
    • Jody Goldberg's avatar
      add validation-combo.h · 131aee7a
      Jody Goldberg authored
      2006-11-24  Jody Goldberg <jody@gnome.org>
      
      	* src/Makefile.am : add validation-combo.h
      
      	* src/mstyle.c (gnm_style_get_validation) : constify the result.  We
      	  should not modify it while it's part of a style.
      
      	* src/sheet-control-gui.c (cb_collect_objects_to_commit) : handle
      	  no-view case.
      	* src/gnumeric-pane.c (gnm_pane_display_obj_size_tip) : ditto.
      
      	* src/sheet-object.c (sheet_object_clear_sheet) : Handle
      	  so::sheet == NULL (eg when data validation combo is cleared from
      	  wbv::finalize after content_destroy clears the sheet list)
      	  Drop the return flag, nothing was using.
      
      	* src/validation.c (gnm_validation_combo_new) : new.
      	(gnm_validation_combo_class_init) : new.
      	(gnm_validation_combo_finalize) : new.
      	(gnm_validation_combo_init) : new.
      	(validation_ref) : allow the reffing of const objects.
      	(validation_unref) : ditto, this should really be split into a const
      	  and non-const version.  We can do that for all unref routines.
      
      	* src/value.h : create new struct GnmValueIter.
      	* src/value.c (gnm_value_get_type) : Make GnmValue a glib boxed type.
      	* src/value-sheet.c (value_area_foreach) : rework to use GnmValueIter.
      	  All callers changed.
      
      	* src/workbook-view.h : s/::current_format/::current_style/
      	  and make it const.  We have a ref to it, so it's not going away
      	  _but_ we should never change it.
      	  Add validation_combo.  For the sheet object corresponding to an
      	  in cell data validation combo.
      
      	* src/workbook-view.c (wb_view_style_feedback) : renamed from
      	  wb_view_format_feedback all callers changed.  Add a creation
      	  and removal of data validation in cell combo.
      	(wb_view_finalize) : clear the validation combo if it exists.
      	(workbook_view_new) : init the combo.
      
      2006-11-24  Jody Goldberg <jody@gnome.org>
      
      	* tools/xmlunzip : Add the 'macro enabled' formats from office12
      131aee7a
  20. 11 Nov, 2006 1 commit
  21. 11 Jun, 2006 1 commit
    • Jody Goldberg's avatar
      Take the width as an argument rather than calculating it here. (cell_draw) · 93aba8bf
      Jody Goldberg authored
      
      2006-06-11  Jody Goldberg <jody@gnome.org>
      
      	* src/cell-draw.c (cell_calc_layout) : Take the width as an argument
      	  rather than calculating it here.
      	(cell_draw) : width must be specified now.  No more magic < 0 implies
      	  cur col width.  Width convention changed to include margins.
      
      	* src/search.c (search_collect_cells) :  adjust to sheet_cells
      	  signature change.
      
      	* src/expr.h (GnmExprRelocateInfo) : convert pos from an EvalPos to a
      	  ParsePos.  One day the distinction will go away, but for now
      	  relocations do not need to know which dependent is being evaluated.
      	* src/dependent.c (dependents_relocate) : adjust to that change.
      	* src/sheet-autofill.c (afc_set_cell_hint) : ditto.
      
      	* src/colrow.h (GNM_COL_MARGIN) : define.  Margins are going away, why
      	  waste space and time looking up values that were constant.
      
      	* src/cell.h : remove GnmCell::col_info.
      	(cell_is_linked) : delete.  it was only used internally this model is
      	  targeted for removal when cells move into the quadtree.
      
      	* src/gnumeric.h : Change CellIterFunc signature to take a GnmCellIter
      	  in place of all the distinct arguments.
      	* src/auto-format.c (cb_af_suggest) : Adjust to signature change.
      	* src/clipboard.c (cb_clipboard_prepend_cell) : ditto.
      	* src/colrow.c (cb_clear_variable_width_content) : ditto.
      	* src/func.c (cb_iterate_cellrange) : ditto.
      	* src/graph.c (cb_assign_val) : ditto.
      	(cb_assign_matrix_val) : ditto.
      	* src/print.c (cb_range_empty) : ditto.
      	* src/ranges.c (cb_find_extents) : ditto.
      	* src/sheet-filter.c (cb_collect_unique) : ditto.
      	(cb_filter_expr) : ditto.
      	(cb_filter_non_blanks) : ditto.
      	(cb_filter_blanks) : ditto.
      	(cb_filter_find_items) : ditto.
      	(cb_hide_unwanted_items) : ditto.
      	(cb_filter_find_percentage) : ditto.
      	(cb_hide_unwanted_percentage) : ditto.
      	* src/sheet-view.c (cb_fail_if_not_selected) : ditto.
      93aba8bf
  22. 25 May, 2006 1 commit
    • Jean Bréfort's avatar
      use GOImage for the cairo <-> pixbuf conversion. replaced gi18n.h by · 8374bc24
      Jean Bréfort authored
      2006-05-25  Jean Brefort  <jean.brefort@normalesup.org>
      
      	* component/gnumeric.c: (go_gnm_component_set_data),
      	(go_gnm_component_draw): use GOImage for the cairo <-> pixbuf conversion.
      	* src/application.c: replaced gi18n.h by gi18n-lib.h.
      	* src/clipboard.c: ditto.
      	* src/cmd-edit.c: ditto.
      	* src/command-context-stderr.c: ditto.
      	* src/command-context.c: ditto.
      	* src/commands.c: ditto.
      	* src/consolidate.c: ditto.
      	* src/expr-name.c: ditto.
      	* src/expr.c: ditto.
      	* src/file-autoft.c: ditto.
      	* src/format-template.c: ditto.
      	* src/func-builtin.c: ditto.
      	* src/func.c: ditto.
      	* src/gnm-format.c: ditto.
      	* src/gnm-graph-window.c: ditto.
      	* src/gnm-plugin.c: ditto.
      	* src/gnm-so-filled.c: (gnm_so_filled_draw_cairo): fixed a memory leak and
      	the gi18n change.
      	* src/gnm-so-line.c: replaced gi18n.h by gi18n-lib.h.
      	* src/gnm-so-polygon.c: (gnm_so_polygon_draw_cairo),
      	(gnm_so_polygon_class_init): new draw cairo function (not implemented)
      	and ditto.
      	* src/gnumeric-canvas.c: replaced gi18n.h by gi18n-lib.h.
      	* src/gnumeric-pane.c: ditto.
      	* src/gui-clipboard.c: ditto.
      	* src/gui-file.c: ditto.
      	* src/gui-util.c: ditto.
      	* src/gutils.c: ditto.
      	* src/history.c: ditto.
      	* src/hlink.c: ditto.
      	* src/input-msg.c: ditto.
      	* src/item-bar.c: ditto.
      	* src/item-cursor.c: ditto.
      	* src/item-edit.c: ditto.
      	* src/libgnumeric.c: ditto.
      	* src/mathfunc.c: ditto.
      	* src/number-match.c: ditto.
      	* src/parser.y: ditto.
      	* src/pivottable.c: ditto.
      	* src/print-info.c: ditto.
      	* src/print.c: ditto.
      	* src/ranges.c: ditto.
      	* src/search.c: ditto.
      	* src/selection.c: ditto.
      	* src/session.c: ditto.
      	* src/sheet-autofill.c: ditto.
      	* src/sheet-control-gui.c: ditto.
      	* src/sheet-filter.c: ditto.
      	* src/sheet-merge.c: ditto.
      	* src/sheet-object-graph.c: ditto.
      	* src/sheet-object-image.c: ditto.
      	* src/sheet-object-widget.c: ditto.
      	* src/sheet-object.c: ditto.
      	* src/sheet-style.c: ditto.
      	* src/sheet-view.c: ditto.
      	* src/sheet.c: ditto.
      	* src/stf-export.c: ditto.
      	* src/stf-parse.c: ditto.
      	* src/stf.c: ditto.
      	* src/style.c: ditto.
      	* src/validation.c: ditto.
      	* src/value-sheet.c: ditto.
      	* src/value.c: ditto.
      	* src/wbc-gtk.c: ditto and set translation domain for actions.
      	* src/wbcg-actions.c: replaced gi18n.h by gi18n-lib.h.
      	* src/widgets/gnm-dao.c: ditto.
      	* src/widgets/gnumeric-expr-entry.c: ditto.
      	* src/widgets/gnumeric-lazy-list.c: ditto.
      	* src/widgets/widget-font-selector.c: ditto.
      	* src/workbook-cmd-format.c: ditto.
      	* src/workbook-control-gui.c: ditto.
      	* src/workbook-control.c: ditto.
      	* src/workbook-edit.c: ditto.
      	* src/workbook-view.c: ditto.
      	* src/workbook.c: ditto.
      	* src/xml-io.c: ditto.
      	* src/xml-sax-read.c: ditto.
      8374bc24
  23. 11 Apr, 2006 1 commit
  24. 01 Apr, 2006 1 commit
    • Morten Welinder's avatar
      Get rid of VALUE_INTEGER. It was a nice idea, but getting the semantics · 27f4fc31
      Morten Welinder authored
      2006-03-31  Morten Welinder  <terra@gnome.org>
      
      	* */*.c: Get rid of VALUE_INTEGER.  It was a nice idea, but
      	getting the semantics right meant doing everything twice, in code
      	as well as at runtime.  Note, that the magic enum value (30) is
      	still understood by value_new_from_string so we can still read old
      	xml files.
      27f4fc31
  25. 30 Mar, 2006 2 commits
  26. 28 Mar, 2006 1 commit
    • Jody Goldberg's avatar
      fix typo. · 104f86f5
      Jody Goldberg authored
      2006-03-27  Jody Goldberg <jody@gnome.org>
      
      	* functions.c (gnumeric_sumproduct) : fix typo.
      
      2006-03-27  Jody Goldberg <jody@gnome.org>
      
      	* src/value-sheet.c (value_area_get_x_y) : document that this does a
      	  cell_eval for range constants.
      104f86f5
  27. 21 Sep, 2005 1 commit
    • Jody Goldberg's avatar
      Add some gnm_ to the api. (gnm_cellref_set_col_ar) : new · 2bfb51ca
      Jody Goldberg authored
      
      
      2005-09-20  Jody Goldberg <jody@gnome.org>
      
      	* src/position.c : Add some gnm_ to the api.
      	(gnm_cellref_set_col_ar) : new
      	(gnm_cellref_set_row_ar) : new.
      
      2005-09-20  Jody Goldberg <jody@gnome.org>
      
      	* gnumeric-expr-entry.c (cb_gee_key_press_event) : Use
      	  gnm_cellref_set_{col,row}_ar to compress the code and to handle
      	  mixed mode references (eg $A1:B2)
      2bfb51ca
  28. 08 Feb, 2005 1 commit
  29. 22 May, 2004 1 commit
    • Jody Goldberg's avatar
      support implicit iteration for operators. We now support all major · 3184ef30
      Jody Goldberg authored
      
      2004-05-21  Jody Goldberg <jody@gnome.org>
      
      	* src/expr.c : support implicit iteration for operators.  We now
      	  support all major evaluation mechanisms in ms excel.
      
      2004-05-19  Jody Goldberg <jody@gnome.org>
      
      	* configure.in : bump libglade req to 2.3.6 to get the new combos
      	  Merge in an as yet unused test for mono while we're in here.
      
      2004-05-21  Jody Goldberg <jody@gnome.org>
      
      	* ms-excel-read.c (excel_read_WSBOOL) : add more comments.
      
      	* ms-chart.c (ms_excel_write_chart) : start filling in some of the
      	  blanks.  No where near functional, but at least we can operate in
      	  'paint by numbers' mode for a while.
      
      	* ms-biff.c (ms_biff_put_empty) : new util
      	(ms_biff_put_2byte) : ditto.
      
      	* ms-excel-write.c : Use the new utilities to clarify the code.
      	(excel_write_SETUP) : make public for use in chart export
      	(excel_write_SCL) : make public for use in chart export
      3184ef30
  30. 07 Jan, 2004 1 commit
    • Jody Goldberg's avatar
      The initial pass at GtkAction custom combos are mucho broken move this out · 164f0ac9
      Jody Goldberg authored
      
      
      2004-01-06  Jody Goldberg <jody@gnome.org>
      
      	The initial pass at GtkAction custom combos are mucho broken
      	* src/sheet.c (sheet_toggle_hide_zeros) : move this out of the macro
      	  in wbcg.
      	(sheet_toggle_show_formula) : ditto.
      
      	* src/sheet-object-graph.c (cb_save_as) : add jpg, and translate the
      	  error message now that string freeze is done.
      
      	* src/gui-util.c : restore DISABLE_DEPRECATED
      	(gnumeric_toolbar_insert_with_eventbox) : delete.
      	(gnumeric_toolbar_append_with_eventbox) : delete.
      	(gtk_button_stock_alignment_set) : delete.
      	(gnumeric_toolbar_new) : delete.
      	(gnumeric_inject_widget_into_bonoboui) : move the wbc-bonobo.c
      	(gnumeric_toolbar_get_widget) : delete.
      	(gnm_widget_disable_focus) : move here from workbook-format-toolbar.c
      
      	* workbook-format-toolbar.{c,h} : move contents into
      	* wbcg-actions.c : this new file
      	* wbc-gtk.c : or this new file
      	* wbc-bonobo.c : or this new file (WHICH DOES NOT COMPILE OR WORK)
      	  Should probably merge into workbook-control-component or something
      	  like that
      
      	* src/gnm-marshalers.list (VOID) : Use the stock marshallers in glib
      	  directly rather than adding our own wrappers.
      	* src/application.c : here
      
      	* src/GNOME_Gnumeric.xml : rename FileExit -> FileQuit to be consistent
      	* src/GNOME_Gnumeric-gtk.xml : new file for GtkAction
      	  NOTE NOTE NOTE
      	  You must be running in gnumeric/src
      	  I Repeat
      	  YOU MUST BE RUNNING IN gnumeric/src
      	  for anything to work right now.  I don't quite know how I want to
      	  handle the file yet (the bonobo approach was irritating) we'll see.
      
      	* configure.in :
      	- Add goffice/gui-utils
      	- Get rid of --with-bonobo
      	- Add --with-gnome
      	- Add --enable-bonobo-component
      	* plugins/Makefile.am : Adapt to that.
      	* src/Makefile.am : ditto, and add the new files.
      
      2004-01-05  Jody Goldberg <jody@gnome.org>
      
      	http://bugzilla.gnome.org/show_bug.cgi?id=130424
      	* src/commands.c (cmd_set_text_redo) : remove manual kludge.
      	* src/dependent.h (cell_eval) : move from here
      	* src/cell.h (cell_eval) : to here.  Add a new flag CELL_HAS_NEW_EXPR
      	* src/cell.c (cell_set_expr_internal) : set the flag here.
      	* src/rendered-value.c (rendered_value_new) : test it here.
      
      	http://bugzilla.gnome.org/show_bug.cgi?id=130582
      	* src/sheet-control-gui.c (scg_cursor_move) : don't scroll the other
      	  panes unless we absolutely have to.  Apparently we only fuxed normal
      	  cursor movement for http://bugzilla.gnome.org/show_bug.cgi?id=77303
      	  This fixes rangesel too.
      
      2003-12-29  Jody Goldberg <jody@gnome.org>
      
      	* * : Move everything to glib/gi18n.h in place of gnumeric-i18n.h
      	* gnumeric-i18n.h : delete
      
      	* configure.in : Looks like we're really requiring gtk/glib 2.3.1 at a
      	  minimum.  In reality it's probably closer to CVS at this point.  I'm
      	  kinda looking forward to the gtk freeze.
      
      2004-01-05  Jody Goldberg <jody@gnome.org>
      
      	http://bugzilla.gnome.org/show_bug.cgi?id=130577
      	* ms-excel-write.c (excel_write_SELECTION) : generalize a bit.
      	(excel_write_selections) : new wrapper to handle selectins for each pane
      
      	http://bugzilla.gnome.org/show_bug.cgi?id=130579
      	* ms-excel-read.c (excel_read_SELECTION) : we only care about
      	  selections in the primary pane.
      
      2003-12-24  Jody Goldberg <jody@gnome.org>
      
      	* ms-excel-write.c (excel_write_WRITEACCESS) : don't free memory we do
      	  no own.
      	(excel_write_COUNTRY) : init both fields.
      	(write_sheet_head) : pre biff8 it was part of the sheet record.  Its
      	  hard to tell if this should be part of every sheet or just the first.
      	  I've seen both.
      	(write_workbook) : biff8 puts the COUNTRY record in the workbook area.
      164f0ac9
  31. 12 Nov, 2003 1 commit
  32. 11 Oct, 2003 1 commit
    • Jody Goldberg's avatar
      new to write csv files without intervention. (stf_init) : Use it. · 7a725771
      Jody Goldberg authored
      
      
      2003-10-10  Jody Goldberg <jody@gnome.org>
      
      	* src/stf.c (stf_write_csv) : new to write csv files without
      	  intervention.
      	(stf_init) : Use it.
      
      2003-10-09  Jody Goldberg <jody@gnome.org>
      
      	* src/libgnumeric.c : pull the ancient if BONOBO checks
      
      	* src/io-context-gtk.c (icg_show_gui) : mark the window as a splash.
      
      	* schemas/Makefile.am : make friendlier for rpm builders
      7a725771
  33. 09 Oct, 2003 1 commit
    • Jody Goldberg's avatar
      Release 1.2.1 · b762bb9d
      Jody Goldberg authored
      
      2003-10-08  Jody Goldberg <jody@gnome.org>
      
      	* Release 1.2.1
      b762bb9d
  34. 22 Sep, 2003 1 commit
    • Morten Welinder's avatar
      Use function. (format_value_gstring): Use format_boolean. · 938729e8
      Morten Welinder authored
      2003-09-22  Morten Welinder  <terra@gnome.org>
      
      	* src/format.c (format_boolean): Use function.
      	(format_value_gstring): Use format_boolean.
      
      	* src/number-match.c (format_match_simple): Ditto.
      	* src/value-sheet.c (value_dump): Ditto.
      	* src/value.c (value_get_as_gstring): Ditto.
      938729e8
  35. 30 Dec, 2002 1 commit
    • Morten Welinder's avatar
      Don't use res uninitialized, even if we compile with no checks. · 9aec12f0
      Morten Welinder authored
      2002-12-30  Morten Welinder  <terra@diku.dk>
      
      	* src/sheet-style.c (cell_tile_style_new): Don't use res
      	uninitialized, even if we compile with no checks.
      
      	* src/gui-util.c (gnumeric_dialog_raise_if_exists): Return NULL on
      	failure, not FALSE.
      	* src/ranges.c (range_init_value): Ditto.
      	* src/sheet-object-widget.c (sheet_widget_scrollbar_get_ref,
      	sheet_widget_checkbox_get_ref): Ditto.
      	* src/value-sheet.c (value_area_foreach): Ditto.
      9aec12f0
  36. 16 Oct, 2002 1 commit
  37. 11 Oct, 2002 1 commit
    • Jody Goldberg's avatar
      move here and privatize. · f3bd2a8f
      Jody Goldberg authored
      
      2002-10-10  Jody Goldberg <jody@gnome.org>
      
      	* src/expr-sheet.c (value_intersection) : move here and privatize.
      
      	* src/func.c (function_call_with_list) : fence post error.  The first
      	  missing arg can be empty.  While we're here fix the precedence error
      	  that was breaking missing default args.  Remove use of
      	  value_intersection.  gnm_expr_eval handles it (I hope)
      
      	* src/expr.c (gnm_expr_eval) : support depends for constructed ranges too.
      
      2002-10-10  Jody Goldberg <jody@gnome.org>
      
      	* src/value-sheet.c (value_intersection) : move here and rework to
      	  support singletons.
      
      	* src/parser.y (parser_simple_val_or_name) : rename from
      	  parser_lookup_name and restore some of the value matching semantics
      	  so that we handle booleans again.  I'm not sure the error handling
      	  will kick in but it too is good.  the duble and int comparisons
      	  should be useless.  We can optimize things a bit by making a
      	  special case routine and removing those.
      
      	* src/expr.c (gnm_expr_eval) : handle dynamic depends and intersection
      	  for the the results.
      	NOTE WARNING WARNING WARNING : change of semantics
      	  In the permit_non_scalar case we do _not_ ensure that the content of
      	  the range has been evaluated.  The user is required to.  We only
      	  handle that in the intersection case.
      	For constant cellranges we now use value_intersection too.
      
      	* src/dependent.c (dependent_types_init) : register DynamicDep
      	(dependent_queue_recalc_list) : when we find a dynamic depend queue
      	  its container.
      	(dependent_queue_recalc) : rename from cb_dependent_queue_recalc and
      	  remove the ignored argument the compiler can handle it.
      	(dynamic_dep_debug_name) : new.
      	(dependent_add_dynamic_dep) : new.
      	(dynamic_dep_free) : new.
      	(dependent_clear_dynamic_deps) : new.
      	(dependent_unlink) : clear dynamic depends if they exist.
      	(cell_eval_content) : clear dynamic depends before we start to
      	  evaluate.  They get regenerated by evaluation and we are already know
      	  that we need to recalc, so there is no need to keep them.
      	(dependent_eval) : ditto.  duplicate the code to keep the semantics of
      	  cell_eval_content tidy.
      	(do_deps_destroy) : drop the dynamic depend table.
      	(gnm_dep_container_new) : initialize it here.
      f3bd2a8f
  38. 07 Oct, 2002 1 commit