1. 24 May, 2001 1 commit
  2. 07 Dec, 2000 2 commits
    • Jody Goldberg's avatar
      Add some new icons · 850e9b36
      Jody Goldberg authored
      
      2000-12-07  Jody Goldberg <jgoldberg@home.com>
      
      	* src/application.c (application_init) : Add some new icons
      
      	* src/gnumeric.xml : Use the new icons
      	* src/workbook-control-gui.c : Ditto
      	* src/workbook-format-toolbar.c : Ditto.
      850e9b36
    • Jody Goldberg's avatar
      Bump the GAL reqs · d51ca738
      Jody Goldberg authored
      d51ca738
  3. 29 Nov, 2000 1 commit
  4. 14 Sep, 2000 1 commit
  5. 08 Jul, 2000 1 commit
  6. 26 Apr, 2000 1 commit
  7. 20 Apr, 2000 1 commit
    • Jody Goldberg's avatar
      Reorg cell contents and assignment. · bedb925b
      Jody Goldberg authored
      Fixs lots of usability details.
      
      2000-04-20  Jody Goldberg <jgoldberg@home.com>
      
      	* src/dialogs/dialog-cell-format.c : Use the edit_pos as the example
      	  not the top left corner.
      
      	* src/functions/fn-stat.c (gnumeric_ftest) : Use eval_pos_cellref
      	  to help localize the strangeness.
      	(gnumeric_ttest) : Ditto.
      
      	* src/xml-io.c (xml_write_cell_and_position) : If this is an array
      	  expression and we are the top left then add attributes to indicate
      	  size of array.  Ignore the rest of the array.
      	(xml_not_used_old_array_spec) : New routinr to handle the old array format.
      	(xml_cell_set_array_expr) : store an array.
      	(xml_read_cell) : Handle the old and the new array formats.
      
      	* src/workbook.c (workbook_close_if_user_permits) : Accept input
      	  first.
      	(wb_edit_key_pressed) : Handle array formulas here.
      	(workbook_detach_sheet) : Do not recalc all if we are exiting.
      	(workbook_start_editing_at_cursor) : When we start editing an
      	  array formula display just the formula not all the extra {}()[][] crap.
      
      	* src/sheet.c (SheetPrivate) : Add a recompute_spans flag.
      	(sheet_calc_spans) : New routine.
      	(sheet_cell_calc_span) : New routine.
      	(sheet_range_calc_spans) : Renamed and extended from
      	  sheet_cells_update.
      	(sheet_update) : Use sheet_calc_spans when necessary.
      	  Update the location region when the edit_pos changes.
      	(cb_recalc_spans_in_col) : Renamed from cb_collect_cells_in_col.
      	  Recalcs spans directly, no need to collect first.
      	(cb_set_cell_content) : New routine to set expr, or expr_and_value.
      	(sheet_range_set_text) : Use cb_set_cell_content, and remember
      	  chosen format with the cell rather than overriding the assigned
      	  format.
      	(sheet_cell_set_text) : Renamed from sheet_set_text.  Be more specific
      	  about how spans, rendering and the rest are handled.
      	(sheet_cell_set_expr) : New routine.
      	(sheet_cell_set_value) : Ditto.
      	(sheet_load_cell_val) : When displaying an array formula add {%s}()[][].
      	(sheet_redraw_cell_region) : Honour spans when redrawing.
      	(sheet_redraw_partial_row) : New routine.
      	(sheet_redraw_cell) : Ditto.
      	(sheet_is_cell_array) : Use cell_is_array.
      	(sheet_range_splits_array) : Renamed from sheet_check_for_partial_array.
      	(sheet_cell_add_to_hash) :  Do not touch spans at this point.
      	(sheet_cell_insert) : Rename from sheet_cell_add made recalc span
      	  optional.
      	(sheet_cell_new) : New routine that does not touch spans.
      	(sheet_cell_remove) : Made redraw optional.
      	(cb_clear_cell_comments) : Remove the cell if there is no comment.
      	(sheet_clear_region) : Remove the cell if there are no comments or
      	  contents.  Flag an update of the status region.
      
      	* src/sheet-view.c (cb_colrow_resize) : New function.
      	(sheet_view_col_size_changed) : Resize all rows, irrespective of
      	(sheet_view_row_size_changed) : existing cells.
      	(sheet_view_redraw_cell_region) : This no longer honours spans.
      
      	* src/sheet-style.c (sheet_style_attach) : Removed call to redraw.
      	sheet_cells_update : rename to sheet_range_calc_spans and move to
      	  sheet.c.
      
      	* src/sheet-autofill.c (autofill_cell) : Use sheet_cell_set_value
      	  rather than set_text.
      
      	* src/selection.c (sheet_selection_changed_hook) : Delete.
      	(sheet_selection_extend_to) : Update the status region to display the
      	  new size.
      	(sheet_selection_cut) : Use sheet_range_splits_array.
      	(selection_check_for_array) : New routine.
      
      	* src/parser.y : Remove icky array formula parsing that conflicted
      	  with array entries.
      
      	* src/number-match.c (format_match) : Return a Value * rather than a
      	  double.
      
      	* src/mstyle.c (mstyle_set_font_size) : Do not allow font sizes < 1.
      
      	* src/main.c (gnumeric_main) : Do NOT create an empty workbook
      	  then delete it if things are successfully loaded.  This causes
      	  a global recalc.  Instead add a flag to disable exit when the
      	  number of workbooks go to zero.  Then only enable the flag AFTER
      	  we have attempted to load the initial workbooks.
      
      	* src/item-grid.c (item_grid_event) : Update the status_region when
      	  button-1 is release.  It should display the edit_pos.
      
      	* src/gutils.c : Move cell_name, col_name, col_from_name,
      	  parse_cell_name, parse_cell_name_or_range and parse_cell_name_list,
      	  to parse-util.c.
      
      	* src/gnumeric.h  : Add RenderedValue.
      
      	* src/gnumeric-util.c (gnumeric_char_start_expr_p) : Move
      	  to parse-util.c
      
      	* src/file.c (workbook_read) : Remove freese thaw usage.
      	  Move call to update AFTER mark clean.
      
      	* src/expr.c (eval_pos_init) : Take a cellpos.
      	(parse_pos_evalpos) : New routine.
      	(eval_pos_cellref) : There is some questionable code scattered in the
      	  functions.  This routing localizes the odd bits for correction.
      
      	* src/eval.c (cell_eval_content) : Use sheet_redraw_cell,
      	  and rendered_value_calc_size.
      	(cell_get_dependencies) : Improve constness.
      
      	* src/corba-sheet.c : Remove the freeze thaw operations.
      	(Sheet_cell_set_formula) : Deleted.
      	(Sheet_range_set_formula) : Delete.
      
      	* src/commands.c : Adjust so that registration of command auto
      	  calls redo.  Add misc checks for splitting arrays.
      
      	* src/clipboard.h : Move the CellCopy types here from cell.h
      
      	* src/clipboard.c (paste_cell) : Use cell_has_expr.
      	  Don't insert the new cell till after its contents are assigned.
      
      	* src/cellspan.c (cell_register_span) : Improve constness.
      	(cell_unregister_span) : Ditto.
      	(row_cell_get_displayed_at) : Delete.
      	(cell_calc_span) : Moved here from cell.c
      
      	* src/dialogs/dialog-stf.glade : Adjust the header background colour
      	  to match the purdy new icon.  Add the icon.
      
      	* src/cell-draw.c : Use the rendered_value routines.
      	  Improve constness.
      
      	* src/analysis-tools.c (set_cell) : Use sheet_cell_fetch.
      
      	*.*
      	    cell_set_* -> sheet_cell_set_
      	    cell_set_*_simple -> cell_set_
      	    Cell::{row,col} -> Cell::{row,col}_info
      	    cell_get_text -> cell_get_entered_text
      	    cell_get_content -> cell_get_entered_text
      	    cell_name -> cell_coord_name
      	    cell_get_formatted_val -> cell_get_rendered_text
      	    cell_get_content -> cell_get_entered_text
      
      	* src/cell.c :
      	(cell_dirty) : Renamed from cell_modified.  Use
      	  sheet_set_dirty.
      	(cell_formula_changed) : Make the queuing of the recalc optional.
      	(cell_cleanout) : Handle union of expression and entered_text,
      	  and remove the rendered value.
      	(cell_copy) : Ditto.
      	(cell_destroy) : handle cell_modified -> cell_dirty.
      	(cell_set_text) : Use parse_text_value_or_expr and store the prefered
      	  format.
      	(cell_set_text_and_value) : New routine.
      	(cell_assign_value) : New routine.
      	(cell_set_value) : Support formats.
      	(cell_set_expr_and_value) : New routine.
      	(cell_set_expr_internal) : Split from cell_set_expr.
      	(cell_set_expr) : Divide to allow for not queuing a recalc.
      	(cell_set_array_formula) : Use cell_set_expr_internal.
      	(cell_is_array) : New utility.
      	(cell_is_partial_array) : New utility.
      	(cell_has_expr) : New utility.
      	(cell_render_value) : Use rendered_value_*.
      	Move all comment routines into cell-comment.[ch].
      
      	* idl/Gnumeric.idl : Remove cell_set_formula, and range_set_formula.
      	  These were identical to set_text.  Made Workbook embeddable.
      bedb925b
  8. 30 Jan, 2000 1 commit
  9. 31 Oct, 1999 1 commit
  10. 29 Oct, 1999 2 commits
  11. 28 Oct, 1999 2 commits
  12. 27 Jul, 1999 1 commit
  13. 30 Jun, 1999 1 commit
  14. 29 Jun, 1999 2 commits
    • Miguel de Icaza's avatar
      Little stuff + some gui editing with glade, the tool of the professional · 368cf80b
      Miguel de Icaza authored
      
      
      Little stuff + some gui editing with glade, the tool of the professional
      gnomer.
      
      1999-06-28  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/dialog-printer-setup.c (load_image): Use a constant relative
      	to the Gnumeric installation directory, do not use the gnome
      	pixmap path routine.
      
      	* src/workbook.c: Add print icon to the toolbar.
      
      	* src/dialog-printer-setup.c (do_print_cb): Fetch settings when
      	the user presses print from here.
      	(do_setup_main_dialog): Hide non working widgets.
      368cf80b
    • Arturo Espinosa's avatar
      New files · 0bc67c9f
      Arturo Espinosa authored
      0bc67c9f
  15. 26 Jun, 1999 1 commit
    • Miguel de Icaza's avatar
      The big GNUMERIC_PRINT merge into HEAD. · a5e65a30
      Miguel de Icaza authored
      
      
      The big GNUMERIC_PRINT merge into HEAD.
      
      Still some features are missing.  Check the TODO to see what is
      missing.
      
      1999-06-26  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/pixmaps.h: Removed unused pixmaps.
      
      	* src/corba-sheet.c (Sheet_corba_class_init): Fill in some missing
      	values fomr the GNOME::Gnumeric::Sheet epv interface.
      
      	* src/expr.c (eval_funcall): Removed unused variable.
      
      	* src/workbook.c (workbook_sheets): prepend and reverse instead of
      	appending all the time.  It is more efficient.
      
      	* src/style.c (x11_font_compute_hints): Renamed as well.  Might be
      	useful in the future.
      
      	* src/gnumeric-util.c (x11_font_get_italic_name,
      	x11_font_get_bold_name, x11_font_change_component): Renamed these
      	functions to reflect their actual usage.
      
      	* src/expr.c (expr_tree_new_constant): Change style to use early
      	return to keep indentation of the rest of the code at tab-1.  This
      	is a trick to keep indentation nice with 8-tab spaces.  Liberal
      	use of early returns, early continues, early breaks.
      
      	* src/cell.h (CELL_TEXT_GET): Kill unused macro.
      
      1999-06-25  Miguel de Icaza  <miguel@gnu.org>
      
      	* src/xml-io.c (xml_read_cell): Merge the style we just read with
      	the existing information from the cell (which are the defaults).
      	This is only for compatibility with the old format
      
      1999-06-24  Miguel de Icaza  <miguel@gnu.org>
      
      	* src/xml-io.c (style_font_new_from_x11): Implemented
      
      	* src/style.c (style_font_new): Improved matching of the font.
      
      	* src/xml-io.c 	(xml_write_style): Save Bold and Italic
      	properties.  Save Units as double.
      	(xml_read_style): Add conversion hook from old format.
      	(xml_read_style): Load properly italic and bold properties.
      
      	(xml_read_cell): Add new style reading code.  It is
      	compatible with the old Style reading code.
      	(xml_read_rows_info, xml_read_cols_info, xml_read_styles): Moved
      	Cols, Rows and Styles loading code here, for code clarity.
      
      	* src/style.c (style_font_new_simple): Include the scale in the
      	key lookup variable.
      
      	* src/xml-io.c: The FontDefs and the HREFs to the fonts were never
      	being used.  The new code for styles simplifies this.  Kill all
      	the references to the FontDefs urls and the font indeces.
      
      	* src/xml-io.c
      
      1999-06-23  Miguel de Icaza  <miguel@gnu.org>
      
      	* src/xml-io.c: Major updates.
      	(xml_read_colrow_info): Use floating point for loading the
      	units, margin_a and margin_b.
      	(xml_write_colrow_info): Save units, margin_a and margin_b using
      	floating point.
      	(xml_set_value_double): Activate this function.
      	(xml_write_cell): Do not save the style here.  Lookup the style
      	id, and write a record with the style id link.
      	(xml_sheet_write): Add call to xml_cell_styles_init and
      	xml_cell_styles_shutdown to init and shutdown the cell styles in a
      	per-sheet basis.
      
      	Renamed functions to suit the gnumeric coding
      	sytle.  Fixed indentation.
      
      	File format now saves a different version.  We store all cell
      	styles first, and then we reference them.
      
      	(parse_xml_context_t): renamed from
      	parseXmlContext.  Add style_table hash table for storing all the
      	styles used by the cells on a workbook.  Used to dump Styles first
      	and then have the cells reference it.
      
      	* src/style.c (style_hash, style_compare): New routines to
      	put Styles on hash tables.
      
      	* src/workbook.c (workbook_sheets): Use g_list_prepend instead of
      	g_list_append and reverse the result.
      
      1999-06-14  Miguel de Icaza  <miguel@gnu.org>
      
      	* src/cell.h: Killed ColType and RowType definitions.  They do not
      	save any noticeable amount of memory; we are not using them but
      	on the most useless places and finally they are the current limit
      	to our spreadsheet size.
      
      	* src/gnumeric-sheet.h: Use int instead of ColType, RowType
      	* src/item-cursor.h: Use int instead of ColType, RowType
      	* src/item-grid.h: Use int instead of ColType, RowType
      
      	* src/print-cell.c (CELL_DIM): Use _pt variants of the margins here.
      	(print_cell_text): and here.
      	(print_cell): and here.
      	(print_cell_range): and here.
      	(print_cell_grid): and here.
      
      1999-06-13  Miguel de Icaza  <miguel@gnu.org>
      
      	* src/sheet.c (sheet_compute_col_row_new_size): Update margin_a
      	and margin_b from the points.
      	(col_row_info_init): New function to initialize a sample
      	ColRowInfo.  Inits the _pt fields.
      	(col_row_unit_distance): Use the new fields in computation.
      	(sheet_col_get_unit_distance): Use new fields in computation.
      
      	* src/dialog-printer-setup.c (do_setup_margin): Set scroll region.
      	(preview_page_create): Implement routine that draws the page for
      	the margin setup.
      
      	* src/sheet.h (ColRowInfo): Units are now doubles; margin_a_pt and
      	margin_b_pt are doubles that represent the a and b margins in
      	points.
      
      	* src/sheet.c (sheet_compute_col_row_new_size): Use the
      
      1999-06-11  Miguel de Icaza  <miguel@gnu.org>
      
      	* src/cell-draw.c (cell_draw): Move the foreground setting routine
      	here and handle single-line and multiline coloring properly.
      
      	* src/print-info.c (unit_name_to_unit): New routine, returns the
      	UniName from the string name.
      
      	* src/dialog-printer-setup.c (dialog_printer_setup): Use
      	print_info_save and kill the do_save_settings routine for the
      	cleaner print_info routine.
      
      	* src/print-info.c (print_info_new): Now loads the default
      	settings from the saved configuration.
      	(print_info_save): Saves the print information to the gnome_config.
      
      1999-06-08  Miguel de Icaza  <miguel@gnu.org>
      
      	* src/utils.c (str_trim_spaces): Moved str_trim_spaces ere.
      
      	* src/dialog-printer-setup.c (do_setup_main_dialog): Connect print
      	buttons.
      
      	* src/print-cell.c (print_cell_grid): Simplify routine.
      
      	* src/sheet.c (sheet_row_get_unit_distance,
      	sheet_col_get_unit_distance): Include  margins in computation.
      	This is broken, as the margins are now pixels, and they should be
      	made points.
      
      	* src/dialog-printer-setup.c (do_fetch_page_info): Fetch other values.
      	(do_save_settings): Saves the configuration.
      
      	* src/print-cell.c (print_border): Implement border drawing.
      	(print_cell_grid): Make this work as it should.
      
      	* src/print.c (compute_groups): Handle the case where the contents
      	fit entirely in one page.
      
      1999-06-07  Miguel de Icaza  <miguel@gnu.org>
      
      	* src/print.c: New file.  Implements high-level printing.
      
      	* src/dialog-printer-setup.c: New file.  Implements the "Print
      	Setup" dialog box.
      
      1999-04-30  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/cell-draw.c: New file.  All of the cell screen drawing code
      	has been moved here now.
      
      	* src/print-cell.c: Enhanced code.
      
      	* src/workbook.c: hardcoded page size for testing purposes.
      
      1999-03-10  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	I do not like the current approach.  I do think that StyleFonts
      	should be static with regard to Zoom.
      
      	And we would keep a cache of X fonts that are used for a
      	particular size.
      
      	* src/style.c (style_font_new_from): New routine that creates a
      	new font.
      
      	* src/sheet.c (sheet_set_zoom_factor): Scale fonts used in the
      	Sheet.
      
      1999-02-15  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/dialog-printer-setup.c: New file.  Implements the workbook
      	page configuration dialog box.
      
      	* src/print-info.c, src/print-info.h: Manages the per-worbook
      	print options.
      
      1999-02-07  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/style.c (font_equal): Adapt function to the new StyleFont.
      	(style_font_new, style_font_new_simple): Adapt for the upcoming
      	gnome-print support.
      	(font_init): Adapt.
      
      	* src/xml-io.c: Use Gnome Print font scheme.
      	* src/workbook.c: ditto.
      	* src/cell.c: ditto.
      	* src/item-bar.c, src/item-edit.c: ditto
      
      	* src/dialog-cell-format.c: Disable font selector for now.
      a5e65a30
  16. 17 Dec, 1998 1 commit