1. 11 Feb, 2002 1 commit
    • Jon K Hellan's avatar
      Support per sheet grid color. Needed for correct XL import. · 91dc6f19
      Jon K Hellan authored
      2002-02-11  Jon K Hellan  <hellan@acm.org>
      
      	Support per sheet grid color. Needed for correct XL import.
      
      	* src/style-color.[ch] (color_equal): Rename to style_color_equal
      	and export.
      
      	* src/style-border.[ch] (style_border_none_set_color): New
      	function. Update the grid color (color of style border none) to
      	the given color.
      
      	* src/sheet-style.[ch] (sheet_style_update_grid_color): New
      	function. Update the grid color to fit the given sheet.
      
      	* src/item-grid.c (item_grid_draw): Call
      	sheet_style_update_grid_color before rendering.
      
      	* src/print-cell.c (print_cell_range): Ditto
      
      	* src/preview-grid.c (preview_grid_draw): Call
      	style_border_none_update_color before rendering.
      91dc6f19
  2. 23 Jan, 2002 1 commit
  3. 14 Jan, 2002 1 commit
  4. 21 Dec, 2001 1 commit
  5. 07 Dec, 2001 1 commit
    • Jody Goldberg's avatar
      new. (sheet_colrow_insert_finish) : new. (sheet_colrow_delete_finish) : · d5d25622
      Jody Goldberg authored
      2001-12-06  Jody Goldberg <jody@gnome.org>
      
      	* src/sheet.c (sheet_colrow_set_collapse) : new.
      	(sheet_colrow_insert_finish) : new.
      	(sheet_colrow_delete_finish) : new.
      	(sheet_{col,row}_{ins,del} : use them here, we shoulw now correctly
      	  handle collapse states and gutters when ins/del cols/row.
      
      2001-12-06  Jody Goldberg <jody@gnome.org>
      
      	* src/sheet.c (sheet_colrow_gutter) : change signature and toggle the
      	  resize flag if necessary.
      	(sheet_update_only_grid) : handle the resize and
      	  recompute_max_{col,row}_group flags.
      
      	* src/colrow.c (colrow_set_states) : use simplified
      	  sheet_colrow_gutter signature.
      
      2001-12-06  Jody Goldberg <jody@gnome.org>
      
      	* src/workbook-cmd-format.c (sheet_dialog_set_row_height) : const.
      
      	* src/workbook-object-toolbar.c : disable some code that is not ready
      	  for release.
      
      	* src/sheet.c (sheet_colrow_insdel_finish) : new.
      	(sheet_{col,row}_{ins,del} : use it here, and adjust the arguments to
      	  include optional state to fill in the new cols/rows.
      	(sheet_colrow_fit_gutter) : simplify.
      	(sheet_colrow_group_ungroup) : ditto.
      	(sheet_colrow_fetch) : new utility.
      	(sheet_colrow_get_info) : ditto.
      
      	* src/sheet-control-gui.c (scg_setup_group_buttons) : new.
      	(scg_resize) : use it here.
      	(sheet_control_gui_new) : handle the layout for the group buttons.
      
      	* src/print.c (compute_group) : const.
      
      	* src/item-grid.c (item_grid_draw) : remove pointless use of
      	  ColRowInfo::pos because I want to remove that eventually.
      	* src/print-cell.c (print_cell_range) : ditto.
      
      	* src/item-bar.c (item_bar_normal_font) : new.
      	(item_bar_indent) : new.
      	(item_bar_draw) : draw the top line as black, to match other buttons,
      	 fix its length.
      
      	* src/history.c (history_menu_locate_separator) : sync with manu
      	  changes.
      
      	* src/gnumeric.h
      	(ColRowStateGroup) : rename from ColRowSizeList.
      	(ColRowStateList) : rename from ColRowRLESizeList.
      
      	* src/gnumeric-canvas.c (gnm_canvas_find_col) : const.
      
      	* src/complete-sheet.c (complete_sheet_search_iteration) : const.
      
      	* src/commands.c (cmd_ins_del_colrow_undo) : pass the states into the
      	  sheet_ routines.  They will handle restoring them, and cleaning up the
      	  collapse states.
      	(cmd_ins_del_colrow_redo) : ditto.
      	(cmd_ins_del_colrow_destroy) : simplify.
      	(cmd_colrow_outline_change) : use get_info and avoid the need to check
      	  for NULL.
      	(cmd_group_undo) : simplify.
      	(cmd_group_redo) : ditto.
      	(cmd_group) : simplify.
      
      	* src/colrow.c (colrow_compute_pixels_from_pts) : move here from
      	  sheet.c
      	(colrow_compute_pts_from_pixels) : ditto.
      	(colrow_is_default) : new utility routine so that we can remove ::pos
      	  eventually.
      	(ColRowState) : new struct, will eventually replace the ColRowInfo.
      	(colrow_make_state) : new.
      	(colrow_get_states) : renamed from colrow_save_sizes and add support
      	  for outline levels and collapse state.
      	(colrow_set_sizes) : use the correct aliases for the lists.
      	(colrow_set_states) : renamed from colrow_restore_sizes and support
      	  the extra state info.
      	(colrow_restore_state_group) : rename colrow_restore_sizes_group.
      	(colrow_set_outline) : simplify.
      
      2001-12-05  Jody Goldberg <jody@gnome.org>
      
      	* src/colrow.c (colrow_state_group_destroy) : rename from
      	colrow_rle_size_list_destroy.
      
      	* src/cellspan.c (cell_calc_span) : const.
      
      2001-11-29  Jody Goldberg <jody@gnome.org>
      
      	* src/sheet-control-gui.c (scg_resize) : size the select all button.
      
      	* src/item-bar.c (item_bar_indent) : new utility.
      d5d25622
  6. 28 Nov, 2001 1 commit
    • Jody Goldberg's avatar
      minor tweaks. sync with drawing code. · cceeae7c
      Jody Goldberg authored
      2001-11-27  Jody Goldberg <jgoldberg@home.com>
      
      	* src/item-grid.c (item_grid_draw) : minor tweaks.
      	* src/print-cell.c (print_cell_range) : sync with drawing code.
      cceeae7c
  7. 15 Nov, 2001 1 commit
    • Jody Goldberg's avatar
      simplify. No resize if there is a guru, or we are editing. (ib_set_cursor) · 66176ca9
      Jody Goldberg authored
      2001-11-15  Jody Goldberg <jgoldberg@home.com>
      
      	* src/item-bar.c (is_pointer_on_division) : simplify.  No resize if
      	  there is a guru, or we are editing.
      	(ib_set_cursor) : no need to be fancy, is_pointer_on_division
      	  does the majority of the work now.
      	* src/item-bar.c (item_bar_event) : ditto.
      
      	* src/cell-draw.c (cell_split_text) : split at hyphens.
      	* src/print-cell.c (cell_split_text) : ditto.
      	* src/rendered-value.c (rendered_value_calc_size_ext) : ditto.
      66176ca9
  8. 19 Sep, 2001 1 commit
    • Jody Goldberg's avatar
      off by 1. off by 1. · 3e99c7f9
      Jody Goldberg authored
      2001-09-19  Jody Goldberg <jgoldberg@home.com>
      
      	* src/cell-draw.c (cell_draw) : off by 1.
      	* src/print-cell.c (print_cell) : off by 1.
      
      	* src/sheet.c (sheet_cell_calc_span) : support SPANCALC_NO_DRAW
      	  and don't bother rendering calculated cells.
      	(cb_max_cell_width) : render if necessary.
      3e99c7f9
  9. 18 Sep, 2001 1 commit
  10. 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
  11. 24 Aug, 2001 1 commit
    • Chyla Zbigniew's avatar
      Replace mega-include <gnome.h> with something smaller. · ac93e10a
      Chyla Zbigniew authored
      * src/analysis-tools.c, src/application.c, src/bonobo-io.c,
      src/clipboard.c, src/cmd-edit.c, src/command-context.c,
      src/commands.c, src/corba-args.c, src/corba-workbook-factory.c,
      src/dates.c, src/dialogs/dialog-about.c,
      src/dialogs/dialog-advanced-filter.c,
      src/dialogs/dialog-analysis-tools.c, src/dialogs/dialog-autocorrect.c,
      src/dialogs/dialog-autoformat.c, src/dialogs/dialog-autosave.c,
      src/dialogs/dialog-cell-comment.c, src/dialogs/dialog-cell-format.c,
      src/dialogs/dialog-cell-sort.c, src/dialogs/dialog-consolidate.c,
      src/dialogs/dialog-define-names.c, src/dialogs/dialog-delete-cells.c,
      src/dialogs/dialog-function-wizard.c, src/dialogs/dialog-goal-seek.c,
      src/dialogs/dialog-goto-cell.c, src/dialogs/dialog-graph-guru.c,
      src/dialogs/dialog-insert-cells.c, src/dialogs/dialog-paste-special.c,
      src/dialogs/dialog-plugin-manager.c,
      src/dialogs/dialog-printer-setup.c,
      src/dialogs/dialog-search-replace.c, src/dialogs/dialog-sheet-order.c,
      src/dialogs/dialog-simple-input.c, src/dialogs/dialog-solver.c,
      src/dialogs/dialog-stf-export-private.h,
      src/dialogs/dialog-stf-export-sheet-page.c,
      src/dialogs/dialog-stf-export.c, src/dialogs/dialog-stf-preview.h,
      src/dialogs/dialog-stf.c, src/dialogs/dialog-stf.h,
      src/dialogs/dialog-summary.c, src/dialogs/dialog-validate.c,
      src/dialogs/dialog-workbook-attr.c, src/dialogs/dialog-zoom.c,
      src/dialogs/utils-dialog.c, src/expr-name.c, src/expr.c,
      src/file-autoft.c, src/format-template.c, src/format.c, src/formats.c,
      src/func.c, src/global-gnome-font.c, src/gnumeric-util.h,
      src/gui-clipboard.c, src/gui-file.c, src/gui-gnumeric.h, src/gutils.c,
      src/history.c, src/item-bar.c, src/item-cursor.c, src/item-debug.c,
      src/main.c, src/normal-args.c, src/number-match-test.c,
      src/number-match.c, src/parse-util.c, src/parser.y, src/pattern.h,
      src/preview-grid.c, src/print-cell.c, src/print-info.c, src/print.c,
      src/search.c, src/selection.c, src/sheet-autofill.c,
      src/sheet-merge.c, src/sheet-object-bonobo.c,
      src/sheet-object-container.c, src/sheet-object-graphic.c,
      src/sheet-object-item.c, src/sheet-object-widget.c,
      src/sheet-object.c, src/sheet.c, src/stf-parse.h, src/stf.c,
      src/style-color.c, src/style.c, src/test-format.c, src/value-sheet.c,
      src/value.c, src/widgets/gnumeric-dashed-canvas-line.h,
      src/widgets/gnumeric-hscrollbar.c, src/widgets/gnumeric-toolbar.c,
      src/widgets/gnumeric-vscrollbar.c,
      src/widgets/widget-editable-label.c,
      src/widgets/widget-font-selector.c, src/workbook-cmd-format.c,
      src/workbook-control.c, src/workbook-format-toolbar.c,
      src/workbook-object-toolbar.c, src/workbook-private.h,
      src/xml-io-autoft.c, src/xml-io.c:
      Replace mega-include <gnome.h> with something smaller.
      ac93e10a
  12. 14 Aug, 2001 1 commit
    • Lutz Müller's avatar
      Use a Range as parameter instead of four ints Same here. In addition, · d4ab6c71
      Lutz Müller authored
      2001-08-14  Lutz Müller <urc8@rz.uni-karlsruhe.de>
      
              * src/print-cell.[c,h] (print_cell_range): Use a Range as parameter
              instead of four ints
              * src/print.c (print_titles), (print_sheet_objects), (print_page_cells),        (print_page): Same here. In addition, adjust calls to these functions
              all over the place.
      d4ab6c71
  13. 05 Jul, 2001 1 commit
    • Jody Goldberg's avatar
      Initial support for frozen panes. · 99073bd9
      Jody Goldberg authored
      2001-07-04  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-merge.c (sheet_merge_add) : Use sheet_redraw_range.
      
      	* src/sheet-control.c (sc_set_panes) : new virtual.
      	(sc_set_sheet) : renamed from sc_invalidate_sheet.
      
      	* src/sheet-control-gui.c (scg_primary_pane) : new function. Be very
      	  careful when using this.  It should not be necessary in most cases.
      	(scg_get_wbcg) : convenience routine.
      	(scg_redraw_all) : frozen panes.
      	(scg_redraw_region) : renamed from scg_redraw_cell_region, and frozen
      	  pane support.
      	(scg_redraw_headers) : merge in the code from gnumeric-sheet.
      	(scg_update_cursor_pos) : pane support.
      	(scg_resize) : ditto.
      	(scg_set_zoom_factor) : ditto.  Broken. needs to resize the panes.
      	(scg_scrollbar_config) : adjust to panes.
      	(scg_make_edit_pos_visible) : use scg_make_cell_visible.
      	(scg_colrow_select) : reorg a bit.
      	(vertical_scroll_offset_changed) : adjust to panes.
      	(horizontal_scroll_offset_changed) : ditto.
      	(cb_table_destroy) : ditto.
      	(scg_init) : init the top here.
      	(bar_set_left_col) : from gnumeric-sheet. Still needs work for panes.
      	(bar_set_top_row) : ditto.
      	(gnumeric_sheet_set_left_col) : ditto.
      	(gnumeric_sheet_set_top_row) : ditto.
      	(scg_set_left_col) : TODO.
      	(scg_set_top_row) : ditto.
      	(gnumeric_sheet_set_top_left) : new function split from.
      	(gnumeric_sheet_make_cell_visible) : here.
      	(scg_make_cell_visible) : adjsut to panes and do the real work here.
      	(scg_make_cell_visible_virt : wrapper for use as virtual.
      	(gnumeric_pane_new) : new function.
      	(gnumeric_pane_delete) : ditto.
      	(scg_set_panes) : ditto.
      	(scg_construct) : move the table attachments around and move the
      	  canvas groups into the panes.
      	(sheet_control_gui_new) : beef this up.
      	(scg_unant) : adjust to panes.
      	(scg_ant) : ditto.
      	(scg_cursor_visible) : ditto.
      	(scg_cursor_bound) : ditto.
      	(scg_adjust_preferences) : ditto.
      	(scg_compute_visible_region) : ditto.
      	(scg_create_editor) : ditto.
      	(scg_stop_editing) : ditto.
      	(scg_take_focus) : ditto.
      	(scg_sliding_callback) : adjust top panes, but is still much too
      	  stupid.
      	(scg_start_sliding) : ditto.
      	(cb_slide_handler) : ditto.
      	(cb_control_point_event) : ditto.
      	(new_control_point) : ditto.
      	(set_item_x_y) : ditto.
      	(set_acetate_coords) : ditto.
      	(scg_object_calc_position) : ditto.
      	(scg_object_view_position) : ditto.
      	(scg_rangesel_changed) : ditto.
      	(scg_rangesel_start) : ditto.
      	(scg_rangesel_stop) : ditto.
      	(scg_rangesel_move) : ditto.
      	(scg_rangesel_extend) : ditto.
      
      	* src/item-grid.c (sheet_object_begin_creation) : Use the group
      	  associated with the gsheet, not the scg, and use GNUMERIC_IS_SHEET
      	  in preference to != NULL.
      
      	* src/item-bar.c : Store the gnumeric-sheet rather than the scg so
      	  that we can get to the Pane.
      
      	* src/embeddable-grid.c (grid_view_activate) : Use scg_take_focus.
      	(grid_view_new) : Use sheet_control_gui_new in place of sheet_new_scg.
      
      	* convert to E_MAKE_TYPE
      	* Use IS_SHEET in preference to sheet != NULL
      	* sheet_range_calc_spans signature change
      
      	* src/clipboard.c (clipboard_paste_region) : special handling when
      	  pasting into a selection that consists of a single merged cell.
      
      	* src/application.c (application_set_selected_sheet) : Use IS_SHEET.
      	(application_clipboard_copy) : ditto.
      	(application_clipboard_cut) : ditto.
      
      	* src/Makefile.am :
      	    command-context-corba -> workbook-control-corba
      
      	* src/sheet.c : convert to using IS_SHEET in place of sheet != NULL in
      	  several places.
      	(sheet_is_frozen) : new function.
      	(sheet_freeze_panes) : implement.
      	(sheet_new) : init frozen pane data.
      	(sheet_range_calc_spans) : pass a pointer rather than copy of the range.
      	  and use sheet_redraw_range.
      	(sheet_apply_style) : use sheet_redraw_range.
      	(cb_sheet_get_extent) : premature optimization is evil.
      	(sheet_redraw_region) : rename from sheet_redraw_cell_region.
      	(sheet_set_edit_pos) : use sheet_redraw_range.
      	(sheet_move_range) : ditto.
      	(sheet_init_sc) : new routine.
      	(sheet_attach_control) : rename and task from sheet_new_scg.
      	(sheet_redraw_region) : renamed from sheet_redraw_cell_region.
      
      	* src/item-cursor.c (item_cursor_update) : increase the spacing for
      	  the autohandle.
      
      	* src/GNOME_Gnumeric.xml :
      	  - Use Control*colon and Control*semicolon
      	  - desensitize the graph guru for now.
      	  - Add freeze/thaw
      
      	* src/item-bar.c (item_bar_unrealize) : no need to double unref the
      	  fonts.
      
      	* src/print-cell.c (print_merged_range) : This is not being drawn on
      	  the screen, no need for all the fancy calcs to only draw the visible
      	  bits.  We will just clip it.
      	* src/print-cell.c (print_cell) : Use the calulated width, not the col
      	  width for splitting.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet) : Use the scg_
      	  versions of things in preference to the gnumeric_sheet_ versions.
      	(gnumeric_sheet_new) : Store the Pane that this is associated with.
      	(gnumeric_sheet_bar_set_top_row) : moved to sheet-control-gui.c
      	(gnumeric_sheet_set_top_row) : ditto.
      	(gnumeric_sheet_bar_set_left_col) : ditto.
      	(gnumeric_sheet_set_left_col) : ditto.
      	(gnumeric_sheet_make_cell_visible) : ditto.
      	(gsheet_compute_visible_region) : handle panes.
      99073bd9
  14. 14 May, 2001 1 commit
  15. 30 Apr, 2001 1 commit
    • 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
  16. 26 Apr, 2001 1 commit
    • 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
  17. 13 Mar, 2001 1 commit
    • Jody Goldberg's avatar
      For Vlad Harchev <hvv@hippo.ru> · e63be68c
      Jody Goldberg authored
      2001-03-12  Jody Goldberg <jgoldberg@home.com>
      	For  Vlad Harchev <hvv@hippo.ru>
      
      	* widget-editable-label.c (editable_label_set_text) :
      	  Use colours from Style.
      
      2001-03-12  Jody Goldberg <jgoldberg@home.com>
      	For  Vlad Harchev <hvv@hippo.ru> :
      
      	* src/item-bar.c (item_bar_realize) :  Use colours from Style.
      e63be68c
  18. 24 Feb, 2001 1 commit
    • Jody Goldberg's avatar
      reorder to handle unmerging directly. (cmd_merge_cells_undo) : ditto. · ab441bef
      Jody Goldberg authored
      
      2001-02-23  Jody Goldberg <jgoldberg@home.com>
      
       	* src/commands.c (cmd_merge_cells_redo) : reorder to handle unmerging
       	  directly.
       	(cmd_merge_cells_undo) : ditto.
       	(CmdMergeCells) : no need to inherit from CmdUnmergeCells.
       	(cmd_unmerge_cells_redo) : merge the 'internal' versions.
       	(cmd_unmerge_cells_undo) : merge the 'internal' versions.
      
      2001-02-22  Jody Goldberg <jgoldberg@home.com>
      
      	* src/style-border.c (style_border_vmargins) : remove unnecessary
      	  reference to next_sr.  sr.bottom == next_sr.top
      	  For normal borders horizontal always dominates vertical.
      	(style_border_hmargins) : Only cut corners for doubles if the corner
      	  is a double.
      
      	* src/sheet.c (sheet_cursor_set_full) : new function.
      
      	* src/selection.c (sheet_selection_set_internal) : Use it here.
      	  The trick is that when extending a selection to include merged cells
      	  it is possible that the edit cell is neither the base nor the move
      	  col/row.  When you then shrink the selection to the pre-extended
      	  state, without the merged region, you have lost track of the corner
      	  and can easily loose the edit_position.
      
      	* src/workbook-format-toolbar.c (toggled_from_toolbar) : delete this
      	  ugliness.  We don't need it anymore.
      
      2001-02-20  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-control-gui.c (wbcg_ui_update_begin) : new utility
      	(wbcg_ui_update_end) : new utility
      
      	* src/workbook-format-toolbar.c (workbook_feedback_set) : Use them
      	  here.
      	(workbook_format_halign_feedback_set) : update center-across-selection
      	  in the bonobo case.
      	(do_modify_format) : rewrite to use the format from the edit cell and
      	  to support undo.
      
      	* src/format.c (format_toggle_thousands) : delete.
      
      2001-02-23  Jody Goldberg <jgoldberg@home.com>
      
      	* configure.in : post release version bump to 0.64.
      ab441bef
  19. 23 Feb, 2001 2 commits
  20. 20 Feb, 2001 1 commit
    • Jody Goldberg's avatar
      More polish for indents. · c7e7c66b
      Jody Goldberg authored
      Improve undo descriptions for formating.
      
      2001-02-19  Jody Goldberg <jgoldberg@home.com>
      
      	* src/commands.c (cmd_format) : Optionally supply a name.
      
      	* src/cell-draw.c (cell_draw) : numbers with indents turn to hashes
      	  too.  Hmm, I do not like the hash marks.
      
      	* src/print-cell.c (print_cell) : merge in the indent code.
      c7e7c66b
  21. 18 Feb, 2001 1 commit
    • Jody Goldberg's avatar
      s/display_zero/hide_zero/ + necessary logic inversions · a8dc5b30
      Jody Goldberg authored
      
      2001-02-18  Jody Goldberg <jgoldberg@home.com>
      
      	s/display_zero/hide_zero/		+ necessary logic inversions
      	s/show_grid/hide_grid/			+ necessary logic inversions
      	s/show_col_header/hide_col_header/	+ necessary logic inversions
      	s/show_row_header/hide_row_header/	+ necessary logic inversions
      	s/wb_control_paste_special_enable/wb_control_menu_state_paste_special/
      	s/wbcg_paste_special_enable/wbcg_menu_state_paste_special/
      
      	* src/workbook-format-toolbar.c (workbook_format_toolbutton_update) :
      	  Simplfy and use wbcg::updating_ui.
      	(workbook_format_halign_feedback_set) : use simplified interface.
      	(workbook_feedback_set) : Ditto.
      	(set_selection_halign) : If the current alignment is already set to
      	  the target type revert to general.
      
      	* src/preview-grid.c (preview_grid_draw) : cell_draw::h_center
      	  will default to width / 2.
      	* src/item-grid.c (item_grid_draw_merged_range) : Ditto.
      	(item_grid_draw) : Ditto.
      
      	* src/print-cell.c (print_cell) : print_cell::h_center
      	  will default to width / 2.
      	(print_merged_range) : Ditto.
      	(print_cell_range) : Ditto.
      
      	* src/sheet.c (sheet_adjust_preferences) : Update the menus to reflect
      	  changes in prefs.  Take a flag to control redraw requests.
      	(sheet_menu_state_enable_insert) : new function.
      
      	* src/workbook-control-gui.c (wbcg_menu_state_enable_insert) : Merge
      	  all the insert col/row/cell menu updates into here.
      	(wbcg_menu_state_sheet_prefs) : new function.
      	(cb_sheet_pref_display_formulas) : reentrancy protection and use
      	  sheet_adjust_preferences.
      	(cb_sheet_pref_hide_zeros) : ditto.
      	(cb_sheet_pref_hide_grid_lines) : ditto.
      	(cb_sheet_pref_hide_col_header) : ditto.
      	(cb_sheet_pref_hide_row_header) : ditto.
      	(workbook_control_gui_init) : add the new menu items.
      	(workbook_control_gui_ctor_class) : reorg a bit.
      
      	src/workbook-control.c : reorg a bit.
      
      2001-02-18  Jody Goldberg <jgoldberg@home.com>
      
      	* configure.in : Make python plugin optional.
      
      2001-02-18  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-control.c (wb_control_sheet_add) : update menus here.
      
      	* src/print-cell.c (print_cell) : fix the display zero logic.
      	* src/cell-draw.c (cell_draw) : ditto.  And fix the comment.
      
      2001-02-18  Jody Goldberg <jgoldberg@home.com>
      
      	* src/cell.c (cell_default_halign) : Handle alignment of numbers
      	  correctly when displaying formulas.
      
      	* src/embeddable-grid.c (set_header_visibility) : start using our
      	  native MVC.
      	(Grid_set_header_visibility) : ditto.
      	(embeddable_grid_set_header_visibility) : delete.
      
      	* src/sheet-control-gui.c (scg_set_header_visibility) : delete.
      	(scg_adjust_preferences) : Make this contingent on having a wbcg.
      
      	* src/selection.c (sheet_selection_set_internal) : Use
      	  sheet_menu_state_enable_insert.
      	(sheet_selection_reset) : ditto.
      a8dc5b30
  22. 17 Feb, 2001 2 commits
    • Jody Goldberg's avatar
      sync print with draw · 51d90dcd
      Jody Goldberg authored
      51d90dcd
    • Jody Goldberg's avatar
      Use some code from expr.c to simplify binary/unary output and to add · e0f71b51
      Jody Goldberg authored
      2001-02-16  Jody Goldberg <jgoldberg@home.com>
      
      	* ms-formula-write.c (write_node) : Use some code from expr.c
      	  to simplify binary/unary output and to add parens when necessary.
      
      	* ms-excel-write.c (write_formula) : Start at paren level 0.
      	(write_names) : ditto.
      
      2001-02-16  Jody Goldberg <jgoldberg@home.com>
      
      	* src/dialogs/dialog-cell-format.c (fmt_dialog_init_align_page) :
      	  begin support for indenting.
      	* src/workbook-format-toolbar.c : ditto.
      
      2001-02-16  Jody Goldberg <jgoldberg@home.com>
      
      	* configure.in : post release version bump
      
      2001-02-15  Jody Goldberg <jgoldberg@home.com>
      
      	* s/fit_in_cell/wrap_text/
      	rename this in preparation for supporting shrink_to_fit
      e0f71b51
  23. 16 Feb, 2001 1 commit
    • Jody Goldberg's avatar
      Use even_if_only_styles. (print_page) : Ditto. (print_sheet) : Ditto. · f5b71727
      Jody Goldberg authored
      
      2001-02-15  Jody Goldberg <jgoldberg@home.com>
      
      	* src/print.c (compute_sheet_pages) : Use even_if_only_styles.
      	(print_page) : Ditto.
      	(print_sheet) : Ditto.
      
      	* src/xml-io.c (xml_write_print_info) : Support 'even_if_only_styles'
      	(xml_read_print_info) : Ditto.
      	* src/dialogs/dialog-printer-setup.c (do_fetch_page_info) : ditto.
      	(do_setup_page_info) : Ditto.
      	* src/print-info.c (print_info_copy) : ditto.
      	(print_info_new) : ditto.
      	(print_info_save) : ditto.
      f5b71727
  24. 12 Feb, 2001 2 commits
    • Jody Goldberg's avatar
      typo · e22fb53a
      Jody Goldberg authored
      e22fb53a
    • Jody Goldberg's avatar
      Center content on the cell with the content, not on the width of the span · b475f8f0
      Jody Goldberg authored
      
      2001-02-12  Jody Goldberg <jgoldberg@home.com>
      
      	* src/cell-draw.c (cell_draw) : Center content on the cell with the
      	  content, not on the width of the span (think about asymetric column
      	  widths on the left and right.
      	* src/print-cell.c (print_cell) : Ditto.
      
      	* src/item-grid.c (item_grid_draw) : Pass the offset from the left
      	  edge to the cell with content.
      	* src/print-cell.c (print_cell) : Ditto.
      
      2001-02-12  Jody Goldberg <jgoldberg@home.com>
      
      	* src/cell-draw.c (cell_draw) : Fence post problem.  Measure right
      	  margin as 'left + width - 1'
      	* src/print-cell.c (print_cell) : ditto.
      b475f8f0
  25. 06 Feb, 2001 2 commits
    • Jody Goldberg's avatar
      escape more characters (html_get_string) : unescape more characters. · a7949e5a
      Jody Goldberg authored
      
      2001-02-06  Jody Goldberg <jgoldberg@home.com>
      
      	* html.c (html_fprintf) : escape more characters
      	(html_get_string) : unescape more characters.
      
      2001-02-06  Jody Goldberg <jgoldberg@home.com>
      
      	* src/style-border.c (style_borders_row_draw) : init x.
      	(style_borders_row_print) : init x.
      
      	* src/print-cell.c (print_cell_range) : typo.
      a7949e5a
    • Jody Goldberg's avatar
      Sync the printing of the grid with the drawing routines. · b34287f9
      Jody Goldberg authored
      Rip out the old 'pretend to print everything to find extent'
      meachanism.  There are less expensive and simpler methods.
      
      2001-02-05  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-style.c (sheet_style_get_extent) : this should search the
      	  entire sheet, not just decrease the extent passed in.
      
      	* src/style-border.c (style_borders_row_draw) : new function.
      
      	* src/print-cell.c (print_cell_grid) : delete.
      	(print_cell_range) : sync with itemgrid.
      	(print_merged_range) : ditto.
      	(print_cell_background) : ditto.
      b34287f9
  26. 12 Jan, 2001 1 commit
    • Jody Goldberg's avatar
      Rework the style engine. Mostly functional. see BUGS for remaining details. · 9e615b65
      Jody Goldberg authored
      NOTE : I have not tested persistance.
      
      2001-01-11  Jody Goldberg <jgoldberg@home.com>
      
      	* src/mstyle.c (mstyle_ref_multiple) : new function.
      	(mstyle_copy_merge) : new function.
      	(mstyle_new_default) : Do not cache the result.  That is done at the
      	  sheet level.
      	(mstyle_do_merge) : delete.
      	(mstyle_get_format) : constness.
      
      	* src/format-template.c (cb_format_sheet_border) : delete.
      	(format_template_apply_to_sheet_regions) : borders are no longer special.
      
      	* src/expr.c (expr_tree_array_formula_corner) : do not store the
      	  corner anymore.
      	(expr_tree_new_array) : ditto.
      	(do_expr_tree_unref) : ditto.
      
      	* src/cell.c (cell_relocate) : Arrays are simplified.  No need to keep
      	  a pointer to the corner.  It made the system too brittle.
      	(cell_set_mstyle) : delete.
      
      	* src/Makefile.am : remove test.[ch]
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_find_{col,row}) : There is no
      	  1 pixel border.
      
      2001-01-09  Jody Goldberg <jgoldberg@home.com>
      
      	* src/mstyle.h : Change order of borders to match BorderLocation
      
      2001-01-08  Jody Goldberg <jgoldberg@home.com>
      
      	* src/ranges.c (range_has_header) : avoid leaking styles.
      
      	* src/cell.c (cell_get_mstyle) : Use sheet_style_get, and do not bump
      	  the ref count.
      	(cell_render_value) : Adjust.
      	(cell_get_format : Adjust.
      	(cell_set_text) : Adjust.
      
      	* src/functions/fn-information.c (gnumeric_cell) : sheet_style_get
      	  does not make a reference. Use it.
      	* src/workbook-format-toolbar.c (modify_cell_format) :  Ditto.
      	(change_selection_font) : Ditto.
      	* src/sheet-autofill.c (fill_item_new) : ditto.
      	* src/print-cell.c (print_cell_range) : ditto.
      	* src/cellspan.c (cell_calc_span) : ditto.
      	* src/sheet.c (sheet_cell_set_text) : ditto.
      	* src/rendered-value.c (rendered_value_calc_size) : ditto.
      	* src/workbook-view.c (wb_view_format_feedback) : ditto.
      
      2001-01-07  Jody Goldberg <jgoldberg@home.com>
      
      	* src/dialogs/dialog-cell-format.c (dialog_cell_format) :
      	  init initial style to NULL.
      	(fmt_dialog_selection_type) : call sheet_style_get_uniform here.
      
      	* src/commands.c (cmd_format_redo) : Now that apply_border is not
      	  doing a redraw we need to if there is no style applied.
      
      	* src/selection.c (sheet_selection_extend_to) : Add support akin to
      	  gnumeric_sheet_rangesel_cursor_extend to extend to full col/row.
      
      	* src/sheet-control-gui.c (scg_colrow_select) : extend to full col/row
      	  if necessary.
      
      	* src/item-bar.c (item_bar_event) : Set the selection, not extend it.
      9e615b65
  27. 02 Jan, 2001 1 commit
    • Jody Goldberg's avatar
      add the new file. · 8f9fa37b
      Jody Goldberg authored
      
      2001-01-02  Jody Goldberg <jgoldberg@home.com>
      
      	* src/Makefile.am : add the new file.
      
      	* src/sheet-style.h : new file split from sheet.h in preparation
      	  for changing the style engine.
      8f9fa37b
  28. 31 Dec, 2000 3 commits
  29. 30 Dec, 2000 1 commit
    • Jody Goldberg's avatar
      Update a few icons for mor consitancy. · f461d28d
      Jody Goldberg authored
      2000-12-30  Jody Goldberg <jgoldberg@home.com>
      
      	* src/cell-draw.c (cell_draw) : sync drawing with
      	* src/print-cell.c (print_cell) : printing.
      
      	* src/item-grid.c (item_grid_draw) : sync drawing with
      	* src/print-cell.c (print_cell_range) : printing.
      	(print_merged_range) : new function, sort of works.  We need to draw
      	  grids AFTER content to avoid this sort of sillyness.
      f461d28d
  30. 27 Dec, 2000 1 commit
    • Jody Goldberg's avatar
      fix old off by 1 error. · cbfeec73
      Jody Goldberg authored
      
      2000-12-26  Jody Goldberg <jgoldberg@home.com>
      
      	* src/item-cursor.c (cb_move_cursor) : fix old off by 1 error.
      
      	* src/workbook-format-toolbar.c (workbook_format_toolbar)
      	  merge/unmerge are not toggle items.
      
      	* src/gnumeric.xml : Add entries for merge/unmerge.
      
      	* s/MStyleBorder/StyleBorder/
      cbfeec73
  31. 15 Dec, 2000 1 commit
    • Jody Goldberg's avatar
      Move the span handling here. from here. · 17fb06d4
      Jody Goldberg authored
      
      2000-12-14  Jody Goldberg <jgoldberg@home.com>
      
      	* src/item-grid.c (item_grid_draw) : Move the span handling here.
      	* src/cell-draw.c (cell_draw) : from here.
      
      	* src/print-cell.c (print_cell_range) : Move the span handling here.
      	(print_cell) : rather than here.
      
      	* src/sheet-control-gui.c (scg_get_distance) : merge
      	  sheet_{row,col}_distance_get_pixels and make the result sheet
      	  control specific.
      
      2000-12-14  Jody Goldberg <jgoldberg@home.com>
      
      	* src/cell.c (cell_convert_expr_to_value) : rename from cell_make_value.
      
      	* src/format.c (format_number) : adjust signature to take the
      	  colwidth in preparation for supporting
      	(format_value) : pass in the width.
      
      2000-12-14  Jody Goldberg <jgoldberg@home.com>
      
      	* src/formats.c (currency_date_format_init) : correctly place currency
      	  before or after the value, and optionally include a space.
      
      	* src/format.c (format_get_currency) : include info on currency
      	  placement.
      
      2000-12-14  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook.c (workbook_sheet_rename) : Handle renames that only
      	  change case more smoothly.
      17fb06d4
  32. 24 Nov, 2000 1 commit
    • Jody Goldberg's avatar
      bubble the sizing code further up. src/cell-draw.c (cell_draw) : ditto. · d473caa4
      Jody Goldberg authored
      
      2000-11-24  Jody Goldberg <jgoldberg@home.com>
      
      	* src/print-cell.c (print_cell) : bubble the sizing code further up.
      	  src/cell-draw.c (cell_draw) : ditto.  Move towards a better api that
      	  will pass in the bounding box rather than all the parameters needed
      	  to generate it in different circumstances.
      
      2000-11-23  Jody Goldberg <jgoldberg@home.com>
      
      	* src/print-cell.c (print_cell) : until printing of the grid is synced
      	  with drawing a grid, disable the tests for width, height.
      
      	* src/expr.c (cellrange_relocate) : Use simple heuristic to help
      	  diffentiate the 'expected' behavior of  moving expressions with
      	  range references that are partially contained.
      d473caa4
  33. 21 Nov, 2000 1 commit
    • Morten Welinder's avatar
      Mostly just constification. · ef88e70a
      Morten Welinder authored
      
      
      2000-11-20  Morten Welinder  <terra@diku.dk>
      
      	* dialog-autoformat.c (cb_get_cell_content): Constify.
      	(setup_apply_item): Constify.
      	(templates_load): Move error check earlier to avoid crash, should
       	it ever fire.  Constify.
      ef88e70a
  34. 19 Nov, 2000 1 commit
    • Jody Goldberg's avatar
      : (sheet_region_unmerge) : (sheet_region_merge) : implement. · 4da5da9f
      Jody Goldberg authored
      
      2000-11-19  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.c (sheet_region_is_merge_cell) :
      	(sheet_region_get_merged) :
      	(sheet_region_unmerge) :
      	(sheet_region_merge) : implement.
      
      2000-11-19  Jody Goldberg <jgoldberg@home.com>
      
      	* src/item-grid.c (item_grid_draw_merged_range) : new function.
      	  This may be clearer if we draw the grid lines after the background.
      	  It does not support borders or selection yet.
      	(item_grid_draw) : Use it.
      
      2000-11-19  Jody Goldberg <jgoldberg@home.com>
      
      	* src/cellspan.c (cell_is_empty) : new utility function.
      	  span calculation is now rather inefficent.  We could be smarter if
      	  we had a better representation of spans.  For now adding support for
      	  merged cells here would be enough.
      	(cell_calc_span) : Use it.
      
      	* src/cell-draw.c (cell_draw) : decrease dependence on
      	  Cell::{col,row})_info::size_pixels.  This is not accurate for merged
      	  cells.  More work is needed.  I have not converted the multiline
      	  formating yet.  The signature of this function sucks.
      	  We should pass in either span or width height, not both.
      
      	* src/print-cell.c (print_cell) : Stay consistent with cell_draw.
      	  NOTE : I have not ported over the merged cell support.  It seems
      	  pointless until it is working completely for drawing.
      
      2000-11-19  Jody Goldberg <jgoldberg@home.com>
      
      	* s/sheet_view/scg/
      
      	* src/formats.c (currency_symbols) : Add the slovenian tolar.
      
      2000-11-16  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-control-gui.c (scg_context_menu) : renamed from
      	  item_grid_popoup_menu and moved here where it makes more sense.
      4da5da9f