1. 20 Dec, 2000 2 commits
    • Chyla Zbigniew's avatar
      Added Polish translations. · 11f5b2ba
      Chyla Zbigniew authored
      
      * templates/autoformat/*.xml: Added Polish translations.
      11f5b2ba
    • Chyla Zbigniew's avatar
      Removed "-DGNUMERIC_AUTOFORMATDIR" from INCLUDES. Now we use a function · aafe2895
      Chyla Zbigniew authored
      
      * src/Makefile.am: Removed "-DGNUMERIC_AUTOFORMATDIR" from INCLUDES.
      Now we use a function inside Gnumeric for this.
      
      * src/dialogs/dialog-autoformat.c:
      Marked strings for translation (sample data).
      (struct AutoFormatInfo): Now we have field current_category_group
      (of type FormatTemplateCategoryGroup *) instead of current_category
      and category_groups instead of categories.
      (cb_get_cell_content): Function g_strtod always uses "C" locale,
      used strtod instead.
      (templates_load): Mostly new implementation, uses
      category_group_get_templates_list().
      (cb_remove_current_activated): Now it is implemented.
      (cb_canvas_button_release): Showing real category name
      (template->category->name). Setting sensitivity of
      info->remove_current menu item.
      (cb_category_popwin_hide): Used
      category_group_list_find_category_by_name when setting
      info->current_category_group and category_list_get_names_list
      when calling gtk_combo_set_popdown_strings. Selecting "General"
      category by default if it exists. Displaying current category
      description in the category combo tooltip.
      
      * src/file-autoft.c, src/file-autoft.h: New functions:
      gnumeric_sys_autoformat_dir, gnumeric_usr_autoformat_dir,
      gnumeric_extra_autoformat_dirs,
      category_free, category_get_templates_list, category_list_free,
      category_group_free, category_group_get_templates_list,
      category_group_list_get, category_group_list_find_category_by_name,
      category_group_list_get_names_list, category_group_list_free.
      Removed functions: template_list_load, template_list_free,
      util_list_free, category_list_load, category_list_free.
      
      * src/format-template.c, src/format-template.h:
      New function: format_template_compare_name.
      New structs: FormatTemplateCategory and
      FormatTemplateCategoryGroup.
      (struct FormatTemplate): field category is now of type
      FormatTemplateCategory.
      
      * src/gutils.c, src/gutils.h: New functions: g_create_list,
      g_lang_score_in_lang_list, g_lang_score_is_better (implemented
      as a macro).
      
      * src/xml-io-autoft.c:
      (xml_write_format_template_members): Don't write category
      information.
      (xml_read_format_template_members): Used
      xml_search_child_lang_list instead of xml_search_child to find
      "Information" node. Ignore category information.
      (gnumeric_xml_read_format_template_category): New function.
      
      * src/xml-io-autoft.h: Added
      gnumeric_xml_read_format_template_category function declaration.
      
      * src/xml-io.c, src/xml-io.h: New functions:
      xml_search_child_lang_list, xml_search_child_no_lang,
      xml_search_child_lang_list_with_score (static function).
      
      * templates/autoformat/3D.category,
      templates/autoformat/Financial.category,
      templates/autoformat/Classical.category,
      templates/autoformat/General.category,
      templates/autoformat/Colourful.category,
      templates/autoformat/List.category:
      New files, XML descriptions of default categories.
      
      * templates/autoformat/Makefile.am:
      Templates grouped into categories, now every category is installed
      in separate directory. Installing *.category files as ".category" in
      appropriate directories.
      aafe2895
  2. 08 Dec, 2000 1 commit
    • Jody Goldberg's avatar
      From :Ade Lovett <ade@FreeBSD.org> typo. Ditto. · 4c67f86f
      Jody Goldberg authored
      
      2000-12-08  Jody Goldberg <jgoldberg@home.com>
      
      	From :Ade Lovett <ade@FreeBSD.org>
      	* templates/english/Makefile.am : typo.
      	* idl/Makefile.am : Ditto.
      
      2000-12-08  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-object.c (sheet_object_write_xml) : protect from missing
      	  virtual.
      	(sheet_object_read_xml) : Ditto.
      4c67f86f
  3. 02 Oct, 2000 2 commits
    • Almer S. Tigelaar's avatar
      /templates/autoformat/ Remove old autoformat directory structure. · f44c0ae3
      Almer S. Tigelaar authored
      2000-10-02  Almer S. Tigelaar  <almer1@dds.nl>
      
      	* /templates/autoformat/
      	Remove old autoformat directory structure.
      f44c0ae3
    • Almer S. Tigelaar's avatar
      Remove subdirectories, convert into a flat directory with structured · 4d5020a5
      Almer S. Tigelaar authored
      2000-10-01  Almer S. Tigelaar  <almer1@dds.nl>
      
      	* templates/autoformat/, templates/autoformat/Makefile.am:
      	Remove subdirectories, convert into a flat directory with structured
      	filenames.
      
      	* configure.in:
      	Remove templates/autoformat subdirectories
      
      	* gnumeric.spec.in:
      	Adjust to cope with new autoformat directory structure
      
      	* src/dialogs/Makefile.am:
      	Remove -DGNUMERIC_AUTOFORMATDIR
      
      	* src/Makefile.am
      	Add -DGNUMERIC_AUTOFORMATDIR
      
      	* src/file-autoft.c, src/file-autoft.h:
      	New, functions for loading special listings of the autoformat
      	directory.
      
      	* src/dialogs/dialog-autoformat:
      	(categories_load): Remove
      	(categories_free): Remove
      	(templates_load): Adjust to use template_list_load
      4d5020a5
  4. 25 Sep, 2000 1 commit
  5. 06 Sep, 2000 1 commit
  6. 05 Sep, 2000 1 commit
  7. 04 Sep, 2000 1 commit
  8. 03 Sep, 2000 1 commit
    • Almer. S. Tigelaar's avatar
      Modify to accept a NULL sheet for cell->sheet. · f265f363
      Almer. S. Tigelaar authored
      2000-09-03  Almer. S. Tigelaar.  <almer1@dds.nl>
      
      	* src/cell-draw.c:
      	(cell_draw): Modify to accept a NULL sheet for
      	cell->sheet.
      
      	* src/item-grid.c, src/item-grid.h:
      	(item_grid_draw_border): Export this routine for use
      	by the preview-grid.
      
      	* src/preview-grid.h, src/preview-grid.c:
      	New, preview-grid canvasitem, based upon item-grid.
      
      	* src/preview-grid-controller.h, src/preview-grid-controller.c:
      	New, easy to use wrapper around canvas and preview-grid.
      
      	* src/dialogs/dialogs.h: Add autoformat dialog and
      	autoformat edit dialog invocation functions.
      
      	* src/dialogs/autoformat.glade: New,
      	glade file for autoformat dialog.
      
      	* src/dialogs/autoformat.glade.h: New,
      	translation header for autoformat dialog.
      
      	* src/dialogs/dialog-autoformat.c: New, source
      	for controlling autoformat dialog.
      
      	* src/sheet-view.c:
      	(sheet_view_get_style_font): Modify to accept a
      	NULL sheet. (defaults to zoomlevel 1)
      
      	* src/workbook.c:
      	(workbook_menu_format[]): Add autoformat.
      	(autoformat_cmd): New, invokes autoformat dialog.
      
      	* src/mstyle.c, mstyle.h:
      	(mstyle_replace_element): New, replaces an element
      	in an mstyle with an element from another mstyle.
      
      	* src/rendered-value.c, src/rendered-value.h:
      	(rendered_value_calc_size_ext): Same as the previous
      	rendered_value_calc_size, but accepts an mstyle as
      	extra parameter. the purpose of this and some other
      	minor changes from the rendered_value_calc_size is
      	to be able to calc the size of a sheetless cell.
      	(rendered_value_calc_size): Performs the same role
      	as the previous rendered_value_calc_size and
      	calls upon rendered_value_calc_size_ext to do its
      	thing.
      	(rendered_value_new_ext): Same as previous rendered_value_new
      	but accept an mstyle as parameter for sheetless cells.
      	(rendered_value_new): Exacly the same as the previous
      	render_value_new, but calls upon rendered_value_calc_size_ext.
      
      	* src/xml-io.c, src/xml-io.h:
      	(xml_search_child): Export for use by xml-io-autoft.c.
      	(xml_get_value_string): Idem.
      	(xml_set_value_string): Idem.
      	(xml_get_value_int): Idem.
      	(xml_set_value_int): Idem.
      	(xml_write_style): Idem.
      	(xml_read_style): Idem.
      
      	* src/xml-io-autoft.c, src/xml-io-autoft.h:
      	New, these handle the reading/writing of autoformat templates.
      
      	* src/format-template.h, src/format-template.c:
      	New, wrapper around the loading and saving and managing
      	of format templates.
      
      	* templates/autoformat:
      	Add default autoformat templates
      
      	* configure.in:
      	Modify to include the autoformat templates and define
      	a new variable for the autoformat templates directory
      	so we can find them at run-time
      f265f363
  9. 30 Jun, 2000 2 commits
  10. 12 Jun, 2000 1 commit