1. 26 Jan, 2002 1 commit
    • Andreas J. Guelzow's avatar
      fix all calls to gnumeric_notice ditto ditto ditto ditto ditto ditto ditto · 8b236ce4
      Andreas J. Guelzow authored
      2002-01-25  Andreas J. Guelzow <aguelzow@taliesin.ca>
      
      	* dialog-advanced-filter.c : fix all calls to gnumeric_notice
      	* dialog-analysis-tools.c : ditto
      	* dialog-autocorrect.c : ditto
      	* dialog-autosave.c : ditto
      	* dialog-cell-sort.c : ditto
      	* dialog-consolidate.c : ditto
      	* dialog-define-names.c : ditto
      	* dialog-goal-seek.c : ditto
      	* dialog-search-replace.c : ditto
      	* dialog-search.c : ditto
      	* dialog-solver.c : ditto
      	* dialog-tabulate.c : ditto
      
      2002-01-25  Andreas J. Guelzow <aguelzow@taliesin.ca>
      
      	* src/gui-util.c (gnumeric_dialog_run) : use GTK functions
      	(gnumeric_notice) : create GTK_Message_Dialog
      	* src/gui-util.h (gnumeric_notice) : change type of second argument
      	* src/gui-file.c : fix all calls to gnumeric_notice
      	* src/print.c : ditto
      	* src/style.c : ditto
      	* src/workbook-cmd-format.c : ditto
      	* src/workbook-control-gui.c : ditto
      8b236ce4
  2. 23 Jan, 2002 1 commit
  3. 21 Dec, 2001 1 commit
  4. 08 Nov, 2001 1 commit
  5. 06 Oct, 2001 2 commits
  6. 18 Sep, 2001 1 commit
  7. 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
  8. 24 Aug, 2001 3 commits
    • Jody Goldberg's avatar
      Rename gnumeric-utils.h gui-utils.h to be more accurate. · d531765d
      Jody Goldberg authored
      Clean out a bunch includes.
      d531765d
    • 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
    • Jody Goldberg's avatar
      use the new artwork. · 65a24531
      Jody Goldberg authored
      2001-08-24  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-control-gui.c (scg_context_menu) : use the new artwork.
      
      	* configure.in : bump version req for gnome-print to ensure that
      	  we only see fontmap2.
      	* README : ditto.
      	* gnumeric.spec.in : ditto.
      
      	* src/style.c (font_init) : Mention only the file fontmap2.
      
      	* src/item-bar.c (item_bar_realize) : Don't attempt to use a gc from
      	  an unrealized button.  Do it manually instead.
      
      	* src/sheet-object.c (sheet_object_populate_menu) : Put Properties
      	  above delete.
      65a24531
  9. 21 Aug, 2001 2 commits
  10. 18 Jun, 2001 1 commit
  11. 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
  12. 13 Apr, 2001 1 commit
    • Jody Goldberg's avatar
      Take the easy way out. · 73d89ecc
      Jody Goldberg authored
      2001-04-13  Jody Goldberg <jgoldberg@home.com>
      
      	* src/style.c (font_init) : rename fontmap -> fontmap2 for newer
      	  versions of gnome-print.
      73d89ecc
  13. 04 Apr, 2001 2 commits
    • Morten Welinder's avatar
      Improve error message. Constify. · 1eee143f
      Morten Welinder authored
      2001-04-04  Morten Welinder  <terra@diku.dk>
      
      	* src/style.c (font_init): Improve error message.  Constify.
      1eee143f
    • Morten Welinder's avatar
      Refer to bugzilla, not bugs. · 1157a82b
      Morten Welinder authored
      2001-04-04  Morten Welinder  <terra@diku.dk>
      
      	* src/style.c (font_init): Refer to bugzilla, not bugs.
      
      2001-04-04  Morten Welinder  <terra@diku.dk>
      
      	* authors.sgml: refer to bugzilla, not bugs.
      1157a82b
  14. 19 Feb, 2001 1 commit
    • Jody Goldberg's avatar
      It seems like we need to show_all for the bonobo build, I don't know why. · b177803f
      Jody Goldberg authored
      
      2001-02-19  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-control-gui.c (show_gui) : It seems like we need to
      	  show_all for the bonobo build, I don't know why.  Add an explicit
      	  call the scg_adjust_preferences to rehide headers that may be shown
      	  inadvertently.
      
      	* src/cellspan.c (cell_calc_span) : Even if the content fits the
      	  indent may cause a span.
      
      	* src/style.c (required_updates_for_style) : flag an indent change as
      	  something that requires a resize.
      b177803f
  15. 17 Feb, 2001 1 commit
    • 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
  16. 27 Jan, 2001 1 commit
    • Chyla Zbigniew's avatar
      Making Gnumeric -Werror friendly (well, almost). · b3f070c4
      Chyla Zbigniew authored
      
      Making Gnumeric -Werror friendly (well, almost).
      
      * plugins/excel/ms-chart.c: Added "#if 0/#endif" around declarations
      of unused variables.
      
      * plugins/gda/plugin-gda.c (display_recordset): Removed unused
      variable, fixed some errors (that's why I use -Werror).
      
      * plugins/xml2/xml2.c (init_plugin): Used xml2_probe function.
      
      * src/search.c: Included "ranges.h".
      
      * src/style.c: Included "sheet.h"
      b3f070c4
  17. 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
  18. 31 Dec, 2000 1 commit
  19. 29 Dec, 2000 1 commit
    • Jody Goldberg's avatar
      support merged cells. · 7008d180
      Jody Goldberg authored
      
      2000-12-29  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.c (sheet_redraw_cell_region) : support merged cells.
      
      	* src/style.c (style_font_new_simple) : guestimate width.
      	(style_font_get_width) : new function.
      
      	* src/rendered-value.c (rendered_value_new) : appoximate with via pts.
      	  handle merged cells.
      
      2000-12-29  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.c (sheet_region_unmerge) : untag an existing cell as being
      	  merged.
      	(sheet_cell_remove_from_hash) : ditto.
      	(sheet_region_merge) : tag an existing cell as being merged.
      	(sheet_cell_add_to_hash) : ditto.
      
      	* src/item-edit.c (recalc_spans) : support merged cells.
      
      2000-12-29  Jody Goldberg <jgoldberg@home.com>
      
      	* src/xml-io.c (xml_read_cell) : Early versions had newlines at the
      	  end of their content
      
      	* src/sheet.c (sheet_{insert,delete}_{cols,rows}) : no need to update
      	  object positions, we have already moved them.
      
      2000-12-29  Jody Goldberg <jgoldberg@home.com>
      
      	* src/commands.c (GNUMERIC_MAKE_COMMAND_WITH_PARENT) : new macro.
      	(update_after_action) : new function to localize calls to
      	  sheet_update, dirty, recalc.
      	(GnumericCommand) : Add a sheet to help localize repeated calls to
      	  sheet_update, dirty, recalc.
      	(command_undo) : Call update_after_action.
      	(command_redo) : Call update_after_action.
      	(command_push_undo) : Call update_after_action.
      	(cmd_*_{undo,redo}) : remove calls to sheet_update, dirty, recalc.
      	(cmd_*) : set the sheet.
      	(cmd_paste_cut_update_origin) : new function.
      	(cmd_paste_cut_undo) : call cmd_paste_cut_update_origin.
      	(cmd_paste_cut_redo) : ditto.
      
      	* src/commands.c (CmdMergeCells) : inherit from CmdUnmergeCells to
      	  facilitate reuse and implement.
      7008d180
  20. 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
  21. 11 Nov, 2000 1 commit
    • Jody Goldberg's avatar
      Fix typos in the accelerator selections for the name menu. · 67c315f1
      Jody Goldberg authored
      
      2000-11-11  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-control-gui.c : Fix typos in the accelerator selections
      	  for the name menu.
      
      	* src/gnumeric.xml : Add entries for new shared/unshared views.
      
      	* src/style.c (font_init) : Use the correct scale.
      67c315f1
  22. 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
  23. 19 Sep, 2000 1 commit
    • Jody Goldberg's avatar
      Bug 24122 · 62fd10ba
      Jody Goldberg authored
      2000-09-18  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.c (sheet_flag_status_update_cell) : Adjust signature.
      
      2000-09-18  Jody Goldberg <jgoldberg@home.com>
      
      	* dialog-solver.c (dialog_solver) : No need to create a cell manually
      	  and fill with empty.  sheet_cell_fetch will handle that.
      
      	* dialog-goal-seek.c (dialog_goal_seek) : No need to create cell
      	  locally.
      	(gnumeric_goal_seek) : Update size, span, and status region for the
      	  cell that was being tweaked.  While solving we did not update it.
      62fd10ba
  24. 17 Sep, 2000 1 commit
    • Jody Goldberg's avatar
      Use the newly minted Gnome Application Library (GAL) · 031ceea8
      Jody Goldberg authored
      2000-09-17  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-format-toolbar.c : Use the new Gnome App Libs (GAL)
      	  routines.
      	* src/workbook-view.c : Ditto.
      	* src/workbook.c : Ditto.
      
      	* src/main.c (gnumeric_main) : call e_color_init and e_color_shutdown.
      
      	* src/gnumeric-util.c (gnumeric_create_tooltip) :
      	  Rename from color -> e_color.
      	* src/style.c (style_color_new) : Ditto.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_realize) :
      	  Rename from cursor -> e_cursor.
      	* src/item-cursor.c (item_cursor_set_cursor) : Ditto.
      	* src/cell-comment.c (cell_comment_clicked) : Ditto.
      	* src/item-grid.c (item_grid_event) : Ditto.
      	* src/sheet-object.c : Ditto.
      
      	* src/color.c : Split the utilities into the gal library.
      
      	* src/Makefile.am : Remove cursors.[ch]
      
      	* configure.in : Handle the new Gnome App Lib (GAL)
      031ceea8
  25. 21 Aug, 2000 1 commit
    • Jody Goldberg's avatar
      Improve regexps. · 9ad38a63
      Jody Goldberg authored
      
      2000-08-21  Jody Goldberg <jgoldberg@home.com>
      
      	* src/number-match.c (format_create_regexp) : Improve regexps.
      
      	* src/formats.c (cell_format_is_number) : Format always uses standard
      	  decimal chars.
      
      	* src/format.c (gnumeric_setlocale) : New routine that clears cached
      	  locale info.
      	(format_get_decimal) : Improve use mon_decimal.
      	(format_get_thousand) : Improve use mon_thousands_sep.
      	(format_get_arg_sep) : New func.
      	(format_get_col_sep) : New func.
      	(format_destroy) : Use GPtrArray.
      	(render_number) : Improve localization.
      	(format_add_thousand) : rename format_toggle_thousands. De-localize.
      	(find_decimal_char) : De-localize.
      	(format_remove_decimal) : Ditto.
      	(format_add_decimal) : Ditto.
      	(format_number) : Ditto.
      
      	* src/expr.c (do_expr_tree_to_string) : Use format_get_arg_sep.
      
      	* src/cell.c (cell_get_format) : Update for the changes to StyleFormat.
      
      	* src/auto-format.c (auto_style_format_suggest) :
      	  style_format_new -> style_format_new_XL
      
      	* src/mstyle.c (mstyle_element_dump) : There is no direct access to
      	  the format string anymore.
      	(mstyle_set_format_text) : Add a warning.
      
      	* src/gutils.[ch] (float_get_from_range) : Delete.
      	(int_get_from_range) : Ditto.
      
      	* src/parser.y : Revamp lexer to use strtol, and strtod for number
      	  parsing.  Begin hooks for supporting row & col selection. (3:4 or A:B)
      
      	* src/print-info.c (render_value_with_format) : Changes to StyleFormat.
      
      	* src/sheet.h : Move SpanCalcFlags.
      	* src/gnumeric.h : here.
      
      	* src/style.[ch] : Privatize StyleFormat, move it to format.[ch]
      
      	* src/value.c (value_get_as_string) : Correctly localize things for
      	  output.
      
      	* src/workbook-format-toolbar.c (modify_cell_format) : format
      	  modification callback modifies the StyleFormat.
      
      	* src/workbook.c (workbook_set_auto_expr) : Use gnumeric_setlocale.
      
      	* src/xml-io.c (xml_workbook_read) : Use gnumeric_setlocale.
      	(xml_workbook_write) : Ditto.
      	(xml_read_cell) : Use style_format_new_XL.
      	(xml_write_cell_and_position) : Store the number formats in non localized XL form.
      	(xml_write_style) : Ditto.
      
      	* src/dialogs/dialog-cell-format.c (fmt_dialog_init_format_page) :
      	  Display localized number formats.
      	(fillin_negative_samples) : Not need to localize generated number
      	  formats.
      
      	* src/dialogs/dialog-function-wizard.c (formula_guru_set_expr) : Use
      	  format_get_arg_sep.
      
      	* src/dialogs/dialog-stf-format-page.c
      	  (stf_dialog_format_page_prepare) : StyleFormats are now explicitly
      	  stored in a locale neutral format.
      
      	* src/functions/fn-string.c (gnumeric_text) : changes to
      	  style_format_new.
      
      	* src/functions/fn-financial.c (coupdayb) : Silence some warnings.
      
      	* src/functions/fn-information.c (translate_cell_format) : This should
      	  now work for different locales.
      
      2000-08-18  Jody Goldberg <jgoldberg@home.com>
      
      	* src/number-match.c (compute_value) : Extend the match algorithms to
      	  handle the new regexps.
      
      	* src/format.c (format_get_thousand) : provide a better default for
      	  countries using ',' as a decimal point.
      9ad38a63
  26. 25 Jul, 2000 1 commit
    • James R. Van Zandt's avatar
      Update to HEAD gnome-print · 5dadf2b9
      James R. Van Zandt authored
      Lots of little pending fixes.
      
      2000-07-16  James R. Van Zandt  <jrv@vanzandt.mv.com>
      
      	* src/functions/fn-math.c: Misc. documentation cleanups.
      
      	* src/functions/fn-stat.c: Misc. documentation cleanups.
      
      	* src/functions/fn-eng.c: Fix nomenclature in erf and Bessel
      	  function documentation.  erf() accepts negative arguments.
      
      2000-07-24  Jody Goldberg <jgoldberg@home.com>
      
      	* src/colrow.c (col_row_set_visibility_list) : Fix typo in name.
      
      	* src/sheet.c (sheet_set_zoom_factor) : Set the default zoom to 1.
      	  (rather than the hackish -1) and add a 'force' flag to force an
      	  update even if the new zoom is close to the current zoom.
      
      	* src/workbook.c (change_zoom_in_current_sheet_cb) : Adjust to changes
      	  in sheet_set_zoom_factor.
      	* src/dialogs/dialog-zoom.c (dialog_zoom_impl) : Ditto.
      	* src/xml-io.c (xml_sheet_read) : Ditto.
      5dadf2b9
  27. 09 Jul, 2000 1 commit
    • Jody Goldberg's avatar
      Take units in pixels or points. (sheet_{col,row}_set_default_size_pixels) · b519fbd3
      Jody Goldberg authored
      
      2000-07-09  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.c (sheet_col_row_default_init) : Take units in pixels or
      	  points.
      	(sheet_{col,row}_set_default_size_pixels) : new functions.  This
      	  interface sucks.  Clean it up.
      
      	* src/parser.y : Optionally insert a place holder when an
      	  unknown function is found.
      
      	* src/func.c (function_add_placeholder) : New function, moved from the
      	  XL import code.
      
      	* src/expr.c (expr_parse_string) : gnumeric_expr_parser signature
      	  change.
      	* src/workbook.c (workbook_set_auto_expr) : Ditto.
      
      	* src/application.c (application_dpi_to_pixels) : New function.
      	* src/item-bar.c (item_bar_fonts_init) : Use it here.
      	* src/sheet-view.c (sheet_view_get_style_font) : And here.
      	* src/style.c (font_init) : and here.
      
      2000-07-08  Jody Goldberg <jgoldberg@home.com>
      
      	* src/parse-util.c (cellref_r1c1_get) : Make stricter.
      	(r1c1_get_item) : Ditto.
      
      2000-07-08  Jody Goldberg <jgoldberg@home.com>
      
      	* plugins/Makefile.am (SUBDIRS) : Enable applix.
      
      2000-07-08  Jody Goldberg <jgoldberg@home.com>
      
      	* src/parse-util.c (col_from_name) : Add optional arg to indicate
      	  where parsing stoped.  Similar to strtod.
      
      2000-07-07  Jody Goldberg <jgoldberg@home.com>
      
      	* src/xml-io.c (xml_write_style_border) : Trivial optimization.  No
      	  need to save colour for STYLE_BORDER_NONE.
      	(xml_read_style_border) : Ditto.
      b519fbd3
  28. 23 Jun, 2000 1 commit
  29. 22 Jun, 2000 1 commit
  30. 18 Jun, 2000 2 commits
  31. 17 Jun, 2000 1 commit
  32. 15 Jun, 2000 1 commit
  33. 20 Apr, 2000 1 commit
    • Jody Goldberg's avatar
      Reorg cell contents and assignment. · bedb925b
      Jody Goldberg authored
      Fixs lots of usability details.
      
      2000-04-20  Jody Goldberg <jgoldberg@home.com>
      
      	* src/dialogs/dialog-cell-format.c : Use the edit_pos as the example
      	  not the top left corner.
      
      	* src/functions/fn-stat.c (gnumeric_ftest) : Use eval_pos_cellref
      	  to help localize the strangeness.
      	(gnumeric_ttest) : Ditto.
      
      	* src/xml-io.c (xml_write_cell_and_position) : If this is an array
      	  expression and we are the top left then add attributes to indicate
      	  size of array.  Ignore the rest of the array.
      	(xml_not_used_old_array_spec) : New routinr to handle the old array format.
      	(xml_cell_set_array_expr) : store an array.
      	(xml_read_cell) : Handle the old and the new array formats.
      
      	* src/workbook.c (workbook_close_if_user_permits) : Accept input
      	  first.
      	(wb_edit_key_pressed) : Handle array formulas here.
      	(workbook_detach_sheet) : Do not recalc all if we are exiting.
      	(workbook_start_editing_at_cursor) : When we start editing an
      	  array formula display just the formula not all the extra {}()[][] crap.
      
      	* src/sheet.c (SheetPrivate) : Add a recompute_spans flag.
      	(sheet_calc_spans) : New routine.
      	(sheet_cell_calc_span) : New routine.
      	(sheet_range_calc_spans) : Renamed and extended from
      	  sheet_cells_update.
      	(sheet_update) : Use sheet_calc_spans when necessary.
      	  Update the location region when the edit_pos changes.
      	(cb_recalc_spans_in_col) : Renamed from cb_collect_cells_in_col.
      	  Recalcs spans directly, no need to collect first.
      	(cb_set_cell_content) : New routine to set expr, or expr_and_value.
      	(sheet_range_set_text) : Use cb_set_cell_content, and remember
      	  chosen format with the cell rather than overriding the assigned
      	  format.
      	(sheet_cell_set_text) : Renamed from sheet_set_text.  Be more specific
      	  about how spans, rendering and the rest are handled.
      	(sheet_cell_set_expr) : New routine.
      	(sheet_cell_set_value) : Ditto.
      	(sheet_load_cell_val) : When displaying an array formula add {%s}()[][].
      	(sheet_redraw_cell_region) : Honour spans when redrawing.
      	(sheet_redraw_partial_row) : New routine.
      	(sheet_redraw_cell) : Ditto.
      	(sheet_is_cell_array) : Use cell_is_array.
      	(sheet_range_splits_array) : Renamed from sheet_check_for_partial_array.
      	(sheet_cell_add_to_hash) :  Do not touch spans at this point.
      	(sheet_cell_insert) : Rename from sheet_cell_add made recalc span
      	  optional.
      	(sheet_cell_new) : New routine that does not touch spans.
      	(sheet_cell_remove) : Made redraw optional.
      	(cb_clear_cell_comments) : Remove the cell if there is no comment.
      	(sheet_clear_region) : Remove the cell if there are no comments or
      	  contents.  Flag an update of the status region.
      
      	* src/sheet-view.c (cb_colrow_resize) : New function.
      	(sheet_view_col_size_changed) : Resize all rows, irrespective of
      	(sheet_view_row_size_changed) : existing cells.
      	(sheet_view_redraw_cell_region) : This no longer honours spans.
      
      	* src/sheet-style.c (sheet_style_attach) : Removed call to redraw.
      	sheet_cells_update : rename to sheet_range_calc_spans and move to
      	  sheet.c.
      
      	* src/sheet-autofill.c (autofill_cell) : Use sheet_cell_set_value
      	  rather than set_text.
      
      	* src/selection.c (sheet_selection_changed_hook) : Delete.
      	(sheet_selection_extend_to) : Update the status region to display the
      	  new size.
      	(sheet_selection_cut) : Use sheet_range_splits_array.
      	(selection_check_for_array) : New routine.
      
      	* src/parser.y : Remove icky array formula parsing that conflicted
      	  with array entries.
      
      	* src/number-match.c (format_match) : Return a Value * rather than a
      	  double.
      
      	* src/mstyle.c (mstyle_set_font_size) : Do not allow font sizes < 1.
      
      	* src/main.c (gnumeric_main) : Do NOT create an empty workbook
      	  then delete it if things are successfully loaded.  This causes
      	  a global recalc.  Instead add a flag to disable exit when the
      	  number of workbooks go to zero.  Then only enable the flag AFTER
      	  we have attempted to load the initial workbooks.
      
      	* src/item-grid.c (item_grid_event) : Update the status_region when
      	  button-1 is release.  It should display the edit_pos.
      
      	* src/gutils.c : Move cell_name, col_name, col_from_name,
      	  parse_cell_name, parse_cell_name_or_range and parse_cell_name_list,
      	  to parse-util.c.
      
      	* src/gnumeric.h  : Add RenderedValue.
      
      	* src/gnumeric-util.c (gnumeric_char_start_expr_p) : Move
      	  to parse-util.c
      
      	* src/file.c (workbook_read) : Remove freese thaw usage.
      	  Move call to update AFTER mark clean.
      
      	* src/expr.c (eval_pos_init) : Take a cellpos.
      	(parse_pos_evalpos) : New routine.
      	(eval_pos_cellref) : There is some questionable code scattered in the
      	  functions.  This routing localizes the odd bits for correction.
      
      	* src/eval.c (cell_eval_content) : Use sheet_redraw_cell,
      	  and rendered_value_calc_size.
      	(cell_get_dependencies) : Improve constness.
      
      	* src/corba-sheet.c : Remove the freeze thaw operations.
      	(Sheet_cell_set_formula) : Deleted.
      	(Sheet_range_set_formula) : Delete.
      
      	* src/commands.c : Adjust so that registration of command auto
      	  calls redo.  Add misc checks for splitting arrays.
      
      	* src/clipboard.h : Move the CellCopy types here from cell.h
      
      	* src/clipboard.c (paste_cell) : Use cell_has_expr.
      	  Don't insert the new cell till after its contents are assigned.
      
      	* src/cellspan.c (cell_register_span) : Improve constness.
      	(cell_unregister_span) : Ditto.
      	(row_cell_get_displayed_at) : Delete.
      	(cell_calc_span) : Moved here from cell.c
      
      	* src/dialogs/dialog-stf.glade : Adjust the header background colour
      	  to match the purdy new icon.  Add the icon.
      
      	* src/cell-draw.c : Use the rendered_value routines.
      	  Improve constness.
      
      	* src/analysis-tools.c (set_cell) : Use sheet_cell_fetch.
      
      	*.*
      	    cell_set_* -> sheet_cell_set_
      	    cell_set_*_simple -> cell_set_
      	    Cell::{row,col} -> Cell::{row,col}_info
      	    cell_get_text -> cell_get_entered_text
      	    cell_get_content -> cell_get_entered_text
      	    cell_name -> cell_coord_name
      	    cell_get_formatted_val -> cell_get_rendered_text
      	    cell_get_content -> cell_get_entered_text
      
      	* src/cell.c :
      	(cell_dirty) : Renamed from cell_modified.  Use
      	  sheet_set_dirty.
      	(cell_formula_changed) : Make the queuing of the recalc optional.
      	(cell_cleanout) : Handle union of expression and entered_text,
      	  and remove the rendered value.
      	(cell_copy) : Ditto.
      	(cell_destroy) : handle cell_modified -> cell_dirty.
      	(cell_set_text) : Use parse_text_value_or_expr and store the prefered
      	  format.
      	(cell_set_text_and_value) : New routine.
      	(cell_assign_value) : New routine.
      	(cell_set_value) : Support formats.
      	(cell_set_expr_and_value) : New routine.
      	(cell_set_expr_internal) : Split from cell_set_expr.
      	(cell_set_expr) : Divide to allow for not queuing a recalc.
      	(cell_set_array_formula) : Use cell_set_expr_internal.
      	(cell_is_array) : New utility.
      	(cell_is_partial_array) : New utility.
      	(cell_has_expr) : New utility.
      	(cell_render_value) : Use rendered_value_*.
      	Move all comment routines into cell-comment.[ch].
      
      	* idl/Gnumeric.idl : Remove cell_set_formula, and range_set_formula.
      	  These were identical to set_text.  Made Workbook embeddable.
      bedb925b
  34. 01 Apr, 2000 1 commit
    • Jody Goldberg's avatar
      Fix the silly edit bug tha was being reported. · fce11703
      Jody Goldberg authored
      Some major work on item-edit.
      
      2000-03-31  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook.c : Switch over to useing GNOMEUIINFO_ITEM_ where
      	  possible.
      	(cb_editline_focus_in) : Do not start editing if we are already
      	  editing.
      
      	* src/utils.c (parse_cell_name) : constness.
      
      	* src/style.c (style_font_gdk_font) : constness.
      	(style_font_gdk_font) : ditto.
      	(style_font_gnome_font) : ditto.
      	(style_font_get_height) : ditto.
      
      	* src/sheet.c (sheet_set_zoom_factor) : redimension all cells, rather
      	  than the sparse sheet region.  Do not auto-resize.
      	(sheet_cell_add) :  Adjust to new calling convention for
      	  cell_calc_dimensions.
      	(sheet_stop_editing) : Rename from sheet_destroy_edit_cursor.
      
      	* src/sheet-view.c (sheet_view_get_style_font) : constness.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_create_editing_cursor) :
      	  No need to set all those arguments.
      	(destroy_item_editor) : Merge into gnumeric_sheet_stop_editing.
      	(gnumeric_sheet_stop_editing) : Renamed from
      	  gnumeric_sheet_destroy_editing_cursor.
      
      	* src/cell.[ch] (cell_set_rendered_text) : Adjust to new calling
      	  convention for cell_calc_dimensions.
      	(cell_calc_dimensions) : Adjust calling convetion to make auto
      	  resizing optional.
      	(calc_text_dimensions) : Adjust calling convention to directly set size.
      
      	* src/sheet-style.c (re_dimension_cells_cb) :  Adjust to new calling
      	  convention for cell_calc_dimensions.
      
      	* src/item-edit.c : Major rework to behave better at margins,
      	  correctly handle cells whose display contents span differently than
      	  their displayed values, multi-line display mechanics, and a blinking
      	  cursor :-)
      fce11703