1. 04 Nov, 2011 1 commit
    • Andreas J. Guelzow 's avatar
      Add cell view to auto expression. · 89992779
      Andreas J. Guelzow authored
      2011-11-04 Andreas J. Guelzow <aguelzow@pyrshep.ca>
      
      	* src/wbc-gtk.c (cb_auto_expr_cell_changed): new
      	(cb_auto_expr_changed): set new auto-expr properties
      	(cb_select_auto_expr): create new auto-expression menu item
      	* src/workbook-view.c (wb_view_auto_expr_recalc): handle possible
      	cell formula
      	(wb_view_auto_expr_cell): new
      	(wb_view_auto_expr_sheet): new
      	(wb_view_set_property): handle new properties
      	(wb_view_get_property): handle new properties
      	(workbook_view_class_init): install new properties
      	* src/workbook-view.h (_WorkbookView): add new fields
      89992779
  2. 21 Oct, 2011 1 commit
    • Andreas J. Guelzow 's avatar
      Add optional markers to indicate that cell content has been truncated. [#662149] · afca4184
      Andreas J. Guelzow authored
      2011-10-21 Andreas J. Guelzow <aguelzow@pyrshep.ca>
      
      	* src/cell-draw.h (cell_draw): add argument
      	* src/cell-draw.c (cell_draw_extension_mark_bottom): new
      	(cell_draw_extension_mark_left): new
      	(cell_draw_extension_mark_right): new
      	(cell_draw_h_extension_markers): new
      	(cell_draw_v_extension_markers): new
      	(cell_draw): add argument and call the above
      	* src/item-grid.c (item_grid_draw_merged_range): adjust call to
      	cell_draw
      	(item_grid_draw_region): ditto
      	* src/preview-grid.c (preview_grid_draw_region): adjust call to
      	cell_draw
      	* src/workbook-view.h (_WorkbookView): add field
      	* src/workbook-view.c (wb_view_set_attribute): handle new
      	property
      	(wb_view_set_property): ditto
      	(wb_view_set_attribute): ditto
      	(workbook_view_class_init): install new property
      	(workbook_view_new): initialize new property
      
      2011-10-21  Andreas J. Guelzow <aguelzow@pyrshep.ca>
      
      	* dialog-workbook-attr.c (attr_dialog_init_cell_marker_page): handle
      	cell extension toggle
      	* workbook-attr.ui: add cell extension marker toggle
      afca4184
  3. 04 Apr, 2011 1 commit
  4. 15 Jul, 2010 1 commit
    • Andreas J. Guelzow 's avatar
      Add optional marker to indicate that a cell contains an expression. [#55124] · d2d3973e
      Andreas J. Guelzow authored
      2010-07-15  Andreas J. Guelzow <aguelzow@pyrshep.ca>
      
      	* dialog-workbook-attr.c (attr_dialog_init_cell_marker_page): new
      	(page_info): add new page
      	* workbook-attr.glade: add cell marker pane
      
      2010-07-15  Andreas J. Guelzow <aguelzow@pyrshep.ca>
      
      	* src/item-grid.c (draw_function_marker): new
      	(item_grid_draw_region): call draw_function_marker when appropriate
      	(item_grid_draw_merged_range): ditto
      	* src/workbook-view.c (wb_view_set_attribute): handle new attribute
      	(wb_view_set_property): ditto
      	(workbook_view_class_init): ditto
      	(workbook_view_new): ditto
      	(wb_view_get_property): ditto
      	* src/workbook-view.h (_WorkbookView): new field
      d2d3973e
  5. 27 Apr, 2010 1 commit
  6. 10 Nov, 2009 1 commit
  7. 20 Aug, 2009 1 commit
  8. 08 Jun, 2009 1 commit
  9. 11 Mar, 2009 1 commit
    • Morten Welinder's avatar
      Import from wb_view_sendto and use go_gtk_url_show. Plug leak. · 0862a591
      Morten Welinder authored
      2009-03-11  Morten Welinder  <terra@gnome.org>
      
      	* src/wbc-gtk-actions.c (cb_file_sendto): Import from
      	wb_view_sendto and use go_gtk_url_show.  Plug leak.
      
      	* src/workbook-view.c (wb_view_save_to_uri): Rename from
      	wbv_save_to_uri and make public.
      	(wb_view_sendto): Remove.
      
      
      
      svn path=/trunk/; revision=17186
      0862a591
  10. 16 Nov, 2007 1 commit
    • Jody Goldberg's avatar
      add G_BEGIN_DECL/G_END_DECL around the header content. · f85b4715
      Jody Goldberg authored
              reformat the guard decls
              Add a vim/emacs fmt line
              fix namespacing of preproc flags from configure.in that go into public headers
      
              2007-10-12  Jody Goldberg <jody@gnome.org>
      
              	* libspreadsheet-1.7.pc.in : Set the cflags to include the target, and
              	  subdir until we fix the header includes and rename /src.
              	  Add LIBDIR/include to cflags
              	  Add PluginDir.
      
      svn path=/trunk/; revision=16149
      f85b4715
  11. 08 Sep, 2007 1 commit
  12. 25 Nov, 2006 1 commit
    • Jody Goldberg's avatar
      add validation-combo.h · 131aee7a
      Jody Goldberg authored
      2006-11-24  Jody Goldberg <jody@gnome.org>
      
      	* src/Makefile.am : add validation-combo.h
      
      	* src/mstyle.c (gnm_style_get_validation) : constify the result.  We
      	  should not modify it while it's part of a style.
      
      	* src/sheet-control-gui.c (cb_collect_objects_to_commit) : handle
      	  no-view case.
      	* src/gnumeric-pane.c (gnm_pane_display_obj_size_tip) : ditto.
      
      	* src/sheet-object.c (sheet_object_clear_sheet) : Handle
      	  so::sheet == NULL (eg when data validation combo is cleared from
      	  wbv::finalize after content_destroy clears the sheet list)
      	  Drop the return flag, nothing was using.
      
      	* src/validation.c (gnm_validation_combo_new) : new.
      	(gnm_validation_combo_class_init) : new.
      	(gnm_validation_combo_finalize) : new.
      	(gnm_validation_combo_init) : new.
      	(validation_ref) : allow the reffing of const objects.
      	(validation_unref) : ditto, this should really be split into a const
      	  and non-const version.  We can do that for all unref routines.
      
      	* src/value.h : create new struct GnmValueIter.
      	* src/value.c (gnm_value_get_type) : Make GnmValue a glib boxed type.
      	* src/value-sheet.c (value_area_foreach) : rework to use GnmValueIter.
      	  All callers changed.
      
      	* src/workbook-view.h : s/::current_format/::current_style/
      	  and make it const.  We have a ref to it, so it's not going away
      	  _but_ we should never change it.
      	  Add validation_combo.  For the sheet object corresponding to an
      	  in cell data validation combo.
      
      	* src/workbook-view.c (wb_view_style_feedback) : renamed from
      	  wb_view_format_feedback all callers changed.  Add a creation
      	  and removal of data validation in cell combo.
      	(wb_view_finalize) : clear the validation combo if it exists.
      	(workbook_view_new) : init the combo.
      
      2006-11-24  Jody Goldberg <jody@gnome.org>
      
      	* tools/xmlunzip : Add the 'macro enabled' formats from office12
      131aee7a
  13. 13 Nov, 2006 2 commits
    • Morten Welinder's avatar
      Use wb_view_detach_from_workbook. (workbook_detach_view, · 4cfea5d6
      Morten Welinder authored
      2006-11-13  Morten Welinder  <terra@gnome.org>
      
      	* src/workbook.c (workbook_dispose): Use
      	wb_view_detach_from_workbook.
      	(workbook_detach_view, workbook_attach_view): Don't set wbv->wb
      	here.  Set in caller.
      
      	* src/workbook-view.c (workbook_view_class_init): Install new
      	property: auto-expr-text.
      	(wb_view_get_property, wb_view_set_property,
      	wb_view_auto_expr_text): Handle auto-expr-text.
      	(wb_view_detach_from_workbook): New function.
      	(wb_view_finalize): Use wb_view_detach_from_workbook.
      
      	* src/workbook-control-priv.h (WorkbookControlClass): Remove
      	auto_expr_value member.
      
      	* src/workbook-control-gui.c (wbcg_auto_expr_text_changed): New
      	function hooked up to WorkbookView::auto-expr-text.
      	(wbcg_auto_expr_value): Removed.
      4cfea5d6
    • Morten Welinder's avatar
      Control auto-expression via wbv properties. · d532e209
      Morten Welinder authored
      2006-11-12  Morten Welinder  <terra@gnome.org>
      
      	* src/workbook-control-gui.c (cb_auto_expr_changed): Control
      	auto-expression via wbv properties.
      	(cb_auto_expr_precision_toggled): Ditto.
      
      	* src/workbook-view.h (WorkbookView): Replace auto_expr with more
      	sane auto_expr_func member.
      
      	* src/workbook-view.c (wb_view_auto_expr_recalc): Remove
      	always-TRUE second argument.  All callers changed.  Adjust to
      	WorkbookView changes.
      	(wb_view_auto_expr): Remove.
      	(wb_view_auto_expr_precision): Make static.
      	(workbook_view_class_init): Install properties for
      	auto-expressions.
      d532e209
  14. 12 Nov, 2006 1 commit
  15. 10 May, 2006 1 commit
    • Jody Goldberg's avatar
      new function broken out of wbv_save_to_uri for convenience. This API will · f1eccf84
      Jody Goldberg authored
      2006-05-09  Jody Goldberg <jody@gnome.org>
      
      	* src/workbook-view.c (wbv_save_to_output) : new function broken out
      	  of wbv_save_to_uri for convenience.  This API will change.
      
      	* src/sheet.c
      	(sheet_insert_cols) : make reloc_storage arg optionally NULL.
      	(sheet_delete_cols) : ditto.
      	(sheet_insert_rows) : ditto.
      	(sheet_delete_rows) : ditto.
      f1eccf84
  16. 30 Apr, 2006 1 commit
    • Jody Goldberg's avatar
      merge excel_write_PANE into here and fix export of H or V only freezes. · 563646db
      Jody Goldberg authored
      2006-04-29  Jody Goldberg <jody@gnome.org>
      
      	* ms-excel-write.c (excel_write_WINDOW2) : merge excel_write_PANE into
      	  here and fix export of H or V only freezes.
      
      2006-04-23  Jody Goldberg <jody@gnome.org>
      
      	* xlsx-write.c : new.  Basic export and some code that will move to
      	  libgsf for 'Open Package' support.
      	* plugin.xml.in : Add xlsx export.
      	* Makefile.am : ditto.
      
      2006-04-23  Jody Goldberg <jody@gnome.org>
      
      	* ms-excel-read.c (excel_read_EXTERNSHEET_v7) : patch
      	  tweak to import broken quoted sheetname from gnumeric-1.0.x eg
      	  Libro1.xls.
      
      2006-04-23  Jody Goldberg <jody@gnome.org>
      
      	* ms-chart.c (ms_excel_chart_read) : Don't set the graph and chart
      	  styles to blank unless this is a full sheet object.  Fixes the
      	  import of older charts that are not wrapped in BOF records eg
      	  ms699.xls.
      
      2006-04-29  Jody Goldberg <jody@gnome.org>
      
      	* src/workbook-view.c (wb_view_get_index_in_wb) : new for xlsx export.
      
      	* src/selection.h (sv_selection_foreach) : renamed from
      	  selection_foreach_range.  All callers changed.
      	* src/selection.c (sv_selection_add_full) : renamed from
      	  sv_selection_add_range to be clearer.
      	(sv_selection_add_range) : new utility that takes a ... GnmRange.
      
      	* src/sheet-view.h : SheetView::selections make this a GSList, no need
      	  for a GList.  This makes the api more homogeneous.
      
      	* src/cell.c (cell_get_style) : constify the result and rename from
      	  cell_get_mstyle.
      
      	* src/ranges.c (range_as_string) : renamed from range_name.  All
      	  callers fixed.
      
      	* src/style-conditions.c (gnm_style_conditions_eval) : tack on hooks
      	  for some of the new condition types in office 12.
      563646db
  17. 31 Mar, 2006 1 commit
    • Morten Welinder's avatar
      Remove. Remove. Remove. Remove. Remove. Remove. Remove. · 36afb7f3
      Morten Welinder authored
      2006-03-31  Morten Welinder  <terra@gnome.org>
      
      	* src/mathfunc.c (gcd): Remove.
      	* src/sheet-view.c (sv_get_control): Remove.
      	* src/stf-parse.c (stf_parse_options_remove_line_terminator): Remove.
      	* src/value.c (value_new_error_RECALC, value_array_resize): Remove.
      	* src/workbook-view.c (-wb_view_sheet_remove): Remove.
      	* src/ranges.c (range_adjacent, range_merge, range_is_infinite,
      	gnm_sheet_range_dup): Remove.
      	* src/sheet-control-gui.c (scg_toplevel): Remove.
      
      	* src/print-info.c (hf_formats_base_num): Make static.
      	* src/number-match.c (datetime_locale): Make static.
      36afb7f3
  18. 19 Mar, 2006 1 commit
    • Jody Goldberg's avatar
      init valid to false in case value_coerce_to_number fails and does not set · d4b73077
      Jody Goldberg authored
      
      2006-03-18  Jody Goldberg <jody@gnome.org>
      
      	* src/graph.c (gnm_go_data_vector_get_value) : init valid to false
      	  in case value_coerce_to_number fails and does not set it.
      
      	* src/gnumeric-pane.c (cb_sheet_object_view_destroyed) : handle life
      	  cycle change.
      
      2005-12-28  Jody Goldberg <jody@gnome.org>
      
      	* src/workbook.c : Move to GsfDocMetaData
      
      	* src/commands.c (cmd_change_meta_data*) : re-work for new metadata
      	  structure.
      
      	* src/Makefile.am : remove the defunct summary.[ch]
      
      	* src/GNOME_Gnumeric-gtk.xml.in : enable the new dialog in place of
      	  the old one.
      	* src/wbcg-actions.c : ditto.
      d4b73077
  19. 08 Jun, 2005 1 commit
    • Morten Welinder's avatar
      Rename "visible" property to "visibility" and make it an enum. All users · 380ff133
      Morten Welinder authored
      2005-06-08  Morten Welinder  <terra@gnome.org>
      
      	* src/sheet.c (gnm_sheet_class_init): Rename "visible" property to
      	"visibility" and make it an enum.  All users changed.
      	* src/sheet.h (struct _Sheet): Ditto for is_visible member.
      
      	* src/workbook-view.c (wb_view_sheet_remove): New function to
      	mirror wb_view_sheet_add.
      	* src/workbook.c (workbook_sheet_hide_controls): Use
      	wb_view_sheet_remove.
      380ff133
  20. 03 May, 2005 1 commit
    • Morten Welinder's avatar
      Remove. · c4f8f07d
      Morten Welinder authored
      2005-05-03  Morten Welinder  <terra@gnome.org>
      
      	* src/workbook-view.c (wb_view_prefs_update): Remove.
      
      	* src/workbook-control-priv.h: Remove prefs_update member.
      
      	* src/sheet-control-priv.h: Remove adjust_preferences and
      	direction_changed members.
      
      	* src/sheet-control-gui.c (sheet_control_gui_new): Also hook up to
      	sheet:text-is-rtl.
      
      	* src/workbook-control-gui-priv.h: Remove rtl property.  All users
      	changed to use sheet's text_is_rtl (and some already were).
      
      	* src/sheet-control-gui-priv.h: Remove text_is_rtl property.  All
      	users changed to use sheet's text_is_rtl (and some already were).
      c4f8f07d
  21. 28 Mar, 2005 1 commit
    • Morten Welinder's avatar
      New function. · e2a98475
      Morten Welinder authored
      2005-03-28  Morten Welinder  <terra@gnome.org>
      
      	* src/workbook-view.c (wb_view_auto_expr_precision): New function.
      
      	* src/workbook-control-gui.c (cb_auto_expr_precision_toggled): New
      	function.
      	(cb_select_auto_expr): Add a check item to control whether maximum
      	precision is used.
      e2a98475
  22. 04 Mar, 2005 1 commit
  23. 08 Feb, 2005 1 commit
  24. 11 Jun, 2004 1 commit
    • Morten Welinder's avatar
      Switch to using URIs internally. · 38fdf042
      Morten Welinder authored
      2004-06-11  Morten Welinder  <terra@gnome.org>
      
      	* src/workbook.c (workbook_set_uri): Ranamed from
      	workbook_set_filename.
      	(workbook_get_uri): Renamed from workbook_get_filename.
      
      	* src/application.c (gnm_app_history_add): Change to take uri.
      	All callers changed.
      
      	* src/wbc-gtk.c (wbc_gtk_reload_recent_file_menu): Adapt to uris.
      
      	* src/gui-file.c (gui_file_read, do_save_as, go_file_is_writable):
      	Changed to take uri.  All callers changed.
      
      	* src/workbook-view.c (wb_view_new_from_uri): Renamed from
      	wb_view_new_from_file and adapted to take uri.  All callers
      	changed.
      	(wb_view_save_as): Change to take uri.  All callers changed.
      38fdf042
  25. 10 May, 2004 1 commit
    • Jody Goldberg's avatar
      It seems like there can be multiple WINDOW2, SCL, PANE, SELECTION blocks · 959e4025
      Jody Goldberg authored
      
      2004-05-09  Jody Goldberg <jody@gnome.org>
      
      	* ms-excel-read.c (excel_read_WINDOW2) : It seems like there can be
      	  multiple WINDOW2, SCL, PANE, SELECTION blocks when there are
      	  multiple windows.  For now we don't support importing multiple views
      	  so we need to at least not break if a previous view was frozen.
      959e4025
  26. 12 Nov, 2003 2 commits
  27. 11 Oct, 2003 1 commit
    • Jody Goldberg's avatar
      new to write csv files without intervention. (stf_init) : Use it. · 7a725771
      Jody Goldberg authored
      
      
      2003-10-10  Jody Goldberg <jody@gnome.org>
      
      	* src/stf.c (stf_write_csv) : new to write csv files without
      	  intervention.
      	(stf_init) : Use it.
      
      2003-10-09  Jody Goldberg <jody@gnome.org>
      
      	* src/libgnumeric.c : pull the ancient if BONOBO checks
      
      	* src/io-context-gtk.c (icg_show_gui) : mark the window as a splash.
      
      	* schemas/Makefile.am : make friendlier for rpm builders
      7a725771
  28. 03 Jul, 2003 1 commit
    • Jody Goldberg's avatar
      remove gnome-print include · 6d388511
      Jody Goldberg authored
      2003-07-02  Jody Goldberg <jody@gnome.org>
      
      	* widget-font-selector.c : remove gnome-print include
      
      	* widget-pixmap-combo.h : Cleanup the includes
      
      	* gtk-combo-box.c (gtk_combo_box_init) : Use GObject properties in
      	  place of deprecated gtk_window_set_policy.
      	(gtk_combo_popup_tear_off) : ditto.
      	(gtk_combo_box_popup_display) : Use gtk_window_move in place of
      	  deprecated gtk_window_set_uposition.
      	(gtk_combo_box_get_pos) : Make multi head safe.
      
      2003-07-02  Jody Goldberg <jody@gnome.org>
      
      	* dialog-tabulate.c (dialog_tabulate) : Use GObject properties in
      	  place of deprecated gtk_window_set_policy.
      
      2003-07-02  Jody Goldberg <jody@gnome.org>
      
      	* src/sheet-control-gui.c (scg_comment_display) : Use gtk_window_move
      	  in place of the deprecated gtk_widget_set_uposition.
      6d388511
  29. 05 May, 2003 1 commit
    • Andreas J. Guelzow's avatar
      add argument to call of wb_view_new_from_input · 002c067b
      Andreas J. Guelzow authored
      
      	* src/bonobo-io.c (gnm_persist_stream_load): add argument
      	  to call of wb_view_new_from_input
      
      	* src/charset.c: new file
      	* src/charset.h: new file
      	* src/file-priv.h: (_GnmFileOpenerClass): add argument to
      	  declaration of open method
      	(_GnmFileOpener): add encoding_dependent field
      	(gnm_file_opener_setup): add argument
      
      	* src/file.c (gnm_file_opener_open_real): new argument to pass
      	  to open call
      	(gnm_file_opener_setup): new argument to be used for
      	  initialization of added field
      	(gnm_file_opener_new): add argument to call of
      	  gnm_file_opener_setup
      	(gnm_file_opener_new_with_enc): new function
      	(gnm_file_opener_is_encoding_dependent): new function
      	(gnm_file_opener_open): new argument
      
      	* src/file.h (GnmFileOpenerOpenFuncWithEnc): new type
      	(gnm_file_opener_new_with_enc): new function
      	(gnm_file_opener_open): new argument
      	(gnm_file_opener_is_encoding_dependent): new function
      
      	* src/gui-clipboard.c (table_cellregion_read): add argument
      	  to call of wb_view_new_from_input
      
      	* src/gui-file.c (file_format_changed_cb_data): new type
      	(make_format_chooser): only make option menu
      	(gui_file_read): new argument to be passed to call of
      	  wb_view_new_from_file
      	(file_format_changed_cb): new callback
      	(gui_file_open): add encoding selector to load file dialog
      
      	* src/gui-file.h (gui_file_read): new argument
      	* src/history.c (file_history_cmd): add argument to call of
      	  gui_file_read
      
      	* src/main-application.c (main): add argument to call of
      	  wb_view_new_from_file
      
      	* src/plugin-service.c (gnm_plugin_file_opener_open): new
      	  argument
      	(gnm_plugin_file_opener_new): add argument to call of
      	  gnm_file_opener_setup
      
      	* src/stf.c (stf_open_and_read): new argument
      	(stf_preparse): handle encoding conversion
      	(stf_read_workbook_auto_csvtab): new argument to be passed to
      	  the call of stf_parse
      	(stf_init): setup encoding
      
      	* src/workbook-view.c (wb_view_new_from_input): new argument to
      be
      	  passed to the call of gnm_file_opener_open
      	(wb_view_new_from_file): new argument to be passed to the call
      of
      	  wb_view_new_from_input
      
      	* src/workbook-view.h (wb_view_new_from_input): new argument
      	(wb_view_new_from_file): new argument
      
      
      	* corba-application.c (capp_workbook_open): add argument
      	  to call of wb_view_new_from_file
      
      	* Makefile.am: add src/charset.[ch]
      002c067b
  30. 05 Dec, 2002 1 commit
    • Jon Kåre Hellan's avatar
      Renamings: · 4afde1db
      Jon Kåre Hellan authored
      GnumFile  -> GnmFile
      gnum_file -> gnm_file
      GNUM_FILE -> GNM_FILE
      4afde1db
  31. 27 Jun, 2002 1 commit
    • Jody Goldberg's avatar
      add missing break. · c7e7774e
      Jody Goldberg authored
      
      2002-06-26  Jody Goldberg <jody@gnome.org>
      
      	* src/expr.c (do_gnm_expr_unref) : add missing break.
      
      2002-06-26  Jody Goldberg <jody@gnome.org>
      
      	* src/gui-util.c (gui_file_open) : move the magic directory selector
      	  for here.
      	(gnumeric_dialog_file_selection) : to here, so that it works for other
      	  situations too.
      c7e7774e
  32. 23 Jun, 2002 1 commit
    • Jody Goldberg's avatar
      delete the 'selection' function. It is no longer possible with a · 778809a4
      Jody Goldberg authored
      
      2002-06-23  Jody Goldberg <jody@gnome.org>
      
      	* src/func-builtin.c (func_builtin_init) : delete the 'selection'
      	  function.  It is no longer possible with a sheetview.
      
      	* src/workbook-control-gui.c (cb_select_auto_expr) : remove
      	  'selection(0)' argument and just pass function name.  The conversion
      	  to SheetView forces a different methodology.
      	* src/workbook-view.c (workbook_view_new) : ditto.
      	(wb_view_auto_expr_recalc) : Make the call manually.
      778809a4
  33. 19 Jun, 2002 2 commits
    • Jody Goldberg's avatar
      no need to unant, that is a view responsibility. · 753f052a
      Jody Goldberg authored
      
      2002-06-19  Jody Goldberg <jody@gnome.org>
      
      	* src/sheet.c (sheet_destroy) : no need to unant, that is a view
      	  responsibility.
      
      	* src/sheet-view.c (sv_weakref_notify) : new.
      	(sv_weak_ref) : new.
      	(sv_weak_unref) : new.
      	(sv_unant) : move here from sheet.
      	(sv_ant) : move here from sheet.
      	(sv_selection_copy): from selection.c
      	(sv_selection_cut) : from selection.c
      
      	* src/sheet-control.c (sc_view) : new.
      
      	* src/sheet-control-gui.c (scg_ant) : the animated cursors are now
      	  stored in the view not the sheet.
      	(context_menu_handler) : sync with the workbook control criteria for
      	  enabling paste special.
      
      	* src/selection.c (sheet_selection_copy) : start the process of
      	  migrating to SheetView and move this there.
      	(sheet_selection_cut) : ditto.
      
      	* src/item-cursor.c (item_cursor_do_action) : pass a SheetView.
      
      	* src/gnumeric-canvas.c (gnm_canvas_key_mode_sheet) : pass a
      	  SheetView.
      
      	* src/corba-sheet.c : untested patch to handle views.
      
      	* src/commands.c (cmd_ins_del_colrow_undo) : use the sheetview.
      	(cmd_ins_del_colrow_redo) : ditto.
      	(cmd_ins_del_colrow_finalize) : remove weakref on the view.
      	(cmd_ins_del_colrow) : add a weak ref to the view.
      
      	* src/application.c (application_init) : we store a view now, not just
      	  a sheet.
      	(application_clipboard_clear) : update all workbooks, not just this
      	  one, and store the view.
      	(application_clipboard_unant) : use the view.
      	(application_set_selected_sheet) : the selection is now view based.
      	(application_clipboard_cut_copy) : take a view and remove the crufy
      	  enable_paste_special flag.  That is handled locally.
      	(application_clipboard_is_empty) : handle SheetView.
      	(application_clipboard_is_cut) : ditto.
      	(application_clipboard_sheet_get) : ditto.
      	(application_clipboard_sheet_view_get) : ditto.
      
      	* src/workbook-control-gui.c (wbcg_menu_state_update) : Use the
      	  current sheet not some magic sheet.
      
      	* src/sheet.c (sheet_new) : delete enable_paste_special.
      
      	* src/workbook-control-gui.c (wbcg_menu_state_update) : paste special
      	  is for local copies, use the application data rather than a sheet
      	  local flag.
      753f052a
    • Jody Goldberg's avatar
      renamed from sheet_attach_control. (sheet_detach_view) : renamed from · a4555c21
      Jody Goldberg authored
      
      2002-06-19  Jody Goldberg <jody@gnome.org>
      
      	* src/sheet.c (sheet_attach_view) : renamed from sheet_attach_control.
      	(sheet_detach_view) : renamed from sheet_detach_control.
      
      	* src/sheet-view.c : new.
      
      	* src/sheet-control.c (sc_sheet_set) : delete bogus.
      	(sc_view) : new.
      
      	* src/sheet-control-gui.c (sheet_control_gui_new) : A control now takes a
      	  view in place of a model.
      
      	* src/selection.c (sheet_selection_redraw) : adjustment to
      	  SHEET_FOREACH_CONTROL.
      
      	* src/gnumeric.h : Add SheetView
      	* src/Makefile.am : Add sheet-view.[ch]
      
      2002-06-18  Jody Goldberg <jody@gnome.org>
      
      	* src/workbook-control-gui.c (cb_insert_current_date) : check for
      	  failure to start editing.
      	(cb_insert_current_time) : ditto.
      a4555c21
  34. 08 Jun, 2002 1 commit
    • Jody Goldberg's avatar
      libgsf has landed. · 7c1e9d5c
      Jody Goldberg authored
      
      libgsf has landed.
      
      2002-06-07  Jody Goldberg <jody@gnome.org>
      
      	* src/workbook-view.c (wb_view_open) : convert to libgsf.
      
      	* src/stf.c (stf_open_and_read) : convert to libgsf.
      	(stf_preparse) : ditto.
      	(stf_read_workbook) : ditto.
      	(stf_read_workbook_auto_csvtab) : ditto.
      	(stf_read_default_probe) : ditto.
      
      	* src/stf-parse.c (stf_parse_is_valid_data) : actually disable the
      	  wide char support if it is not available.
      
      	* src/gutils.c (gnm_extension_pointer) : copied from libgnome to
      	  decrease our dependence on it.
      
      	* src/gui-util.c (gnumeric_editable_enters) : modernize a bit.
      
      	* src/gnumeric-simple-canvas.c (gnm_simple_canvas_grab) : suppress
      	  warning.
      
      	* src/file.c (gnum_file_opener_probe_real) : Use libgsf.
      	(gnum_file_opener_open_real) : ditto.
      	(gnum_file_opener_probe) : ditto.
      	(gnum_file_opener_open) : ditto.
      	(gnum_file_saver_save_to_stream_real) : disable, we can move this out
      	  of here when GsfOutput comes online.
      
      	* src/collect.c (string_range_function) : suppress warning.
      
      	* src/cell.c (cell_set_array_formula) : Adjust to the signature change
      	  for gnm_expr_new_array.
      	* src/sheet-autofill.c (autofill_cell) : ditto.
      
      2002-06-07  Jody Goldberg <jody@gnome.org>
      
      	* configure.in : require libgsf.
      
      	* src/xml-io.c (xml_check_version) : move the sanity checking here.
      	(gnumeric_xml_read_workbook) : rather than here.  Support GsfInput.
      	(xml_probe) : and here.
      	(gnumeric_xml_write_workbook_to_stream) : delete.
      
      2002-05-31  Jody Goldberg <jody@gnome.org>
      
      	* src/gnumeric-simple-canvas.c (gnm_simple_canvas_grab) : actually
      	  return the result.
      7c1e9d5c
  35. 16 Apr, 2002 1 commit
  36. 22 Mar, 2002 1 commit
    • Jody Goldberg's avatar
      Massive rename ExprTree -> GnmExpr · 0ac8fbbf
      Jody Goldberg authored
      
      2002-03-21  Jody Goldberg <jody@gnome.org>
      
      	* Massive rename
      	ExprTree -> GnmExpr
      
      	* src/print-info.c (load_formats) : suppress some warnings.
      
      	* src/func.c (function_def_call_with_values) : use g_alloca.
      0ac8fbbf
  37. 09 Mar, 2002 1 commit
    • Jody Goldberg's avatar
      switch Format->Workbook with Format->AutoFormat ditto. · 73a18b0f
      Jody Goldberg authored
      2002-03-08  Jody Goldberg <jody@gnome.org>
      
      	* src/GNOME_Gnumeric.xml : switch Format->Workbook with
      	  Format->AutoFormat
      	* src/workbook-control-gui.c (workbook_menu_format) : ditto.
      
      	* src/workbook-view.c (wb_view_is_protected) : new.
      
      	* src/workbook-edit.c (wbcg_edit_start) : load style directly
      	  don't use cell_get_style.  This enables support for protection of
      	  blank cells.  Use wb_view_is_protected, and command_context_invalid.
      
      2002-03-08  C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>
      
      	* src/gnumeric-canvas.c (gnm_canvas_key_mode_sheet): don't put us in
      	  edit mode if wbcg_edit_start indicates the cell is locked.
      	* src/workbook-control-gui.c (cb_autosum, cb_autofunction): handle
      	  case where wbcg_edit_start returns FALSE indicating that cell is
      	  locked.
      	* src/workbook-edit.c (wbcg_edit_start): this function now returns a
      	   boolean which indicates whether the 'edit_start' attempt succeeded.
      	   Check cell properties to return FALSE if the cell is locked.
      	* src/workbook-edit.h (wbcg_edit_start): modify the prototype as per above.
      	* src/workbook-view.c (wb_view_set_attribute, workbook_view_init):
      	  Remove ARG_VIEW_* enumeration, which isn't used after Gnome2 port.
      	  Add WorkbookView::is_protected attribute, and initialize it to
      	  FALSE.  The update to wb_view_set_attribute is enough to get
      	  xml_sax import working properly (yay, modular code!).
      	* src/workbook-view.h: add 'is_protected' field to WorkbookView struct.
      	  This is TRUE iff the workbook is locked.
      	* src/xml-io.c (xml_write_wbv_attributes):
      	  Write the new 'protected' workbook view attribute.  Two lines are
      	  enough to get read/write from xml_io working.  Score one for
      	  xml_sax: zero should have been sufficient.
      	* src/dialogs/cell-format.glade: The 'worksheet protected' checkbox
      	  shouldn't be greyed-out anymore.
      	* src/dialogs/dialog-cell-format.c (cb_protection_sheet_protected_toggle,
      	fmt_dialog_init_protection_page, cb_fmt_dialog_dialog_buttons):
      	  connect up the 'worksheet protected' button in the
      	  Format->Cells->Protection dialog.  Update worksheet object when
      	  toggled and mark that the dialog's changed.
      	* src/dialogs/dialog-workbook-attr.c src/dialogs/workbook-attr.glade:
      	  Add Format->Worksheet->Protection dialog.
      73a18b0f