1. 30 Oct, 2002 1 commit
    • Morten Welinder's avatar
      Ditto. (wbcg_edit_start): Ditto. · 1eb8f623
      Morten Welinder authored
      2002-10-30  Morten Welinder  <terra@diku.dk>
      
      	* src/workbook-edit.c (entry_changed): Ditto.
      	(wbcg_edit_start): Ditto.
      
      	* src/func.c (tokenized_help_new): Make utf8 safe.
      
      
      2002-10-30  Morten Welinder  <terra@diku.dk>
      
      	* dialog-function-select.c
      	(cb_dialog_function_select_fun_selection_changed): Make utf8 safe.
      	I think.  I hope.
      1eb8f623
  2. 26 Oct, 2002 1 commit
    • Jody Goldberg's avatar
      Start rationalizing things. ditto. Lots of adjustments. - start handling · 70aecfa7
      Jody Goldberg authored
      2002-10-26  Jody Goldberg <jody@gnome.org>
      
      	* ms-excel-write.c : Start rationalizing things.
      	* ms-formula-write.c : ditto.  Lots of adjustments.
      	- start handling biff7 externsheets correctly
      	- fix handling of non builtin functions
      
      	* ms-excel-read.c (excel_add_name) : delete.
      	(excel_workbook_get_name) : ditto.
      
      	* ms-formula-read.c : Hopefully the last major tweak to names and
      	  externsheets for biff7.  This now loads all test cases smoothly.
      	  It seems that biff7 stores per bof sets of externsheets.
      
      	* ms-container.c (ms_container_init) : Add a version and a workbook
      	  pointer.  Init the new biff7 extern handling data structures.
      	(ms_container_finalize) : and release them here.
      	(ms_container_get_name) : new to handle biff7 or biff8 magic.
      	(ms_container_add_name) : ditto.
      
      	* ms-chart.c (BC_R(ai)) : parse the expression as ourselves, not the
      	  container.
      	(chart_parse_expr) : implement.
      	(ms_excel_chart) : handle EXTERNSHEET and EXTERNCOUNT for biff7 style
      	  storage with per BOF EXTERN*.
      
      	* ms-biff.c (ms_biff_put_destroy) : take responsibility for the output
      	  stream.
      
      	* boot.c (excel_save) : check that we can open the output file before
      	  we bother collecting things for export.
      
      2002-10-25  Jody Goldberg <jody@gnome.org>
      
      	* ms-excel-read.c (excel_read_XF) : init shrink to fit in the non
      	  biff8 case.
      
      2002-10-24  Jody Goldberg <jody@gnome.org>
      
      	* ms-excel-read.c (excel_parse_name) : patch leak.
      
      
      2002-10-24  Jody Goldberg <jody@gnome.org>
      
      	* src/dependent.c (link_cellrange_dep) : jonkare found a typo.
      	  Thanks that will make life easier when we start using this flag.
      70aecfa7
  3. 12 Oct, 2002 1 commit
    • Jody Goldberg's avatar
      jump to the new interface. · dc2319e8
      Jody Goldberg authored
      
      2002-10-12  Jody Goldberg <jody@gnome.org>
      
      	* src/func-builtin.c (func_builtin_init) : jump to the new interface.
      
      	* src/func.h : some renaming and api cleanup.
      	  The big one was
      	    s/ModulePluginFunctionInfo/GnmFuncDescriptor/
      	  Some extension of that structure to add additional fields (at the
      	  end) and api changes to use it pervasively.  This includes
      	  placeholders for function flags, and implementation and testing
      	  status.
      
      	  Some general cleanup with
      	    s/FunctionDefinition/GnmFunc/
      	    s/func_lookup_by_name/gnm_func_lookup/
      	    s/function_add_placeholder/gnm_func_add_placeholder/
      	    s/function_def_get_name/gnm_func_get_name/
      	    s/function_def_set_user_data/gnm_func_set_user_data/
      	    s/function_def_get_user_data/gnm_func_get_user_data/
      
      	  remove function_add_args vs function_add_nodes and replace them with
      	  a GnmFuncDescriptor based gnm_func_add
      
      2002-10-12  Jody Goldberg <jody@gnome.org>
      
      	* src/cellspan.c (row_calc_spans) : some simple optimizations
      	  to prune the length we check based on col/row maxima and sparseness.
      	  This can be significantly faster when we add per row maxima.
      
      	* src/symbol.c (symbol_install) : use g_warning and table_replace in
      	  case of a collison.
      
      	* src/format.c (format_number) : Make utf8 clean
      
      	* src/sheet-control-gui.c (scg_set_panes) : more initial work on
      	  supporting h/v only freezing.
      
      2002-10-11  Jody Goldberg <jody@gnome.org>
      
      	* src/libgnumeric.c (gnm_dump_func_defs) : add a flag to indicate
      	  dumping def or status
      	* src/func.c (function_dump_defs) : ditto.
      	* src/main-application.c (main) : add --func-state-dump
      dc2319e8
  4. 21 Dec, 2001 1 commit
  5. 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
  6. 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
  7. 15 Jun, 2000 1 commit
    • Jody Goldberg's avatar
      -Gladify the formula guru. · 7df89cb5
      Jody Goldberg authored
      -Some typos in function docs.
      -Remove unused code inthe symbol table in preparation for splitting
      functions and values
      7df89cb5
  8. 10 Apr, 2000 1 commit
    • Miguel de Icaza's avatar
      Do not destroy the context here, as it is dereferenced later in the · 30aba440
      Miguel de Icaza authored
      
      
      2000-04-07  Miguel de Icaza  <miguel@gnu.org>
      
      	* main.c (button_cancel): Do not destroy the context here, as it
      	is dereferenced later in the mainloop.
      
      2000-04-10  Miguel de Icaza  <miguel@gnu.org>
      
      	* Lots of files: replaces utils.h for gutils.h
      
      	* renamed utils.h to gutils.h to avoid the compilation problem on
      	some Unices (yes, fixing the Makefile would have done it, but
      	utils.h was still a lame name;  Of course gutils.h is not any
      	better, but it is now done).
      
      2000-04-07  Miguel de Icaza  <miguel@gnu.org>
      
      	* src/cellspan.c (span_remove): Pretify code.
      30aba440
  9. 02 Mar, 2000 1 commit
    • Jon K Hellan's avatar
      Test went wrong way. (symbol_remove): Ditto. · 660a5297
      Jon K Hellan authored
      2000-03-02  Jon K Hellan  <hellan@acm.org>
      
      	* src/symbol.c (symbol_is_unused): Test went wrong way.
      	(symbol_remove): Ditto.
      
      	* plugins/python/python.c (apply): Plug "Value" leak.
      	(array_from_python): Fix silly mistake.
      	(row_from_python): Rename "col" variable to "rowno"
      660a5297
  10. 03 Jan, 2000 1 commit
  11. 26 May, 1999 1 commit
  12. 29 Apr, 1999 1 commit
  13. 25 Apr, 1999 1 commit
    • Morten Welinder's avatar
      Remove useless initialisation. Don't free individual selections here. · 07fc066e
      Morten Welinder authored
      Sat Apr 24 14:39:32 1999  Morten Welinder  <terra@diku.dk>
      
      	* src/sheet.c (sheet_selection_reset_only): Remove useless
       	initialisation.  Don't free individual selections here.
      
      	(sheet_selections_free): Walk the list of selections and free each
       	one.
      
      	(sheet_get_selection_name): Calculate buffer size based on the
       	size of an int.
      
      	* src/fn-eng.c: Remove sqrtpi function -- it's already in fn-math.c
      
      	* src/fn-math.c (gnumeric_sqrtpi): Add range check.
      
      	* src/symbol.c (symbol_install): Add sanity check.
      07fc066e
  14. 24 Apr, 1999 1 commit
  15. 28 Oct, 1998 1 commit
    • Miguel de Icaza's avatar
      Use extra argument. · 4443c9f4
      Miguel de Icaza authored
      1998-10-27  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/parser.c (dump_tree): Use extra argument.
      
      	* src/expr.c (function_call_with_values): Use the extra argument
      	to symbol_lookup
      
      	* src/func.c (constants_init): Use the extra argument to symbol_install.
      
      	* src/main.c (main): Invoke global_symbol_init.
      
      	* src/symbol.h: Symbol routines now take an extra argument; the
      	symboltable they work on.  Now the code can have multiple symbol
      	tables (this is required for the cell range name bindings in a
      	per-sheet fashion.
      4443c9f4
  16. 19 Sep, 1998 2 commits
  17. 10 Aug, 1998 1 commit
  18. 07 Aug, 1998 1 commit
    • Arturo Espinosa's avatar
      Lots of work as usual :-) · c875c8db
      Arturo Espinosa authored
      
      
      Lots of work as usual :-)
      
      Cell lookup is still broken.
      More functions!  COUNT, AVERAGE, AND, OR.
      
      Changed the function framework: it is now easier to write
      functions that take multiple arguments.
      
      Added some documentation on writing functions.
      
      Miguel.
      c875c8db
  19. 06 Aug, 1998 1 commit
    • Arturo Espinosa's avatar
      Lots of things today: · b261e986
      Arturo Espinosa authored
      
      
      Lots of things today:
      
      - New functions implemented:
      	SELECTION(),  SUM(),  IF()
      
      - Autocompute of an expression that applies to the selection.
      
      - Added comparission to the expression grammar.
      
      - Added array values.
      
      Bug fixes as usual and lots other thingies I forget.
      
      Miguel
      b261e986
  20. 05 Aug, 1998 1 commit
  21. 30 Jul, 1998 1 commit
    • 0's avatar
      Free the record that tracks the allocation records. (alloc_clean): Handle · 69def31c
      0 authored
      1998-07-30    <miguel@nuclecu.unam.mx>
      
      	* src/parser.y (alloc_clean): Free the record that tracks the
      	allocation records.
      	(alloc_clean): Handle Strings.
      	(alloc_list_free): New function: cleans up the allocation list.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_load_cell_val): Fix to use
      	the new Strings.
      
      	* src/cell.h: Use the new Strings instead of the Symbols.  That
      	was just a stupid idea.
      
      	* src/str.c (string_ref): New file:  Implements string sharing.
      
      	* src/symbol.c (symbol_install): Use our copy of the allocated key
      	when installing the symbol.
      
      1998-07-29    <miguel@nuclecu.unam.mx>
      
      	* src/symbol.c (symbol_unref_ptr): New function that does symbol
      	unreferencing and if the reference count reaches zero, it also
      	sets the value pointed to NULL.
      
      	* src/sheet.c (cell_set_text): Release evaluation tree after
      	entering new contents in a cell.
      
      	* src/sheet.h (Cell): We now keep all of the character information
      	as refcounted Symbols.
      
      	* src/expr.c (eval_node_release): Renamed and made static.  New
      	allocation strategy: EvalTree's top node are now refcounted to
      	simplify cell duplication.
      	(eval_expr): Now it takes column and row arguments for evaluating
      	the expression in that context.
      	(expr_parse_string): Same.
      
      	* src/parser.y: Renamed EvalNode to EvalTree.
      	(return_cellref): CellRefs now contain offsets relative to the
      	current column/row if the references are not absolute.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_make_cell_visible): Use new
      	helper routines for doing the scrolling.  Scroll vertically.
      	(gnumeric_sheet_set_top_row, gnumeric_sheet_set_top_col): New
      	routines for keeping the contents of the canvas and the bars in
      	sync.
      	(gnumeric_sheet_new): Take the ItemBars for the columns and rows
      	as a parameter now.
      
      	* src/sheet.c (sheet_select_all): New routine: select the complete spreadsheet.
      
      	* src/item-bar.c (item_bar_class_init): Signal now takes an extra
      	argument which indicates the beginning of a column selection.
      
      	* src/sheet.c (sheet_selection_col_extend_to,
      	sheet_selection_row_extend_to): New methods for implementing the
      	extending column and row selection.
      	(sheet_row_selection_changed, sheet_col_selection_changed): Now
      	they use the new parameter to start the selection.
      69def31c
  22. 25 Jul, 1998 1 commit
    • Arturo Espinosa's avatar
      Weee! Regular strings are now treated as values (so they can be used in · a30e70c3
      Arturo Espinosa authored
      
      
      Weee!  Regular strings are now treated as values (so they
      can be used in cell expressions).  This means you can actually
      start typing expressions and they will actually make sense
      (note that no recalc is yet supported).
      
      The code to do interactive selections is there, but for some
      reason the cursor is not paying much attention to me.
      
      This feature lets you select a cell for an expression if you
      type in a formula in the spreadsheet (just type '=' and use
      the arrow keys to see my buggy code).
      a30e70c3
  23. 22 Jul, 1998 1 commit
    • Miguel de Icaza's avatar
      Numbers are parsed correctly. Bits of Oleo number parsing plugged in. · ef28d5f2
      Miguel de Icaza authored
      1998-07-21  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/parser.y (yylex): Numbers are parsed correctly.  Bits of
      	Oleo number parsing plugged in.
      
      	* src/util.c, src/util.h: New files with assorted number utilities.
      
      	* src/numbers.h: New file: takes care of using gmp or regular
      	double/int.
      
      	* src/expr.c (eval_release_node): Implement.
      	(eval_release_value): New function.
      
      	* src/sheet.c (sheet_col_selection_changed,
      	sheet_row_selection_changed): Implement.
      	(sheet_selection_clear, sheet_selection_clear_only): Splitted
      	functionality into two routines.
      	(sheet_selection_clear_only): Remove any marks from the bars.
      	(sheet_row_set_selection, sheet_col_set_selection): Implement.
      
      	* src/item-bar.c (is_pointer_on_division): Return the column
      	changed.
      
      	* src/item-grid.c (item_grid_draw_cell): Fix the computation for
      	right indentation.
      ef28d5f2
  24. 20 Jul, 1998 1 commit