1. 27 May, 2001 2 commits
    • Jody Goldberg's avatar
      If successful queue everything for recalc. (xml_cell_set_array_expr) : no · b740bf75
      Jody Goldberg authored
      
      2001-05-26  Jody Goldberg <jgoldberg@home.com>
      
      	* xml-sax-read.c (xml_sax_file_open) : If successful queue everything
      	  for recalc.
      	(xml_cell_set_array_expr) : no need to queue a recalc for arrays.
      
      2001-05-26  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.c (colrow_move) : no need to queue recalc here.
      	(cb_sheet_cell_copy) : Actually copy the array values.
      
      	* src/cell.c (cell_relocate) : Just relink, no need to queue a recalc.
      	(cell_set_array_formula) : Remove the ability to queue the recalc at
      	  this level.  Just link the formulas in.  Reorder the the arguments
      	  to match the standard approach.
      
      	* src/eval.c (workbook_recalc_all) : Used here.
      	(workbook_queue_all_recalc) : new function.
      
      	* src/xml-io.c (xml_workbook_read) : Queue everything for recalc.
      	(xml_cell_set_array_expr) : no need to queue a recalc here.
      
      	* src/commands.c (cmd_autofill_redo) : queue the recalc here.
      	(cmd_area_set_text_redo) : we need to manually queue a recalc for
      	  arrays now.
      
      	* src/sheet.c (sheet_cell_set_text) : we need to queue a recalc for
      	  both expressions and values now.
      	(sheet_range_set_text) : queue recalcs for the region as a block.
      
      	* src/graph-vector.c (graph_vector_new) : Just use dependent_link if
      	  we don't want a recalc.
      b740bf75
    • Jody Goldberg's avatar
      typo. · 68d7e0f7
      Jody Goldberg authored
      
      2001-05-26  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-control-gui.h : typo.
      68d7e0f7
  2. 26 May, 2001 6 commits
    • Jon K Hellan's avatar
      Derive from SheetControl rather than GtkObject. · be489c8e
      Jon K Hellan authored
      2001-05-26  Jon K Hellan  <hellan@acm.org>
      
      	* src/sheet-control-gui.[ch]: Derive from SheetControl rather than
      	GtkObject.
      
      	* src/gnumeric.h: Add incomplete def of SheetControl.
      
      	* src/Makefile.am: Add sheet-control.c, sheet-control.h,
      	sheet-control-priv.h
      
      	* src/sheet-control.c: New file. Stub base class for
      	SheetControlGUI.
      
      	* src/sheet-control.h: Strip down even more from existing stub in
      	CVS.
      
      	* src/sheet-control-priv.h: New file. Private header for
      	SheetControl.
      be489c8e
    • Jody Goldberg's avatar
      suppress minus for "\(" to match "(" · a9201bb2
      Jody Goldberg authored
      
      2001-05-26  Jody Goldberg <jgoldberg@home.com>
      
      	* src/format.c (format_number) : suppress minus for "\(" to match "("
      a9201bb2
    • Karl Eichwalder's avatar
      Fix typo. · a00a96a8
      Karl Eichwalder authored
      2001-05-26  Karl Eichwalder  <ke@suse.de>
      
      	* src/workbook-control-gui.c: Fix typo.
      a00a96a8
    • Jody Goldberg's avatar
      Save the iteration preferences too. These are workbook level flags. I am · 7eb4a25b
      Jody Goldberg authored
      2001-05-26  Jody Goldberg <jgoldberg@home.com>
      
      	* ms-excel-write.c (write_sheet_bools) : Save the iteration
      	  preferences too.  These are workbook level flags.  I am unclear why
      	  XL saves them at the sheet level.
      
      	* ms-excel-read.c (ms_excel_read_calccount) : new function.
      	(ms_excel_read_delta) : ditto.
      	(ms_excel_read_iteration) : ditto.
      	(ms_excel_read_sheet) : use them here.
      
      2001-05-26  Jody Goldberg <jgoldberg@home.com>
      
      	* src/cell.c (cell_eval_content) : Use the iteration prefs.
      
      	* src/workbook.c (workbook_iteration_tolerance) : new function.
      	(workbook_iteration_enabled) : ditto.
      	(workbook_iteration_max_number) : ditto.
      7eb4a25b
    • Chyla Zbigniew's avatar
      If recently used saver has been removed, use default saver, not the first · 6c31b872
      Chyla Zbigniew authored
      
      * src/gui-file.c (fill_save_menu): If recently used saver has been
      removed, use default saver, not the first one.
      
      * src/file.c
      (unregister_file_opener, unregister_file_opener_as_importer): Fixed
      leaks.
      (unregister_file_saver): Fixed stupid bug (and leaks).
      
      * src/plugin-service.h (struct _PluginServiceFileSaver): Added
      default_saver_priority field.
      
      * src/plugin-service.c
      (plugin_service_file_saver_read): Read "default_saver_priority"
      attribute.
      (plugin_service_file_saver_initialize): Register as default saver if
      default_saver_priority is non-negative.
      6c31b872
    • Jody Goldberg's avatar
      new routine. This looks ugly. We should be able to avoid replicating this · f1b88ce2
      Jody Goldberg authored
      
      2001-05-25  Jody Goldberg <jgoldberg@home.com>
      
      	* src/value.c (value_diff) : new routine.  This looks ugly.  We should
      	  be able to avoid replicating this code.
      
      	* src/cell.c (cell_eval_content) : support iteration.
      
      	* src/format.c (render_number) : make the buffer big enough.
      	  The assumtion that mantissa and exp are both maxed should leave
      	  enough room for thousand separators.
      f1b88ce2
  3. 25 May, 2001 4 commits
  4. 24 May, 2001 4 commits
    • Jon K Hellan's avatar
      Rename view to scg. Retrieve it from object data on table. · bae5f52b
      Jon K Hellan authored
      2001-05-24  Jon K Hellan  <hellan@acm.org>
      
      	* src/workbook-control-gui.c (sheet_to_page_index): Rename view to
      	scg. Retrieve it from object data on table.
      	(sheet_to_page_index):
      	(wb_control_gui_focus_cur_sheet, cb_sheet_label_button_press,
      	cb_notebook_switch_page): Retrieve scg from object data on table.
      	(wbcg_sheet_add): Show and insert in notebook scg->table. scg no
      	longer is a GtkTable, it has one.
      
      	* src/sheet-control-gui.c (scg_parent_class): Change to
      	GtkObjectClass.
      	(cb_table_destroy): New function. Finish all table and canvas
      	dependent activities and set scg->table, scg->canvas to NULL.
      	(scg_init): Don't create table here.
      	(scg_construct): ..but here. Change terminology. Old: outer_table,
      	table. New: scg->table, inner_table. Add scg to scg->table as
      	object data. Add a destroy callback to scg->table.
      	(scg_destroy): Move parts to cb_table_destroy. Unref table if not
      	NULL.
      	(scg_class_init, GNUMERIC_MAKE_TYPE): Inherit from GtkObject
      	instead of GtkTable.
      	(scg_cursor_visible): Be prepared for scg->canvas being NULL
      
      	* src/sheet-control-gui.h (struct _SheetControlGUI,
      	SheetControlGUIClass): Inherit from GtkObject instead of GtkTable.
      bae5f52b
    • Jody Goldberg's avatar
      new function. Init recursive_dirty_enabled. Use recursive_dirty_enabled. · 65288fd6
      Jody Goldberg authored
      
      2001-05-24  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook.c (workbook_enable_recursive_dirty) : new function.
      	* src/workbook-private.c (workbook_private_init) : Init
      	  recursive_dirty_enabled.
      	* src/sheet.c (sheet_cell_remove) : Use recursive_dirty_enabled.
      	* src/eval.c (dependent_changed) : ditto.
      
      	* src/workbook-view.c (wb_view_open_custom) : while loading disable
      	  recursive depend dirtying.  We are loading everything it is up to
      	  the loader to handle the queuing correctly (either queuing all, or
      	  just those necessary)
      65288fd6
    • Jody Goldberg's avatar
      optionally queue the dependents of this cell for recalc. · 7c1b3f75
      Jody Goldberg authored
      
      2001-05-23  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.c (sheet_cell_destroy) : optionally queue the dependents
      	  of this cell for recalc.
      7c1b3f75
    • Jody Goldberg's avatar
      Revamp the recalc queue · af206304
      Jody Goldberg authored
      2001-05-22  Jody Goldberg <jgoldberg@home.com>
      
      	* gnumeric.spec.in : bump version of libole2
      	* README : ditto.
      	* configure.in : ditto.
      
      2001-05-19  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook.c (workbook_is_pristine) : no need to check the recalc
      	  queue.  If there are no dependents there is nothing to put on the
      	  eval queue.
      
      	* src/func.c (cb_iterate_cellrange) : rename from
      	  iterate_cellrange_callback remove 'generation' mechanism.
      
      	* src/cell.c (cell_cleanout) : Clear both recalc flags,
      	  in_queue and needs
      	(cell_copy) : ditto.
      	(cell_eval_content) : No need to render the value.  assign_value
      	  already does it.
      	(cell_content_changed) : deleted.
      
      	* src/Makefile.am : merge dependent.[ch] into eval.[ch]
      
      2001-05-18  Jody Goldberg <jgoldberg@home.com>
      
      	* src/eval.c : reorg and merged with dependent.[ch]
      
      	* src/sheet.c (sheet_cell_set_text) :
      	  s/cell_content_changed/cell_queue_recalc/
      	(sheet_cell_set_expr) : ditto.
      	(sheet_cell_set_value) : ditto.
      	(colrow_move) : ditto.
      	(sheet_destroy_contents) :
      	  s/dependent_unqueue_recalc_sheet/dependent_unqueue_sheet/
      
      	* src/cmd-edit.c (cmd_select_cur_row) : Make behavior match XL.
      	(cmd_select_cur_col) : Make behavior match XL.
      
      	* src/format.c (render_number) : avoid temporaries.
      	(do_render_number) : ditto.
      
      2001-05-17  Jody Goldberg <jgoldberg@home.com>
      
      	* src/expr.c (eval_range) : delete.
      	(eval_expr_real) : Use workbook_foreach_cell_in_range rather than
      	  range_eval.  Remove 'generation' mechanism.
      	(cb_range_eval) : a simple pass through
      
      	* src/eval.c (sheet_region_recalc_deps) : rename from
      	  sheet_recalc_dependencies and merge in sheet_region_get_deps.
      	  Use the new foreach style interfaces.
      	(cb_single_recalc_all_depends) : rename from cb_single_get_all_depends
      	  and simplify.
      	(cb_range_recalc_all_depends) : rename from cb_sheet_get_all_depends and simplify.
      	(cb_dependent_queue_recalc) : new wrapper.
      	(cb_region_contained_depend) : renamed from search_range_deps and simplify.
      	(cell_foreach_dep) : rename from cell_get_dependencies and switch to
      	  an in place api rather than creating a list.
      	(cell_foreach_single_dep) : switch to in place api
      	(cell_foreach_range_dep) : ditto.
      	(search_cell_deps) : ditto.
      	(cell_recalc_deps) : ditto.
      	(cell_eval) : ditto.
      	(cb_generation_queue) : new utility.
      
      	* src/dependent.c (dependent_list_filter) : delete.
      
      	* src/cmd-edit.c (cb_collect_deps) : new function split from.
      	(cmd_select_cur_depends) : here. So that we can use the new depend
      	  api.
      
      	* src/sheet.c (sheet_move_range) : use sheet_region_recalc_deps.
      	(sheet_{insert,delete}_{cols,rows}) : ditto.
      	(sheet_cell_remove_simple) : Use in place depend interface.
      
      	* src/cell.c (cell_content_changed) : Use in place depend interface.
      	* src/clipboard.c (clipboard_paste_region) : ditto.
      	* src/commands.c (cmd_area_set_text_redo) : ditto.
      	(cmd_autofill_redo) : ditto.
      
      2001-05-21  Jody Goldberg <jgoldberg@home.com>
      
      	* Makefile.am : remove gnorba and modernize a bit.
      af206304
  5. 23 May, 2001 2 commits
    • Chyla Zbigniew's avatar
      Added "case_sensitive" field. (gnum_plugin_file_opener_probe): Support · 8c3538b2
      Chyla Zbigniew authored
      
      * src/plugin-service.c
      (struct _InputFilePattern): Added "case_sensitive" field.
      (gnum_plugin_file_opener_probe): Support "case_sensitive" attribute when
      checking if file name matches the pattern.
      (plugin_service_file_opener_read): Support "case_sensitive" attribute.
      Now matching is case _insensitive_ by default.
      8c3538b2
    • Chyla Zbigniew's avatar
      Removed #include "xml-io.h". · b9071979
      Chyla Zbigniew authored
      
      * src/bonobo-io.c, src/clipboard.c, src/file.c, src/plugin.c,
      src/sheet-object.c, src/stf.c, src/workbook.c:
      Removed #include "xml-io.h".
      
      * src/dialogs/dialog-plugin-manager.c (gnumeric_dialog_question_yes_no):
      Function moved ...
      
      * src/gnumeric-util.[ch]: ... here.
      
      * src/gui-file.c
      (gui_file_import): Sorting file importers.
      (fill_save_menu): Sorting file savers, function simplified (doesn't use
      file_saver_is_default_format).
      (can_try_save_to): Function simplified, uses
      gnumeric_dialog_question_yes_no from gnumeric-util.h, default answer
      for question about overwriting a file is configurable.
      b9071979
  6. 22 May, 2001 2 commits
    • Almer S. Tigelaar's avatar
      Bump XML version number. (xml_workbook_write): Write index of sheet names · b89fa763
      Almer S. Tigelaar authored
      2001-05-22  Almer S. Tigelaar  <almer@gnome.org>
      
      	* src/xml-io.c : Bump XML version number.
      	(xml_workbook_write): Write index of sheet names
      	at the beginning of the file and always write
      	latest version number.
      
      2001-05-22  Almer S. Tigelaar  <almer@gnome.org>
      
      	* xml-sax-read.c (xml_sax_sheet_name): Don't create
      	sheet here.
      	(xml_sax_wb_sheetname): Create sheet here.
      	(xml_sax_finish_parse_wb_names_name): Fix workbook level
      	name reading.
      	(xml_sax_start_element): Handle new sheetnameindex.
      	(xml_sax_end_element): Idem.
      	(xml_sax_characters): Idem.
      	(xml_sax_wb): Small tweak for correct version reading.
      b89fa763
    • Jon K Hellan's avatar
      Use renamed function gnumeric_expr_entry_rangesel_meaningful. · 34aad2e5
      Jon K Hellan authored
      2001-05-22  Jon K Hellan  <hellan@acm.org>
      
      	* src/workbook-edit.c (wbcg_editing_expr): Use renamed function
      	gnumeric_expr_entry_rangesel_meaningful.
      
      2001-05-22  Jon K Hellan  <hellan@acm.org>
      
      	* src/widgets/gnumeric-expr-entry.[ch]
      	(gnumeric_expr_entry_at_subexpr_boundary_p): Rename to
      	gnumeric_expr_entry_rangesel_meaningful.
      	Rangesel after ':' or ')' do not make sense. Return FALSE.
      34aad2e5
  7. 21 May, 2001 13 commits
    • Chyla Zbigniew's avatar
      Added gtk-doc style documentation. (struct _GnumFileOpener, struct · 434748ad
      Chyla Zbigniew authored
      
      * file.c
      (gnum_file_opener_setup, gnum_file_opener_new, gnum_file_opener_probe,
      gnum_file_opener_open, gnum_file_saver_setup, gnum_file_saver_new,
      gnum_file_saver_save, gnum_file_saver_fix_file_name,
      register_file_opener, register_file_opener_as_importer,
      unregister_file_opener, unregister_file_opener_as_importer,
      register_file_saver, register_file_saver_as_default,
      unregister_file_saver, get_default_file_saver,
      get_file_opener_by_id, get_file_saver_by_id,
      get_file_savers, get_file_openers, get_file_importers):
      Added gtk-doc style documentation.
      (struct _GnumFileOpener, struct _GnumFileOpenerClass,
      struct _GnumFileSaver, struct _GnumFileSaverClass): Removed structs
      already defined in file-priv.h.
      
      * workbook-view.c
      (wb_view_save_as, wb_view_save, wb_view_open, wb_view_open_custom):
      Added gtk-doc style documentation.
      
      * file.h
      (gnum_file_opener_setup, gnum_file_saver_setup): Declarations moved ...
      
      * file-priv.h: ... here
      434748ad
    • Jon K Hellan's avatar
      Add toolbar_is_sensitive member. · 532b3946
      Jon K Hellan authored
      2001-05-21  Jon K Hellan  <hellan@acm.org>
      
      	* src/workbook-control-gui-priv.h (struct _WorkbookControlGUI):
      	Add toolbar_is_sensitive member.
      
      	* src/workbook-control-gui.c (workbook_control_gui_init):
      	Initialize wbcg->toolbar_is_sensitive.
      
      	* src/workbook-edit.c (workbook_edit_toolbars_set_sensitive): Use
      	wbcg->toolbar_is_sensitive instead of static is_sensitive.
      532b3946
    • Pablo Saratxaga's avatar
      removed non-ascii from sources · 1c2869c5
      Pablo Saratxaga authored
      fixed invalid multibyte in po files
      1c2869c5
    • Almer S. Tigelaar's avatar
      Add support for workbook and sheet level names. · 8d4f3adb
      Almer S. Tigelaar authored
      2001-05-21  Almer S. Tigelaar  <almer@gnome.org>
      
       	* xml-sax-read.c (xml_sax_name): Add support for workbook and
       	sheet level names.
       	(xml_sax_finish_parse_wb_names_name): Idem.
       	(xml_sax_finish_parse_sheet_names_name): Idem.
       	(xml_sax_start_element): Idem.
       	(xml_sax_end_element): Idem.
       	(xml_sax_characters): Idem.
      8d4f3adb
    • Chyla Zbigniew's avatar
      (workbook_persist_file_load): Use wb_view_open instead of · ce12ef5e
      Chyla Zbigniew authored
      
      (workbook_persist_file_load): Use wb_view_open instead of
      workbook_load_from.
      (workbook_persist_file_save): Use wb_view_save_as instead of calling
      gnumeric_xml_write_workbook directly.
      
      Of course it's still broken as it was before :(
      ce12ef5e
    • Chyla Zbigniew's avatar
      Signature change (don't return gboolean). s/FileOpener/GnumFileOpener · 2d4e75c9
      Chyla Zbigniew authored
      
      * src/bonobo-io.c
      (gnumeric_bonobo_read_workbook, gnumeric_bonobo_write_workbook):
      Signature change (don't return gboolean).
      s/FileOpener/GnumFileOpener
      s/FileSaver/GnumFileSaver
      (gnumeric_bonobo_io_probe):
      s/FileOpener/GnumFileOpener
      (gnumeric_bonobo_io_init): Adjusted to file i/o interface changes.
      2d4e75c9
    • Chyla Zbigniew's avatar
      Commented some code to allow gnumeric-bonobo compilation. I haven't tested · 1ef0616b
      Chyla Zbigniew authored
      
      Commented some code to allow gnumeric-bonobo compilation. I haven't tested
      ma last patch with bonobo build (stupid me) and now I must fix this really
      soon.
      1ef0616b
    • Chyla Zbigniew's avatar
      s/FileOpener/GnumFileOpener/ · d1d0d998
      Chyla Zbigniew authored
      
      * xml-sax-read.c (xml_sax_file_probe, xml_sax_file_open):
      s/FileOpener/GnumFileOpener/
      
      * plugin.xml (<service>): Register only as importer.
      d1d0d998
    • Chyla Zbigniew's avatar
      Cleaned up file i/o interface. · 33d35aa2
      Chyla Zbigniew authored
      
      Cleaned up file i/o interface.
      
      * src/Makefile.am: Added file-priv.h.
      
      * src/file.[ch]:
      Made GnumFileOpener and GnumFileSaver GtkObjects with virtual probe,
      open and save methods.
      New GnumFileOpener methods: get_id.
      New GnumFileSaver methods: get_id, fix_file_name.
      New functions: register_file_opener, register_file_opener_as_importer,
      unregister_file_opener, unregister_file_opener_as_importer,
      register_file_saver, register_file_saver_as_default,
      unregister_file_saver, get_default_file_saver,
      get_file_opener_by_id, get_file_saver_by_id,
      get_file_savers, get_file_openers, get_file_importers.
      
      * src/file-priv.h: New file with definitions of structs:
      _GnumFileOpener, _GnumFileOpenerClass, _GnumFileSaver,
      _GnumFileSaverClass.
      
      * src/workbook.h
      (struct _Workbook): Added file_saver_sig_id field.
      s/FileSaver/GnumFileSaver/
      (workbook_get_file_saver): New accessor function.
      
      * src/workbook.c
      (cb_saver_destroy_event, workbook_destroy, workbook_set_saveinfo):
      When setting new file_saver, connect to its "destroy" signal and
      set file_saver to NULL in signal handler. Disconnect when changing file
      saver or destroying the workbook.
      (workbook_get_file_saver): New accessor function.
      
      * src/workbook-view.[ch]
      (wb_view_set_attributev): Renamed to wb_view_set_attribute_list and
      simplified.
      (wb_view_save_as, wb_view_save, wb_view_open, wb_view_open_custom): New
      methods (some code moved from file.c).
      
      * src/gnumeric-sheet.c (gnumeric_sheet_filenames_dropped):
      Use wb_view_open() instead of workbook_try_read()+file_finish_load().
      
      * src/gui-file.c
      (gui_file_import): Use get_file_importers(). Use
      wb_view_open_custom() instead of file_opener_open() + manual creation
      of wb_view, error checking, etc.
      (is_saver_registered): Removed.
      (saver_activate): Don't check if saver is really registered.
      (file_saver_is_default_format): Use get_default_file_saver() instead
      of strcmp(extension, "gnumeric") hack.
      (do_save_as): Use gnum_file_saver_fix_file_name().
      Adjusted everything to file.h, workbook.h, workbook-control.h.
      
      * src/gui-file.h (gui_file_import): Signature change, now function
      returns gboolean.
      
      * src/gutils.[ch] (g_list_index_custom): New function.
      
      * src/history.c (file_history_cmd), src/main.c (gnumeric_main),
      src/workbook-control-gui.c (cb_file_open): Use wb_view_open()
      instead of workbook_read().
      
      * src/workbook-control-gui-priv.h (struct _WorkbookControlGUI):
      s/FileSaver/GnumFileSaver/
      
      * src/plugin-service
      Created GnumPluginFileOpener and GnumPluginFileSaver classes (derived
      from GnumFileOpener and GnumFileSaver respectively). Moved contents of
      plugin_service_file_opener_probe_func,
      plugin_service_file_opener_open_func,
      plugin_service_file_saver_save_func into
      gnum_plugin_file_opener_probe, gnum_plugin_file_opener_open,
      gnum_plugin_file_saver_save methods (slightly modified).
      (plugin_service_file_opener_read): Read "open" and "import" attributes
      of <service> tag.
      (plugin_service_file_opener_initialize,
      plugin_service_file_opener_cleanup): Register/unregister created
      file opener (GnumPluginFileOpener object) as normal opener and/or
      importer depending on "open" and "import" XML attributes.
      (plugin_service_file_opener_initialize,
      plugin_service_file_opener_cleanup): Register/unregister created
      file saver (GnumPluginFileSaver object).
      
      * src/plugin-service.h
      (struct _PluginServiceFileOpener):
      Added can_open and can_import fields.
      s/FileOpener/GnumFileOpener/
      (struct _PluginServiceFileSaver):
      s/FileSaver/GnumFileSaver/
      
      * src/plugin-loader-module.c
      (struct ServiceLoaderDataFileOpener, struct ServiceLoaderDataFileSaver),
      gnumeric_plugin_loader_module_func_file_probe,
      gnumeric_plugin_loader_module_func_file_open,
      gnumeric_plugin_loader_module_func_file_save):
      s/FileOpener/GnumFileOpener/
      s/FileSaver/GnumFileSaver/
      
      * src/stf.c
      (stf_read_workbook, stf_write_workbook): Signature change
      (don't return gboolean).
      (stf_init): Adjusted to file i/o interface changes.
      
      src/xml-io.[ch]
      (gnumeric_xml_get_opener, xml_probe):
      s/FileOpener/GnumFileOpener/
      (gnumeric_xml_get_opener):
      s/FileSaver/GnumFileSaver/
      (gnumeric_xml_read_workbook, gnumeric_xml_write_workbook): Signature
      change (don't return gboolean).
      (xml_init): Adjusted to file i/o interface changes.
      33d35aa2
    • Jose Maria Celorio's avatar
      typo · 95fc0f27
      Jose Maria Celorio authored
      95fc0f27
    • Chema Celorio's avatar
      make sure the accetate honors the direction of the object. · 7a32ca59
      Chema Celorio authored
      2001-05-20  Chema Celorio  <chema@celorio.com>
      
      	* src/sheet-control-gui.c (set_acetate_coords): make sure the accetate
      	honors the direction of the object.
      7a32ca59
    • Chema Celorio's avatar
      initialize the so->direction to _UNKNOWN (sheet_object_direction_set): · 857e7027
      Chema Celorio authored
      2001-05-20  Chema Celorio  <chema@celorio.com>
      
      	* src/sheet-object.c (sheet_object_init): initialize the so->direction
      	to _UNKNOWN
      	(sheet_object_direction_set): impl.
      	(sheet_object_rubber_band_directly): impl a small convenience function
      	to get the value of SO_CLASS(so)->rubber_band_directly
      
      	* src/sheet-object-widget.c (sheet_widget_checkbox_construct_with_range):
      	add a label argument to also optionaly specify a label
      	(sheet_widget_checkbox_clone): when cloning a checkbox, copy it's value
      	too
      	add a ->label and rename ->entry to ->expresion in CheckboxConfigState
      	(cb_checkbox_label_changed): impl.
      	(sheet_widget_checkbox_user_config): add an entry for the label of
      	the checkbutton
      	(sheet_widget_checkbox_set_sheet): call _set_active when setting the
      	sheet of a checkbox
      
      	* src/sheet-object-impl.h: add the SheetObjectDirection enums
      	add ->direction to SheetObject
      	add ->rubber_band_directly to SheetObjectClass
      
      	* src/sheet-object-graphic.c (sheet_object_graphic_read_xml): read
      	the object's direction
      	(sheet_object_graphic_write_xml): save the direction of the object
      	(sheet_object_graphic_class_init): so->direction = TRUE
      	(sheet_object_graphic_init): initlalize so->direction
      
      	* src/sheet-control-gui.c (scg_object_move): calculate the new direction
      	of the object when moving a handle.
      	(scg_object_view_position): the coordinates of the object depend on
      	it's ->direction now.
      
      	* src/item-grid.c (cb_obj_create_motion): if we are rubberbanding directly,
      	calculate the sheet object direction and position.
      	(cb_obj_create_button_release): only set the sheet if we are not rubber_banding_
      	direcly. Objects that are rubber banded directly have already been attached to
      	a sheet.
      	(sheet_object_begin_creation): if we are rubber_banding_direclty the object,
      	attach it to a sheet.
      
      	* src/sheet-object-widget.c (sheet_widget_checkbox_destroy): check if
      	the dependent has been linked before unlinking. We might have created
      	the object without attaching it to a sheet.
      857e7027
    • Jody Goldberg's avatar
      revert my silliness. · d1f6fcbb
      Jody Goldberg authored
      
      2001-05-21  Jody Goldberg <jgoldberg@home.com>
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet) : revert
      	  my silliness.
      d1f6fcbb
  8. 20 May, 2001 7 commits