1. 03 Jul, 2000 3 commits
    • Jody Goldberg's avatar
      Begin the Name menu. · 672ded42
      Jody Goldberg authored
      
      2000-07-03  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook.c : Begin the Name menu.
      
      	* src/workbook-edit.c (workbook_edit_set_sensitive) : New function.
      	(workbook_finish_editing) : Use here.
      	(workbook_start_editing_at_cursor) : And here.
      	(workbook_edit_attach_guru) : And here.
      	(workbook_edit_detach_guru) : And here.
      	(workbook_edit_entry_redirect_p) : New function.
      
      	* src/item-grid.c (item_grid_button_1) : If we have a guru up, but are
      	  not selecting a region ignore clicks.
      	(item_grid_event) : Ditto.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_can_select_expr_range) : It is
      	  possible to have a guru up without selecting regions.
      
      	* src/expr-name.c (expr_name_list) : Doh!
      
      2000-07-02  Jody Goldberg <jgoldberg@home.com>
      
      	* src/expr.c (expr_rewrite) : Names can contain relative references,
      	  we need to check them too.
      
      	* src/parser.y (exp) : Add production for sheet specific names.
      	  eg Sheet2!name
      
      2000-07-01  Jody Goldberg <jgoldberg@home.com>
      
      	* src/functions/fn-string.c (parse_search_strin) : Use g_strdup.
      672ded42
    • Jukka-Pekka Iivonen's avatar
      Implemented `Histogram' tool (mostly). · 275dc86f
      Jukka-Pekka Iivonen authored
      2000-07-03  Jukka-Pekka Iivonen  <iivonen@iki.fi>
      
      	* src/analysis-tools.c: Implemented `Histogram' tool (mostly).
      
      	* src/dialogs/tools.h: Related changes.
      
      	* src/dialogs/analysis-tools.glade,
      	src/dialogs/dialog-analysis-tools.c: Added dialogs for `Histogram'
      	and `Fourier Analysis' tools.  The later is not implemented yet.
      275dc86f
    • Jukka-Pekka Iivonen's avatar
      Implemented COUPNUM(). · 7dc4e081
      Jukka-Pekka Iivonen authored
      2000-07-03  Jukka-Pekka Iivonen  <iivonen@iki.fi>
      
      	* src/functions/fn-financial.c: Implemented COUPNUM().
      
      	* src/analysis-tools.c: Started the implementation of the third
      	anova tool (two-factor with replication).
      
      	* src/dialogs/analysis-tools.glade: Added dialog for the new
      	tool.  Fixed the `Correlation' dialog.
      
      	* src/dialogs/dialog-analysis-tools.c: Added
      	dialog_anova_two_factor_without_r_tool().
      
      	* src/dialogs/tools.h: Related changes.
      
      	* TODO: Added `Data analysis tools' section.
      7dc4e081
  2. 02 Jul, 2000 1 commit
  3. 01 Jul, 2000 3 commits
    • Morten Welinder's avatar
      Constify. Handle empty name. (do_save_as): Ditto. (wants_to_overwrite): · 21bd7015
      Morten Welinder authored
      2000-07-01  Morten Welinder  <terra@diku.dk>
      
      	* src/file.c (can_try_save_to): Constify.  Handle empty name.
      	(do_save_as): Ditto.
      	(wants_to_overwrite): Ditto.
      
      2000-07-01  Morten Welinder  <terra@diku.dk>
      
      	* dialog-plugin-manager.c (refresh_right_frame): Use time_t, not
       	long for times.  Make sure to delete the right character ('\n'),
       	not an arbitrary one.
      21bd7015
    • Morten Welinder's avatar
      Plug leak. · 1067a54a
      Morten Welinder authored
      2000-06-30  Morten Welinder  <terra@diku.dk>
      
      	* src/parse-util.c (parse_cell_name_list): Plug leak.
      
      
      2000-06-30  Morten Welinder  <terra@diku.dk>
      
      	* dialog-solver.c (dialog_results): Initialise
       	keep_solver_solution.
      	(dialog_solver): Remove buffer overflow.  Mark string for
       	translation.  Call free_original_values to plug leak.  Remove
       	several bogus casts.
      	(constr_change_click): Remove buffer overflow.
      	(free_original_values): New function.
      
      	* dialog-autocorrect.c (add_fl_clicked): Use g_strdup.
      	(add_in_clicked): Ditto.
      1067a54a
    • Morten Welinder's avatar
      Remove a number of evil fixed-length buffers. · c2479cad
      Morten Welinder authored
      
      
      2000-06-30  Morten Welinder  <terra@diku.dk>
      
      	* src/solver-lp.c (write_constraint_str): Return an allocated
       	string instead of taking an unsized buffer.  Constify.  All
       	callers changed.
      c2479cad
  4. 30 Jun, 2000 1 commit
    • Jody Goldberg's avatar
      It is possible to have a guru up without editing. · 69d6d36b
      Jody Goldberg authored
      
      2000-06-30  Jody Goldberg <jgoldberg@home.com>
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_can_select_expr_range) : It is
      	  possible to have a guru up without editing.
      	(gnumeric_sheet_key_press) : rename from gnumeric_sheet_key.
      	(gnumeric_sheet_size_allocate) : rename from gnumeric_size_allocate.
      	(gnumeric_sheet_focus_in) : Enable the input context.
      	(gnumeric_sheet_focus_out) : Disable the input context.
      	(gnumeric_sheet_realize) : Create the input context.
      	(gnumeric_sheet_unrealize) : Destroy the input context.
      	(gnumeric_sheet_class_init) : Register the new methods.
      	(gnumeric_sheet_init) : Init the input context.
      
      	* src/clipboard.c (x_selection_handler) : Adjust to changes in
      	  application_clipboard_clear.
      	(x_selection_clear) : Ditto.
      	* src/cmd-edit.c (cmd_paste) : Ditto.
      	* src/sheet.c (sheet_destroy) : Ditto.
      
      	* src/application.c (application_clipboard_clear) : Make dropping the
      	  selection optional.  This removes the kludges necessary to handle
      	  changing the clipboard when we already have the selection.
      
      	* src/functions/fn-logical.c (gnumeric_true, gnumeric_false) :
      	  fix signatures.
      69d6d36b
  5. 29 Jun, 2000 1 commit
    • Jody Goldberg's avatar
      Fix tab handling · 873b709f
      Jody Goldberg authored
      2000-06-28  Jody Goldberg <jgoldberg@home.com>
      
      	* dialog-function-wizard.c (cb_formula_guru_entry_event) : Return FALSE.
      	  We are not actually handling the event, just ensuring the display is
      	  up to date.
      873b709f
  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. 23 Jun, 2000 1 commit
    • Morten Welinder's avatar
      Constify. (set_group_option_signals): Constify. (new_frame): Constify. · 9379ee6e
      Morten Welinder authored
      2000-06-23  Morten Welinder  <terra@diku.dk>
      
      	* src/dialogs/dialog-analysis-tools.c (set_output_option_signals):
       	Constify.
      	(set_group_option_signals): Constify.
      	(new_frame): Constify.
      	(error_in_entry): Constify.
      	(new_dialog): Constify.
      
      	* src/analysis-tools.c: major cleanup.  Eliminate fixed-size
       	buffers that might overflow; constify; plug leaks; improve
       	precision; produce numbers without going through strings.
      	(set_cell_float, set_cell_int, set_cell_na, set_cell_printf): New
       	functions.
      
      	* src/xml-io.c (xml_write_range): Constify.
      	(xml_get_gnome_canvas_points): Mark code as bogus.
      	(xml_set_gnome_canvas_points): Constify.  Improve space checks.
      	(xml_set_value_int): Improve buffer sizing.
      	(xml_set_value_string): Constify.
      	(xml_set_color_value): Improve buffer sizing.
      
      	* src/ranges.c (parse_range): Constify, simplify, optimise, and
       	secure.
      	(range_parse): Fix strict case.
      
      	* src/parse-util.c (parse_cell_name_or_range): Remove bogus cast.
      9379ee6e
  8. 21 Jun, 2000 1 commit
  9. 20 Jun, 2000 2 commits
    • Jody Goldberg's avatar
      Release 0.56 · 56ebe393
      Jody Goldberg authored
      56ebe393
    • Jody Goldberg's avatar
      We need to manually trigger a changed event after setting the position · 739a6dc7
      Jody Goldberg authored
      2000-06-19  Jody Goldberg <jgoldberg@home.com>
      
      	* dialog-function-wizard.c (formula_guru_set_expr) : We need to
      	  manually trigger a changed event after setting the position becuase
      	  pre-gtk-1.4 setting the text reset the cursor position to 0.
      	(cb_formula_guru_entry_event) : new function.
      	(cb_formula_guru_rolled_entry_event) : new function.
      
      
      2000-06-19  Jody Goldberg <jgoldberg@home.com>
      
      	* src/eval.c (invalidate_refs) : const.
      	(do_deps_destroy) : const.
      
      	* src/cell.c (cell_set_expr_internal) : Be careful about unrefing.
      
      	* src/item-edit.c (entry_event) : Rather than catching 'event' and
      	  checking for the type of event we want.  Catch the events directly.
      	  That way the events can take place BEFORE we look for our position.
      739a6dc7
  10. 19 Jun, 2000 4 commits
    • Jon K Hellan's avatar
      Make "OK" button default. · fa6a6c9a
      Jon K Hellan authored
      2000-06-19  Jon K Hellan  <hellan@acm.org>
      
      	* dialog-function-wizard.c (cb_formula_guru_entry_focus_in): Make
      	"OK" button default.
      fa6a6c9a
    • Kjartan Maraas's avatar
      Add comment to please xgettext. · 4a3db33c
      Kjartan Maraas authored
      2000-06-19  Kjartan Maraas  <kmaraas@gnome.org>
      
      	* print-glade.h: Add comment to please xgettext.
      4a3db33c
    • Jody Goldberg's avatar
      Fix some late night sillyness. · 3a9f04d2
      Jody Goldberg authored
      Leave the auto scrolling commented out.
      
      2000-06-19  Jody Goldberg <jgoldberg@home.com>
      
      	* dialog-function-wizard.c (formula_guru_init) : Move the expression
      	  initialization out of args_init so that it will work for varargs
      	  too.
      3a9f04d2
    • Jody Goldberg's avatar
      Release 0.55 · c2928e92
      Jody Goldberg authored
      c2928e92
  11. 18 Jun, 2000 3 commits
    • Jon K Hellan's avatar
      Make column titles passive. Do not close on help. (function_select_row): · a58b5a25
      Jon K Hellan authored
      2000-06-18  Jon K Hellan  <hellan@acm.org>
      
      	* dialog-function-select.c (dialog_function_select_impl): Make
      	column titles passive. Do not close on help.
      	(function_select_row): Make double click in function column mean
      	"OK".
      
      	* function-select.glade: Change to browse select in the
      	lists. Move help button to the far right. Make it insensitive.
      
      	* formula-guru.glade: Make help button insensitive.
      a58b5a25
    • Jody Goldberg's avatar
      Use the same number of args as the default for var args as for the max · c7a02db2
      Jody Goldberg authored
      
      2000-06-18  Jody Goldberg <jgoldberg@home.com>
      
      	* dialog-function-wizard.c (cb_formula_guru_entry_focus_in) :
      	  Use the same number of args as the default for var args as for the
      	  max visibility.
      	(formula_guru_init_args) : Handle varargs here.
      	(dialog_formula_guru) : Not here.
      c7a02db2
    • Jon K Hellan's avatar
      Use constant MAX_ARGS_DISPLAYED for max # of args to display. · 0f16930d
      Jon K Hellan authored
      2000-06-18  Jon K Hellan  <hellan@acm.org>
      
      	* dialog-function-wizard.c (formula_guru_arg_new): Use constant
      	MAX_ARGS_DISPLAYED for max # of args to display.
      	(formula_guru_init): Initialize
      	arg-requisition.
      	(formula_guru_set_scrollwin_size): Better way to check if we have
      	already checked the table size.
      0f16930d
  12. 17 Jun, 2000 2 commits
    • Jon Kåre Hellan's avatar
      fed952a0
    • Jon K Hellan's avatar
      s/FomulaGuruState/FormulaGuruState/ (cb_formula_guru_key_press): New · c0822482
      Jon K Hellan authored
      2000-06-17  Jon K Hellan  <hellan@acm.org>
      
      	* dialog-function-wizard.c (struct _FormulaGuruState,
      	formula_guru_set_expr, cb_formula_guru_rolled_entry_changed,
      	formula_guru_set_rolled_state, cb_formula_guru_entry_focus_in,
      	cb_formula_guru_destroy, cb_formula_guru_key_press,
      	cb_formula_guru_clicked, formula_guru_arg_delete,
      	formula_guru_arg_new, formula_guru_init_args,
      	formula_guru_init_button, formula_guru_init, dialog_formula_guru,
      	dialog_formula_guru): s/FomulaGuruState/FormulaGuruState/
      	(cb_formula_guru_key_press): New callback. Close guru on Esc.
      	(formula_guru_init): Connect it.
      	(formula_guru_set_rolled_state, dialog_formula_guru): Set focus to
      	current entry.
      	(formula_guru_set_rolled_state, formula_guru_arg_new): Make <Ret>
      	in entry fields mean "OK".
      	(formula_guru_arg_new): Record table size once we have four
      	arguments.
      	(formula_guru_set_scrollwin_size): New static function. Record
      	table size if we haven't already done so. Set scrolled window size
      	to recorded requisition for table. The upshot is that with <= 4
      	arguments, the size of the argument frame is exactly right. With
      	more, the viewport of the scrolled window shows 4.
      	(formula_guru_init): Show dialog - needed since it is set
      	invisible in glade file.
      
      	* formula-guru.glade: Set guru invisible in glade file - reduces
      	flicker. Set scrolled window border size to 4.
      c0822482
  13. 16 Jun, 2000 2 commits
    • Jon K Hellan's avatar
      Allow auto-shrink - it's exactly what we want. · 745df3da
      Jon K Hellan authored
      2000-06-17  Jon K Hellan  <hellan@acm.org>
      
      	* formula-guru.glade: Allow auto-shrink - it's exactly what we want.
      745df3da
    • Jody Goldberg's avatar
      Fix leaks and some problesm with var args. · a5c93a9e
      Jody Goldberg authored
      2000-06-15  Jody Goldberg <jgoldberg@home.com>
      
      	* dialog-function-wizard.c (cb_formula_guru_entry_focus_in) :
      	  Use gtk_container_remove instead of gtk_object_destroy.
      	  To avoid leaks.
      	(cb_formula_guru_destroy) : We do want to release the memory from the
      	  array.
      	(formula_guru_init) : Do not show_all here.
      	(dialog_formula_guru) : Do it here after we potentially add extra args.
      a5c93a9e
  14. 15 Jun, 2000 4 commits
    • Jody Goldberg's avatar
      typo · e5d37147
      Jody Goldberg authored
      e5d37147
    • Jody Goldberg's avatar
      Renamed from expr_decode_tree. (expr_tree_get_func_def) : new function. · 97623fb0
      Jody Goldberg authored
      
      2000-06-15  Jody Goldberg <jgoldberg@home.com>
      
      	* src/expr.c (expr_tree_as_string) : Renamed from expr_decode_tree.
      	(expr_tree_get_func_def) : new function.
      	(expr_tree_first_func) : New function.
      
      	* src/expr-name.c (expr_name_value) : Rename expr_decode_tree ->
      	  expr_tree_as_string.
      97623fb0
    • 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
    • JP Rosevear's avatar
      Use new value_compare API · 3dda226a
      JP Rosevear authored
      2000-06-15  JP Rosevear  <jpr@arcavia.com>
      
      	* src/expr.c (eval_expr_real): Use new value_compare API
      
      2000-06-14  JP Rosevear  <jpr@arcavia.com>
      
      	* src/value.h: Update value_compare prototype.
      
      	* src/value.c (value_compare): Make it take a new case
      	sensitive flag for string comparisons.
      
      	* src/sort.c (sort_compare_cells): Use value_compare to do the
      	comparisons.  Handle the special cases of blanks (always at
      	bottom, whether asc or desc) and errors (after booleans).
      
      
      2000-06-15  JP Rosevear  <jpr@arcavia.com>
      
      	* cell-sort.glade: Tidy the UI
      
      	* dialog-cell-sort.c (order_box_new): Make the clause boxes look
      	a little nicer.
      3dda226a
  15. 14 Jun, 2000 2 commits
    • Morten Welinder's avatar
      Partially fix space stripping. Fields must still be selected · accb8d3d
      Morten Welinder authored
      right-to-left, :-(
      
      
      
      
      2000-06-13  Morten Welinder  <terra@diku.dk>
      
      	* src/stf-parse.c (trim_spaces_inplace): New function.
      	(stf_parse_fixed_cell): Don't trim spaces here.
      	(stf_parse_fixed_line): Trim here.
      	(stf_parse_csv_cell): Don't trim spaces here.
      	(stf_parse_csv_line): Trim here.
      
      
      2000-06-13  Morten Welinder  <terra@diku.dk>
      
      	* dialog-stf-format-page.c (format_page_format_changed): Plug
       	leak.
      accb8d3d
    • Jody Goldberg's avatar
      Patch a leak. fix a typo. · 634456bb
      Jody Goldberg authored
      Patch a leak.
      fix a typo.
      634456bb
  16. 13 Jun, 2000 2 commits
    • Jody Goldberg's avatar
      - Initial version of formula guru · 489a4201
      Jody Goldberg authored
      - Some extensions to auto-fill
      - Slight reorg of Bonobo support.
      
      2000-06-13  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook.c : Enable the formula guru, make WorkbookPrivate hold
      	  the BonoboObject in the ENABLED_BONOBO case.
      
      	* src/workbook-edit.c (workbook_finish_editing) : Disconnect any gurus
      	  that may be up.
      	(entry_changed) : Do not autocomplete expressions.  Gurus play havoc
      	  with this.
      	(workbook_edit_auto_complete_init) : Delete unused.
      	(workbook_get_entry_logical) : New function.
      	(workbook_set_entry) : New function.
      	(workbook_edit_attach_guru) : New function.
      	(workbook_edit_detach_guru) : New function.
      	(workbook_editing_expr) : When a guru is up we are always editing an
      	  expression. TODO, tune this.
      	(workbook_edit_load_value) : Moved from Sheet, and renamed from
      	  sheet_load_cell_val.
      	(workbook_edit_init) : Handle gurus.
      
      	* src/sheet.c (sheet_destroy_cell_select_cursor) : Make clearing optional.
      
      	* src/sheet-vector.c (sheet_vector_new) : The vectors are
      	  BonoboObjects, destroy them correctly.
      	(sheet_vectors_shutdown) : Ditto.
      
      	* src/sheet-object.c (sheet_set_mode_type_full) : Silence warning.
      	(sheet_object_insert) : Renamed from sheet_insert_object and moved
      	  from sheet.c
      
      	* src/pixmaps.h : Enable the Formula guru.
      
      	* src/parser.y (arg_list) : Improve handling of empty arguments.
      
      	* src/gnumeric-sheet.c (selection_remove_selection_string) : Use
      	  workbook_get_entry_logical.
      	(selection_insert_selection_string) : Ditto.
      	(start_cell_selection_at) : Ditto.
      	(gnumeric_sheet_key_mode_sheet) : Ditto.
      
      	* src/workbook-private.[ch] : Make this into a Bonobo Object for now.
      
      	* src/embeddable-grid.c (embeddable_grid_init_anon) : Use
      	  workbook_new_with_sheets.
      	(embeddable_grid_new) : WorkbookPrivate is temporarily the bonobo
      	  object.
      
      	* src/history.c (history_menu_item_create) : Ditto.
      	(history_menu_locate_separator) : Ditto.
      	(history_menu_insert_separator) : Ditto.
      	(history_menu_remove_items) : Ditto.
      
      	* src/sheet-object-bonobo.c (sheet_object_bonobo_construct) : Ditto.
      	* src/sheet-object-container.c (sheet_object_container_realize) : Ditto.
      
      	* src/workbook-view.c (workbook_view_set_paste_special_state) : Ditto.
      	(change_menu_label) : Ditto.
      
      	* src/file.c (workbook_try_read) : Workbook is now always just a
      	  GtkObject.
      	(workbook_import) : Ditto.
      
      	* src/formats.c (cell_format_date) : Add some new formats.
      
      	* src/format.c (find_decimal_char) : Restore constness.
      	(format_remove_decimal) : Fix the const correctly.
      
      	* src/commands.c (cmd_ins_del_row_col_redo) : Fix to use the new
      	  semantics.
      
      2000-06-12  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-autofill.c (fill_item_destroy) : Free the format.
      	(fill_item_new) : Handle filling by month and year.
      	(autofill_compute_delta) : Ditto.
      	(autofill_cell) : Ditto.
      
      	* src/formats.c (cell_format_is_number) : currently handle the single
      	  character currencies.
      	(cell_format_date) : year only formats.
      
      2000-06-10  Jody Goldberg <jgoldberg@home.com>
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_make_cell_visible) : Minor
      	  optimization.
      489a4201
    • Jon K Hellan's avatar
      No automatic support in Glade/libglade for underline accelerators in · c68ce479
      Jon K Hellan authored
      2000-06-13  Jon K Hellan  <hellan@acm.org>
      
      	* print.glade(.h)?: No automatic support in Glade/libglade for
      	underline accelerators in buttons in action area. Remove them from
      	Print, Print Preview and option buttons.
      
      	* dialog-printer-setup.c (do_setup_margin): Convert from Excel
      	semantics for header/footer - measured from top/bottom of sheet -
      	to measuring from bottom of top margin/top of bottom margin.
      	(do_fetch_margins): And vice versa.
      	(do_setup_main_dialog): Silence warning.
      c68ce479
  17. 12 Jun, 2000 2 commits
    • JP Rosevear's avatar
      Adjust if the range to be sorted has a header. · 18bcb4e0
      JP Rosevear authored
      2000-06-12  JP Rosevear  <jpr@arcavia.com>
      
      	* src/workbook.c (sort_cmd): Adjust if the range to be sorted
      	has a header.
      
      	* NEWS: Update.
      
      	* src/ranges.h: New prototype.
      
      	* src/ranges.c (range_has_header): New function to determine if
      	a region has a header row.
      18bcb4e0
    • Jon K Hellan's avatar
      New static helper function. (double_line_draw): New function. Draw a · 4dee91bd
      Jon K Hellan authored
      2000-06-11  Jon K Hellan  <hellan@acm.org>
      
      	* gnumeric-dashed-canvas-line.c (hypothenuse): New static helper
      	function.
      	(double_line_draw): New function. Draw a double line. Even explain
      	in nice ASCII art how we do it.
      	(gnumeric_dashed_canvas_line_draw): Special case double lines by
      	punting to double line draw.
      
      2000-06-11  Jon K Hellan  <hellan@acm.org>
      
      	* dialog-cell-format.c (line_info[]): Add explanatory comment.
      	(draw_border_preview): Fix typos. Wrong symbolic define was being
      	used, but the numbers were the same, so the result was correct.
      4dee91bd
  18. 08 Jun, 2000 2 commits
    • Jody Goldberg's avatar
      Do not make the edge visible, the scroll time will take care of that. · f4b6302b
      Jody Goldberg authored
      
      2000-06-08  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-view.c (sheet_view_{col,row}_selection_changed) :
      	  Do not make the edge visible, the scroll time will take care of
      	  that.
      	(sheet_view_{col,row}_size_changed) : Use the new undo wrappers.
      	(cb_colrow_resize) : Use the new undo wrappers.
      	(sheet_view_init) : Init the scroll timers.
      	(sheet_view_stop_sliding) : Based on the version from item_grid.
      	(sheet_view_start_sliding) : Ditto.
      	(sheet_view_sliding_callback) : Ditto.  Added callback support.
      	  tuned scroll parameters.
      
      	* src/number.h : Clear out unused cruft.
      
      	* src/item-grid.c : Move support for scroll timers into sheet-view.
      
      	* src/item-bar.c (get_element_from_pixel) : Renamed from
      	  get_col_from_pos.
      	(cb_extend_selection) : New function.
      	(item_bar_event) : Use the sliding scroll mechanism in sheet_view.
      
      	* src/item-cursor.c (item_cursor_selection_event) : Adapt to changes in
      	  item_grid_find_{col,row}.
      	(item_cursor_drag_event) : Ditto.
      
      	* src/sheet.c (sheet_foreach_colrow) : renamed and moved to.
      	* src/colrow.c (col_row_foreach) here.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_find_{col,row}) : Moved here
      	  and renamed from.
      	* src/item-grid.c (item_grid_find_{col,row}) : here.
      
      	* src/value.c (value_equal) : deleted.
      	(value_compare) : Moved and renamed from
      	* src/expr.c (compare) : here.
      	(expr_dump_tree) : Delete replicated function.
      
      	* src/colrow.c (col_row_size_list_destroy) :
      	(col_row_index_list_destroy) : New function.
      	(col_row_get_index_list) : New function.
      	(col_row_set_sizes) : New function.
      	(col_row_restore_sizes_group) : New function.
      
      	(col_row_save_sizes) : Moved from sheet.c
      	col_row_restore_sizes : Ditto.
      	cb_set_row_height : Ditto.
      	rows_height_update : Ditto.
      
      	src/commands.c (cmd_resize_row_col*) : Implement.
      f4b6302b
    • ERDI Gergo's avatar
      Fixed a possible memory leak (callback data was not freed) · c66708d1
      ERDI Gergo authored
      2000-06-08  ERDI Gergo  <cactus@cactus.rulez.org>
      
      	* src/dialogs/dialog-printer-setup.c (unit_editor_configure):
      	Fixed a possible memory leak (callback data was not freed)
      c66708d1
  19. 07 Jun, 2000 1 commit
    • Miguel de Icaza's avatar
      Update code. · 763a09be
      Miguel de Icaza authored
      2000-06-06  Miguel de Icaza  <miguel@helixcode.com>
      
      	* src/commands.c (cmd_set_text): Update code.
      
      	* src/workbook-edit.c (workbook_auto_complete_destroy): Simplify
      	test here.
      763a09be
  20. 06 Jun, 2000 1 commit
    • JP Rosevear's avatar
      Call sort_permute with the given permutation index (sort_contents): Call · 13960fdc
      JP Rosevear authored
      2000-06-06  JP Rosevear  <jpr@arcavia.com>
      
      	* src/sort.c (sort_position): Call sort_permute with the given
      	permutation index
      	(sort_contents): Call sort_qsort to get a permutation index and
      	then use sort_permute to actually move the rows
      	(sort_permute): Use copy and paste to move rows/cols around
      	(sort_permute_next): Find next row/col the hasn't been set based
      	on the permutation array
      	(sort_permute_is_set): Find if a a bit in a bit array is set
      	(sort_permute_set): Set a bit in a bit array
      	(sort_permute_find): Find a given number in a permutation array
      	(sort_qsort): Produce a permutation index for sorting rows or cols
      	(sort_swap): Swap two entries in the permutation index
      	(sort_compare_sets): Compare two sets of cells
      	(sort_compare_cells): Compare two cells
      	(sort_data_destroy): Destroy SortData struct
      
      	* src/commands.c (cmd_sort): Store the new sort data structure
      	(cmd_sort_redo): Call sort_contents only if a permutation index
      	does not already exist, otherwise use the index with sort_postion
      	(cmd_sort_undo): Create an inverse of the permutation index
      	if it doesn't already exit to call sort_positon with
      
      	* src/commands.h: New cmd_sort prototype.
      
      	* src/workbook.c (sort_cmd): Reflecting sorting API changes
      
      2000-06-06  JP Rosevear  <jpr@arcavia.com>
      
      	* cell-sort.glade: GUI tidying
      
      	* dialog-cell-sort.c (dialog_cell_sort_ok): Reflect sorting
      changes
      	(dialog_cell_sort_del_clause): ditto
      	(dialog_cell_sort_header_toggled): ditto
      	(dialog_cell_sort): ditto
      13960fdc
  21. 05 Jun, 2000 1 commit