1. 06 Mar, 2000 3 commits
    • Dom Lachowicz's avatar
      Created. · 52493557
      Dom Lachowicz authored
      2000-03-01  Dom Lachowicz <dominicl@seas.upenn.edu>
      
      	* src/dialogs/sheet-order.glade,
      	  src/dialogs/sheet-order.glade.h,
      	  src/dialogs/dialog-sheet-order.c: Created.
      
      	* src/dialogs/Makefile.am: Added three above files to project
      
      	* src/dialogs/dialogs.h (dialog_sheet_order): added new function
      
      	* src/workbook.c (sheet_order_cmd): added
      	(workbook_get_sheet_position, workbook_delete_sheet),
      	(workbook_move_sheet, workbook_focus_sheet, wb_edit_key_pressed): updated.
      
      	* src/workbook.h (workbook_delete_sheet, workbook_move_sheet): added
      52493557
    • Michael Meeks's avatar
      8293d7bc
    • Jody Goldberg's avatar
      imisc updates and typos · 8fdc73d3
      Jody Goldberg authored
      8fdc73d3
  2. 05 Mar, 2000 3 commits
    • Jon K Hellan's avatar
      Rename to init_base_char_width_for_write. Init width and default width. · cb440aff
      Jon K Hellan authored
      2000-03-05  Jon K Hellan  <hellan@acm.org>
      
      	* ms-excel-write.c (lookup_base_char_width_for_write): Rename to
      	init_base_char_width_for_write. Init width and default width.
      	(get_base_char_width): Add is_default parameter.
      	(write_colinfo, write_default_col_width): Use it.
      
      	* ms-excel-write.h (struct _ExcelSheet): Add base_char_width_default.
      
      	* ms-excel-write.c (excel_font_to_string, excel_font_new,
      	excel_font_hash, excel_font_equal, write_font): Handle underline,
      	strikethrough.
      
      	* ms-excel-write.h (struct _ExcelFont): Ditto
      cb440aff
    • Jukka-Pekka Iivonen's avatar
      Added documentation of the Solver tool. · 01a6c10e
      Jukka-Pekka Iivonen authored
      2000-03-05  Jukka-Pekka Iivonen  <iivonen@iki.fi>
      
              * doc/C/solver.sgml, doc/C/images/solver-0[1,2,3,4,5].jpg: Added
              documentation of the Solver tool.
      01a6c10e
    • Jody Goldberg's avatar
      - Strike through - initial format dialog support for underline and · 7f8319da
      Jody Goldberg authored
      - Strike through
      - initial format dialog support for underline and strikethrough.
      - Printing of underlines and strikethroughs.
      
      2000-03-05  Jody Goldberg <jgoldberg@home.com>
      
      	* src/dialogs/dialog-cell-format.c : Enable the underline and
      	  strikethrough elements. TODO : redo the preview for the font
      	  tab to support underlining and friends.
      
      	* src/dialogs/cell-format.glade : Rename the underline combo and
      	  strikethrough button.
      
      	* src/xml-io.c (xml_write_style) : Add strikethrough.
      	(xml_read_style) : Ditto.
      
      	* src/workbook-format-toolbar.c (workbook_feedback_set) : Only show
      	  the underline button for single underlines.
      
      	* src/sheet-view.[ch] : rename select_all -> select_all_btn.
      	  remove unused element.
      
      	* src/sheet-object.h : Remove silly self inclusion.
      
      	* src/print-cell.c : Support underlining and strikethrough.
      	  Move even closer into sync with drawing code.
      
      	* src/mstyle.c : Add strikethrough and cleanup includes.
      
      	* src/main.h : Add include for popt.h.
      
      	* src/item-grid.c (item_grid_draw_border) : No more need for BOTTOM or
      	  RIGHT.
      	(item_grid_draw_cell) : Delete, and merge with draw_cell.
      
      	* src/commands.c (cmd_set_text_undo) : Use cursor_set rather than
      	  cursor_move.
      	* src/corba-sheet.c (Sheet_cursor_move) : Ditto.
      	(gnumeric_sheet_key_mode_sheet) : Ditto.
      	* src/workbook.c (workbook_parse_and_jump) : Ditto.
      
      	* src/cell-draw.c : Clean includes, add support for strikethrough.
      7f8319da
  3. 04 Mar, 2000 5 commits
    • Morten Welinder's avatar
      THE WORLD'S BEST KEPT C SECRETS, PART 12: · e2df9a9e
      Morten Welinder authored
      ----------------------------------------
      
      The functions isalpha, isdigit, ..., isspace, tolower, and toupper
      are ONLY defined on EOF (typically -1) and unsigned characters.
      Read the manual pages from various OSs -- it's in there.
      
      It is wrong to call these with signed characters as argument; the
      type "char" can be, and often is, signed.  Please don't write code
      like
      
           void frob (char *s)
           {
             while (isspace (*s))       /* WRONG! */
               s++;
             /* ... */
           }
      
      Instead write something like
      
           void frob (char *s)
           {
             while (isspace ((unsigned char)*s))   /* Right */
               s++;
             /* ... */
           }
      
      Note: the above is true even if you don't like it.  Some people have
      gotten terrible upset and defensive when they have had this problem
      pointed out to them.  That does not help.
      
      FYI, all this makes a serious difference on Solaris, HP-UX and maybe
      other OSs.
      e2df9a9e
    • Jody Goldberg's avatar
      remove xml clipboard support. · f49652eb
      Jody Goldberg authored
      f49652eb
    • Jody Goldberg's avatar
      Fix Morton's missing pixel. Right alignment was double counting the · f5c650f9
      Jody Goldberg authored
      far grid line.
      
      2000-03-03  Jody Goldberg <jgoldberg@home.com>
      
      	* src/cell-draw.c (cell_draw) : Correct off by one error for
      	  right alignment.
      
      	* src/print-cell.c (print_cell_text) : Ditto.
      f5c650f9
    • Jody Goldberg's avatar
      Fix thinko that was putting hidden cols/rows into an infinite loop. · 3b554727
      Jody Goldberg authored
      2000-03-03  Jody Goldberg <jgoldberg@home.com>
      
      	* src/print-cell.c (print_cell_range) : Don't forget to increment
      	  when dealing with hidden cols/rows.
      	* src/item-grid.c (item_grid_draw) : Ditto.
      3b554727
    • Birger Langkjer/danish translations's avatar
      Modified Files: balsa/po/da.po dia/po/da.po glade/po/da.po · 911d62bd
      Birger Langkjer/danish translations authored
      
      Modified Files:
       	balsa/po/da.po dia/po/da.po glade/po/da.po gnome-db/po/da.po
       	gnomeicu/po/da.po gnomeicu/src/GnomeICU.desktop
      	gnumeric/po/da.po
      911d62bd
  4. 03 Mar, 2000 4 commits
    • Dom Lachowicz's avatar
      Re-implemented dialog. (refresh_right_frame): New function · 8ec4f6ae
      Dom Lachowicz authored
      2000-03-01  Dom Lachowicz <dominicl@seas.upenn.edu>
      
      	* src/dialogs/dialog-plugin-manager.c (add_to_clist, populate_clist),
      	(add_cb, remove_cb, row_cb, remove_cb, dialog_plugin_manager),
      	(dialog_plugin_manager_impl): Re-implemented dialog.
      	(refresh_right_frame): New function
      
      	* src/dialogs/plugin-manager.glade: updated.
      
      	* src/dialogs/plugin-manager.glade.h: updated
      8ec4f6ae
    • Morten Welinder's avatar
      Fix 6760. · 8c9ef16b
      Morten Welinder authored
      8c9ef16b
    • Jon K Hellan's avatar
      Updated documentation · 12de8ec8
      Jon K Hellan authored
      2000-03-03  Jon K Hellan  <hellan@acm.org>
      
      	* doc/python-gnumeric.txt: Updated documentation
      
      	* plugins/python/python.c (value_to_python): Update comment.
      	(boolean_to_python): Use class gnumeric_defs.Boolean - we can now
      	recognize booleans and convert them back.
      	(boolean_check): New function: Checks if object is instance of
      	gnumeric_defs.Boolean.
      	(boolean_from_python): New function: Convert back to VALUE_BOOLEAN.
      	(range_from_python): Remove misleading comment.
      	(value_from_python): Handle boolean.
      	(call_function): Factored out of marshal_func.
      	(marshal_func): Rename to marshal_func_args. Added sanity checks.
      	(marshal_func_nodes): New function. Handles varargs.
      	(register_function): Handle varargs.
      	(apply): Fix refcounting bug.
      
      	* gnumeric_defs.py (Boolean): New class. Implements boolean.
      12de8ec8
    • Miguel de Icaza's avatar
      More work on the wizard. Series are sent. If you can compile it, it... · aaa168ec
      Miguel de Icaza authored
      More work on the wizard.  Series are sent.  If you can compile it, it theoretically works now -miguel
      aaa168ec
  5. 02 Mar, 2000 7 commits
    • 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
    • Michael Meeks's avatar
      minor gb fix. · bbc0baca
      Michael Meeks authored
      bbc0baca
    • Dom Lachowicz's avatar
      Catch Div0 && invalid log() domain. · a681f037
      Dom Lachowicz authored
      2000-03-01  Dom Lachowicz <dominicl@seas.upenn.edu>
      
      	* src/functions/fn-eng.c (val_to_base): Catch Div0 && invalid log()
      	domain.
      
      	* src/functions/fn-financial (gnumeric_accrint, gnumeric_recieved),
      	(gnumeric_pricemat): Same
      
      	* src/functions/fn-stat.c (gnumeric_ttest): Ditto
      a681f037
    • Michael Meeks's avatar
      made static. (sheet_vector_new): setup sheet_vector->sheet. · 822fac8b
      Michael Meeks authored
      2000-03-02  Michael Meeks  <michael@helixcode.com>
      
      	* src/sheet-vector.c (sheet_vector_corba_object_create): made static.
      	(sheet_vector_new): setup sheet_vector->sheet.
      	(sheet_vector_detach): re-arrange to compile.
      822fac8b
    • Jon K Hellan's avatar
      Updated documentation · d875fc7e
      Jon K Hellan authored
      2000-03-02  Jon K Hellan  <hellan@acm.org>
      
      	* doc/python-gnumeric.txt: Updated documentation
      
      	* src/func.h: Make FunctionCategory.name a String * instead of
      	gchar *. This was necessary to allow user defined categories.
      	src/func.c (function_category_compare, function_get_category): Use
      	new FunctionCategory. Fix wrong use of g_list_find_custom.
      	(function_def_count_args, function_def_get_arg_type): Null pointer
      	check.
      
      	* src/dialogs/dialog-function-select.c (function_categories_fill):
      	ditto.
      
      2000-03-01  Jon K Hellan  <hellan@acm.org>
      
      	* python.c (exception_to_string): Rename to string_from_exception.
      	(value_from_exception): New function. Converts the current Python
      	exception to a new VALUE_ERROR.
      	(file static variable eval_pos): remove
      	(value_to_python): Fix refcounting bug re Py_None.
      	(value_from_python): Caller is now responsible for converting
      	exception to VALUE_ERROR.
      	(marshal_func): Handle optional arguments. Use
      	value_from_exception. Do away with eval_pos kludge. Consequence:
      	We must pass FunctionEvalInfo as an extra parameter to the python
      	functions.
      	(apply): Add context parameter.
      	(register_function): Add category parameter to Python
      	signature. Register function in given category.
      
      	* gnumeric_startup.py: Add category argument to all
      	register_function calls.
      	(gnumeric_mid, py_abs): Add context parameter.
      
      	* python.c
      d875fc7e
    • Almer. S. Tigelaar's avatar
      src/dialogs/dialog-stf-format-page.c src/dialogs/dialog-stf-preview.c · 41fcdb90
      Almer. S. Tigelaar authored
      2000-03-02  Almer. S. Tigelaar.  <almer1@dds.nl>
      
      	* src/dialogs/dialog-stf-format-page.c
      	* src/dialogs/dialog-stf-preview.c
      	* src/dialogs/dialog-stf-preview.h
      	* src/dialogs/dialog-stf.c
      	Modified, the format page now really display formatted
      	cells in the preview.
      	NOTE : A downside of this is that the cache is no longer shared
      	between fixed/csv pages and format pages.
      
      	* src/dialogs/dialog-stf.c
      	(dialog_stf_editables_enter) :
      	Disabled "enter activates default button" for the TextIndicator
      	field on the csv page. This would case the page to cycle, which
      	is ok, but it also caused the dropdown option to pop-up on the
      	next page, which is not ok.
      
      2000-03-02  Jon K Hellan  <hellan@acm.org>
      
      	* src/dialogs/dialog-stf.c (dialog_stf_druid_page_cancel): In
      	Yes/No dialog - set initial keyboard focus to "No". It went
      	nowhere.
      	(dialog_stf_set_initial_keyboard_focus): New function: Set
      	keyboard focus to the an appropriate widget on the page.
      	(dialog_stf_druid_page_next, dialog_stf_druid_page_previous): Set
      	initial keyboard focus.
      	(dialog_stf_druid_page_next): Make "Finish" button default on the the
      	final page. This doesn't change behaviour, but cues the user
      	visually.
      	(dialog_stf_druid_page_previous): Restore "Next" button as default
      	when coming from final page.
      	(dialog_stf_check_escape): New function: Watch keypresses, and
      	simulate "Cancel" when you see <Escape>.
      	(dialog_stf_attach_page_signals): Connect dialog_stf_check_escape
      	to handle <Escape>.
      	(dialog_stf_editables_enter): New function: Make <Ret> in text
      	fields activate default.
      	(dialog_stf): Use dialog_stf_editables_enter,
      	dialog_stf_set_initial_keyboard_focus. Make "next" button the
      	default button. Make window a child of the workbook window.
      
      	* src/dialogs/dialog-stf-format-page.c (format_page_init): Make
      	format list titles passive.
      
      	* src/dialogs/dialog-stf-fixed-page.c (fixed_page_init): Make
      	column list titles passive.
      
      	* src/clipboard.c (x_selection_to_cell_region): Add command
      	context to interface. Use it when calling dialog_stf.
      	(x_selection_to_cell_region):
      	(x_selection_received): Call x_selection_to_cell_region with
      	workbook_command_context_gui.
      41fcdb90
    • Miguel de Icaza's avatar
      Lots of more work on the wizard for graphics. · 419be624
      Miguel de Icaza authored
      
      
      Lots of more work on the wizard for graphics.
      
      2000-03-02  Miguel de Icaza  <miguel@helixcode.com>
      
      	* src/about.c (dialog_about): Changed to www.helixcode.com
      
      2000-03-01  Miguel de Icaza  <miguel@helixcode.com>
      
      	* src/parser.c (gnumeric_expr_parser): Make preconditions clear.
      
      	* src/ranges.c: Removed gnome.h from the include list.
      
      	* src/sheet.h: Fix comment.  The list contains SheetSelection
      	structures not Ranges.
      
      Lots of work on the wizard/graphics directory
      419be624
  6. 01 Mar, 2000 14 commits
  7. 29 Feb, 2000 4 commits
    • Jon K Hellan's avatar
      Clarified mapping of arrays. · 3c5bb487
      Jon K Hellan authored
      2000-03-01  Jon K Hellan  <hellan@acm.org>
      
      	* doc/python-gnumeric.txt: Clarified mapping of arrays.
      
      	* plugins/python/python.c (cell_ref_to_python, range_to_python,
      	cell_ref_from_python): Simplify error handling.
      	(boolean_to_python): Simplify
      	(row_to_python): New function. Converts an array row to
      	Python.
      	(array_to_python): New function. Converts an array to Python.
      	(value_to_python): Handle array.
      	(range_check): Factored out of value_from_python.
      	(range_from_python): Restructure to use value_new_cellrange
      	(array_check): New function. Check if object is array.
      	(value_from_python): Restructure to use the value_new_xxx
      	constructors.
      	(apply): Release values when no longer needed.
      3c5bb487
    • Jody Goldberg's avatar
      A present for Quartic, borders can now print. · a1cea178
      Jody Goldberg authored
      2000-02-29  Jody Goldberg <jgoldberg@home.com>
      
      	* src/cell-print.c : Sync with logic in item-bar::draw to add borders
      	  and more correctly handle spanning.
      
      	* src/pattern.c (gnumeric_background_set_pc) : New routine cloned from
      	  gnumeric_background_set_gc.
      
      	* src/border.c (style_border_set_pc_dash) : New routine cloned from
      	  style_border_set_gc_dash.
      	(style_border_set_pc) : New routine cloned from style_border_set_gc.
      	(style_border_print) : New routine cloned from style_border_draw.
      
      	* src/cell-draw.c (cell_draw) : No need to return number of spans.
      a1cea178
    • Jukka-Pekka Iivonen's avatar
      Added initialization of all the Solver parameters. · 25a9e4fd
      Jukka-Pekka Iivonen authored
      2000-02-29  Jukka-Pekka Iivonen  <iivonen@iki.fi>
      
      	* src/sheet.c (sheet_new): Added initialization of all the Solver
       	parameters.
      
      	* src/xml-io.c: Enabled the solver parameter saving again.
      25a9e4fd
    • Jon K Hellan's avatar
      Great renaming: convert_py_exception_to_string -> exception_to_string · 502eb69c
      Jon K Hellan authored
      2000-02-29  Jon K Hellan  <hellan@acm.org>
      
      	* python.c: Great renaming:
      	convert_py_exception_to_string -> exception_to_string
      	convert_cell_ref_to_python     -> cell_ref_to_python
      	convert_range_to_python        -> range_to_python
      	convert_boolean_to_python      -> boolean_to_python
      	convert_value_to_python        -> value_to_python
      	convert_cell_ref_from_python   -> cell_ref_from_python
      	convert_range_from_python      -> range_from_python
      	convert_python_to_value        -> value_from_python
      	gnumeric_apply                 -> apply
      	gnumeric_register_function     -> register_function
      502eb69c