1. 29 Aug, 2001 1 commit
  2. 28 Aug, 2001 1 commit
    • Jody Goldberg's avatar
      pass graphs into their parser. · 6117cca9
      Jody Goldberg authored
      2001-08-28  Jody Goldberg <jgoldberg@home.com>
      
      	* ms-obj.c (ms_read_OBJ) : pass graphs into their parser.
      
      	* ms-excel-read.c (ms_sheet_realize_obj) : renamed from
      	  ms_sheet_obj_realize.
      	(ms_sheet_create_obj) : renamed from ms_sheet_obj_create.
      	  Improve the warnings for unhandled objects.
      	  Pass graphs into the parser.
      
      	* ms-container.c (ms_container_workbook) : delete.
      
      	* ms-chart.c (ms_excel_chart) : enable some of the xml spec generation.
      	  and take the GnmGraph as an argument.
      	(ms_excel_read_chart) : take the graph as an argument.
      
      2001-08-27  Jody Goldberg <jgoldberg@home.com>
      
      	* ms-excel-read.c (ms_sheet_parse_expr_internal) : disable some of the
      	  debugging spew.
      
      2001-08-28  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-control-gui.c (scg_mode_edit) : fix a warning on exit
      	  when closing 1 of many open sheets.
      
      	* src/gnumeric-graph.c : make the debug spew conditional.
      	(CMANAGER1) : new macro.
      	(gnm_graph_new) : add more safety checks.
      	(gnm_graph_arrange_vectors) : use the versioning macros.
      	(gnm_graph_import_specification) : new routine.
      
      	* idl/gnumeric-graphs.idl (importSpecification) : new routine.
      
      	* src/xml-io.c : clean up.
      	s/xml_get_value_int/xml_prop_get_int/
      	s/xml_set_value_int/xml_prop_set_int/
      	s/xml_get_value_double/xml_prop_get_double/
      	s/xml_set_value_double/xml_prop_set_double/
      	s/xml_set_value_points/xml_prop_set_points/
      	s/xml_set_value_cstr/xml_prop_set_cstr/
      	s/xml_set_prop_cellpos/xml_prop_set_cellpos/
      	s/xml_get_prop_cellpos/xml_prop_get_cellpos/
      	s/xml_read_range/xml_prop_get_range/
      	s/xml_get_print_hf/xml_prop_get_print_hf/
      	s/xml_set_print_hf/xml_prop_set_print_hf/
      	s/xml_set_color_value/xml_prop_set_color/
      	s/xml_get_color_value/xml_prop_get_color/
      	s/xml_set_value_color/xml_prop_set_gdkcolor/
      	s/xml_get_value_color/xml_prop_get_gdkcolor/
      
      	Remove the pointless searching of children for content.
      	We never relied on those semantics, nor do we want them.
      
      	(xml_sheet_create) : Use xmlGetProp directly.
      	(xml_sheet_read) : ditto.
      	(xml_read_solver) : ditto.
      	(xml_write_solver) : use xml_prop_set_cstr.
      	(xml_write_print_info) : Use xmlNewChild.
      	(xml_value_get) : delete and use xmlGetProp directly.
      
      2001-08-27  Jody Goldberg <jgoldberg@home.com>
      
      	* src/gnumeric-graph.c (gnm_graph_vector_set_expr) : remove debuggin
      	  cruft.
      6117cca9
  3. 26 Aug, 2001 1 commit
    • Jody Goldberg's avatar
      fix typo. and generate the expression using the source cell rather than · b6548888
      Jody Goldberg authored
      2001-08-26  Jody Goldberg <jgoldberg@home.com>
      
      	* fn-information.c (gnumeric_expression) : fix typo.
      	  and generate the expression using the source cell rather than then
      	  position with the call to expression.
      2001-08-26  Jody Goldberg <jgoldberg@home.com>
      
      	* src/gnumeric-graph.c (gnm_graph_add_vector) : merge with
      	  gnum_graph_vector_new and add intelligence to merge multiple
      	  requests for the same vector into a single vector.
      
      2001-08-26  Jody Goldberg <jgoldberg@home.com>
      
      	* src/position.c (cellref_get_abs_pos) : rename and adjust signature.
      
      	* src/expr.c (expr_tree_equal) : new function.
      b6548888
  4. 23 Aug, 2001 2 commits
    • Jody Goldberg's avatar
      only delete the series after processing. condtionalize some of the debug · b3b93a11
      Jody Goldberg authored
      2001-08-23  Jody Goldberg <jgoldberg@home.com>
      
      	* ms-chart.c (ms_excel_chart) : only delete the series after
      	  processing.  condtionalize some of the debug spew.
      	  condtionalize parsing based on the existence of a graph
      	  condtionalize making the graph on the debug flag (for now)
      	(BC_R(sertocrt)) : store the chart group.
      	(BC_R(series_impl)) : merge back into BC_R(series).
      	(BC_R(vector_details)) : use the gnumeric type directly.
      	(excel_chart_series_new) : new.
      	(excel_chart_series_destroy) : new.
      
      	* ms-container.c (ms_container_workbook) : new function.
      	(ms_container_sheet) : ditto.
      
      	* ms-excel-read.c (ms_wb_workbook) : new function.
      	(ms_excel_workbook_new) : used here.
      	(ms_sheet_workbook) : new function.
      	(ms_sheet_sheet) : new function.
      	(ms_excel_sheet_new) : used here.
      
      2001-08-21  Jody Goldberg <jgoldberg@home.com>
      
      	* ms-chart.c (gnm_graph_vector_type_name) : use the version in gnumeric-graph.c
      	(BC_R(vector_details)) : Use the correct index for the debug info.
      
      	* ms-excel-read.c (ms_excel_biff_dimensions) : Use range_name.
      
      2001-08-23  Jody Goldberg <jgoldberg@home.com>
      
      	* dialog-graph-guru.c (graph_guru_create_vectors_from_range) : Use the
      	  new gnm_graph_vector_new interface.
      	(cb_data_simple_col_row_toggle) : use gnm_graph_arrange_vectors.
      2001-08-23  Jody Goldberg <jgoldberg@home.com>
      
      	* idl/gnumeric-graphs.idl : reorganize to improve naming.
      	  remove notion of header that was not working well.
      	  remove freeze.
      	  add arrangeVector.
      	  add notion of selection for future uese.
      
      	* src/gnumeric-graph.c (gnm_graph_vector_type_name) : add these.
      	(MANAGER) : bump the idl version.
      	(GnmGraphVector) : remove header, add id, adjust to new idl and use
      	  vectors directly, rather than notifies.
      	(gnm_graph_add_vector) : adjust to idl renaming.
      	(gnm_graph_new) : improve error message.
      	(gnm_graph_freeze) : delete.
      	(gnm_graph_arrange_vectors) : new function.
      	(gnm_graph_vector_seq_{scalar,date,string}) : headers are handled at a
      	  higher level.
      	(gnm_graph_vector_eval) : idl renaming.
      	(impl_vector_selection_selected) : new.
      	(gnm_graph_vector_corba_init) : split from gnm_graph_vector_new to
      	  simpify cut-n-paste sharing with guppi.
      	(gnm_graph_vector_corba_destroy) : Fix and split out to simplify
      	  sharing.
      	(gnm_graph_vector_destroy) : simplify and handle the case of a vector
      	  being destroyed indepenently of the graph.
      	(gnm_graph_vector_new) : handle headers at a higher level.
      	(gnm_graph_vector_corba_class_init) : renamed from
      	  corba_implementation_classes_init.
      
      	* src/sheet-object-container.c (sheet_object_container_new_view) : Use
      	  bonobo_client_site_new_view_full to disable the irrtiating frame
      	  that causes the content to change size when the frme is activated
      	  and deactivated.
      b3b93a11
    • Morten Welinder's avatar
      Spelling fixes... · 7c1bcd9c
      Morten Welinder authored
      7c1bcd9c
  5. 20 Aug, 2001 1 commit
    • Jody Goldberg's avatar
      All we need is a wbc. (sheet_object_anchor_set) : new routine to replace · b459aaa7
      Jody Goldberg authored
      
      2001-08-20  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-object.c (sheet_object_remove_cb) : All we need is a wbc.
      	(sheet_object_anchor_set) : new routine to replace range_set.
      	(sheet_object_anchor_get) : new.
      	(sheet_object_anchor_cpy) : new.
      	(sheet_object_anchor_init) : new routine to bundle up object
      	  positioning more neatly.
      
      	* src/sheet-object-cell-comment.c (cell_set_comment) : Only use anchor
      	  types that are implemented.  Use the new SheetObjectAnchor scheme.
      
      	* src/sheet-control-gui.c (scg_object_move) : track whether the ctrl
      	  point causes a move or a resize.
      	(cb_control_point_event) : store the initial anchor rather than the
      	  control specific position,  and assume that the changes are simple
      	  movements until a resize occurs.
      	(scg_object_calc_position) : adjust to using SheetObjectAnchor.
      	(scg_colrow_distance_get_virtual) : new routine.
      	(scg_class_init) : register it here.
      
      	* src/sheet-control.c (sc_colrow_distance_get) : a new new virtual.
      
      	* src/gnumeric-canvas.c (gnm_canvas_key_mode_object) : delete newly
      	  created objects too.
      	(gnm_canvas_filenames_dropped) : signature change
      	  for sheet_object_container_new_file.
      
      	* src/gnumeric.h : add GnmGraph.
      
      	* src/Makefile.am : rename graph-vector -> gnumeric-graph
      
      	* idl/gnumeric-graphs.idl : Add some versioning.
      	  Move the header arg out of the value callback.
      	  Replace VectorNotify::remove with Manger::clearVectors.
      	  Merge freeze & thaw.
      	  Renamed 'nameChange' to 'headerChanged'
      	  Add an 'id' arg when registering vectors.
      
      2001-08-19  Jody Goldberg <jgoldberg@home.com>
      
      	* src/commands.c
      	    s/insert_object/object_insert/
      	    s/move_object/object_move/
      	    s/delete_object/object/delete/
      	(cmd_object_insert_redo) : The object knows its position based on its
      	  anchor. No need to set the control specific coordinates for an
      	  arbitrary control.  No need to tweak the reference count either.
      	(cmd_object_insert) :  ditto.
      	(cmd_object_insert_undo) : no need to tweak the ref count.
      	(cmd_object_delete_redo) : keep it simple, just set the sheet.
      	(cmd_object_delete_undo) : just clear the sheet.
      	(cmd_object_delete_destroy) : very simple.
      	(cmd_object_move_redo) : store the anchor, not the position for a
      	  specific control.  Be careful not to move the object the firs time
      	  through.  We've already done that.
      	(cmd_move_object_undo) : just call redo.
      	(cmd_object_move) : store the old anchor and take a flag indicating
      	  move vs resize.
      
      	* src/workbook-control-gui.c (wb_control_gui_toplevel) : Add some
      	  protection.
      
      	* src/sheet-object.c (sheet_object_update_bounds) : rename from
      	  sheet_object_position to have a clearer name.
      
      	* src/embeddable-grid.c (embeddable_grid_init_anon) : init the sheet.
      	(grid_view_new) : use scg_toplevel.
      
      	* src/sheet-control-gui.c (scg_toplevel) : new function.
      
      2001-08-18  Jody Goldberg <jgoldberg@home.com>
      
      	* src/gnumeric-graph.c : Major reorg to fix life cycle issues.
      	(gnm_graph_new) : don't dangle the reference returned by oaf.
      	(gnm_graph_destroy) : deactivate & _fini the corba obj.
      	(gnm_graph_vector_destroy) : ditto.
      
      	* src/expr.c (expr_to_graph_vector) : delete this function.
      	  we have no need to disassemble the expression in graphs.
      
      	* src/item-grid.c : revert switch from destroy -> finalize.
      	* src/item-bar.c : ditto.
      
      	* src/sheet-object-container.c : no need to include gnorba.
      	  no need to include sheet-control-gui-priv anymore.
      	(sheet_object_container_destroy) : delete unused.
      	(sheet_object_container_new) : weaken requirements to take a workbook,
      	  rather than a sheet as the container.
      	(sheet_object_container_new_object) : ditto.
      	(sheet_object_container_new_file) : ditto.
      
      	* src/workbook-private.c : delete some unnecessary code.
      
      	* src/workbook.c : include sheet-control vs sheet-control-gui.
      	(workbook_expr_unrelocate) : it is ok to attempt to relocate to a
      	  non-existent cell.
      
      	* src/commands.c (cmd_paste_cut_undo) : restore the original content
      	  AFTER unrelocating the expressions.
      
      	* src/workbook-control-gui.c (workbook_control_gui_init) : Add the
      	  magic to enable the bonobo toolbar config utility.
      	(workbook_menu_edit) : Fix the accelerators and sync the text with the
      	  bonobo version.
      	(wbcg_menu_state_update) : Fix the capitalization for freeze/unfreeze.
      	(change_menu_label) : Fix accelerator display, we still don't set
      	  them, but at least we display them correctly.
      	(insert_bonobo_object) : signature change to
      	  sheet_object_container_new_object.
      
      2001-08-17  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.c (sheet_freeze_panes) : set the initial top_left position
      	  based on the frozen pane when unfreezing.
      
      	* src/sheet-control-gui.c (scg_set_panes) : prepare for h/v only splits.
      	  Reformat.  Remove code to set the topleft after the panes are
      	  created or removed.  That is handled by sheet.
      
      	* src/GNOME_Gnumeric.xml : enable the font accelerators in the bonobo
      	  build by making them standalone rather than associating them with
      	  toolbuttons.  It appears as if bonobo does not support accelerators
      	  for toolbuttons as yet.
      b459aaa7
  6. 21 Jun, 2001 1 commit
  7. 07 May, 2001 1 commit
    • Jody Goldberg's avatar
      More warning suppression. · 2469741e
      Jody Goldberg authored
      2001-05-07  Jody Goldberg <jgoldberg@home.com>
      
      	* ms-escher.c (ms_escher_get_data) : suppress warnings.
      	(ms_escher_read_ClientTextbox) : no side effects in precondition.
      
      	* ms-excel-read.c (ms_excel_formula_shared) : ditto.
      
      2001-05-07  Jody Goldberg <jgoldberg@home.com>
      
      	* src/item-cursor.c (item_cursor_event) : ignore events while editing.
      
      	* src/functions/fn-string.c (gnumeric_value) : s/free/g_free/
      	* src/parse-util.c (parse_cell_name_list) : ditto.
      
      	* src/parser.y (gnumeric_expr_parser) : reorganize slightly to improve
      	  readability.
      
      	* src/sheet.c (sheet_range_contains_region) : doh!.  forgot to invert
      	  logic when I renamed the function.
      2469741e
  8. 11 Apr, 2001 1 commit
    • Jody Goldberg's avatar
      Some object & escher improvement. · b9ba63fe
      Jody Goldberg authored
      The beginings of name simplification.
      
      2001-04-04  Jody Goldberg <jgoldberg@home.com>
      
      	* ms-excel-read.c (ms_excel_externsheet) : new function split from
      	(ms_excel_read_workbook) : here.
      
      	* ms-excel-read.c (biff_name_data_new) : begin cleanup.  The
      	  sheet_index is stored in different places for different biff types.
      	  There also appears to be enough data about the sheet names that we
      	  may not need to do this magic delayed instantiation.
      
      2001-04-03  Jody Goldberg <jgoldberg@home.com>
      
      	* ms-chart.c (ms_excel_chart) : provide stub handlers for container
      	  virtuals.
      
      2001-04-02  Jody Goldberg <jgoldberg@home.com>
      
      	* ms-excel-read.c (ms_excel_read_imdata) : new routine pulled from.
      	(ms_excel_read_cell) : here.
      
      	* ms-obj.c (ms_obj_read_biff8_obj) : used here.
      
      2001-04-01  Jody Goldberg <jgoldberg@home.com>
      
      	* ms-escher.c (ms_escher_get_data) : improve diagnostic info.
      
      	* ms-obj.c (ms_obj_read_biff8_obj) : when reading the mystery trailing
      	  IMDATA we need to handle CONTINUE.  We really need to figure out
      	  what this is.
      b9ba63fe
  9. 01 Apr, 2001 1 commit
    • Morten Welinder's avatar
      Fix prototype. · 8baddc83
      Morten Welinder authored
      2001-04-01  Morten Welinder  <terra@diku.dk>
      
      	* ms-chart.c (BC): Fix prototype.
      
      	* gnumeric-chart.c (gnumeric_chart_new): Fix prototype.
      
      	* ms-excel-write.c (get_default_mstyle): Fix prototype.
      8baddc83
  10. 31 Mar, 2001 1 commit
    • Jody Goldberg's avatar
      Some improvements to blip loading. · 186ac28d
      Jody Goldberg authored
      and some tuning that greatly improves startup time.
      
      2001-03-30  Jody Goldberg <jgoldberg@home.com>
      
      	* ms-container.c (ms_container_init) : Take a parent container.
      	(ms_container_finalize) : handle NULL blips smoothly.
      	(ms_container_get_blip) : check the container if we are empty.
      
      	* ms-escher.c (ms_escher_read_Blip) : always register a blip, even if
      	  it is NULL, otherwise the index gets confused.  Move the
      	  registration here.
      	(ms_escher_blip_new) : from here.
      	(ms_escher_read_ClientData) : replace blips we can't understand with
      	  rectangles.
      
      	* ms-chart.c (ms_excel_chart) : Pass in the charts container.
      
      	* ms-excel-read.c (ms_excel_workbook_new) : workbook have no parents.
      	(ms_excel_sheet_new) : Sheets are contained by workbooks.
      
      2001-03-30  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-control-gui.c (wbcg_sheet_remove_all) : clear the
      	  notebook BEFORE deleting it to avoid updating during destuction.
      
      	* src/cellspan.c (cell_calc_span) : Cells in hidden columns can not
      	  have spans.
      
      	* src/file.c (file_finish_load) : no need to manually respan this will
      	  happen via sheet_update.  This gives us a nice speed up.
      
      	* src/sheet.c (sheet_cell_calc_span) : don't reregister spans that
      	  have not changed.
      	(sheet_new) : init all flags to true to ensure things get updated.
      186ac28d
  11. 20 Mar, 2001 1 commit
    • Chyla Zbigniew's avatar
      Building excel plugin as shared library, added plugin.xml. · 098d1f56
      Chyla Zbigniew authored
      
      * Makefile.am:
      Building excel plugin as shared library, added plugin.xml.
      
      * boot.[ch]:
      xxx_debug variables from src/main.c moved here.
      Converted to real plugin with file_opener and file_saver services.
      
      * plugin.xml: New file.
      
      * gnumeric/plugins/excel/excel.h, plugins/excel/ms-chart.c,
      plugins/excel/ms-escher.c, plugins/excel/ms-excel-read.c,
      plugins/excel/ms-excel-read.h, plugins/excel/ms-excel-util.c,
      plugins/excel/ms-excel-write.c, plugins/excel/ms-excel-write.h,
      plugins/excel/ms-formula-read.c, plugins/excel/ms-formula-write.c,
      plugins/excel/ms-obj.c:
      Adjusted function signatures, don't return TRUE/FALSE if using
      IOContext (we don't need boolean value as IOContext now sets
      "error_occurred" flag).
      098d1f56
  12. 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
  13. 31 Dec, 2000 1 commit
  14. 20 Dec, 2000 1 commit
    • Jody Goldberg's avatar
      Use ms_container_parse_expr. · c6e6e54e
      Jody Goldberg authored
      
      2000-12-20  Jody Goldberg <jgoldberg@home.com>
      
      	* ms-chart.c (BC_R(ai)) : Use ms_container_parse_expr.
      
      	* ms-container.c (ms_container_parse_expr) : new function.
      
      	* ms-excel-read.c (ms_sheet_parse_expr_internal) : implement parse_expr.
      c6e6e54e
  15. 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
  16. 02 Nov, 2000 1 commit
    • Jody Goldberg's avatar
      remove check for BOF type == chart. in BIFF5 it is possible to. · 3809e3ec
      Jody Goldberg authored
      
      2000-11-02  Jody Goldberg <jgoldberg@home.com>
      
      	* ms-chart.c (ms_excel_chart) : remove check for BOF type == chart.
      	  in BIFF5 it is possible to.
      
              * ms-excel-read.c (ms_excel_read_sheet) : If we find a CHART_unit
      	  record parse the following records as if they were a chart.
      3809e3ec
  17. 30 Oct, 2000 1 commit
    • Morten Welinder's avatar
      Move endian dependencies into the core. · 9f4c754a
      Morten Welinder authored
      2000-10-30  Morten Welinder  <terra@diku.dk>
      
      	* ms-biff.c (biff_getdouble, biff_setdouble): Delete.  Replace all
       	callers with gnumeric_get_le_double and gnumeric_set_le_double.
      
      2000-10-30  Morten Welinder  <terra@diku.dk>
      
      	* src/functions/fn-math.c (gnumeric_sumproduct): Plug leak.
      9f4c754a
  18. 21 Aug, 2000 1 commit
    • Jody Goldberg's avatar
      The format table nows stores pointers to StyleFormats rather than their · e83b0fd6
      Jody Goldberg authored
      
      2000-08-21  Jody Goldberg <jgoldberg@home.com>
      
      	* ms-excel-write.c (formats_init) : The format table nows stores
      	  pointers to StyleFormats rather than their strings.
      	(formats_get_format) : Ditto.
      	(formats_free) : Ditto.
      	(formats_get_index) : Ditto.
      	(put_format) : Ditto.
      	(write_format) : Ditto.
      
      	* ms-excel-read.c (biff_format_data_lookup) : Number formats are
      	  stored in XLS using the 'C' locale. eg a french user who sees
      	  '# ##0,00' will actually save '#,##0.00'.
      	(ms_excel_get_style_from_xf) : Kludge.  We need to actually set
      	  non-borders so that things get over ridden.  The core model needs
      	  improving before this can happen correctly.
      	(ms_excel_get_style_from_xf) : Ditto.
      
      	* ms-escher.c (ms_escher_read_Blip) : Remove gnorba.
      
      	* ms-chart.c (ai) : Changes to the interface for StyleFormats.
      	(ifmt) : Ditto.
      	(ms_excel_chart) : Init the sheet.  Ignore BIFF_DIMENSION records for
      	  now.  I have no idea what they represenent.
      
      2000-08-20  Jody Goldberg <jgoldberg@home.com>
      
      	* ms-excel-read.c (ms_excel_get_style_from_xf) : No need to use
      	  set_text.  Set the StyleFormat directly.
      
      2000-08-16  Jody Goldberg <jgoldberg@home.com>
      
      	* ms-excel-util.c (init_xl_font_widths) : Tweak Times New Roman
      	  to match observations.  It seems as if the size is non-linear :-(
      	  We'll need another round of measurements to account for this.
      
      2000-08-15  Jody Goldberg <jgoldberg@home.com>
      
      	* ms-chart.c (ms_excel_chart) : conditionalize debug info.
      e83b0fd6
  19. 09 Aug, 2000 1 commit
  20. 15 Jul, 2000 1 commit
    • Jody Goldberg's avatar
      Beginings of a some support for workbooks, and charts holding objects. · 8eaf2ce4
      Jody Goldberg authored
      
      2000-07-13  Jody Goldberg <jgoldberg@home.com>
      
      	* ms-container.c : Beginings of a some support for workbooks, and charts holding objects.
      	  Blips should become objects.
      
      	* *.c : adjust to using the container abstraction.
      
      2000-07-08  Jody Goldberg <jgoldberg@home.com>
      
      	* ms-formula-read.c (make_function) : Move the place holder handling
      	  into the core.
      8eaf2ce4
  21. 06 Jul, 2000 1 commit
    • Jody Goldberg's avatar
      Get the range selectors parsed correctly. · 2154ace1
      Jody Goldberg authored
      2000-07-06  Jody Goldberg <jgoldberg@home.com>
      
      	* ms-obj.c (ms_read_OBJ) : Take an ExcelSheet.
      
      	* ms-escher.c (ms_escher_read_ClientData) : ms_read_OBJ takes a sheet.
      	* ms-excel-read.c (ms_excel_read_sheet) : Ditto.
      	(ms_excel_read_workbook) : Ditto.
      
      	* ms-chart.c (3dbarshape) : A bit of research into probable values of
      	  the enum.
      	(ai) : After some thought this makes more sense.  We should only see
      	  an expression if we are linked to the workbook.  Similarly we should
      	  only see a format if one is specified.  We really need to avoid this
      	  kludge of needing a dummy sheet.
      	(areaformat) : Ignore colour index, use the stored colour.  Add some
      	  more debug info.
      	(lineformat) : Ditto.
      	(markerformat) : Ditto.
      	(ms_excel_chart) : Take an optional ExcelSheet.
      	  Parse BIFF_NUMBER records when they appear.
      	(ms_excel_read_chart) : Take an optional ExcelSheet.
      2154ace1
  22. 07 Jun, 2000 1 commit
  23. 05 Jun, 2000 1 commit
  24. 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
  25. 10 Apr, 2000 1 commit
    • Miguel de Icaza's avatar
      Do not destroy the context here, as it is dereferenced later in the · 30aba440
      Miguel de Icaza authored
      
      
      2000-04-07  Miguel de Icaza  <miguel@gnu.org>
      
      	* main.c (button_cancel): Do not destroy the context here, as it
      	is dereferenced later in the mainloop.
      
      2000-04-10  Miguel de Icaza  <miguel@gnu.org>
      
      	* Lots of files: replaces utils.h for gutils.h
      
      	* renamed utils.h to gutils.h to avoid the compilation problem on
      	some Unices (yes, fixing the Makefile would have done it, but
      	utils.h was still a lame name;  Of course gutils.h is not any
      	better, but it is now done).
      
      2000-04-07  Miguel de Icaza  <miguel@gnu.org>
      
      	* src/cellspan.c (span_remove): Pretify code.
      30aba440
  26. 24 Mar, 2000 1 commit
    • Jody Goldberg's avatar
      Update copywrite years. · 302aced7
      Jody Goldberg authored
      
      2000-03-24  Jody Goldberg <jgoldberg@home.com>
      
      	* *.[ch] : Update copywrite years.
      
      	* ms-obj.c (ms_read_OBJ) : improve debug output.
      	(ms_obj_read_biff8_obj) : Try a new heuristic for dealing with trailing IMDATA.
      302aced7
  27. 10 Feb, 2000 1 commit
    • Jody Goldberg's avatar
      Remove inclusion of cell.h. Adjust includes to loosen things a bit more. · f6b62c13
      Jody Goldberg authored
      
      2000-02-10  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.h : Remove inclusion of cell.h.  Adjust includes to loosen
      	  things a bit more.
      
      	* src/colrow.h : Remove margin_a_pt margin_b_pt.  Margins are NOT
      	  scaled by resolution or zoom.
      	  Rename units -> size_pts and store as float rather than double.
      	  Rename pixels-> size_pixels
      	  hard_size -> use gboolean rather than a 1 element bitfield
      
      	* src/style.h : Move the typedefs from here.
      	* src/gnumeric.h : to here.
      
      	*.[ch] : Catch up with the renames and include changes.
      f6b62c13
  28. 17 Jan, 2000 1 commit
  29. 29 Dec, 1999 1 commit
    • Jody Goldberg's avatar
      - Initial usage of the new exception mechanisms. · f8206c57
      Jody Goldberg authored
      - Improve versioning of the plugins.
      - Some bug fixes.
      
      1999-12-29  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-view.c (command_context_gui,
      				gui_splits_array,
      				gui_plugin_problem,
      				command_context_gui_cast) : New functions.
      
      	* src/workbook.c (workbook_new) : Switch to using the workbook_view
      	  routines to manipulate the undo/redo and paste/paste_special menu
      	  items.
      
      	* src/func.c (function_iterate_argument_values) : Return an error
      	  for empty/missing arguments.
      
      	* plugins/*/Makefile.am : Define GNUMERIC_VERSION.
      
      	* plugins/*/*.c (init_plugin): Take a CmdContext for error reporting.
      	  Call plugin_version_mismatch to do some minimal version matching for
      	  plugins and the running application.
      
      	* src/Gnumeric.idl : Add PluginProblem.
      
      	* src/command-context.[ch] (gnumeric_error_splits_array,
      				    gnumeric_error_plugin_problem,
      				    command_context_vtbl_init) : New functions.
      
      	* src/plugin.c (plugin_version_mismatch) : New function.
      	  (plugin_load) : Hard code a GUI context for now.
      	                  Switch to using gnumeric_error_ routines.
      			  Pass a CmdContext to the init_plugin routines.
      			  Only produce an error if the plugin returns -1.
      			  Store the plugin filename.
      	  (plugin_unload) : Free the filename on exit.
      
      	* *.c : command_context_gui now takes a Workbook argument.
      	      : Switch from gnumeric_no_modify_array_notice
      	                 to gnumeric_error_splits_array in most places.
      f8206c57
  30. 28 Nov, 1999 1 commit
  31. 05 Nov, 1999 1 commit
  32. 03 Oct, 1999 1 commit
  33. 01 Oct, 1999 1 commit
  34. 20 Sep, 1999 1 commit
  35. 19 Sep, 1999 1 commit
  36. 18 Sep, 1999 2 commits
  37. 16 Sep, 1999 1 commit
  38. 17 Aug, 1999 1 commit