2009-05-06 Morten Welinder * Release 1.9.7 2009-05-06 Andreas J. Guelzow * configure.in: (libgsf) require 1.14.13 since the gsf_opendoc_metadata_subtree in previous versions will crash! * src/xml-sax-read.c (xml_sax_document_meta): new (content_ns): added name spaces (gnumeric_1_0_dtd): hook up xml_sax_document_meta 2009-05-06 Morten Welinder * src/gnm-so-polygon.c (gnm_so_polygon_write_xml_sax): Implement. Untested, but fixes #581394. * src/sheet-autofill.c (afc_set_cell_hint): Don't use the target cell for conventions -- it can be NULL. Fixes #581589. 2009-05-05 Morten Welinder * src/gnm-so-polygon.c (gnm_so_polygon_set_property): Handle NULL points. (so_polygon_view_set_bounds): Handle empty points. * src/gnm-style-impl.h (struct _GnmStyle): Allocate the right number of border elements! * src/mstyle.c (elem_is_eq): Force inline since most callers then trivially pick the right branch. (gnm_style_find_conflicts): Assert that we have bits enough. (gnm_style_update): Hash the right number of border elements. 2009-05-04 Morten Welinder * src/sheet.c (gnm_sheet_get_size2): New function. * src/parse-util.c (cellref_as_string, r1c1_rangeref_parse, rangeref_as_string, rangeref_parse): Simplify using gnm_sheet_get_size2. * src/position.c (gnm_rangeref_normalize_pp): Simplify using gnm_sheet_get_size2. * src/xml-sax-read.c (handle_delayed_names): Simplify using gnm_sheet_get_size2. * src/expr.c (reloc_restore_cellref): Take a GnmSheetSize, not a Sheet. All callers changed. * src/dependent.c (dependents_relocate): Relocate names with respect to the right GnmParsePos. (gnm_dep_container_dump): Just list the names. * src/workbook.c (workbook_foreach_name): Add extra globals_only flag. Caller changed. * src/dependent.c (dependents_relocate): Relocate sheet-local and global names too. Minor issues remain. 2009-05-03 Andreas J. Guelzow * src/gnm-so-filled.c (gnm_so_filled_draw_cairo) use pango_layout_set_text rather than pango_layout_set_markup fixes #581125 2009-05-03 Morten Welinder * src/expr-name.c (expr_name_handle_references): Undo last change. Bug 581117 is duct taped by sheet_get_nominal_printarea change. * src/sheet.c (sheet_get_nominal_printarea): Work harder at ensuring sanity. * src/expr.c (reloc_cellrange): Make sure a full row (1:1) or column (A:A) sticks at the beginning too. 2009-05-02 Morten Welinder * src/expr-name.c (expr_name_handle_references): Handle NULL sheet from expr_name_handle_references. Fixes #581117. * src/expr.c (gnm_insert_unique): Renamed from g_slist_insert_unique. Insert NULL too, if appropriate. (do_referenced_sheets): Correctly handle right-hand side of a range if it is NULL. * src/position.c (eval_pos_init_sheet, parse_pos_init, parse_pos_init_sheet): Constify. 2009-05-02 Jean Brefort * src/graph.c (render_val): don't crash with a NULL value. [#581120] 2009-05-01 Morten Welinder * src/parse-util.c (r1c1_rangeref_parse): Fix sheet size handling. * src/sheet-style.c (sheet_style_sanity_check): New function. (sheet_style_init): Call sheet_style_sanity_check. (tile_widths, tile_heights): Add extra element. 2009-05-01 Andreas J. Guelzow * src/commands.h (cmd_set_comment): add author argument * src/commands.c (cmd_set_comment): ditto (cmd_set_comment_apply): ditto, and change all callers (cmd_set_comment_finalize): delete author info * src/sheet-object-cell-comment.c: add "author" property 2009-04-30 Morten Welinder * src/position.c (gnm_cellref_get_row, gnm_cellref_get_col): Get sheet size from eval-pos, if the ref doesn't have one. Fixes #580953. * src/wbc-gtk.c (set_entry_contents): New function for common code. (cb_dataset_changed, wbcg_data_allocator_editor): Use set_entry_contents. * src/graph.c (render_val): New function. (gnm_go_data_scalar_get_str, gnm_go_data_vector_get_str, gnm_go_data_matrix_get_str): Use render_val. 2009-04-30 Andreas J. Guelzow * src/sheet-control-gui.c (scg_comment_display): use comment attributes * src/sheet-object-cell-comment.c (cell_comment_set_property): remove invalid and unneeded code 2009-04-29 Andreas J. Guelzow * src/sheet-object-cell-comment.h (cell_set_comment): add markup argument and change all callers * src/sheet-object-cell-comment.c (cell_set_comment): add markup argument (cell_comment_set_property): comment out invalid call to foo_canvas_item_set * src/commands.h (cmd_set_comment): add attribute argument * src/commands.c (cmd_set_comment): add attribute argument (cmd_set_comment_apply): ditto and change all callers (cmd_set_comment_finalize): unref attributes * src/gui-util.c (gnumeric_keyed_dialog): remember dialog size for comment dialog 2009-04-29 Morten Welinder * */*.c: Reduce use of gnm_conventions_default and gnm_expr_parse_str_simple. Use conventions from sheet or passed down from sax writer. 2009-04-29 Morten Welinder * src/wbc-gtk.c (cb_wbcg_window_state_event): When entering fullscreen mode, disable the actions in ->hide_for_fullscreen. When exiting, restore the old state. (cb_toolbar_box_visible): Don't persist changes while in fullscreen mode. Fixes #574603. * src/expr.c (gnm_expr_as_string): Don't check pp for NULL since we have a debug default. (gnm_expr_is_err): New function extracted from gnm_expr_top_is_err. (gnm_expr_relocate): Only invalidate the use of a name if its expression, hypothetically, moved would become invalid. Fixes part of #552749. * src/application.c (gnm_app_workbook_get_by_index): Simplify and make zero-based. * src/position.c (gnm_cellpos_init_cellref_ss): Make public. * src/parse-util.c (cellref_as_string, rangeref_parse): Handle out->pp->sheet being NULL for global names. 2009-04-28 Jody Goldberg * src/wbc-gtk.c (wbc_gtk_init) : use the pref for autosave. * src/gnumeric-gconf.c (gnm_conf_init_essential) : load it here. (gnm_gconf_set_workbook_autosave_time) : new. 2009-04-28 Morten Welinder * src/parse-util.c (std_expr_name_handler): Handle shadowed global names. * src/parser.y (workbookref): Ditto. Fixes #306686. 2009-04-27 Morten Welinder * src/position.c (gnm_rangeref_normalize_pp): New function extracted from gnm_rangeref_normalize. * src/parse-util.c (col_parse, row_parse, cellpos_parse, cellref_parse, cellref_a1_get, r1c1_get_index, cellref_r1c1_get): Change from Sheet argument to GnmSheetSize argument. All callers changed. (std_sheet_name_quote): Eliminate the use of MAGIC_MAX_SHEET. (rangeref_as_string): Use gnm_rangeref_normalize_pp. Fixes #580360. src/ranges.c (range_parse): Change from Sheet argument to GnmSheetSize argument. All callers changed. * src/sheet.c (gnm_sheet_get_size): New function replacing gnm_sheet_get_max_cols and gnm_sheet_get_max_rows. Turn those into macros. * src/sheet.h (struct _Sheet): Move max_cols and max_rows into new member size of type GnmSheetSize. 2009-04-27 Morten Welinder * src/item-grid.c (cb_cursor_come_to_rest): Fix tooltip positioning. * src/item-cursor.c (item_cursor_tip_setlabel): Ditto. * src/item-bar.c (item_bar_event): Ditto. Fixes #580358. 2009-04-26 Andreas J. Guelzow * src/gui-util.h (gnm_create_std_tags_for_buffer): new * src/gui-util.c (gnm_create_std_tags_for_buffer): new (gnm_load_pango_attributes_into_buffer_filter): weight will use named tags (gnm_load_pango_attributes_into_buffer_named_filter): ditto (gnm_load_pango_attributes_into_buffer): The standard tags will exist. Classify the weight into the standard values. 2009-04-26 Morten Welinder * src/xml-sax-read.c (handle_delayed_names): Parse position here too. (xml_sax_named_expr_end): Don't do it here. Fixes #580227. 2009-04-25 Morten Welinder * configure.in: Post-release bump.