2006-12-04 Jody Goldberg * Release 1.7.5 2006-12-04 Jody Goldberg * src/sheet-filter.c (gnm_filter_combo_apply) : make public and init target_sheet in the expr case too. (gnm_filter_set_condition) : revert the earlier change from apply -> target_sheet. We do not need that flexibility here. * src/widgets/gnm-filter-combo-foo-view.c (fcombo_fill_model) : Create a temporary sheet and apply the filter to that so that we can list only the elements filtered by other fields. 2006-12-02 Jody Goldberg * 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 * 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 * 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-11-30 Morten Welinder * src/clipboard.c (cellregion_get_content): Prevent critical. 2006-11-28 Morten Welinder * src/ssconvert.c (convert): Call goal seek if requestion (for testing purposes). * src/clipboard.c (cellregion_to_string): Fix critical. 2006-11-27 Morten Welinder * Catch up with goffice renamings. 2006-11-27 J.H.M. Dassen (Ray) * configure.in: Bumped goffice dependency to reflect that goffice HEAD is needed as building against goffice 0.3.3 now fails. 2006-11-25 Morten Welinder * src/dependent.c (gnm_dep_set_expr_undo_new, gnm_dep_unlink_undo_new): New functions. (dep_hash_destroy, invalidate_name, handle_referencing_names, handle_outgoing_reference, tweak_3ds): Drop destroy argument. All callers changed. (dependents_invalidate_sheets): Make static. (dependents_revive_sheet): Use go_undo_undo. * src/sheet.h: Make ::revive a GOUndoGroup *. * src/expr-name.c (expr_name_set_expr_undo_new): New function. 2006-11-25 Jody Goldberg * src/clipboard.c (clipboard_paste_region) : don't warn when pasting a cellregion with no cells which can easily happen on undo, where the old content of a region was empty. Problem originated in 2006-11-11 move from lists to a hash. (cellregion_cmd_size) : ditto. 2006-11-25 Jody Goldberg * src/sheet-filter.c (gnm_filter_combo_class_init) : adjust to rename of gnm_filter_combo_foo_view_new. * src/validation.c (gnm_validation_combo_class_init) : adjust to rename of gnm_validation_combo_foo_view_new. 2006-11-25 Jody Goldberg * src/value-sheet.c (value_area_foreach) : init ep in the cellrange case, and region in both cases. 2006-11-25 Jody Goldberg * src/style-conditions.c (gnm_style_conditions_eval) : tidy up a bit. 2006-11-24 Morten Welinder * src/ssconvert.c (convert): Avoid updating the recect-files list. 2006-11-24 Jody Goldberg * src/Makefile.am : add validation-combo.h 2006-11-24 Jody Goldberg * 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 * tools/xmlunzip : Add the 'macro enabled' formats from office12 2006-11-23 Morten Welinder * src/xml-sax-write.c (xml_write_styles): Sort style regions so hash order does not matter. (xml_write_named_expressions): Sort names to hash order does not matter. * src/expr-name.c (gnm_named_expr_collection_list): New function. 2006-11-22 Jon K Hellan * src/gnumeric-gconf.c (gnm_gconf_set_gui_zoom): Fix typo that broke the default zoom preference. #378043. 2006-11-21 Morten Welinder * src/value.c (value_parse_boolean): Add a few "+" to tell the checker that it is ok to mix -1 and TRUE/FALSE. 2006-11-20 Morten Welinder * src/gnumeric-gconf.c (gnm_conf_shutdown): Plug leaks. 2006-11-20 Jody Goldberg * configure.in : post release bump