1. 17 Dec, 2006 1 commit
    • Jody Goldberg's avatar
      silence warning due to kludge. · e9000e36
      Jody Goldberg authored
      2006-12-16  Jody Goldberg <jody@gnome.org>
      
      	* ms-excel-read.c (excel_read_COLINFO) : silence warning due to
      	  kludge.
      
      2006-12-16  Jody Goldberg <jody@gnome.org>
      
      	Start work on autofilters, only Top10 is implemented for in or out.
      	* xlsx-read.c (xlsx_CT_Filters_begin) : new.
      	  Massive renaming to use '_begin' rather than '_start' just because I
      	  like the sound better.
      	* xlsx-write.c (xlsx_write_autofilters) : new.
      
      2006-12-16  Jody Goldberg <jody@gnome.org>
      
      	* src/sheet-filter.h : add GNM_FILTER_OP_BOTTOM_MASK, and
      	  GNM_FILTER_OP_PERCENT_MASK.
      
      	* src/xml-sax-read.c (xml_sax_filter_condition) : make bucket count a
      	  float.
      	* src/xml-sax-write.c (xml_write_filter_field) : ditto.
      	* src/xml-io.c (xml_read_filter_field) : ditto.
      	* src/sheet-filter.c (gnm_filter_condition_new_bucket) : ditto.
      	* gnumeric.xsd : ditto.
      e9000e36
  2. 02 Dec, 2006 1 commit
    • Jody Goldberg's avatar
      All callers changed. renamed from scenario_free_all. (scenarios_dup) : · 0fb55e5d
      Jody Goldberg authored
      
      2006-12-02  Jody Goldberg <jody@gnome.org>
      
      	All callers changed.
      	* scenarios.c (scenarios_free) : renamed from scenario_free_all.
      	(scenarios_dup) : renamed from scenario_copy_all.
      	(scenarios_insert_rows) : renamed from scenario_insert_rows.
      	(scenarios_insert_cols) : renamed from scenario_insert_cols.
      	(scenarios_delete_rows) : renamed from scenario_delete_rows.
      	(scenarios_delete_cols) : renamed from scenario_delete_cols.
      	(scenarios_move_range) : renamed from scenario_move_range.
      
      2006-12-02  Jody Goldberg <jody@gnome.org>
      
      	* src/expr.c (gnm_expr_top_relocate) : don't init rinfo::from_inside
      	  for INVALIDATE_SHEET case, it's unnecesasry and the inputs are
      	  undefined.
      
      	* src/gnumeric-canvas.h : Remove scaling from GNUMERIC_CANVAS_FACTOR_X
      	  that was breaking text display in RTL.  We need a gtk patch for that
      	  to work.
      
      2006-12-02  Jody Goldberg <jody@gnome.org>
      
      	* src/sheet.c (sheet_dup_filters) : new.
      	(sheet_dup) : called from here.
      	* src/sheet-filter.c (gnm_filter_condition_dup) : new.
      	(gnm_filter_dup) : new.
      	(filter_field_apply) : take target_sheet to allow filtering a
      	  different sheet using the src data.
      	(gnm_filter_get_condition) : replace 'apply' boolean with
      	  'target_sheet'.
      	(gnm_filter_combo_foo_view_new) : move this internal and use
      	  gnm_cell_combo_foo_view_new.
      	(gnm_filter_add_field) : use offset to replace the effect of
      	  SO_ANCHOR_PERCENTAGE_FROM_COLROW_END.
      
      	* src/validation.c (gnm_validation_combo_foo_view_new) : move this
      	  internal and use gnm_cell_combo_foo_view_new.
      
      	* src/sheet-view.c (sv_update) : Use wb_view_selection_desc instead of
      	  putting a subset of the logic here.
      
      	* src/gnumeric-canvas.c (gnm_canvas_key_mode_sheet) : Add a hook to
      	  popdown validate from list, or autofilter combos.
      
      	* src/sheet-object.h : remove SO_ANCHOR_PERCENTAGE_FROM_COLROW_END.
      	* src/sheet-object.c (sheet_object_draw_cairo) : ditto.
      	* component/gnumeric.c (go_gnm_component_print) : ditto.
      	* src/sheet-object-cell-comment.c (cell_comment_set_cell) : use offset
      	  to replace the effect of SO_ANCHOR_PERCENTAGE_FROM_COLROW_END.
      	* src/sheet-control-gui.c (calc_obj_place) : FROM_COLROW_END is gone.
      	(cell_offset_calc_pixel) : ditto.
      
      	* src/ranges.c (range_init_cellpos) : take only 1 cellpos and use for
      	  both ends.  All callers changed.
      
      2006-12-02  Jody Goldberg <jody@gnome.org>
      
      	* gnumeric.xsd : Make schema validate by
      	    - adding Attributes.
      	    - Add Autofilters.
      	    - Add Input Messages
      
      	* src/xml-io.c (xml_init) : Make the sax importer the default.
      	(xml_read_colrow_info) : update the max_outline_level.
      	* src/xml-sax-read.c (xml_sax_colrow) : ditto. [#380015]
      	(gnm_xml_file_open) : init State::filter
      	(content_ns) : add schema namespace.
      	(xml_sax_filter_end) : new.
      	(xml_sax_filter_start) : new.
      	(xml_sax_filter_condition) : new.
      	(xml_sax_filter_operator) : new.
      	(xml_sax_input_msg) : sync with logic in the DOM importer and do
      	  not generate an input msg if both title and msg are missing.
      
      2006-12-02  Jody Goldberg <jody@gnome.org>
      
      	* Makefile.am (libwidgets_la_SOURCES) : add
      	    gnm-cell-combo-foo-view.[ch]
      
      	* gnm-cell-combo-foo-view.h : new.
      	* gnm-cell-combo-foo-view.c : new.
      	  Implementation pulled from validation-combo and generalized to share
      	  between validation and autofilter.  It adds
      	    - autoscroll of the list
      	    - more keybindings in the list
      	    - RTL support for dropdown placement.
      	(gnm_cell_combo_foo_view_new) : create the specified GType (which need
      	  to imlement SheetObjectView and GnmCellComboFooView interfaces).
      	(gnm_cell_combo_foo_view_popdown) : new routine to allow an external
      	  entity to force the combo to populate and open. (eg the alt-down in
      	  a cell)
      	(gnm_cell_combo_foo_view_popdown): set the
      	  cursor in addition to selecting the desired row so that arrows move
      	  from the selected item rather than the 1st.
      
      	* gnm-validation-combo-foo-view.h : all we need to expose now is the GType
      	* gnm-filter-combo-foo-view.h : ditto.
      	* gnm-validation-combo-foo-view.c : split out the content into the new
      	  gnm-cell-combo-foo-view.[ch] and implement GnmCComboFooViewIface
      	(validation_view_set_bounds) : handle RTL placement of combo.
      	* gnm-filter-combo-foo-view.c : ditto.
      	(filter_view_set_bounds) : handle RTL placement of combo.
      
      2006-11-25  Jody Goldberg <jody@gnome.org>
      
      	* gnm-validation-combo-foo-view.c (gnm_validation_combo_foo_view_new) :
      	  rename from gnm_validation_combo_new_foo_view_new.
      	(gnm_validation_combo_foo_view_popdown) : new public interface split
      	  out of cb_cell_button_pressed.
      0fb55e5d
  3. 25 Nov, 2006 1 commit
    • Jody Goldberg's avatar
      set 'bestFit' if the column has a size different from the default and it · 9a748b04
      Jody Goldberg authored
      2006-11-24  Jody Goldberg <jody@gnome.org>
      
      	* xlsx-write.c (xlsx_write_col) : set 'bestFit' if the column has a
      	  size different from the default and it has _not_ been set by the
      	  user.
      	* ms-excel-write.c (excel_write_COLINFO) : ditto.  Set the
      	  undocumented flags customWidth and bestFit based on the OfficeOpen
      	  docs.
      	* ms-excel-read.c (excel_read_COLINFO) : the undocumented bestfit and
      	  customwidth flags are not a perfect match with our hard_size.  Use
      	  customwith && !bestfit == hard_size.  That should match even the
      	  mis-exported xls from older gnumeric's and OOo.
      	* xlsx-read.c (xlsx_CT_Col) : ditto, but there are no worries about
      	  older gnumeric's or OOo mis-generating.
      9a748b04
  4. 11 Nov, 2006 2 commits
  5. 09 Nov, 2006 1 commit
    • Jody Goldberg's avatar
      Add new accelerators. <control><alt>Tab : inc indent · d5c234b1
      Jody Goldberg authored
      
      2006-11-08  Jody Goldberg <jody@gnome.org>
      
      	* src/wbcg-actions.c  : Add new accelerators.
      	    <control><alt>Tab : inc indent
      	    <control><alt><shift>Tab : dec indent.
      	    <shift><alt>Right : group
      	    <shift><alt>Left : ungroup
      
      	* src/GNOME_Gnumeric-gtk.xml.in : Add explicit accelerator entries for
      	  the inc/dec indent because they are not in the menu by default, so
      	  their accels are not enabled.
      
      	* src/gnumeric-canvas.c (gnm_canvas_key_mode_sheet) : don't eat
      	  Alt-left/right.  We want those for accelerators.
      
      2006-11-08  Jody Goldberg <jody@gnome.org>
      
      	* src/gutils.c (gnm_push_C_locale) : new utility to set the C locale
      	(gnm_pop_C_locale) : and restore it.  Useful for persistence to avoid
      	  problems with decimal points.
      	* src/xml-io.c (xml_cellregion_read) : Use it here.
      	(xml_workbook_read) : and here.
      	* src/xml-sax-read.c (gnm_xml_file_open) : ditto.
      	* src/xml-sax-write.c (gnm_xml_file_save) : ditto.
      	(gnm_cellregion_to_xml) : ditto.
      
      	* src/sheet-object-graph.c (gnm_sog_write_object) : do not change the
      	  locale here.
      	* src/sheet-object.c (sheet_object_write_object) : that logic belongs
      	  here.  Use the new push/pop C_locale routines.
      
      2006-11-09  Jody Goldberg <jody@gnome.org>
      
      	* xlsx-read.c (xlsx_file_open) : use the new
      	  gnm_push_C_locale/gnm_pop_C_locale utils.
      	* xlsx-write.c (xlsx_file_save) : ditto.
      
      2006-11-09  Jody Goldberg <jody@gnome.org>
      
      	* openoffice-read.c (openoffice_file_open) : use the new
      	  gnm_push_C_locale/gnm_pop_C_locale utils.
      	* openoffice-write.c (openoffice_file_save) : ditto.
      
      2006-11-09  Jody Goldberg <jody@gnome.org>
      
      	* sylk.c (slyk_file_open) : use the new
      	  gnm_push_C_locale/gnm_pop_C_locale utils.
      
      2006-11-08  Jody Goldberg <jody@gnome.org>
      
      	* dif.c (dif_file_save) : export errors, booleans, and values
      	  properly.
      
      2006-11-08  Jody Goldberg <jody@gnome.org>
      
      	* dif.c (dif_parse_sheet) : use the new
      	  gnm_push_C_locale/gnm_pop_C_locale utils.
      	(dif_file_save) : ditto.
      d5c234b1
  6. 25 Sep, 2006 1 commit
  7. 31 Jul, 2006 1 commit
    • Jody Goldberg's avatar
      Some 'const' position consistency · f23d38b4
      Jody Goldberg authored
      2006-07-25  Jody Goldberg <jody@gnome.org>
      
      	* src/cell.c (cell_relocate) : merge into clipboard.
      	* src/ranges.c (range_parse) : renamed from parse_range and the
      	  original unused range_parse was deleted.
      
      	* src/sheet.c (sheet_range_trim) : renamed from range_trim.  It makes
      	  more sense here.
      	(sheet_range_has_heading) : renamed from range_has_header.
      f23d38b4
  8. 11 Jun, 2006 1 commit
    • Jody Goldberg's avatar
      Take the width as an argument rather than calculating it here. (cell_draw) · 97f135b7
      Jody Goldberg authored
      2006-06-11  Jody Goldberg <jody@gnome.org>
      
      	* src/cell-draw.c (cell_calc_layout) : Take the width as an argument
      	  rather than calculating it here.
      	(cell_draw) : width must be specified now.  No more magic < 0 implies
      	  cur col width.  Width convention changed to include margins.
      
      	* src/search.c (search_collect_cells) :  adjust to sheet_cells
      	  signature change.
      
      	* src/expr.h (GnmExprRelocateInfo) : convert pos from an EvalPos to a
      	  ParsePos.  One day the distinction will go away, but for now
      	  relocations do not need to know which dependent is being evaluated.
      	* src/dependent.c (dependents_relocate) : adjust to that change.
      	* src/sheet-autofill.c (afc_set_cell_hint) : ditto.
      
      	* src/colrow.h (GNM_COL_MARGIN) : define.  Margins are going away, why
      	  waste space and time looking up values that were constant.
      
      	* src/cell.h : remove GnmCell::col_info.
      	(cell_is_linked) : delete.  it was only used internally this model is
      	  targeted for removal when cells move into the quadtree.
      
      	* src/gnumeric.h : Change CellIterFunc signature to take a GnmCellIter
      	  in place of all the distinct arguments.
      	* src/auto-format.c (cb_af_suggest) : Adjust to signature change.
      	* src/clipboard.c (cb_clipboard_prepend_cell) : ditto.
      	* src/colrow.c (cb_clear_variable_width_content) : ditto.
      	* src/func.c (cb_iterate_cellrange) : ditto.
      	* src/graph.c (cb_assign_val) : ditto.
      	(cb_assign_matrix_val) : ditto.
      	* src/print.c (cb_range_empty) : ditto.
      	* src/ranges.c (cb_find_extents) : ditto.
      	* src/sheet-filter.c (cb_collect_unique) : ditto.
      	(cb_filter_expr) : ditto.
      	(cb_filter_non_blanks) : ditto.
      	(cb_filter_blanks) : ditto.
      	(cb_filter_find_items) : ditto.
      	(cb_hide_unwanted_items) : ditto.
      	(cb_filter_find_percentage) : ditto.
      	(cb_hide_unwanted_percentage) : ditto.
      	* src/sheet-view.c (cb_fail_if_not_selected) : ditto.
      97f135b7
  9. 25 May, 2006 1 commit
  10. 30 Apr, 2006 2 commits
    • Jody Goldberg's avatar
      implement. · 5c840ace
      Jody Goldberg authored
      
      2006-04-30  Jody Goldberg <jody@gnome.org>
      
      	* src/mstyle.c (gnm_style_is_complete) : implement.
      5c840ace
    • 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
  11. 17 Apr, 2006 1 commit
    • Jody Goldberg's avatar
      Add mimetype for MS Office 12. · 0a3f850a
      Jody Goldberg authored
      
      2006-04-16  Jody Goldberg <jody@gnome.org>
      
      	* gnumeric.desktop.in : Add mimetype for MS Office 12.
      
      2006-04-16  Jody Goldberg <jody@gnome.org>
      
      	* xlsx-read.c : new.  Basic import and some code that will move to
      	  libgsf for 'Open Package' support.
      	* plugin.xml.in : Add xlsx import.
      	* Makefile.am : ditto.
      0a3f850a