1. 25 Nov, 2007 2 commits
    • Jody Goldberg's avatar
      update schema · 1d2f93d1
      Jody Goldberg authored
      svn path=/trunk/; revision=16203
      1d2f93d1
    • Jody Goldberg's avatar
      new. Manual enum handling for performance. (xml_write_print_info) : use it · 53e85a51
      Jody Goldberg authored
      2007-11-24  Jody Goldberg <jody@gnome.org>
      
      	* src/xml-sax-write.c (xml_write_breaks) : new.  Manual enum handling
      	  for performance.
      	(xml_write_print_info) : use it here.
      
      	* src/xml-sax-read.c (xml_sax_attr_enum) : Use class_ref/class_unref
      	  to force the enum to complete.
      	(xml_sax_page_break) : new with manual enum handling for performance.
      	(xml_sax_page_breaks_begin) : new.
      	(xml_sax_page_breaks_end) : new.
      
      svn path=/trunk/; revision=16201
      53e85a51
  2. 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
  3. 08 Nov, 2007 1 commit
    • Andreas J. Guelzow 's avatar
      new write do_not_print field read do_not_print field initialize · e61c2936
      Andreas J. Guelzow authored
      2007-11-08  Andreas Guelzow  <aguelzow@pyrshep.ca>
      
      	* src/xml-sax-read.c (xml_sax_print_do_not_print): new
      	* src/xml-sax-write.c (xml_write_print_info): write do_not_print 
      	  field
      	* src/xml-io.c (xml_read_print_info): read do_not_print field
      	* src/print-info.c (print_info_new): initialize do_not_print
      	
      2007-11-08  Andreas J. Guelzow <aguelzow@pyrshep.ca>
      
      	* print.glade: add "do not print" checkbox
      	* dialog-printer-setup.c (do_setup_page_info): handle 
      	  do-not-print checkbox
      	(do_fetch_page_info): ditto
      
      	
      
      svn path=/trunk/; revision=16094
      e61c2936
  4. 27 Oct, 2007 2 commits
  5. 14 Sep, 2007 1 commit
    • Morten Welinder's avatar
      Re-use string across calls. · 8fe2d445
      Morten Welinder authored
      2007-09-14  Morten Welinder  <terra@gnome.org>
      
      	* src/xml-sax-write.c (xml_write_cell_and_position): Re-use string
      	across calls.
      
      
      
      svn path=/trunk/; revision=15890
      8fe2d445
  6. 08 Sep, 2007 1 commit
  7. 26 Jul, 2007 1 commit
    • Jody Goldberg's avatar
      store the object in reverse stacking order to match the · 06b3a683
      Jody Goldberg authored
      2007-07-26  Jody Goldberg <jody@gnome.org>
      
      	* src/xml-sax-write.c (xml_write_objects) : store the object in
      	  reverse stacking order to match the sheet_object_set_sheet's api
      	  that prepends new objects.
      
      svn path=/trunk/; revision=15703
      06b3a683
  8. 22 Jul, 2007 1 commit
    • Jody Goldberg's avatar
      send the actual record, not the 4 byte header that loses 4 trailing bytes. · ae7980ba
      Jody Goldberg authored
      2007-07-13  Jody Goldberg <jody@gnome.org>
      
      	* ms-obj.c (ms_obj_read_biff8_obj) : send the actual record, not
      	  the 4 byte header that loses 4 trailing bytes.
      	(ms_obj_map_forms_obj) : Use existing tools to properly handle
      	 longer names and objects with data sources (combos/lists).
      
      	* xlsx-write.c (xlsx_write_calcPR) : new.
      
      2007-07-13  Jody Goldberg <jody@gnome.org>
      
      	* sylk.c (sylk_next_token) : initial version of accent support.  pango
      	  does not handle it well.
      
      2007-07-22  Jody Goldberg  <jody@gnome.org>
      
      	* src/sheet.c (PROP_CONVENTIONS) : new property.
      	(PROP_USE_R1C1) : made this a convenience wrapper for
      	(sheet_set_conventions) : rename.
      	(sheet_get_conventions) : renamed from sheet_conventions.
      
      	* src/workbook.c (RECALC_MODE) : new property.
      
      	* src/xml-sax-read.c (gnm_xml_attr_int) : make more rigorous.
      	(xml_sax_calculation) : add DateConvention.
      	(xml_sax_old_dateconvention) : new.
      	(xml_sax_sheet_start) : store the name of the expr conv.
      	(xml_sax_sheet_name) : assigned the named expr conv.
      
      	* src/xml-sax-write.c (xml_write_sheet) : Use an enum in place of a
      	  bool to store R1C1, for future expandability
      	(xml_write_calculation) : Store the DateConvention here, rather than
      	  in a magic element missing from the schema.
      	* src/xml-io.c (xml_sheet_read) : support new ExprConvention hook.
      	(xml_workbook_read) : support DateConvention in Calculation.
      
      svn path=/trunk/; revision=15672
      ae7980ba
  9. 18 Jun, 2007 2 commits
    • Morten Welinder's avatar
      Use gnm_cell_set_text only as a last resort. (struct XMLSaxParseState): · 5e4a3669
      Morten Welinder authored
      2007-06-18  Morten Welinder  <terra@gnome.org>
      
      	* src/xml-sax-read.c (xml_sax_cell_content): Use gnm_cell_set_text
      	only as a last resort.
      	(struct XMLSaxParseState): Add convs member.
      	(xml_sax_validation_expr_end, xml_sax_condition_expr_end,
      	xml_cell_set_array_expr, xml_sax_cell_content,
      	handle_delayed_names): Use conventions.
      	(xml_sax_sheet_name): Handle forgotten "protected" attribute.
      	(xml_sax_sheet_start, xml_sax_sheet_start, xml_sax_sheet_name):
      	Handle R1C1.  Fixes #448714.
      
      
      svn path=/trunk/; revision=15611
      5e4a3669
    • Morten Welinder's avatar
      Save R1C1 flag when set. · 9dfb597d
      Morten Welinder authored
      2007-06-18  Morten Welinder  <terra@gnome.org>
      
      	* src/xml-sax-write.c (xml_write_sheet): Save R1C1 flag when set.
      
      
      svn path=/trunk/; revision=15609
      9dfb597d
  10. 08 May, 2007 1 commit
    • Andreas J. Guelzow 's avatar
      adjust for new arguments of print_info_get_margins (excel_write_WSBOOL): · 8aac2cc4
      Andreas J. Guelzow authored
      2007-05-07  Andreas J. Guelzow <aguelzow@pyrshep.ca>
      
              * ms-excel-write.c (excel_write_SETUP): adjust for new
                arguments of print_info_get_margins
              (excel_write_WSBOOL): ditto
              * ms-excel-read.c (excel_init_margins): use print_info_set_edge_to_*
              (excel_read_sheet): use print_info_set_edge_to_*
              * xlsx-write.c (xlsx_write_print_info): adjust for new
                arguments of print_info_get_margin
      
      
      2007-05-07  Andreas J. Guelzow <aguelzow@pyrshep.ca>
      
              * src/xml-sax-read.c (xml_sax_print_margins): use
                print_info_set_edge_to_*
              * src/gnumeric-gconf.h (gnm_gconf_set_print_tb_margins): new
                arguments
              * src/gnumeric-gconf.c (gnm_gconf_set_print_tb_margins): new
                individual arguments
              * src/xml-sax-write.c (xml_write_print_info): adjust
                print_info_get_margins for new arguments
              * src/xml-io.c (xml_sax_print_margins): use
                print_info_set_edge_to_*
              * src/print-info.h (PrintMargins): delete
              (PrintInformation): new fields
              (print_info_get_margins): new arguments
              (print_info_set_edge_to_above_footer): new
              (print_info_set_edge_to_below_header): new
              * src/print-info.c (print_info_get_margins): new arguments
              (print_info_set_edge_to_above_footer): new
              (print_info_set_edge_to_below_header): new
              (print_info_load_defaults): handle new fields
              (page_setup_get_paper): work around gtk bug 426416
              (print_info_set_page_setup): adjust for new arguments of
                print_info_get_margins
      
      007-05-08  Andreas J. Guelzow <aguelzow@pyrshep.ca>
      
              * print.glade: enable header/footer and center buttons
              * dialog-printer-setup.c (spin_button_set_bound): delete
              (get_printable_height): delete
              (set_vertical_bounds): delete
              (move_line): only move existing lines
              (cb_unit_activated): rename to cb_spin_activated and enable
              (cb_unit_deactivated): rename to cb_spin_deactivated and
                enable
              (unit_editor_configure): delete
              (value_changed_bottom_cb): move the footer not the header line
              (margin_spin_configure): connect cb_spin_*activated
              (do_update_page): adjust for changed arguments to
                print_info_get_margins
              (do_fetch_margins): use print_info_set_edge_to_*
      
      
      svn path=/trunk/; revision=15553
      8aac2cc4
  11. 03 May, 2007 1 commit
  12. 30 Apr, 2007 1 commit
    • Jody Goldberg's avatar
      Begin generalizing the conventions to properly support ODF-1.2 output. · b5c0ac51
      Jody Goldberg authored
      2007-04-29  Jody Goldberg <jody@gnome.org>
      
      	Begin generalizing the conventions to properly support ODF-1.2 output.
      	s/GnmExprConventions/GnmConventions/
      	s/gnm_expr_conventions_new_full/gnm_conventions_new_full/
      	s/gnm_expr_conventions_new/gnm_conventions_new/
      	s/gnm_expr_conventions_free/gnm_conventions_free/
      	s/gnm_expr_conventions_default/gnm_conventions_default/
      	s/gnm_expr_conventions_r1c1/gnm_conventions_xls_r1c1/
      
      	* src/parse-util.c (cellref_as_string) : Take the new
      	  'GnmConventionsOut' to combine the various args.
      	(rangeref_as_string) : ditto.
      	(gnm_1_0_rangeref_as_string) : ditto.
      	(std_expr_name_handler) : ditto.
      
      svn path=/trunk/; revision=15531
      b5c0ac51
  13. 24 Apr, 2007 1 commit
  14. 04 Apr, 2007 1 commit
  15. 03 Apr, 2007 1 commit
  16. 29 Mar, 2007 1 commit
  17. 05 Mar, 2007 1 commit
    • Jody Goldberg's avatar
      patch logic. · 0eed16d6
      Jody Goldberg authored
      2007-03-04  Jody Goldberg <jody@gnome.org>
      
      	* src/func-builtin.c (gnumeric_table) : patch logic.
      
      2007-03-04  Jody Goldberg <jody@gnome.org>
      
      	* src/parse-util.c (gnm_expr_conventions_new_full) : Start
      	  homogenizing the structure so that parsing and formating use shared
      	  gunichar, rather than a semi-random collection of booleans on
      	  import and char * on export.
      	  - ::name_parser renamed ::input.name
      	  - ::unknown_function_handler replaced by ::input.func which is
      	      called for all functions not just unknown.
      	  - ::function_rewriter_hash deleted.  This was not 64bit clean
      	  - ::output_sheet_name_sep => a gunichar and renamed ::sheet_name_sep.
      	  - ::cell_ref_handler => ::output.cell_ref
      	  - ::range_ref_handler => ::output.range_ref
      	  - ::sheet_name_quote => ::output.sheet_name_quote
      
      	(cellref_as_string) : ditto.
      	(std_expr_name_handler) : ditto.
      	(std_func_map) : new.
      
      	* src/xml-sax-write.c (xml_io_conventions) : adapt to changes.
      	* src/xml-io.c (xml_io_conventions) : ditto.
      	* src/value.c (value_get_as_gstring) : ditto.
      	* src/expr.c (do_expr_as_string) : ditto.
      
      	* src/parser.y : s/SEPARATOR/ARG_SEP/
      	Remove the ARRAY_START_COMMA and ARRAY_START_BSLASH tokens
      	Remove the duplicate comma/bslash productions for arrays.
      	Use an 'in_array' flag in the state to allow the lexer to
      	differentiate an ARG_SEP from an ARRAY_COL_SEP and an ARRAY_ROW_SEP.
      
      	* src/sheet-object-graph.c (gnm_sog_get_object_target_list) : compiler
      	  warnings.
      
      	* src/func.c (gnm_func_placeholder_factory) : delete.
      
      2007-03-05  Jody Goldberg <jody@gnome.org>
      
      	* xlsx-utils.c (xlsx_cellref_as_string) : no need to use the
      	  convention for the sheet_sep, hard code it.
      	(xlsx_rangeref_as_string) : ditto.
      	(xlsx_expr_conv_new) : adapt to changes.
      
      2007-01-11  Jody Goldberg <jody@gnome.org>
      
      	* ms-escher.c (ms_escher_read_OPT_bools) : improve debug stream.
      	(ms_escher_read_OPT) : add a few more properties based on the results
      	  of the test file that fills in as many properties as I could find
      	  samples/excel/objs.xls.
      	(ms_escher_sp_new) : new. unused as yet.
      	(ms_escher_sp_free) : ditto.
      	(ms_escher_sp_len) : ditto.
      	(ms_escher_sp_add_OPT) : ditto.
      	(ms_escher_sp_set_anchor) : ditto.
      	(ms_escher_sp_write) : ditto.
      
      	* ms-obj.c (ms_obj_read_biff8_obj) : do not generate a warning for
      	  combos with no link, or the special autofilter combos.
      	(ms_obj_read_biff8_obj) : include the id in the debug spew.
      	(ms_obj_read_biff8_obj) : Do not warn about unknown flags that we know
      	  are unknown :-)
      	(ms_objv8_write_note) : new basic stub.
      
      	* ms-excel-write.c (excel_write_textbox_v8) : cheap hack to handle
      	  comments somewhat at an invented anchor.
      	(cb_NOTE_v8) : new.
      	(excel_write_objs_v8) : keep track of the number of comments too.
      	(excel_sheet_new) : count comments too.  General tidyup in prep for
      	  moving to generated escher.
      
      2007-03-05  Jody Goldberg <jody@gnome.org>
      
      	* sc.c (sc_func_map_in) : adapt to change in ExprConv
      
      2007-03-04  Jody Goldberg <jody@gnome.org>
      
      	* openoffice-read.c (odf_func_map_in) : adapt to the new mechanism of
      	  function renaming.
      	(oo_conventions) : handle inline arrays.
      
      2007-03-04  Jody Goldberg <jody@gnome.org>
      
      	* oleo.c (oleo_conventions) : adapt to new conventions.
      
      svn path=/trunk/; revision=15444
      0eed16d6
  18. 27 Feb, 2007 1 commit
    • Morten Welinder's avatar
      Deal with goffice changes. · b559803b
      Morten Welinder authored
      2007-02-26  Morten Welinder  <terra@gnome.org>
      
              * */*.c: Deal with goffice changes.
      
              * src/gnm-format.c (gnm_format_specialize): New function.
              (gnm_format_is_date_for_value): Base on gnm_format_specialize.
      
      
      svn path=/trunk/; revision=15435
      b559803b
  19. 19 Jan, 2007 1 commit
  20. 20 Dec, 2006 1 commit
    • Jody Goldberg's avatar
      :types) : simplfy to remove the vector 'type' the offsets are now always · e0447f85
      Jody Goldberg authored
      2006-12-19  Jody Goldberg <jody@gnome.org>
      
      	* src/sheet-object.h (SheetObjectAnchor::types) : simplfy to remove
      	  the vector 'type' the offsets are now always as percentages of cell
      	  size relative to the cell_bound.  The parent, GODrawingAnchor will
      	  eventually have the absolute positions, and the sheet object itself
      	  will specify how which set of coords in normative.
      e0447f85
  21. 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
  22. 08 Dec, 2006 1 commit
    • Jody Goldberg's avatar
      for single combos we can not exclude HIDDEN elements. · 62a7d274
      Jody Goldberg authored
      2006-12-07  Jody Goldberg <jody@gnome.org>
      
      	* gnm-filter-combo-foo-view.c (fcombo_fill_model) : for single combos
      	  we can not exclude HIDDEN elements.
      
      2006-12-07  Jody Goldberg <jody@gnome.org>
      
      	* src/xml-io-version.h : time to modernize a bit.  tack on some new
      	  versions.
      
      	* src/xml-sax-read.c : gnumeric_1_0_dtd Use GSF_XML_NO_CONTENT and
      	  friends.
      	(xml_sax_version) : new.
      	(xml_sax_filter_condition) : The DOM filter has been swapping Value
      	  and ValueType.  The SAX exported copied the code.  The importer
      	  needs to use the incorrect layout to handle existing files.
      	* src/xml-sax-write.c (xml_write_filter_expr) : warn about the the
      	  swapping of Value and ValueType.
      	* gnumeric.xsd : comment on the swapping.
      62a7d274
  23. 24 Nov, 2006 1 commit
    • Morten Welinder's avatar
      Sort style regions so hash order does not matter. · 36f996ae
      Morten Welinder authored
      2006-11-23  Morten Welinder  <terra@gnome.org>
      
      	* 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.
      36f996ae
  24. 15 Nov, 2006 1 commit
    • Jody Goldberg's avatar
      support only exporting visible content. · 0e671bfa
      Jody Goldberg authored
      2006-11-12  Jody Goldberg <jody@gnome.org>
      
      	* src/clipboard.c (cellregion_to_string) : support only exporting
      	  visible content.
      
      2006-11-11  Jody Goldberg <jody@gnome.org>
      
      	* src/stf-parse.c (stf_parse_region) : adjust to signature change.
      	* src/xml-io.c (xml_read_clipboard_cell) : ditto.
      	* src/xml-sax-write.c (cb_xml_write_cell_region_cells) : adapt to move
      	  from list to hash of cells.
      
      	* src/clipboard.c (cb_paste_cell) : new. split from ...
      	(clipboard_paste_region) : here.  For the move from a list of cells to
      	  a hash table.
      	(gnm_cell_copy_new) : insert the copy in here rather than forcing
      	  callers to handle it.
      	(cb_clipboard_prepend_cell) :
      	(clipboard_copy_range) : store the col/row states too.  Not used yet.
      	(cellregion_new) : col/row states and cells in a hash.
      	(cellregion_unref) : free the col/row states if they exist.
      	(cellregion_get_content) : new.
      	(cb_invalidate_cellcopy) : split from ...
      	(cellregion_invalidate_sheet) : here.
      	(cellregion_to_string) : move here from gui-clipboard and use the new
      	  hash based layout to avoid the intermediate matrix allocation.
      	(gnm_cell_copy_free) : tidy up and name this.
      	(gnm_cell_copy_new) : assign the copy to a region on creation.
      
      	* src/colrow.c : Make ColRowState and ColRowRLEState public for use in
      	  the clipboard.
      
      2006-11-11  Jody Goldberg <jody@gnome.org>
      
      	* src/application.c : Move the icons from here.
      	* src/wbc-gtk.c (wbc_gtk_setup_icons) : to here.
      	(wbc_gtk_setup_pixmaps) : here.
      	(wbc_gtk_class_init) : and here.
      0e671bfa
  25. 11 Nov, 2006 1 commit
  26. 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
  27. 08 Nov, 2006 1 commit
  28. 15 Oct, 2006 1 commit
  29. 11 Oct, 2006 1 commit
    • Morten Welinder's avatar
      Only last change. The explicit ordering was useful. · 20b08320
      Morten Welinder authored
      2006-10-11  Morten Welinder  <terra@gnome.org>
      
      	* src/xml-sax-write.c (cb_write_cell, xml_write_cells): Only last
      	change.  The explicit ordering was useful.
      
      	* src/expr.c (gnm_expr_hash): Renamed from ets_hash and adapted to
      	traverse the entire tree.
      	(gnm_expr_top_hash): New function.
      	(gnm_expr_sharer_new): Use gnm_expr_top_hash, not ets_hash.
      	(gnm_expr_sharer_share): Re-implement sharing.
      	(gnm_expr_top_equal): If we have different hash values,
      	short-circuit as false.
      20b08320
  30. 03 Aug, 2006 1 commit
    • Morten Welinder's avatar
      Actually respect "comments" argument. · 43fbaac6
      Morten Welinder authored
      2006-08-03  Morten Welinder  <terra@gnome.org>
      
      	* src/sheet.c (sheet_cells): Actually respect "comments" argument.
      
      	* src/commands.c (cmd_paste_copy_impl): Add () to clarify.
      
      	* src/sheet.c (re_render_formulas): Use sheet_cell_foreach, not
      	SHEET_FOREACH_DEPENDENT.
      	(sheet_set_hide_zeros): Use sheet_cell_foreach, not
      	sheet_foreach_cell_in_range.
      	(cb_rerender_zeroes): Adapt to sheet_set_hide_zeros change.
      	(sheet_cells): Use sheet_cell_foreach, not
      	sheet_foreach_cell_in_range.
      
      	* src/workbook-control-gui.c (cb_workbook_debug_info): Use
      	sheet_cell_foreach, not sheet_foreach_cell_in_range.
      
      	* src/xml-sax-write.c (xml_write_cells): Use sheet_cell_foreach,
      	not sheet_foreach_cell_in_range.
      
      	* src/dependent.c (dependent_eval): Make this static.  Move
      	dependent_needs_recalc check to caller.  Change to void result.
      
      	* src/validation.c (validation_eval): Use cell_eval, not
      	dependent_eval.
      43fbaac6
  31. 26 Jun, 2006 1 commit
    • Jody Goldberg's avatar
      update a bit. :pos : removed. :margin_a : removed. :margin_b : removed. · 0ba84ede
      Jody Goldberg authored
      2006-06-25  Jody Goldberg <jody@gnome.org>
      
      	* gnumeric.xsd : update a bit.
      	* ColRowInfo::pos : removed.
      	* ColRowInfo::margin_a	: removed.
      	* ColRowInfo::margin_b	: removed.
      	* GnmCell::col_info	: removed.
      	* GnmValueErr::src	: removed.
      
      	* src/colrow.c (colrow_foreach) : Pass a new type 'GnmColRowIter' to
      	  the handler to provide a position and an info ptr.  All callers
      	  changed.
      
      	* src/sheet.c
      	(sheet_col_size_fit_pixels) : use the constant margins
      	(sheet_row_size_fit_pixels) : ditto and and add +1 for
      	  the grid line (why was this different from col_size_fit_pixels).
      	* src/dialogs/dialog-row-height.c (dialog_row_height) : row margin is
      	  constant now.
      	* src/dialogs/dialog-col-width.c (dialog_col_width) : ditto.
      
      	* src/cell-draw.c (cell_calc_layout) : no need for ri, the margins are
      	  constant.
      	(cell_draw) : row margin is now constant too.
      	(cell_finish_layout) : document height better and make the row
      	  margins constant.
      
      	* src/cellspan.c (row_calc_spans) : Take the position as an argument
      	  now that ColRowInfo::pos is gone.  All callers changed.
      0ba84ede
  32. 11 Jun, 2006 1 commit
    • Jody Goldberg's avatar
      Take the width as an argument rather than calculating it here. (cell_draw) · 93aba8bf
      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.
      93aba8bf
  33. 13 May, 2006 1 commit
    • Jody Goldberg's avatar
      patch some warnings and make some comments. · f2dd5e07
      Jody Goldberg authored
      
      2006-05-13  Jody Goldberg <jody@gnome.org>
      
      	* component/gnumeric.c : patch some warnings and make some comments.
      
      	* src/gnumeric-pane.c (display_object_menu) : Use the new
      	  sheet_object_populate_menu and clarify that so and event can be
      	  NULL.
      	(cb_pane_popup_menu) : if objects are selected use
      	  display_object_menu.
      
      	* src/sheet-object.c (sheet_object_populate_menu) : new and public.
      	(sheet_object_populate_menu_real) : renamed from sheet_object_populate_menu
      	  and make smarter to be able to handle so == NULL.
      
      	* src/gnumeric-canvas.c (gnm_canvas_class_init) : delete some unused
      	  variables.
      
      	* src/clipboard.c (clipboard_copy_obj) : tidy up a bit, and prepare to
      	  clean out the odd GObject data usage.
      
      	* src/sheet-control-gui.c (scg_object_coords_to_anchor) : set the
      	  direction.
      
      	* src/wbcg-actions.c (permanent_actions) : Make Save and Save-As
      	  permanent so that the user can always save.
      
      	* src/xml-sax-write.c (gnm_xml_file_save) : accept saving to unnamed
      	  files.
      f2dd5e07
  34. 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
  35. 14 Apr, 2006 1 commit
    • Morten Welinder's avatar
      Rename content_locked to contents_locked and content_hidden to · d85b4f00
      Morten Welinder authored
      2006-04-13  Morten Welinder  <terra@gnome.org>
      
      	* src/gnm-style-impl.h (GnmStyle): Rename content_locked to
      	contents_locked and content_hidden to contents_hidden.  All users
      	changed.
      
      	* src/clipboard.h (GnmCellRegion): Rename content to contents and
      	not_as_content to not_as_contents.  All users changed.
      
      	* src/mstyle.c (gnm_style_get_contents_locked,
      	gnm_style_get_contents_hidden, gnm_style_set_contents_locked,
      	gnm_style_set_contents_hidden): Renamed from _content_.
      	All callers changed.
      
      	* src/clipboard.c (cellregion_cmd_size): New function.
      
      	* src/commands.c (cmd_sort_undo): Do this by pasting old contents.
      	Fixes #161890.
      d85b4f00
  36. 06 Apr, 2006 1 commit
    • Jody Goldberg's avatar
      Use shift/ctrl space for select col/row/all even though this is just for · e7450165
      Jody Goldberg authored
      2006-04-05  Jody Goldberg <jody@gnome.org>
      
      	* src/wbcg-actions.c : Use shift/ctrl space for select col/row/all
      	  even though this is just for show.  The accels are handled
      	  in gnumeric-canvas.
      	* src/gnumeric-canvas.c (gnm_canvas_key_press) : re-organize to
      	  clarify when to handle things.
      	(gnm_canvas_colrow_key_press) : new.
      
      2006-04-05  Jody Goldberg <jody@gnome.org>
      
      	* src/wbcg-actions.c (cb_help_docs) : Use 'yelp help:gnumeric'
      	* gnumeric.desktop.in (DocPath) : add an entry so that things show up
      	  in yelp (at least for suse 10.1)
      
      2006-04-01  Jody Goldberg <jody@gnome.org>
      
      	http://bugzilla.gnome.org/show_bug.cgi?id=336212
      	* src/func.c (function_iterate_argument_values) : This is ugly but it
      	  seems to do the right thing.  We can not just assume that args to
      	  vararg functions should be evaluated as non-scalars.  It is more
      	  subtle.  Simple range_refs (direct or via a name) are non-scalar,
      	  but general expressions that use a range (A1:A10=3) evaluate
      	  depending on the top level mode, and honor implicit
      	  intersecion/iteration.
      
      	* src/position.h : Replace the cols/rows elemnts of GnmEvalPos with a
      	  GnmExprArrayCorner pointer.  This allows us to differentiate normal
      	  evaluation and singleton arrays.  As a side benefit it uses less
      	  memory no 32bit architecture which is important as long as we still
      	  use recusion for the recalc queue.
      
      	* src/position.c (eval_pos_init) : adjust to GnmEvalPos change.
      	(eval_pos_init_pos) : ditto.
      	(eval_pos_init_dep) : ditto.
      	(eval_pos_init_cell) : ditto.
      	(eval_pos_init_sheet) : ditto.
      	* src/expr.c (gnm_expr_eval) : ditto.
      	* src/func-builtin.c (gnumeric_table_link) : ditto.
      	(gnumeric_table) : ditto.
      	* src/dependent.c (link_expr_dep) : ditto.
      	* plugins/fn-lookup/functions.c (gnumeric_row) : ditto.
      	(gnumeric_col) : ditto.
      
      2006-04-01  Jody Goldberg <jody@gnome.org>
      
      	* src/xml-sax-write.c : Add include to suppress warning.
      e7450165
  37. 30 Mar, 2006 1 commit
    • Morten Welinder's avatar
      New functions. · b947471b
      Morten Welinder authored
      2006-03-29  Morten Welinder  <terra@gnome.org>
      
      	* src/expr.c (gnm_expr_top_get_array_corner,
      	gnm_expr_top_is_array_elem): New functions.
      b947471b