1. 21 Dec, 2001 1 commit
  2. 16 Dec, 2001 1 commit
  3. 11 Nov, 2001 1 commit
    • Jody Goldberg's avatar
      remove the unused copy_fn arg and convert to using GSList. · 260a609c
      Jody Goldberg authored
      2001-11-11  Jody Goldberg <jgoldberg@home.com>
      
      	* src/ranges.c (range_split_ranges) : remove the unused copy_fn
      	  arg and convert to using GSList.
      	(range_fragment) : convert to GSList..
      	(range_fragment_free) : ditto.
      
      	* src/format-template.c : Convert several things to use Range *.
      	(format_template_check_valid) : split out from.
      	(format_template_apply_to_sheet_regions) : here.
      
      	* src/commands.c (cmd_autoformat) : Use format_template_check_valid.
      	(cmd_area_set_text_destroy) : range_fragment_free instead of doing it
      	  ourselves.
      	(cmd_clear_destroy) : ditto.
      	(cmd_format_destroy) : ditto.
      	(cmd_autoformat_destroy) : ditto.
      
      	* src/xml-io.c (xml_write_selection_clipboard) : fix leak.
      	* src/workbook-format-toolbar.c (cb_unmerge_cells) : ditto.
      	(cb_merge_cells) : ditto.
      
      2001-11-11  Jody Goldberg <jgoldberg@home.com>
      
      	* src/print.c (print_page) : fix horiz/vert centering in the presence
      	  of scaling.
      260a609c
  4. 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
  5. 14 Aug, 2001 1 commit
    • Jody Goldberg's avatar
      fix typo. · 3ca7e095
      Jody Goldberg authored
      2001-08-14  Jody Goldberg <jgoldberg@home.com>
      
      	* src/format-template.c (format_template_range_check) : fix typo.
      
      	* src/xml-io.c (xml_sheet_read) : Add some sanity checking for bogus
      	  inputs.
      3ca7e095
  6. 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
  7. 06 Feb, 2001 1 commit
    • Almer S. Tigelaar's avatar
      Use mstyle_new_default instead of mstyle_new. · 09b19dc7
      Almer S. Tigelaar authored
      2001-02-06  Almer S. Tigelaar  <almer1@dds.nl>
      
      	* src/gui-clipboard.c (x_selection_to_cell_region):
      	Use mstyle_new_default instead of mstyle_new.
      
      	* src/preview-grid-controller.c (preview_grid_controller_new):
      	No need to make a copy of the default mstyle.
      
      	* src/format-template.c (format_template_set_style):
      	Make sure the passed mstyle gets all it's elements set.
      09b19dc7
  8. 24 Jan, 2001 1 commit
    • Jody Goldberg's avatar
      disable stupid cruft until I actually write this function. · e3496b8e
      Jody Goldberg authored
      
      2001-01-24  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-style.c (sheet_style_get_uniform) : disable stupid cruft
      	  until I actually write this function.
      
      	* src/format-template.c (format_template_recalc_hash) : remove the
      	  cruft to apply shifted borders.
      e3496b8e
  9. 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
  10. 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
  11. 01 Jan, 2001 1 commit
    • Jody Goldberg's avatar
      fix includes. ditto. ditto. ditto. ditto. do not in include <config.h> · f4b38c93
      Jody Goldberg authored
      
      2000-12-30  Jody Goldberg <jgoldberg@home.com>
      
      	* src/commands.c : fix includes.
      	* src/file-autoft.c : ditto.
      	* src/format-template.c : ditto.
      	* src/workbook-format-toolbar.c : ditto.
      	* src/xml-io-autoft.c : ditto.
      	* src/format-template.h : do not in include <config.h> publicly
      
      	* src/mstyle.c (mstyle_new_default) : use style_color_{black,white}
      f4b38c93
  12. 31 Dec, 2000 1 commit
  13. 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
  14. 25 Dec, 2000 1 commit
    • Jody Goldberg's avatar
      clean up includes. · 0ae4c759
      Jody Goldberg authored
      
      2000-12-25  Jody Goldberg <jgoldberg@home.com>
      
      	* src/ranges.h : clean up includes.
      0ae4c759
  15. 22 Dec, 2000 1 commit
    • Jody Goldberg's avatar
      new function. (sheet_object_container_new_bonobo) : delete. · 1afafe3a
      Jody Goldberg authored
      
      2000-12-22  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-object-container.c (sheet_object_container_new) : new
      	  function.
      	(sheet_object_container_new_bonobo) : delete.
      
      2000-12-22  Jody Goldberg <jgoldberg@home.com>
      
      	* src/cell.c (cell_set_expr_and_value) : Make linking the
      	  expression optional.
      
      	* src/ranges.c (range_init_full_sheet) : adjusted from
      	  sheet_get_full_range.
      
      2000-12-21  Jody Goldberg <jgoldberg@home.com>
      
      	* src/bonobo-io.c (gnumeric_bonobo_obj_read) : Don't create the object
      	  here.  Pass it in.
      1afafe3a
  16. 20 Dec, 2000 1 commit
    • Chyla Zbigniew's avatar
      Removed "-DGNUMERIC_AUTOFORMATDIR" from INCLUDES. Now we use a function · aafe2895
      Chyla Zbigniew authored
      
      * src/Makefile.am: Removed "-DGNUMERIC_AUTOFORMATDIR" from INCLUDES.
      Now we use a function inside Gnumeric for this.
      
      * src/dialogs/dialog-autoformat.c:
      Marked strings for translation (sample data).
      (struct AutoFormatInfo): Now we have field current_category_group
      (of type FormatTemplateCategoryGroup *) instead of current_category
      and category_groups instead of categories.
      (cb_get_cell_content): Function g_strtod always uses "C" locale,
      used strtod instead.
      (templates_load): Mostly new implementation, uses
      category_group_get_templates_list().
      (cb_remove_current_activated): Now it is implemented.
      (cb_canvas_button_release): Showing real category name
      (template->category->name). Setting sensitivity of
      info->remove_current menu item.
      (cb_category_popwin_hide): Used
      category_group_list_find_category_by_name when setting
      info->current_category_group and category_list_get_names_list
      when calling gtk_combo_set_popdown_strings. Selecting "General"
      category by default if it exists. Displaying current category
      description in the category combo tooltip.
      
      * src/file-autoft.c, src/file-autoft.h: New functions:
      gnumeric_sys_autoformat_dir, gnumeric_usr_autoformat_dir,
      gnumeric_extra_autoformat_dirs,
      category_free, category_get_templates_list, category_list_free,
      category_group_free, category_group_get_templates_list,
      category_group_list_get, category_group_list_find_category_by_name,
      category_group_list_get_names_list, category_group_list_free.
      Removed functions: template_list_load, template_list_free,
      util_list_free, category_list_load, category_list_free.
      
      * src/format-template.c, src/format-template.h:
      New function: format_template_compare_name.
      New structs: FormatTemplateCategory and
      FormatTemplateCategoryGroup.
      (struct FormatTemplate): field category is now of type
      FormatTemplateCategory.
      
      * src/gutils.c, src/gutils.h: New functions: g_create_list,
      g_lang_score_in_lang_list, g_lang_score_is_better (implemented
      as a macro).
      
      * src/xml-io-autoft.c:
      (xml_write_format_template_members): Don't write category
      information.
      (xml_read_format_template_members): Used
      xml_search_child_lang_list instead of xml_search_child to find
      "Information" node. Ignore category information.
      (gnumeric_xml_read_format_template_category): New function.
      
      * src/xml-io-autoft.h: Added
      gnumeric_xml_read_format_template_category function declaration.
      
      * src/xml-io.c, src/xml-io.h: New functions:
      xml_search_child_lang_list, xml_search_child_no_lang,
      xml_search_child_lang_list_with_score (static function).
      
      * templates/autoformat/3D.category,
      templates/autoformat/Financial.category,
      templates/autoformat/Classical.category,
      templates/autoformat/General.category,
      templates/autoformat/Colourful.category,
      templates/autoformat/List.category:
      New files, XML descriptions of default categories.
      
      * templates/autoformat/Makefile.am:
      Templates grouped into categories, now every category is installed
      in separate directory. Installing *.category files as ".category" in
      appropriate directories.
      aafe2895
  17. 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
  18. 15 Nov, 2000 1 commit
    • Morten Welinder's avatar
      Remove trailing white-space from files that have it. · 5570aef3
      Morten Welinder authored
      (The following command was done in src/ and plugins/.  Note, that the
      grep has a space and a tab.)
      
      for i in `find . -name '*.[ch]' -print`; do if grep '[         ]$' $i >/dev/null; then echo $i; perl -pi -e 's/[ \t]+$//' $i; fi; done
      5570aef3
  19. 05 Nov, 2000 1 commit
    • Jody Goldberg's avatar
      30506 · d14ec244
      Jody Goldberg authored
      2000-11-04  Jody Goldberg <jgoldberg@home.com>
      
      	* src/format-template.c (format_template_apply_to_sheet_regions) : No
      	  need to request a redraw.
      	(cb_format_sheet_style) : Use sheet_range_apply_style because it
      	  requests a redraw and handles respaning/spacing when necessary.
      d14ec244
  20. 02 Nov, 2000 1 commit
    • Almer S. Tigelaar's avatar
      Also apply filtering to newly loaded templates. (dialog_autoformat): Don't · bd02aee6
      Almer S. Tigelaar authored
      2000-11-02  Almer S. Tigelaar  <almer1@dds.nl>
      
              * src/dialog-autoformat.c:
              (templates_load): Also apply filtering to newly loaded templates.
              (dialog_autoformat): Don't call format_template_apply_to_sheet_regions,
              pushing the undo stuff (cmd_autoformat) already does this anyway.
      
              * src/format-template.c: Fix bug #30413
              (format_template_range_check): New, checks if the target range
              is wide enough to apply the format template to.
              (format_template_apply_to_sheet_regions): Use format_template_range_check
              to check the ranges. Display an error and abort when a range is invalid.
              (format_template_recalc_hash): Idem, but don't display an error but a
              warning, as no such error is supposed to happen here.
      
              * src/format-template.c: Fix bug #30419
              (format_template_filter_style): Add COLOR_BACK to pattern filtering.
              (format_template_filter_style): Correct to not always replace
              unset elements with default elements.
              (cb_format_hash_style): call format_template_filter_style with
              default element replacing.
              (cb_format_sheet_style): call format_template_filter_style without
              default element replacing.
              (cb_format_sheet_border): Idem.
      bd02aee6
  21. 31 Oct, 2000 1 commit
    • Jody Goldberg's avatar
      Set LC_MONETARY and LC_NUMERIC. Ditto. (xml_workbook_read) : Ditto. · ffac72f5
      Jody Goldberg authored
      
      2000-10-31  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-view.c (wb_view_auto_expr) : Set LC_MONETARY and
      	  LC_NUMERIC.
      	* src/xml-io.c (xml_workbook_write) : Ditto.
      	(xml_workbook_read) : Ditto.
      
      2000-10-31  Jody Goldberg <jgoldberg@home.com>
      
      	* src/dialogs/*.[ch] : WorkbookControlGUI is now required for gui
      	  operations.  A WorkbookView is required to know which sheet is the
      	  current.
      
      	* src/xml-io.c : We now load/save WorkbookViews.
      
      	* src/xml-io-autoft.c : Adjust to signature changes.
      
      	* src/workbook.c : Split the View into WorkbookView.
      	  Abstract the Controler interface, and move the GUI specific
      	  implementation of the Controler into WorkbookControlGUI.
      
      	* src/workbook-view.c : Complete rewrite with correct semantics.
      
      	* src/workbook-private.h : Move all the GUI specific stuff into
      	  WorkbookControlGUI were it belongs.
      
      	* src/workbook-private.c (workbook_private_class_init) : Fix typo.
      
      	* src/workbook-edit.c : These are now WorkbookControlGUI specific.
      	  We should rename the functions eventually.
      	* src/workbook-format-toolbar.c : Ditto.
      	* src/workbook-object-toolbar.c : Ditto.
      
      	* src/workbook-cmd-format.c : Adjust to signature changes.
      	  and use WorkbookControlGUI were necessary.
      
      	* src/style.c (style_font_new_from) : Delete dead code.
      
      	* src/solver-lp.c : Adjust to signature changes.
      	* src/sort.c : Ditto.
      	* src/stf.c : Ditto. Make dialog conditional on gui-ness.
      
      	* src/sheet.c (sheet_new_sheet_view) : IS_SHEET checks for NULL.
      	(sheet_detach_sheet_view) : renamed from sheet_destroy_sheet_view
      	  and only take a SheetView as argument.
      	(sheet_new) : Do not create a view by default.
      	(sheet_update_zoom_controls) : foreach control.
      	(sheet_update_editpos) : ditto.
      	(sheet_update) : handle multiple views and controls.
      
      	* src/sheet-view.c : Commands take WorkbookControls rather than
      	  CommandContexts.
      
      	* src/sheet-object-widget.c : Most things take WorkbookControlGUI
      	  rather than Workbooks.
      
      	* src/sheet-object-container.c (sheet_object_container_new_view) :
      	  Use the uic from the WorkbookControlGUI.
      
      	* src/sheet-control.c : New file. Unused so far.
      	  cp sheet-view.c sheet-control.c
      	  s/SheetView/SheetControl/
      
      	* src/print.c : Make the GUI dependency explicit.
      	  At some point the setup dialog should be split out of here.
      
      	* src/main.c (gnumeric_main) : Explicitly create a WorkbookControlGUI
      	  only adding sheets if nothing was loaded.  Improve handing of exit
      	  request while loading.
      
      	* src/item-grid.c (item_grid_draw) : Filter the edit cell from here
      	  because we know which control to use.
      	(context_menu_hander) : Switch to WorkbookControlGUI.
      	(item_grid_popup_menu) : Ditto.
      
      	* src/item-edit.c : Everything takes a WorkbookControlGUI inplace of a
      	  Workbook now.
      
      	* src/item-cursor.c (item_cursor_target_region_ok) : dialog_run takes
      	  a WorkbookControlGUI.
      	(item_cursor_do_action) : All the commands take WorkbookControls.
      
      	* src/item-bar.c (item_bar_event) : item_grid_popup_menu takes a
      	  SheetView now.
      
      	* src/history.c : Take WorkbookControlGUI.
      	  Update all controls for each workbook.
      
      	* src/gui-clipboard.c : Use 'unsigned char'
      
      	* src/gnumeric.xml : More work to split commands from layout.
      
      	* src/gnumeric-util.c (gnumeric_no_modify_array_notice) : Delete.
      	(gnumeric_notice) : Take a WorkbookControlGUI.
      	(gnumeric_wb_dialog_run) : Ditto.
      	(gnumeric_dialog_run) : Ditto.
      	(gnumeric_dialog_show) : Ditto.
      	(gnumeric_set_transient) : Ditto.
      	(gnumeric_glade_xml_new) : Ditto.
      	(gnumeric_non_modal_dialog) : Ditto.
      	(gnumeric_inject_widget_into_bonoboui) : Ditto.
      
      	* src/gnumeric-sheet.c : SheetView now has a WorkbookControlGUI member
      	  to keep track of which control it is associated with. Use it.
      
      	* src/file.c : Adjust to lots of signature changes.
      	  We now load/save WorkbookView rather than Workbook.
      	  Add a placeholder struct IOContext so that we can consider doing
      	  smarter import/export and dealing with warnings and missing things
      	  smoothly.
      
      	* src/eval.c (workbook_recalc_all) : After a recalc update all views.
      
      	* src/commands.c (undo_redo_menu_labels) : foreach control.
      	(command_undo) : ditto.
      	(command_redo) : ditto.
      	(command_push_undo) : change signature.  The workbookcontrol
      	  now acts as the command context.
      
      	* src/cmd-edit.c : Adjust to signature changes.
      
      	* src/clipboard.c : split the gui specific X handlers out into a new
      	  file.
      	* src/gui-clipboard.c :  here.
      
      	* src/cell-draw.c (cell_draw) : Do not test the sheet for whether or
      	  not to we are editing.  That is at the control level.  Test it in
      	  the rendering loop.
      
      	* src/bonobo-io.c : FIXME. adjusted to signature changes.  Totatly
      	  broken for now.  This needs a View rather than a Model and should be
      	  associated with something.
      
      	* src/application.c (application_workbook_list_add) : New function.
      	(application_workbook_list_remove) : New function.
      	(application_workbook_list) : New function.
      	(application_clipboard_copy) : foreach control.
      	(application_clipboard_cut) : foreach control.
      	(application_clipboard_clear) : foreach control.
      	(application_workbook_foreach) : renamed from workbook_foreach.
      	(application_set_selected_sheet) : FIXME. Disabled for now.
      
      	* src/about.c (cb_closed) : Associated the flag with the control
      	  directly.
      	(dialog_about) : dialogs are associated with gui-controls.
      
      	* src/analysis-tools.c : change all dialog signatures to handle MVC
      	  split of workbook.
      
      2000-10-30  Jody Goldberg <jgoldberg@home.com>
      
      	* src/Makefile.am : Add new command-context,  io-context,
      	  workbook-view, workbook-control, workbook-control-gui files.
      	  Remove old command-context-gui, command-context-corba, and disable
      	  corba-* for now.
      
      2000-10-29  Jody Goldberg <jgoldberg@home.com>
      
      	* idl/gnumeric-graphs.idl : Remove studdly caps.  I wish people would
      	  make up their minds.
      
      	* idl/Gnumeric.idl : Remove Workbook::show.
      
      2000-10-29  Jody Goldberg <jgoldberg@home.com>
      
      	* BUGS : Update.
      	* NEWS : Update.
      	* TODO : Update.
      ffac72f5
  22. 29 Oct, 2000 1 commit
    • Almer S. Tigelaar's avatar
      New, undo for the autoformat. (cmd_autoformat_redo): New, redo for the · d7e902d9
      Almer S. Tigelaar authored
      2000-10-29  Almer S. Tigelaar  <almer1@dds.nl>
      
      	* src/commands.h, src/commands.c:
      	(cmd_autoformat_undo): New, undo for the autoformat.
      	(cmd_autoformat_redo): New, redo for the autoformat.
      	(cmd_autoformat_destroy): Part of undo/redo.
      	(cmd_autoformat): Idem.
      
      	* src/format-template.h: Correct outdated comment.
      
      	* src/format-template.h, src/format-template.c:
      	(format_template_member_clone): New, clone a templatemember.
      	(format_template_clone): New, clone a format template.
      	(cb_format_sheet_style): Insert extra checks.
      	(cb_format_sheet_border): Idem.
      	(format_template_apply_to_sheet_selection): Renamed.
      	(format_template_apply_to_sheet_sheet_regions): Modification of the
      	above function, now accept a separate list of regions.
      
      	* src/dialogs/dialog-autoformat.c:
      	(dialog_autoformat): Modify so it calls upon routines which record
      	undo/redo information.
      d7e902d9
  23. 03 Sep, 2000 1 commit
    • Almer. S. Tigelaar's avatar
      Modify to accept a NULL sheet for cell->sheet. · f265f363
      Almer. S. Tigelaar authored
      2000-09-03  Almer. S. Tigelaar.  <almer1@dds.nl>
      
      	* src/cell-draw.c:
      	(cell_draw): Modify to accept a NULL sheet for
      	cell->sheet.
      
      	* src/item-grid.c, src/item-grid.h:
      	(item_grid_draw_border): Export this routine for use
      	by the preview-grid.
      
      	* src/preview-grid.h, src/preview-grid.c:
      	New, preview-grid canvasitem, based upon item-grid.
      
      	* src/preview-grid-controller.h, src/preview-grid-controller.c:
      	New, easy to use wrapper around canvas and preview-grid.
      
      	* src/dialogs/dialogs.h: Add autoformat dialog and
      	autoformat edit dialog invocation functions.
      
      	* src/dialogs/autoformat.glade: New,
      	glade file for autoformat dialog.
      
      	* src/dialogs/autoformat.glade.h: New,
      	translation header for autoformat dialog.
      
      	* src/dialogs/dialog-autoformat.c: New, source
      	for controlling autoformat dialog.
      
      	* src/sheet-view.c:
      	(sheet_view_get_style_font): Modify to accept a
      	NULL sheet. (defaults to zoomlevel 1)
      
      	* src/workbook.c:
      	(workbook_menu_format[]): Add autoformat.
      	(autoformat_cmd): New, invokes autoformat dialog.
      
      	* src/mstyle.c, mstyle.h:
      	(mstyle_replace_element): New, replaces an element
      	in an mstyle with an element from another mstyle.
      
      	* src/rendered-value.c, src/rendered-value.h:
      	(rendered_value_calc_size_ext): Same as the previous
      	rendered_value_calc_size, but accepts an mstyle as
      	extra parameter. the purpose of this and some other
      	minor changes from the rendered_value_calc_size is
      	to be able to calc the size of a sheetless cell.
      	(rendered_value_calc_size): Performs the same role
      	as the previous rendered_value_calc_size and
      	calls upon rendered_value_calc_size_ext to do its
      	thing.
      	(rendered_value_new_ext): Same as previous rendered_value_new
      	but accept an mstyle as parameter for sheetless cells.
      	(rendered_value_new): Exacly the same as the previous
      	render_value_new, but calls upon rendered_value_calc_size_ext.
      
      	* src/xml-io.c, src/xml-io.h:
      	(xml_search_child): Export for use by xml-io-autoft.c.
      	(xml_get_value_string): Idem.
      	(xml_set_value_string): Idem.
      	(xml_get_value_int): Idem.
      	(xml_set_value_int): Idem.
      	(xml_write_style): Idem.
      	(xml_read_style): Idem.
      
      	* src/xml-io-autoft.c, src/xml-io-autoft.h:
      	New, these handle the reading/writing of autoformat templates.
      
      	* src/format-template.h, src/format-template.c:
      	New, wrapper around the loading and saving and managing
      	of format templates.
      
      	* templates/autoformat:
      	Add default autoformat templates
      
      	* configure.in:
      	Modify to include the autoformat templates and define
      	a new variable for the autoformat templates directory
      	so we can find them at run-time
      f265f363