1. 12 Nov, 2003 2 commits
  2. 23 May, 2003 2 commits
  3. 22 May, 2003 1 commit
    • Morten Welinder's avatar
      Set bogus .pixel values. · e4032c18
      Morten Welinder authored
      2003-05-22  Morten Welinder  <terra@gnome.org>
      
      	* src/style-color.c (style_color_new_uninterned): Set bogus .pixel
      	values.
      
      	* src/pattern.c (gnumeric_background_set_gc): Don't batch, gdk
      	already does that.  Don't assume .pixel for colours.
      e4032c18
  4. 20 May, 2003 2 commits
    • Morten Welinder's avatar
      Use gdk_gc_set_rgb_fg_color, not gdk_gc_set_foreground. USe · 63ac38ac
      Morten Welinder authored
      2003-05-20  Morten Welinder  <terra@gnome.org>
      
      	* src/style-border.c (style_border_set_gc_dash): Use
      	gdk_gc_set_rgb_fg_color, not gdk_gc_set_foreground.  USe
      	gdk_gc_set_rgb_bg_color, not gdk_gc_set_background.
      	(style_border_none_set_color): Ditto.
      	(style_border_get_gc): Ditto.
      
      	* src/item-grid.c (item_grid_realize): Ditto.
      	* src/item-cursor.c (item_cursor_draw): Ditto.
      	* src/pattern.c (gnumeric_background_set_pc): Ditto.  (#if 0'ed.)
      	(gnumeric_background_set_gc): Ditto, more or less.
      
      	* src/preview-grid.c (preview_grid_realize): Plug "white" out of
      	the style.  Use gdk_gc_set_rgb_fg_color, not
      	gdk_gc_set_foreground.
      
      	* src/gnumeric-canvas.c (gnm_canvas_realize): Plug "white" out of
      	the style.
      
      	* src/style-color.c (gnumeric_color_init): Make gs_yellow,
      	gs_white, gs_black, gs_dark_gray, gs_light_gray, and gs_lavender
      	unallocated colours.  Eliminate unused gs_red.
      
      2003-05-20  Morten Welinder  <terra@gnome.org>
      
      	* dialog-cell-format.c (cb_rotate_canvas_realize): Plug "white"
      	out of the style.
      	(setup_color_pickers): Plug "black" out of the style.
      	(fmt_dialog_impl): Ditto.
      63ac38ac
    • Morten Welinder's avatar
      Remove redundant red, green, and blue members. All users changed to use · 7df20524
      Morten Welinder authored
      2003-05-20  Morten Welinder  <terra@gnome.org>
      
      	* src/style-color.h (struct _StyleColor): Remove redundant red,
      	green, and blue members.  All users changed to use color member.
      
      	* src/style-color.c (color_hash): Improve hash function (as if it
      	mattered).
      
      2003-05-20  Morten Welinder  <terra@gnome.org>
      
      	* ms-excel-read.c: Adapt to StyleColor changes.
      	* ms-excel-write.c: Adapt to StyleColor changes.
      
      2003-05-20  Morten Welinder  <terra@gnome.org>
      
      	* html.c: Adapt to StyleColor changes.
      7df20524
  5. 13 May, 2003 1 commit
    • Jody Goldberg's avatar
      fence post. · f3a62218
      Jody Goldberg authored
      
      2003-05-13  Jody Goldberg <jody@gnome.org>
      
      	* src/pattern.c (gnumeric_pattern_get_stipple) : fence post.
      f3a62218
  6. 27 Mar, 2003 1 commit
    • Jody Goldberg's avatar
      doh! Thanks Morten. · 70688602
      Jody Goldberg authored
      
      2003-03-27  Jody Goldberg <jody@gnome.org>
      
      	* src/style.c (style_font_new_simple) : doh!  Thanks Morten.
      
      2003-03-26  Jody Goldberg <jody@gnome.org>
      
      	* src/pattern.c (gnumeric_background_set_gc) : trivial optimization to
      	  avoid multiple calls to gdk_gc_set_values.
      	(gnumeric_pattern_get_stipple) : no need to publicize this for now.
      	  simply a bit.
      
      2003-03-18  Jody Goldberg <jody@gnome.org>
      
      	* src/gui-util.c (gnumeric_inject_widget_into_bonoboui) : make it more
      	  forgiving in the face of installation problems.
      
      2003-03-17  Jody Goldberg <jody@gnome.org>
      
      	* src/dependent.c (name_dep_debug_name) : new.
      	(dynamic_dep_eval) : new.
      	(dependent_types_init) : register name pseudo type a name is not
      	  really a dependent, but it is useful for relocation to have a unique
      	  type for it.
      
      	* src/dependent.h : Add relocation flavour to handle the needs of
      	  names and potentially eventually sorting.
      
      	* src/clipboard.c (clipboard_paste_region) : set relocation flavour.
      	* src/sheet-autofill.c (autofill_cell) : ditto.
      	* src/sheet.c (cb_set_cell_content) : ditto.
      	* src/workbook.c (workbook_sheet_detach) : ditto.
      
      	* src/item-edit.c (recalc_spans) : support the use of partial columns
      	  at the edges.
      	* src/sheet-control-gui.c (gnm_canvas_make_cell_visible) : don't
      	  scroll past the requested col/row if it is larger than the screen.
      
      2003-03-15  Jody Goldberg <jody@gnome.org>
      
      	* src/file.h : fix the naming of a few methods (Still needs cleanup)
      	  and add gnm_file_saver_for_file_name.
      70688602
  7. 06 Nov, 2002 1 commit
    • Jody Goldberg's avatar
      enable excel97 · 558cefd3
      Jody Goldberg authored
      
      2002-11-05  Jody Goldberg <jody@gnome.org>
      
      	* plugin.xml.in : enable excel97
      
      	* ms-excel-write.c (excel_write_value) : use BIFF8 SST records.
      	(excel_write_state_free) : clean up SST here.
      	(excel_write_state_new) : shared routine for biff7 and biff8.
      	(excel_utf8_has_multibyte) : quicky utility.
      	(excel_write_SST) : initial basic implementation still needs unicode
      	  support.
      	(excel_write_BOF) : renamed from biff_bof_write and sync versions with
      	  XL 2k.
      
      2002-11-04  Jody Goldberg <jody@gnome.org>
      
      	* boot.c (excel_save) : prep for biff8 save, and double stream files.
      
      	* ms-excel-read.c (excel_read_XF) : fix rotation.
      	(excel_read_SST) : improve debug info.
      
      	* ms-excel-write.c (write_xf_record) : write the BIFF8 support.
      	(rotation_to_excel) : new.
      
      
      2002-11-06  Jody Goldberg <jody@gnome.org>
      
      	* src/item-*, src/*canvas* : convert to foocanvas
      
      	* src/application.c (gnumeric_application_setup_icons) : Use new
      	  scaled pngs for formula guru.
      	* src/pixmaps/Makefile.am : ditto.
      
      	* src/plugin.c (plugin_info_read) : add 'require_explicit_enabling' flag
      	  so that we don't auto enable specialized plugins.
      
      	* src/plugin-service.c (input_file_save_info_read) : delete.
      	(plugin_service_file_opener_read_xml) : don't call it here.
      	(gnum_plugin_file_opener_open) : And don't try to use it here.
      	  It is not useful to hard code the saver if the importer can handle
      	  multiple versions of the format.  Only the import process will know
      	  enough to be able to select the appropriate exporter.
      
      	* src/item-cursor.c (item_cursor_tip_setlabel) : simplify.
      	* src/auto-format.c : tidy up includes.
      558cefd3
  8. 15 Feb, 2002 1 commit
    • Jody Goldberg's avatar
      We can now make distcheck · f84a08c5
      Jody Goldberg authored
      Requires a GAL update, and a gtk+ update
      
      2002-02-15  Jody Goldberg <jody@gnome.org>
      
      	* src/item-cursor.c (item_cursor_tip_setlabel) : enable now that the
      	  canvas bug is fixed.
      
      	* src/sheet-control-gui.c (cb_hscrollbar_adjust_bounds) : new.
      	(cb_vscrollbar_adjust_bounds) : new.
      
      	* src/gui-util.c (gtk_button_stock_alignment_set) : new.
      	(gnumeric_init_help_button) : new.
      
      	* src/gnumeric-canvas.h : Move declaration of
      	  GnumericCanvasSlideHandler here.
      
      	* src/gnumeric-canvas.c (gnm_canvas_guru_key) : forward to the entry,
      	  not the GnumericExprEntry wrapper.
      	(gnm_canvas_key_mode_sheet) : ditto.
      
      	* src/formats.c (cell_format_classify) : handle general.
      
      	* src/file-priv.h : Inherit from GObject.
      
      	* src/complete-sheet.c (complete_sheet_finalize) : call class_peek
      	  here to avoid potential reference problems.
      
      	* src/commands.c (cmd_set_text) : doh!  fix multi-line text.
      	(cmd_autoformat) : const.
      
      	* src/cell.c (cell_relocate) : const.
      	* src/clipboard.c (paste_cell_with_operation) : const.
      	(paste_cell) : ditto.
      
      	* src/application.c (application_init) : add jimmac's expr-entry icon.
      
      	* src/Makefile.am : distribute the marshaller.list
      
      	s/GtkType/GType/
      	s/GtkSignalFunc/GCallback/
      	s/gtk_signal_connect/g_signal_connect/  + reformating.
      	s/GTK_CHECK_CAST/G_TYPE_CHECK_INSTANCE_CAST/
      	s/GTK_CHECK_TYPE/G_TYPE_CHECK_CLASS_CAST/
      	s/GTK_CHECK_CLASS_CAST/G_TYPE_CHECK_INSTANCE_TYPE/
      	s/GTK_CHECK_CLASS_TYPE/G_TYPE_CHECK_CLASS_TYPE/
      
      2002-02-11  Jody Goldberg <jody@gnome.org>
      
      	* src/stf.c (stf_init) : Make the names of the text import/export
      	  clearer.
      f84a08c5
  9. 21 Dec, 2001 1 commit
  10. 22 Nov, 2001 1 commit
  11. 11 Sep, 2001 1 commit
    • Jody Goldberg's avatar
      store the width in pixels as well as pts. · c332d9dd
      Jody Goldberg authored
      2001-09-11  Jody Goldberg <jgoldberg@home.com>
      
      	* src/style.c (style_font_new_simple) : store the width in pixels as
      	  well as pts.
      
      	* src/print-cell.c (print_cell) : sync with the drawing code.
      c332d9dd
  12. 02 Sep, 2001 1 commit
    • Jody Goldberg's avatar
      For Wayne Schuller <k_wayne@linuxpower.org> · bb833c86
      Jody Goldberg authored
      2001-09-02  Jody Goldberg <jgoldberg@home.com>
      	For Wayne Schuller <k_wayne@linuxpower.org>
      
      	* src/pattern.c (gnumeric_background_set_pc) : Support gray scale
      	  patterns when printing.
      
      2001-09-02  Jody Goldberg <jgoldberg@home.com>
      
      	* src/style-condition.c (style_condition_eval) : Use dependent_eval
      	  and add an invariant that ensures that val is only NULL if we have
      	  been queued for recalc.
      
      	* src/eval.c (dependent_eval) : split from workbook_recalc.
      	(cell_eval) : change return type.  no one was using it.
      	(dependent_needs_recalc) : new macro.
      bb833c86
  13. 24 Jan, 2001 1 commit
    • Jody Goldberg's avatar
      save the merged regions. (clipboard_release) : cleanup merged regions. · b18b73be
      Jody Goldberg authored
      
      2001-01-24  Jody Goldberg <jgoldberg@home.com>
      
      	* src/clipboard.c (clipboard_copy_range) : save the merged regions.
      	(clipboard_release) : cleanup merged regions.
      
      	* src/commands.c (cmd_merge_cells_redo) : move the non-corner content
      	  clearing from here.
      	* src/sheet-merge.c (sheet_merge_add) : to here.  Apply the style from
      	  the corner to the entire region.
      
      	* src/sheet.c (sheet_range_set_text) : clear range_filled merged
      	  regions.
      
      	* src/item-grid.c (item_grid_draw) : borders & grids for merged cells.
      
      2001-01-23  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-style.c (style_row) : move the clearing of grid lines
      	* src/item-grid.c (item_grid_draw) : from here.
      b18b73be
  14. 23 Jan, 2001 1 commit
    • Jody Goldberg's avatar
      If we are not selecting a range for an expression then we should cancel · 63e24beb
      Jody Goldberg authored
      
      2001-01-23  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-control-gui.c (scg_colrow_select) : If we are not
      	  selecting a range for an expression then we should cancel editing.
      	(scg_context_menu) : cancel editing.
      
      2001-01-22  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.c : Use the new wrapper function in scg (for now) rather
      	  than a direct call to gsheet.
      
      	* src/sheet-control-gui.c (scg_set_cursor_bounds) : new function to
      	  wrap direct calls to gsheet.  This is prep for supporting panes.
      	(scg_compute_visible_region) : new function
      	(scg_make_cell_visible) : new function
      	(scg_create_editor) : new function
      	(scg_stop_editing) : new function
      	(scg_stop_cell_selection) : new function
      
      	* src/pattern.c (gnumeric_background_set_gc) : no need for setting GC
      	  in non selection case.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_create_editor) : renamed from
      	  gnumeric_sheet_create_editing_cursor.
      	(gsheet_compute_visible_region) : rename from
      	  gnumeric_sheet_compute_visible_ranges
      63e24beb
  15. 16 Jan, 2001 1 commit
    • Jody Goldberg's avatar
      Borders now work. We still don't handle the intersection cases properly. · 925863b2
      Jody Goldberg authored
      And the top and left of merged cells will look odd.
      
      2001-01-16  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-style.c (sheet_style_get_uniform) : don't leak border ref.
      
      	* src/workbook.c (workbook_sheet_delete) : disable the undo/redo
      	  combos when we clear the undo stack.
      
      2001-01-14  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-style.c (style_row) : don't apply none to a cleared
      	  border.
      
      	* src/sheet-style.h (StyleRow) : const.
      
      	* src/mstyle.c (mstyle_get_color) : const.
      
      	* src/pattern.c (gnumeric_background_set_gc) : remove duplicate
      	  test, const.
      
      2001-01-13  Jody Goldberg <jgoldberg@home.com>
      
      	* src/item-grid.c (item_grid_draw) : rewrite.
      
      	* src/sheet-control-gui.c (sheet_view_redraw_cell_region) : make the
      	  borders wider.
      
      	* src/commands.c (cmd_format) : if there are no borders there is no
      	  need to save the surroundings.
      
      	* src/selection.c (selection_contains_colrow) : const
      
      	* src/sheet-style.c (get_style_row) : Fix stupidity.
      	(style_row) : ditto.
      
      2001-01-12  Jody Goldberg <jgoldberg@home.com>
      
      	* src/cell-draw.c (cell_draw) : const.
      
      	* src/pattern.c (gnumeric_background_set_gc) : const.
      	(gnumeric_background_set_pc) : const.
      
      	* src/sheet-control-gui.c (sheet_view_selection_ant) : No more 'grid'
      	  argument.
      
      	* src/item-grid.c : privatize the structure in preparation for panes.
      
      	* src/item-edit.c (entry_create_feedback_range) : no more grid
      	  argument.  Use scg instead.
      	(item_edit_set_arg) : ditto.
      
      	* src/item-cursor.c (item_cursor_set_arg) : delete the GRID argument
      	  it was useless.
      
      	* src/gnumeric-sheet.c (start_cell_selection_at) : Avoid casting the
      	  result of a function call.  Remove setting 'Grid' deleted argument.
      	(gnumeric_sheet_new) : No more Grid argument.
      
      	* src/preview-grid.c (preview_grid_draw_border) : moved here from
      	  item-grid.
      925863b2
  16. 31 Dec, 2000 1 commit
  17. 27 Apr, 2000 1 commit
    • Jody Goldberg's avatar
      Improve versioning. Fix a few bugs. · 2c8b64d0
      Jody Goldberg authored
      Improve versioning.
      Fix a few bugs.
      
      2000-04-26  Jody Goldberg <jgoldberg@home.com>
      
      	* src/command-context.c (gnumeric_error_sys_err) : New function.
      	* src/command-context-gui.c (ccg_error_sys_err) : Support it.
      
      	* src/gnumeric-util.c (gnumeric_glade_xml_new) : Use gnumeric_error_sys_err.
      
      	* src/gutils.c (gnumeric_sys_{data,lib,glade,plugin)_dir) : New functions.
      	(gnumeric_usr_dir, gnumeric_usr_plugin_dir) : New functions.
      
      	* src/plugin.c (load_all_plugins) : Use
      	  gnumeric_usr_plugin_dir, and  gnumeric_sys_plugin_dir.
      
      	* src/item-edit.c (point_is_inside_range) : Handle non-singleton
      	  expr start characters.
      
      2000-04-25  Jody Goldberg <jgoldberg@home.com>
      
      	* *.c : glade_new_xml -> gnumeric_glade_new_xml
      	  Localize GNUMERIC_GLADEDIR so that plugins can use it too.
      
      	* src/gnumeric-util.c (gnumeric_glade_xml_new) : New function.
      
      	* */Makefile.am : Set 'DATADIR' rather than GLADEDIR.  And version
      	  the glade file the same way the plugins are set.  This should
      	  probably expand to include architecture akin to gcc.
      
      	* src/widgets/widget-editable-label.c (el_button_press_event) :
      	  Clicking in another window accepts the changes.  Once we have
      	  reliquished our grab push the button event back on the queue
      	  so that it can be forwarded on to the appropriate recipient (9007).
      
      	* src/parse-util.c (parse_text_value_or_expr) : Watch for 1 character
      	  strings which could start an expression.
      2c8b64d0
  18. 25 Apr, 2000 1 commit
    • Jody Goldberg's avatar
      Add the rest of the patterns for applix. · fd24941c
      Jody Goldberg authored
      
      2000-04-25  Jody Goldberg <jgoldberg@home.com>
      
      	* src/pattern.c (gnumeric_sheet_patterns) : Add the rest of the
      	  patterns for applix.
      
      	* src/dialogs/cell-format.glade : Add all of the new patterns.
      	* src/dialogs/dialog-cell-format.c : Ditto.
      fd24941c
  19. 24 Apr, 2000 1 commit
    • Jody Goldberg's avatar
      Rename ea_status -> selection_descriptor Moved ea_entry here and called it · c2687829
      Jody Goldberg authored
      
      2000-04-24  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-private.h : Rename ea_status -> selection_descriptor
      	Moved ea_entry here and called it edit_line.
      	* src/workbook.c (workbook_get_entry) : new routine.
      
      	* src/dialogs/function-select.glade : Made this a dialog, not a popup.
      
      	* src/summary.c (summary_item_free) : format police.
      	* src/value-sheet.c (value_area_foreach) : Ditto.
      
      	* src/sheet.c (sheet_new) : Init the update flags to FALSE, rather
      	  than TRUE now that the system seems to be getting their initial
      	  state correct when importing, paging and the like.
      	(sheet_load_cell_val) : Use workbook_get_entry.
      	(sheet_find_boundary_horizontal) : format police.
      	(sheet_find_boundary_vertical) : Ditto.
      	(sheet_range_splits_array) : Ditto.
      	(sheet_delete_{cols,rows}) : Ditto.
      	(sheet_restore_row_col_sizes) : Ditto.
      	(sheet_col_get_distance_{pixels,pts}) : Ditto.
      	(sheet_row_get_distance_pixels) : Ditto.
      	(sheet_row_get_distance_pts) : Ditto, Init accumulator.
      
      	* src/selection.c (sheet_selection_set) : format police.
      	(selection_check_for_array) : Ditto.
      	(sheet_selection_walk_step) : Ditto.
      	* src/sheet-view.c (horizontal_scroll_event) : Ditto.
      	(vertical_scroll_event) : Ditto.
      	* src/dialogs/dialog-cell-format.c : Ditto.
      	* src/dialogs/dialog-printer.c : Ditto.
      	* src/dialogs/dialog-workbook-attr.c : Ditto.
      	* src/functions/fn-eng.c : Ditto.
      	* src/functions/fn-lookup.c : Ditto.
      	* src/functions/fn-string.c : Ditto.
      
      	* src/pattern.c (gnumeric_sheet_patterns) : Add a few patterns for
      	  applix.  More are needed, and these are not available in the format
      	  dialog yet.
      
      	* src/number-match.c (compute_value) : Use g_strtod.
      	(format_match) : Ditto.
      
      	* src/item-edit.c : Use workbook_get_entry.
      
      	* src/item-bar.c (item_bar_event) : format police.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet) : Do not set
      	  the focus directly.  Leave that to workbook_start_editing.
      	(gnumeric_sheet_new) : Use workbook_get_entry.
      
      	* src/format.c (render_number) : format police.
      
      	* src/complex.c (complex_from_string) : Use g_strtod.
      	* src/functions/fn-database.c : Ditto.
      
      	* src/colrow.c (cb_row_col_visibility) : format police.
      
      	* src/main.c (gnumeric_main) : Move the workbook_style_test to the
      	  empty case.
      
      	* src/mstyle.c (mstyle_set_pattern) : Add some safety.
      
      	* src/number-match.c (format_match) : Handle empties.
      c2687829
  20. 01 Mar, 2000 1 commit
    • Jody Goldberg's avatar
      Support underlining of text. · b23d8630
      Jody Goldberg authored
      2000-02-29  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-format-toolbar.c (change_selection_font) : Add underline.
      	(underline_cmd) : New function.
      	(workbook_format_toolbar) : Add underline.
      	(workbook_feedback_set) : Ditto.
      
      	* src/xml-io.c (xml_read_style) : Restore underline style.
      	(xml_write_style) : Save the underline style.
      
      	* src/pattern.c (gnumeric_background_set_pc) : suppress warning.
      
      	* src/mstyle.[ch] : Add MSTYLE_FONT_UNDERLINE.
      	(mstyle_get_font_uline) : New function.
      	(mstyle_set_font_uline) : New function.
      
      	* src/cell-draw.c (draw_text) : new function to add underlines.
      	(draw_overflow) : Use draw_text.
      	(cell_draw) : Ditto.
      
      	* src/gnumeric.h : Add StyleUnderlineType.
      
      	* gnumeric.spec.in : Update the requirements.
      b23d8630
  21. 29 Feb, 2000 1 commit
    • 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
  22. 13 Feb, 2000 3 commits
    • Jody Goldberg's avatar
      By popular demand grid lines now show through. · 67018e4a
      Jody Goldberg authored
      2000-02-13  Jody Goldberg <jgoldberg@home.com>
      
      	* src/item-grid.c (item_grid_paint_empty_cell) : paint the selection
      	  rectangle EXCLUDING the grid lines when selected.
      
      	* src/cell-draw.c (cell_draw) : Ditto.
      
      	* src/pattern.c (gnumeric_background_set_gc) : return FALSE if there
      	  is no pattern even if the cell is selected.
      67018e4a
    • Jody Goldberg's avatar
      Clarify that the measurements are in pixels. · b0141d7c
      Jody Goldberg authored
      
      2000-02-13  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-view.c (workbook_view_set_size) : Clarify that the
      	  measurements are in pixels.
      
      	* src/sheet-view.c (sheet_view_redraw_cell_region) : redraw the
      	  bounding grid lines too.
      
      	* src/item-cursor.c (item_cursor_get_pixel_coords) : Clip the cursor
      	  region to the visible range.  The layout still needs cleaning to
      	  match the 'correct' way of implementing canvas-items, but this
      	  heuristic saves us lots of iterations through the accumulator for
      	  the size of the entire sheet.
      b0141d7c
    • Jody Goldberg's avatar
      Major rationalization of pts vs pixels and the use of margins. · b6d04cff
      Jody Goldberg authored
      Some redraw speedups and the addition of XL2000 style alpha bended selections.
      
      2000-02-13  Jody Goldberg <jgoldberg@home.com>
      
      	* ./src/sheet-view.c (sheet_view_redraw_cell_region) : redraw the
      	  bounding grid lines too.
      
      	* src/item-cursor.c (item_cursor_get_pixel_coords) : Clip the cursor
      	  region to the visible range.  The layout still needs cleaning to
      	  match the 'correct' way of implementing canvas-items, but this
      	  heuristic saves us lots of iterations through the accumulator for
      	  the size of the entire sheet.
      
      2000-02-12  Jody Goldberg <jgoldberg@home.com>
      
      	* src/gnumeric-sheet.c : Use visible flag and adjust to naming and
      	  margin changes.
      
      	* src/item-bar.c (colrow_tip_setlabel) : Use the format provided by
      	  XL2000.  Things are correct for rows, colwidth are quoted in pts
      	  rather than char widths.
      	(get_col_from_pos) : Use visible flag.
      	(item_bar_start_resize) : Function renaming.
      	(is_pointer_on_division) : Ditto.
      	(item_bar_draw) : Changes to margins.
      
      	* src/item-edit.c : Function renaming.
      	* src/item-cursor.c : Ditto.  decrease spacing for auto handle.
      
      	* src/item-grid.c (item_grid_draw) : Remove inversion process for the
      	  selection.  Instead have the cells draw their background
      	  differently.  Use the visible flag.
      	(item_grid_paint_empty_cell) : Ditto.
      	(item_grid_paint_cell) : Ditto.
      
      	* src/mstyle.c (mstyle_new_default) : The default vert alignment is BOTTOM.
      
      	* src/pattern.c (gnumeric_background_set_gc) : Draw the background of
      	  a selected cell differently.
      
      	* src/print-cell.c (DIM) : margins are already included.
      	(print_cell_text) : Adjust argument order to more closely match
      	  cell_draw.  Add support for vertical alignment of 1 line cells.
      	  Invert control of single vs multiple lines.
      	(print_cell) : Adjust to changes in the arguments.
      	(print_cell_range) : Use the visible flag.
      	  Draw line at the boundary rather than pretending there were
      	  additional rows/cols.
      
      	* src/print.c (compute_groups) : size_pts INCLUDES margins.  Use 'visible' flag.
      	(print_page) : Adjust to function renaming.
      	(print_range_used_units) : Ditto.
      
      	* src/selection.c : Include sheet-view directly for now.
      	(cb_set_row_height) : Adjust to function renaming.
      
      	* src/sheet-view.c (sheet_view_redraw_cell_region) : Adjust to function
      	  renaming.
      	(sheet_view_redraw_headers) : Ditto.
      	(sheet_view_set_zoom_factor) : Ditto.
      	(sheet_view_col_size_changed) : Ditto.
      	(sheet_view_row_size_changed) : Ditto.
      	(sheet_view_comment_get_points) : Ditto.
      
      	* src/sheet.[ch] : Rationalize function names, and add glossary.
      	Make the use of margins and sizes (in points and pixels) consistant.
      
      	(sheet_col_get_external_width : Delete.
      	(sheet_row_get_external_height : Delete.
      	(sheet_col_get_distance : Rename sheet_col_get_distance_pixels.
      	(sheet_row_get_distance : Rename sheet_row_get_distance_pixels.
      	(sheet_row_get_unit_distance : Rename sheet_row_get_distance_pts.
      	(sheet_col_get_unit_distance : Rename sheet_col_get_distance_pts.
      	(sheet_col_set_width : Rename sheet_col_set_size_pixels.
      	(sheet_col_set_width_units : Rename sheet_col_set_size_pts.
      	(sheet_row_set_height : Rename sheet_row_set_size_pixels.
      	(sheet_row_set_height_units) : Rename sheet_row_set_size_pts.
      	(sheet_get_default_external_col_width) : Rename sheet_col_get_default_size_pts.
      	(sheet_get_default_external_row_height): Rename sheet_row_get_default_size_pts.
      	(sheet_col_set_internal_width) : sheet_col_set_internal_size_pts.
      	(sheet_row_set_internal_height): sheet_row_set_internal_size_pts.
      	(sheet_{row,col}_set_default_size_pts) : New functions.
      
      	(sheet_init_default_styles) : Tune to match XL defaults.
      
      	* src/sort.c : Use g_strcasecmp, and include <stdlib.h>
      
      	* src/style.c (style_color_new) : Init the selection colour as a 50%
      	  alpha blend with lavender.
      
      	* src/style.h : Change default font to be Helvetica 9 because it will
      	  scale better when the standard 96 dpi resolution is assumed.
      	  Add a selected_color to StyleColor.
      
      	* src/value-sheet.c : Include <gnome.h> to get the
      	  internationalization support.
      
      	* src/workbook-cmd-format.c (workbook_cmd_format_column_auto_fit) :
      	  sheet_col_set_width -> sheet_col_set_size_pixels.
      	(workbook_cmd_format_column_width) :
      	  sheet_col_set_width_units -> sheet_col_set_size_pts.
      	(workbook_cmd_format_row_auto_fit) :
                sheet_row_set_height -> sheet_row_set_size_pixels
      	(workbook_cmd_format_row_height) :
      	  sheet_row_set_height_units -> sheet_row_set_size_pts.
      
      	* src/xml-io.c (xml_read_rows_info) : Rename
      	  sheet_row_set_height_units -> sheet_row_set_size_pts.
      	(xml_read_cols_info) : Rename
      	  sheet_col_set_height_units -> sheet_col_set_size_pts.
      	(xml_read_colrow_info) : Remove hack with negative pixels.
      	  Use 'visible' flag instead.
      	(xml_write_colrow_info) : Ditto.
      b6d04cff
  23. 02 Jan, 2000 1 commit
  24. 10 Nov, 1999 1 commit
  25. 05 Nov, 1999 1 commit
  26. 04 Nov, 1999 1 commit