1. 24 Feb, 2013 1 commit
  2. 02 Aug, 2011 1 commit
    • Andreas J. Guelzow 's avatar
      Use formatting attributes whenever we format numbers. [#584380][#651561] · 08425f65
      Andreas J. Guelzow authored
      2011-08-01 Andreas J. Guelzow <aguelzow@pyrshep.ca>
      
      	* configure.in: Disable GTK depreciation check
      	* src/cell-draw.c (cell_calc_layout): use gnm_rendered_value_get_color
      	* src/cell.c (gnm_cell_get_render_color): ditto
      	* src/gnm-format.c (gnm_format_layout): drop argument and change all
      	callers
      	(format_value_gstring): ditto
      	(format_value): ditto
      	(format_value_layout): new
      	* src/gnm-format.h (gnm_format_layout): drop argument and change all
      	callers
      	(format_value_gstring): ditto
      	(format_value): ditto
      	(format_value_layout): new
      	* src/rendered-value.c (gnm_rendered_value_new): include foreground
      	color in attributes list
      	(colour_selector_cb): new
      	(colour_from_layout): new
      	* src/widgets/gnm-format-sel.c (cb_generate_preview): use attributes
      	* src/workbook-view.c (wb_view_auto_expr_recalc): use
      	format_value_layout
      08425f65
  3. 01 Jul, 2010 1 commit
  4. 10 Jun, 2009 1 commit
  5. 14 Mar, 2009 1 commit
  6. 29 Aug, 2008 1 commit
    • Morten Welinder's avatar
      Support-function to handle broken 1.6 formats. Fixes #548414. · 76aa836a
      Morten Welinder authored
      2008-08-29  Morten Welinder  <terra@gnome.org>
      
      	* src/gnm-format.c (gnm_format_import): Support-function to handle
      	broken 1.6 formats.  Fixes #548414.
      
      	* src/xml-sax-read.c (make_format): Handle broken 1.6 formats.
      
      2008-08-29  Morten Welinder  <terra@gnome.org>
      
      	* ms-excel-read.c (excel_wb_get_fmt): Handle broken 1.6 formats.
      
      
      svn path=/trunk/; revision=16757
      76aa836a
  7. 16 Jan, 2008 1 commit
    • Morten Welinder's avatar
      Use gnm_format_for_date_editing. · e3188071
      Morten Welinder authored
      2008-01-10  Morten Welinder  <terra@gnome.org>
      
      	* src/wbc-gtk-edit.c (wbcg_edit_start): Use
      	gnm_format_for_date_editing.
      
      	* src/wbc-gtk-actions.c (insert_date_time_common): New function to
      	format numbers according to cell's format when appropriate.
      	Fixes 508237.
      
      	* src/gnm-format.c (gnm_format_for_date_editing): New function.
      
      
      svn path=/trunk/; revision=16278
      e3188071
  8. 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
  9. 07 Nov, 2007 1 commit
    • Morten Welinder's avatar
      Use yyyy-m-d format for date entry when appropriate. · eefe699a
      Morten Welinder authored
      2007-11-06  Morten Welinder  <terra@gnome.org>
      
              * src/wbc-gtk-edit.c (wbcg_edit_start): Use yyyy-m-d format for
              date entry when appropriate.
      
              * src/gnm-format.c (gnm_format_month_before_day): Update return
              value like for go_format_month_before_day.
      
      
      svn path=/trunk/; revision=16089
      eefe699a
  10. 04 Nov, 2007 1 commit
    • Morten Welinder's avatar
      New function. (try_auto_date): Use gnm_format_is_time_for_value. · b065519a
      Morten Welinder authored
      2007-11-03  Morten Welinder  <terra@gnome.org>
      
              * src/stf-export.c (gnm_stf_export_options_sheet_list_get): New
              function.
              (try_auto_date): Use gnm_format_is_time_for_value.
              (gnm_stf_file_saver_new): Don't create exporter here.
              (gnm_stf_file_saver_save): Create exporter here and hang it unto
              the workbook.
      
              * src/gnm-format.c (gnm_format_is_time_for_value): New function.
      
      2007-11-03  Morten Welinder  <terra@gnome.org>
      
              * dialog-stf-export.c (stf_export_dialog_format_page_init,
              stf_export_dialog_sheet_page_init): Take initial settings from
              stfe.
      
      
      svn path=/trunk/; revision=16063
      b065519a
  11. 06 Sep, 2007 1 commit
    • Morten Welinder's avatar
      New functions. · e540abdc
      Morten Welinder authored
      2007-09-05  Morten Welinder  <terra@gnome.org>
      
              * src/gnm-format.c (gnm_format_has_hour,
              gnm_format_month_before_day): New functions.
      
              * src/wbc-gtk-edit.c (wbcg_edit_start): Use
              gnm_format_month_before_day.
      
              * src/number-match.c (format_match): Use gnm_format_has_hour and
              gnm_format_month_before_day.  No more hackery.
      
      
      
      svn path=/trunk/; revision=15858
      e540abdc
  12. 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
  13. 05 Jan, 2007 1 commit
    • Morten Welinder's avatar
      New function. Use gnm_format_is_date_for_value. · 9ecd2ed1
      Morten Welinder authored
      2007-01-05  Morten Welinder  <terra@gnome.org>
      
      	* src/gnm-format.c (gnm_format_is_date_for_value): New function.
      	* src/sheet-autofill.c (afm_teach_cell): Use
      	gnm_format_is_date_for_value.
      
      	* src/stf-export.c (try_auto_date): Use
      	gnm_format_is_date_for_value.
      
      	* src/auto-format.c (is_date): Use go_format_is_date.
      
      
      svn path=/trunk/; revision=15353
      9ecd2ed1
  14. 19 Dec, 2006 1 commit
    • Morten Welinder's avatar
      Don't include goffice's format-impl.h, (format_value_common): New · a88e40b9
      Morten Welinder authored
      2006-12-18  Morten Welinder  <terra@gnome.org>
      
      	* src/gnm-format.c: Don't include goffice's format-impl.h,
      	(format_value_common): New function, mostly
      	extracted from gnm_format_layout, but using
      	go_format_value_gstring.
      	(find_entry, gnm_style_format_condition): Remove.
      	(hash_fill): Generalize to handle layouts and strings alike.
      	(format_value_gstring): Simplify using format_value_common.
      
      	* src/workbook-edit.c: Don't include goffice's format-impl.h,
      a88e40b9
  15. 15 Dec, 2006 1 commit
    • Morten Welinder's avatar
      Remove. · 4f01758b
      Morten Welinder authored
      2006-12-14  Morten Welinder  <terra@gnome.org>
      
      	* src/test-format.c: Remove.
      
      	* src/rendered-value.c (gnm_rendered_value_new): If we get an
      	error, force a variable field.  This handles #### for negative
      	dates.
      
      	* src/gnm-format.c (format_value_gstring): Return error code.
      	Handle errors from number formatting.
      	(gnm_format_layout): Ditto.
      4f01758b
  16. 08 May, 2006 1 commit
    • Morten Welinder's avatar
      Copy font description early. We aren't supposed to touch the result of · fc24c937
      Morten Welinder authored
      2006-05-08  Morten Welinder  <terra@gnome.org>
      
      	* src/style.c (style_font_new_simple): Copy font description
      	early.  We aren't supposed to touch the result of
      	pango_context_get_font_description!
      	(gnm_font_metrics_new, gnm_font_metrics_free): Moved to goffice.
      
      	* src/style-font.h: Add GOFont and GOFontMetrics members.  Remove
      	PangoFontDescription member.
      fc24c937
  17. 27 Apr, 2006 1 commit
    • Morten Welinder's avatar
      New font metrics setup. · 8b1641f1
      Morten Welinder authored
      2006-04-26  Morten Welinder  <terra@gnome.org>
      
      	* src/style.c (gnm_font_metrics_new, gnm_font_metrics_free,
      	gnm_font_metrics_unit): New font metrics setup.
      
      	* src/sheet.c (sheet_col_get_distance_pixels): New function.
      
      	* src/cell.c (cell_get_render_color, cell_get_entered_text,
      	cell_rendered_height, cell_rendered_width, cell_rendered_offset):
      	Moved from src/rendered-value.c.
      
      	* src/gnm-format.c (gnm_format_layout, gnm_format_general): New
      	functions.
      	(format_value_gstring): Use gnm_format_general.
      
      	* src/rendered-value.c (rendered_value_render): Calculate column
      	widths in pixels and use gnm_format_layout to get accurate
      	rendering.  Take layout instead of string.
      	(rendered_value_new): Set attributes before the call to
      	rendered_value_render.
      8b1641f1
  18. 30 Aug, 2005 1 commit
    • Jody Goldberg's avatar
      support data tables. ditto. ditto. ditto. · 3a70f9f1
      Jody Goldberg authored
      2005-08-29  Jody Goldberg <jody@gnome.org>
      
      	* ms-formula-read.c (excel_parse_formula) : support data tables.
      	* ms-excel-read.c (excel_formula_shared) : ditto.
      	* ms-formula-write.c (write_node) : ditto.
      	* ms-excel-write.c (excel_write_FORMULA) : ditto.
      
      2005-08-27  Jody Goldberg <jody@gnome.org>
      
      	* ms-obj.c (ms_obj_map_forms_obj) : no need to warn about record with
      	  no expressions. (Wallenbach/Formulas-2003/chap05/character\ set.xls)
      
      2005-08-27  Jody Goldberg <jody@gnome.org>
      
      	* src/workbook.c (workbook_dispose) : Looks like this patch got
      	  munged. Make it sane.
      3a70f9f1
  19. 28 Feb, 2005 1 commit
    • Morten Welinder's avatar
      For numbers, map '-' to U2212 which has same width as "+". · 1bd931eb
      Morten Welinder authored
      2005-02-28  Morten Welinder  <terra@gnome.org>
      
      	* src/rendered-value.c (rendered_value_render): For numbers, map
      	'-' to U2212 which has same width as "+".
      
      	* src/gnm-format.h: Define a bunch of unicode characters by name.
      	* src/parser.y (yylex): Use these.
      	* src/cell-draw.c (cell_calc_layout): Ditto.
      1bd931eb
  20. 08 Feb, 2005 1 commit