1. 01 May, 2001 5 commits
    • Morten Welinder's avatar
      CHITEST. · 62ea9136
      Morten Welinder authored
      62ea9136
    • Almer S. Tigelaar's avatar
      Seek for matching )'s for ('s and vice versa. (find_bracket): The meat for · e45a0e6b
      Almer S. Tigelaar authored
      2001-05-01  Almer S. Tigelaar  <almer@gnome.org>
      
       	* src/parser.y (yylex): Seek for matching )'s for ('s and
       	vice versa.
       	(find_bracket): The meat for the above functionality
       	(find_char): Split out from yylex, might be useful in other
       	places. Currently used to scan for matching quotes.
      	(gnumeric_expr_parser): If the ExprTree is null, assume that
      	an error has occurred, set a general "invalid expression" and
      	mark the whole expression. Also display more detail when both
      	the expression and error message are non-null.
      e45a0e6b
    • Morten Welinder's avatar
      Un-suckify. (wildcards_and_question_marks, parse_search_string): Constify. · 401c3250
      Morten Welinder authored
      2001-05-01  Morten Welinder  <terra@diku.dk>
      
      	* fn-string.c (gnumeric_left, gnumeric_right, gnumeric_lower,
       	gnumeric_upper, gnumeric_clean, gnumeric_proper): Un-suckify.
      	(wildcards_and_question_marks, parse_search_string): Constify.
      401c3250
    • Almer S. Tigelaar's avatar
      Use sheet_unant. (application_clipboard_clear): Idem. · e6d66e4a
      Almer S. Tigelaar authored
      2001-05-01  Almer S. Tigelaar  <almer@gnome.org>
      
      	* src/application.[ch] (application_clipboard_unant): Use
      	sheet_unant.
      	(application_clipboard_clear): Idem.
      	(application_clipboard_copy): Use sheet_ant.
      	(application_clipboard_cut): Idem.
      	(application_clipboard_is_cut): New function, is the area
      	on the clipboard marked for cutting or for copying?
      
      	* src/selection.[ch] (sheet_selection_ant): Deprecated, remove.
      	(sheet_selection_unant): Idem.
      
      	* src/sheet-control-gui.[ch] (scg_selection_ant): Rename
      	to scg_ant and add a ranges parameter where the ranges to
      	ant can be specified.
      	(scg_selection_unant): Rename to scg_unant.
      	(scg_destroy): Make sure to un-ant everything.
      	(scg_construct): Ant all anted regions on the sheet.
      
      	* src/sheet.[ch] (sheet_ant): New, ants one or more regions
      	on the sheet.
      	(sheet_unant): New, unants all currently anted region on the
      	sheet.
      	(sheet_destroy): Make sure to free the ant list.
      
      	* src/commands.c (cmd_ins_del_colrow_undo): Remove ugly ant-hack,
      	this is no longer needed, application_clipboard_cut/copy handles
      	this now.
      	(cmd_ins_del_colrow_redo): Idem
      	(cmd_ins_del_colrow): Oh dear, we were actually storing both
      	the cut and copied area as a cut area and we were actually
      	cutting even if the range was a copied area after shifting.
      e6d66e4a
    • Jody Goldberg's avatar
      sync with website. · d43551f0
      Jody Goldberg authored
      
      2001-04-30  Jody Goldberg <jgoldberg@home.com>
      
      	* src/about.c (dialog_about) : sync with website.
      
      	* src/format.c (format_number) : don't suppress the minus sign when
      	  faced with a space in the format.  Is there a counter example ?
      	(format_number) : handle negative improper fractions.
      d43551f0
  2. 30 Apr, 2001 8 commits
    • Morten Welinder's avatar
    • Morten Welinder's avatar
      White space issues. · 32d1b839
      Morten Welinder authored
      32d1b839
    • Morten Welinder's avatar
      Warning killer. · 5ef75629
      Morten Welinder authored
      2001-04-30  Morten Welinder  <terra@diku.dk>
      
      	* src/func.c (tokenized_help_find): Warning killer.
      
      	* src/value.c (value_new_array): Kill warnings.
      	(value_new_array_empty): Ditto.
      	(value_release): Ditto.
      
      	* src/print-cell.c (print_show): Use proper types.
      	(get_width_string_n): Ditto.
      
      	* src/number-match.c (gnumeric_error_init): Warning killer.
      
      	* src/parser.y (deallocate_all): Warning killer.
      
      	* src/item-bar.c (item_bar_draw): Avoid signedness problems.
      
      	* src/format-template.c (hash_table_destroy): Warning killer.
      
      	* src/colrow.h (struct _ColRowInfo): Make size_pixels an int.
      
      	* src/value-sheet.c (value_area_get_width, value_area_get_height):
       	Return an int, not a guint.
      
      2001-04-26  Morten Welinder  <terra@diku.dk>
      
      	* fn-string.c (gnumeric_mid): Un-suckify.
      	(gnumeric_find): Un-suckify.
      	(gnumeric_substitute): Warning killer.
      	(match_string): Warning killer.
      
      	* fn-information.c (translate_cell_format): Warning killer.
      
      	* fn-eng.c (val_to_base): Warning killer.
      
      2001-04-30  Morten Welinder  <terra@diku.dk>
      
      	* ms-summary.c (sum_name_to_excel): Fix index count.  Constify.
        	Make static.
      	(excel_to_gnum_mapping): Make static.
      5ef75629
    • Almer S. Tigelaar's avatar
      More descriptive descriptor. (cmd_format): Idem. (cmd_resize_colrow): · d5fb613b
      Almer S. Tigelaar authored
      2001-04-30  Almer S. Tigelaar  <almer@gnome.org>
      
      	* src/commands.c (cmd_clear_selection): More descriptive
      	descriptor.
      	(cmd_format): Idem.
      	(cmd_resize_colrow): Idem.
      	(cmd_autofill): Idem.
      	(cmd_autoformat): Idem.
      	(cmd_unmerge_cells): Idem.
      	(cmd_merge_cells): Idem.
      	(cmd_colrow_std_size): Add "pts" to end of descriptor.
      	(cmd_zoom): No need to re-assign gstring.
      	(range_list_to_string): Convert a list of ranges to a
      	string representation.
      
      	* src/colrow.[ch] (colrow_index_list_to_string): Convert
      	an index list to a string representation.
      	(colrow_string_build): Utility routine for
      	colrow_index_list_to_string.
      d5fb613b
    • Almer S. Tigelaar's avatar
      Give a warning when both the resulting ExprTree and error message is · 48aacb0b
      Almer S. Tigelaar authored
      2001-04-30  Almer S. Tigelaar  <almer@gnome.org>
      
      	* src/parser.y (gnumeric_expr_parser) : Give a warning
      	when both the resulting ExprTree and error message is non-null.
      	This should never happen.
      48aacb0b
    • Stano Visnovsky's avatar
      Updated Slovak translation · 422c4617
      Stano Visnovsky authored
      422c4617
    • Jody Goldberg's avatar
      Headers are in default style. And grid colour is auto, not black. · 1e3e8a63
      Jody Goldberg authored
      
      2001-04-29  Jody Goldberg <jgoldberg@home.com>
      
      	* ms-excel-write.c (write_window2) : Headers are in default style.
      	  And grid colour is auto, not black.
      1e3e8a63
    • Jody Goldberg's avatar
      return INVALID_TOKEN rather than EOF when a lexical error is found. · d886024e
      Jody Goldberg authored
      
      2001-04-29  Jody Goldberg <jgoldberg@home.com>
      
      	* src/parser.y (yylex) : return INVALID_TOKEN rather than EOF when a
      	  lexical error is found.
      d886024e
  3. 29 Apr, 2001 3 commits
    • Almer S. Tigelaar's avatar
      Implement remaining information types for the CELL function. · 3c8732da
      Almer S. Tigelaar authored
      2001-04-29  Almer S. Tigelaar  <almer@gnome.org>
      
      	* fn-information.c (gnumeric_cell): Implement remaining
      	information types for the CELL function.
      	(retrieve_format_info): A helper function for gnumeric_cell
      	for gathering format characteristics.
      3c8732da
    • Almer S. Tigelaar's avatar
      Implement zoom undo/redo (cmd_zoom_destroy) : Idem. (cmd_zoom_redo): Idem. · 2f042ff1
      Almer S. Tigelaar authored
      2001-04-29  Almer S. Tigelaar  <almer@gnome.org>
      
      	* src/commands.c (cmd_zoom) : Implement zoom undo/redo
      	(cmd_zoom_destroy) : Idem.
      	(cmd_zoom_redo): Idem.
      	(cmd_zoom_undo): Idem.
      
      	* src/workbook-control-gui.c (cb_change_zoom):
      	Use cmd_zoom here.
      2f042ff1
    • Jody Goldberg's avatar
      Mostly fix border printing. There are still some precedence issues with · 5655e1bd
      Jody Goldberg authored
      intersections of double lines.  However, nothing significant.
      
      2001-04-28  Jody Goldberg <jgoldberg@home.com>
      
      	* src/style-border.c (print_hline) : handle offset of screen coords vs
      	  printer coords.
      	(print_vline) : ditto.
      	(style_borders_row_print) : sync with style_borders_row_draw and pass
      	  width to the line drawing to handle different coordinate types.
      
      	* src/ranges.c (range_translate) : warn if clipped not just if
      	  removed.
      
      	* src/clipboard.c (clipboard_prepend_cell) : store the source sheet if
      	  possible.
      	(paste_link) : Use the right sheets.
      	(clipboard_paste_region) : send enough information into paste_link.
      5655e1bd
  4. 28 Apr, 2001 2 commits
    • Valek Frob's avatar
      Updated russian translation. · b492beef
      Valek Frob authored
      b492beef
    • Jody Goldberg's avatar
      Catch fractions too. (render_number) : don't pass in so many copies of · 02b18e95
      Jody Goldberg authored
      
      2001-04-27  Jody Goldberg <jgoldberg@home.com>
      
      	* src/format.c (pre_parse_format) : Catch fractions too.
      	(render_number) : don't pass in so many copies of flags.  Just use the
      	  info struct.  Add a 'has_fraction' flag to disable rounding.
      	(do_render_number) : ditto.
      	(stern_brocot) : simple stern brocot tree.  Should really use an
      	  adaptive precision but I am lazy.
      	(format_number) : add fractions.
      
      	* src/commands.c (cmd_autofill_redo) : changing visiblity can triger a
      	  draw which requiresthat things be rendered and spanned.  Be sure to
      	  complete the action BEFORE changing visibility.
      02b18e95
  5. 27 Apr, 2001 5 commits
    • Morten Welinder's avatar
      Gripe. · 8b883392
      Morten Welinder authored
      8b883392
    • Chema Celorio's avatar
      add the header for clone_sheet · 2ba8959f
      Chema Celorio authored
      2001-04-27  Chema Celorio  <chema@celorio.com>
      
      	* src/sheet-object.h: add the header for clone_sheet
      
      	* src/sheet-object.c (sheet_object_clone): implement
      	(sheet_object_clone_sheet): implemnt.
      
      	* src/sheet-object-widget.c (SOW_MAKE_TYPE): add read_xml, write_xml
      	and clone methods to macro
      	(sheet_object_widget_clone): implement.
      	Implement for X in label, frame, button, checkbox
      	(sheet_widget_x_construct_with_label):
      	(sheet_widget_x_destroy):
      	(sheet_widget_x_clone):
      	(sheet_widget_x_write_xml):
      	(sheet_widget_x_read_xml):
      
      	(sheet_object_widget_register): implement
      
      	* src/sheet-object-impl.h: add the clone method
      
      	* src/sheet-object-graphic.c (sheet_object_graphic_clone): implement.
      	(sheet_object_filled_clone): implement.
      
      	* src/sheet-object-cell-comment.c (cell_comment_clone): implement
      2ba8959f
    • Jon K Hellan's avatar
      Invoke scg_start_range_selection rather than · 97e49011
      Jon K Hellan authored
      2001-04-26  Jon K Hellan  <hellan@acm.org>
      
      	* src/item-grid.c (item_grid_button_1): Invoke
      	scg_start_range_selection rather than
      	gnumeric_sheet_start_range_selection.
      
      	* src/sheet-control-gui.[ch] (scg_start_range_selection): New function.
      	Start range selection in gsheet and notify expr entry.
      97e49011
    • Jody Goldberg's avatar
      Rework to simplify and use colrow_equal. (write_colinfo) : extract the · 49effd20
      Jody Goldberg authored
      
      2001-04-26  Jody Goldberg <jgoldberg@home.com>
      
      	* ms-excel-write.c (write_colinfos) : Rework to simplify and use
      	  colrow_equal.
      	(write_colinfo) : extract the info from the ColRowInfo directly and
      	  fill in the visibility, outline, and collapse states.
      	(write_rowinfo) : export visibility, collapse and outline.
      	(write_guts) : new function.
      	(new_sheet) : Include blank cols/rows with outline properties in
      	  extent calculation.
      
      	* ms-excel-write.h (Excel{Col,Row}) : Delete unnecessary structures.
      49effd20
    • Jody Goldberg's avatar
      Add configure checks for finite and isfinite · 08596c31
      Jody Goldberg authored
      
      2001-04-26  Jody Goldberg <jgoldberg@home.com>
      
      	* configure.in : Add configure checks for finite and isfinite
      
      	* src/mathfunc.h (FINITE) : Move the #define wrapper out here.
      08596c31
  6. 26 Apr, 2001 13 commits
    • Jody Goldberg's avatar
      Move the #define wrapper out here. · a0aaf6ad
      Jody Goldberg authored
      
      2001-04-26  Jody Goldberg <jgoldberg@home.com>
      
      	* src/mathfunc.h (FINITE) : Move the #define wrapper out here.
      
      	* src/cell.c : prune some includes
      	(cell_default_halign) : rename to
      	* src/style.c (style_default_halign) : to simplify headers for systems
      	  that do not support fwd declarations of enums. H - cough - PUX
      a0aaf6ad
    • Jody Goldberg's avatar
      new routine to save merged regions. (write_sheet_tail) : called from here. · fa079372
      Jody Goldberg authored
      
      2001-04-26  Jody Goldberg <jgoldberg@home.com>
      
      	* ms-excel-write.c (write_mergecells) : new routine to save merged
      	  regions.
      	(write_sheet_tail) : called from here.
      fa079372
    • Jody Goldberg's avatar
      oops accidentally backed out a patch. · da1f95fe
      Jody Goldberg authored
      2001-04-26  Jody Goldberg <jgoldberg@home.com>
      
      	* xml-sax-read.c (xml_cell_set_array_expr) : oops accidentally backed
      	  out a patch.
      da1f95fe
    • Morten Welinder's avatar
      Put a decisive end to the signed-vs-unsigned problems in here. It's all · ec799a5c
      Morten Welinder authored
      2001-04-26  Morten Welinder  <terra@diku.dk>
      
      	* src/stf-parse.c: Put a decisive end to the signed-vs-unsigned
      	problems in here.  It's all glib's fault, really.
      ec799a5c
    • Morten Welinder's avatar
      Fix a signed vs. unsigned error. (We underflowed from 0 to 0xffff...ff.) · b2eaec07
      Morten Welinder authored
      2001-04-26  Morten Welinder  <terra@diku.dk>
      
      	* src/stf-parse.c (stf_parse_options_fixed_autodiscover): Fix a
       	signed vs. unsigned error.  (We underflowed from 0 to
       	0xffff...ff.)
      b2eaec07
    • Morten Welinder's avatar
      Plug leak. · 31189ebc
      Morten Welinder authored
      2001-04-26  Morten Welinder  <terra@diku.dk>
      
      	* dialog-solver.c (dialog_solver): Plug leak.
      31189ebc
    • Jon Kåre Hellan's avatar
      Move dialog placement from BUGS to NEWS · 684c8743
      Jon Kåre Hellan authored
      684c8743
    • Jody Goldberg's avatar
      Drat part of a canceled patch slipped in. · fb1aa4e9
      Jody Goldberg authored
      
      2001-04-26  Jody Goldberg <jgoldberg@home.com>
      
      	* src/item-grid.c (item_grid_class_init) : Drat part of a canceled
      	  patch slipped in.
      fb1aa4e9
    • Jon K Hellan's avatar
      Change from gnumeric.xml to GNOME_Gnumeric.xml · 57814532
      Jon K Hellan authored
      2001-04-26  Jon K Hellan  <Jon.Hellan@clustra.com>
      
      	* POTFILES.in: Change from gnumeric.xml to GNOME_Gnumeric.xml
      57814532
    • Jon K Hellan's avatar
      Fix typo. · a214d2b6
      Jon K Hellan authored
      2001-04-26  Jon K Hellan  <hellan@acm.org>
      
      	* src/item-grid.c (item_grid_draw_background): Fix typo.
      
      	* src/gnumeric-util.c (gnumeric_dialog_run): Fix silly mistake
      a214d2b6
    • Jon K Hellan's avatar
      Eliminate attempt to handle parent being closed underneath dialog running · afbe6688
      Jon K Hellan authored
      2001-04-26  Jon K Hellan  <hellan@acm.org>
      
      	* src/gnumeric-util.c (gnumeric_wb_dialog_run): Eliminate attempt
      	to handle parent being closed underneath dialog running a
      	recursive mainloop. That can't happen since GTK 1.2.7. Move what
      	remains of the function into gnumeric_dialog_run.
      	(gnumeric_dialog_run): See above.
      	(gnumeric_set_transient): Place dialog according to user's
      	placement policy.
      	(gnumeric_non_modal_dialog): Use gnumeric_set_transient to get
      	placement right.
      
      	* src/gui-file.c (gui_file_save_as, dialog_query_load_file):
      	No longer place at mouse, since gnumeric_set_transient now
      	honours user's dialog placement policy.
      afbe6688
    • Jody Goldberg's avatar
      Add a horizontal merge before dumping to a list. (cb_hash_to_list) : free · 0088cc12
      Jody Goldberg authored
      
      2001-04-25  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-style.c (sheet_style_get_list) : Add a horizontal merge
      	  before dumping to a list.
      	(cb_hash_to_list) : free elements that have been merged in the
      	  horizonal step, but have not yet been removed.
      	(cb_hash_merge_horiz) : new function. merge when possible, after a
      	  merge either free the useless bit or mark it as useless for later
      	  removal.
      	(cb_style_list_add_node) : Use mstyle_equal for now to remerge
      	  different instances of the same logical style.  This is necessary
      	  until I finish the per sheet style index.
      	(sheet_style_init) : add some sanity checks incase some bright boy
      	  decides to up the size of sheet and forgets here.
      
      	* src/xml-io.c (xml_sheet_write) : Add the properties for the
      	  outline mode preferences.
      	(xml_sheet_read) : ditto.
      
      	* src/item-debug.h : fix the messages to include the module
      	* src/item-bar.c : fix the item-debug grab/ungrab messages.
      	(item_bar_update) : gnome_canvas_group_child_bounds is a deprecated
      	  useless call.
      	* src/item-edit.c : fix the item-debug grab/ungrab messages.
      	(recalc_spans) : gnome_canvas_group_child_bounds is a deprecated
      	  useless call.
      	* src/item-grid.c : fix the item-debug grab/ungrab messages.
      	(item_grid_update) : gnome_canvas_group_child_bounds is a deprecated
      	  useless call.
      	(item_grid_button_1) : If we are going to start selecting a range have
      	  the grid to a grab on button down.  This should fix the pseudo-race
      	  condition that was irritating the ExprEntry.
      
      	* src/preview-grid.c (preview_grid_update) :
      	  gnome_canvas_group_child_bounds is a deprecated useless call.
      	* src/item-cursor.c : fix the item-debug grab/ungrab messages.
      	(item_cursor_point) : animated cursors should never receive events.
      
      	* src/cell-draw.c (cell_draw) : It is perfectly reasonable for
      	  narrow/short cols/rows to produce cells that have negative sizes
      	  with the margins removed.  exit silently.
      0088cc12
    • Jody Goldberg's avatar
      Add flags for the outline preferences. · 9032edba
      Jody Goldberg authored
      
      2001-04-25  Jody Goldberg <jgoldberg@home.com>
      
      	* xml-sax-read.c (xmlSaxParseSheet) : Add flags for the outline
      	  preferences.
      9032edba
  7. 25 Apr, 2001 2 commits
  8. 24 Apr, 2001 2 commits