1. 21 May, 2001 5 commits
    • 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,
      * src/workbook.h
      (struct _Workbook): Added file_saver_sig_id field.
      (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
      (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):
      * src/plugin-service
      Created GnumPluginFileOpener and GnumPluginFileSaver classes (derived
      from GnumFileOpener and GnumFileSaver respectively). Moved contents of
      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_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_cleanup): Register/unregister created
      file saver (GnumPluginFileSaver object).
      * src/plugin-service.h
      (struct _PluginServiceFileOpener):
      Added can_open and can_import fields.
      (struct _PluginServiceFileSaver):
      * src/plugin-loader-module.c
      (struct ServiceLoaderDataFileOpener, struct ServiceLoaderDataFileSaver),
      * src/stf.c
      (stf_read_workbook, stf_write_workbook): Signature change
      (don't return gboolean).
      (stf_init): Adjusted to file i/o interface changes.
      (gnumeric_xml_get_opener, xml_probe):
      (gnumeric_xml_read_workbook, gnumeric_xml_write_workbook): Signature
      change (don't return gboolean).
      (xml_init): Adjusted to file i/o interface changes.
    • Jose Maria Celorio's avatar
      typo · 95fc0f27
      Jose Maria Celorio authored
    • 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.
    • 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
      	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.
    • 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.
  2. 20 May, 2001 11 commits
  3. 19 May, 2001 13 commits
  4. 18 May, 2001 5 commits
  5. 17 May, 2001 4 commits
    • Almer S. Tigelaar's avatar
      On behalf of Dennis Smit <dennis@area101.penguin.nl> : · c684086b
      Almer S. Tigelaar authored
      2001-05-17  Almer S. Tigelaar  <almer@gnome.org>
      	On behalf of Dennis Smit <dennis@area101.penguin.nl> :
      	* nl.po: Add a don't-translate-this warning.
      	someone is working hard on revamping this
    • Jody Goldberg's avatar
      include sheet.h · b624791b
      Jody Goldberg authored
      2001-05-17  Jody Goldberg <jgoldberg@home.com>
      	* plugin.c : include sheet.h
    • Jody Goldberg's avatar
      include str.h · f484f142
      Jody Goldberg authored
      2001-05-17  Jody Goldberg <jgoldberg@home.com>
      	* common.c : include str.h
    • Jody Goldberg's avatar
      Use wbcg_rangesel_possible. ditto. ditto. ditto. (scg_colrow_select) : · 23c7efec
      Jody Goldberg authored
      2001-05-16  Jody Goldberg <jgoldberg@home.com>
      	* src/item-bar.c (is_pointer_on_division) : Use
      	* src/item-grid.c (item_grid_button_1) :  ditto.
      	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet) : ditto.
      	* src/sheet-control-gui.c (scg_select_all) : ditto.
      	(scg_colrow_select) : ditto.
      	(scg_construct) : ensure we start with focus.
      	(scg_rangesel_possible) : move from here.
      	* src/workbook-control-gui.c (wbcg_rangesel_possible) : to here.
      	(cb_notebook_switch_page) : expand the logic slightly to correct gurus.
      	* src/workbook-edit.c (wbcg_edit_finish) : always check for rangesel.
      	* src/parse-util.c (gnumeric_char_start_expr_p) : improve handling of
  6. 16 May, 2001 2 commits