1. 30 Oct, 2001 1 commit
    • Jody Goldberg's avatar
      re-enable compression. · e33c6346
      Jody Goldberg authored
      2001-10-29  Jody Goldberg <jgoldberg@home.com>
      	* src/xml-io.c (gnumeric_xml_write_workbook) : re-enable compression.
  2. 27 Oct, 2001 1 commit
    • Almer S. Tigelaar's avatar
      Enable validate menu item. · eb66eee8
      Almer S. Tigelaar authored
      2001-10-27  Almer S. Tigelaar  <almer@gnome.org>
      	* src/GNOME_Gnumeric.xml: Enable validate menu item.
      	* src/validation.[ch]: New, defines a container for
      	validation settings.
      	* src/Makefile.am: Add new validation.[ch]
      	* src/gnumeric.h: Add validation declaration.
      	* src/gui-validation.[ch] (validation_mstyle_get_title): Burn.
      	(validation_generate_msg): Rework slightly to accept a stylecondition
      	instead of an mstyle.
      	(validation_mstyle_get_msg): Burn.
      	(validation_mstyle_get_msg_subst): Burn.
      	(validation_mstyle_set_title_msg): Burn.
      	(validation_get_accept): Request a validation instead of
      	an mstyle. Actually free the automatically generated message.
      	* src/mstyle.[ch]: Adjust mstyle_names to include hidden/locked.
      	(mstyle_hash): Remove validation style hashing.
      	(mstyle_element_dump): Don't dump validation message, dump validation
      	refcount instead.
      	(mstyle_element_equal): Remove comparing of style and message.
      	(mstyle_elements_equal): Don't give a mismatched types warning if
      	one of the elements is not set.
      	(mstyle_element_ref): Ref validation, remove reffing of msg.
      	(mstyle_element_unref): Idem for unref.
      	(mstyle_new_default): Don't initialize any validation related
      	(mstyle_set_validation): Set a Validation instead of a StyleCondition.
      	(mstyle_get_validation): Idem for get.
      	(mstyle_set_validation_style): Burn.
      	(mstyle_get_validation_style): Burn.
      	(mstyle_set_validation_msg): Burn.
      	(mstyle_get_validation_msg): Burn.
      	* src/style-condition.c (style_condition_new_constraint): Initialize
      	from passed parameter!
      	* src/style-condition.h: Remove validation enum.
      	* src/workbook-control-gui.c (cb_data_validate): Enable.
      	(workbook_control_gui_init): Change index of consolidate
      	menu item.
      	* src/workbook-edit.c (wbcg_edit_validate) : Get the StyleCondition
      	from the validation. The validation element must be set on the mstyle.
      	Pass validation, not mstyle, to validation_get_accept.
      	(wbcg_edit_finish): Only call wbcg_edit_validate if the validation
      	element is set on the mstyle.
      	* src/xml-io.c (xml_write_style_condition_chain): Generates a
      	StyleConditionChain in XML format.
      	(xml_read_style_condition_chain): Turns an XML description of a
      	StyleConditionChain into a real StyleConditionChain.
      	(xml_write_style): Add validation support.
      	(xml_read_style): Idem.
      2001-10-27  Almer S. Tigelaar  <almer@gnome.org>
      	* dialog-cell-format.c (validation_style_condition_chain_rebuild): Rename
      	to validation_rebuild_validation.
      	(validation_rebuild_validation): Also set error style, title and message
      	on validation.
      	(cb_validation_error_action_deactivate): Don't set error style on
      	mstyle directly.
      	(cb_validation_operator_deactivate): Adjust for name change.
      	(cb_validation_constraint_type_deactivate): Don't rebuild chain from
      	here, cb_validation_error_action_deactivate will do this.
      	(cb_validation_bounds_changed): Adjust for name change.
      	(cb_validation_flags_changed): Idem.
      	(cb_validation_error_title_msg): Don't set title and message directly
      	on mstyle. Call validation_rebuild_validation instead.
      	(fmt_dialog_init_from_style_condition): Rename to
      	(fmt_dialog_init_validation_from_style_condition): Use passed
      	stylecondition instead of re-fetching it from the mstyle.
      	(fmt_dialog_init_validation_page): Correctly initialize everything
      	from the new, single mstyle_validation element.
  3. 25 Oct, 2001 2 commits
    • Jody Goldberg's avatar
      fix leaks. · 4ad8a5b7
      Jody Goldberg authored
      2001-10-25  Jody Goldberg <jgoldberg@home.com>
      	* src/number-match.c (compute_value) : fix leaks.
      	* src/sheet-autofill.c (autofill_cell) : fix leak.
      	* gnumeric.xsd : add the scaling information.
      	* src/xml-io.c (xml_write_print_info) : why weren't we saving scaling
      	  info ?
      	(xml_read_print_info) : or reading back.
    • Wayne Schuller's avatar
      New canvas based header and footer preview widget. The customize · f0770524
      Wayne Schuller authored
      2001-10-21  Wayne Schuller <k_wayne@linuxpower.org>
      	* dialog-printer-setup.c : New canvas based header and footer preview
      	  widget. The customize header/footer widget now also uses a
      	  GnomePropertyBox for UI consistency.
      	* print.glade : Updated.
      	* hf-config.glade : Updated.
      2001-10-25  Jody Goldberg <jgoldberg@home.com>
      	* src/ranges.c (range_trim) : decrease lobotomization factor.
      2001-10-23  Jody Goldberg <jgoldberg@home.com>
      	* src/expr-name.c (named_expr_new) : renamed from add_real, simplified
      	(expr_name_add) : take and store a parse position.
      	(expr_name_create) : ditto.
      	(expr_name_destroy) : adjust to stored parsepos.
      	(expr_name_unlink) : ditto.
      	(expr_name_sheet2wb) : ditto.
      	(expr_name_init) : ditto.
      	(expr_name_as_string) : renamed from expr_name_value.
      	(expr_name_eval) : renamed from eval_expr_name.
      	* src/expr.c (do_expr_tree_to_string) : Use value_as_string in most
      	* src/value-sheet.c (value_cellrange_get_as_string) : delete bogus
      	  useless arg.
      	(encode_cellref) : delete redundant.
      	* src/parse-util.c (cellref_name) : ICK!  XL wraps relative references
      	  that are out of bounds.
  4. 19 Oct, 2001 1 commit
    • Jody Goldberg's avatar
      number_match can match non-numbers too. ditto. · 20b08bfe
      Jody Goldberg authored
      2001-10-18  Jody Goldberg <jgoldberg@home.com>
      	* fn-string.c (gnumeric_value) : number_match can match non-numbers too.
      	* fn-information.c (gnumeric_n) : ditto.
      2001-10-18  Jody Goldberg <jgoldberg@home.com>
      	* src/xml-io.c (xml_node_get_int) : use strtol
      	(xml_node_get_double) : strtod.
      	* src/number-match.c (format_match_number) : new.
      	* src/expr.c (eval_expr_real) : format_match can match non-numbers now.
      2001-10-17  Jody Goldberg <jgoldberg@home.com>
      	* src/item-bar.c (ib_draw_cell) : add some protection in case of bad
  5. 16 Oct, 2001 1 commit
    • Jody Goldberg's avatar
      fix leak. · 1c71f878
      Jody Goldberg authored
      2001-10-16  Jody Goldberg <jgoldberg@home.com>
      	* src/gnumeric-graph.c (gnm_graph_import_specification) : fix leak.
  6. 10 Oct, 2001 2 commits
    • Jody Goldberg's avatar
      be smarter about what type of error to report. · 809253d0
      Jody Goldberg authored
      2001-10-10  Jody Goldberg <jgoldberg@home.com>
      	* src/plugin-util.c (gnumeric_fopen) : be smarter about what type of
      	  error to report.
      	* src/xml-io.c (gnumeric_xml_write_workbook) : switch to manually
      	  opening the file then dumping to prepare for xml2.  Apparently it
      	  attempts to escape file names.
      	* src/xml-io-autoft.c (gnumeric_xml_write_format_template) : ditto.
      2001-10-09  Jody Goldberg <jgoldberg@home.com>
      	* src/eval.c (dependent_set_expr) : Make a default handler to merge
      	  all the different states that have croppedup into one place.
      	* src/gnumeric-graph.c (gnm_graph_vector_set_expr) : Use the default.
      	* src/sheet-object-widget.c (checkbox_set_expr) : ditto.
      	* src/style-condition.c (style_condition_dep_set_expr) : The default
      	  handles most of the work.
      	* src/style-condition.c : Use DEPENDENT_MAKE_TYPE.
    • Jody Goldberg's avatar
      new utility. (gnumeric_xml_write_selection_clipboard) : Used here. · a78ba7fc
      Jody Goldberg authored
      2001-10-10  Jody Goldberg <jgoldberg@home.com>
      	* src/xml-io.c (gnumeric_xml_set_compression) : new utility.
      	(gnumeric_xml_write_selection_clipboard) : Used here.
      	(gnumeric_xml_write_workbook) : and here.
  7. 01 Oct, 2001 2 commits
    • Morten Welinder's avatar
      Add SRQ_query. · 8e5de92e
      Morten Welinder authored
      2001-10-01  Morten Welinder  <terra@diku.dk>
      	* src/search.h (SearchReplaceQuery): Add SRQ_query.
      	* src/commands.c (cmd_search_replace_do_cell): Implement querying.
      	* src/workbook-control-gui.c (cb_edit_search_replace_query):
       	implement SRQ_query.
      	* src/xml-io.c (xml_probe): Please gcc.
      2001-10-01  Morten Welinder  <terra@diku.dk>
      	* dialog-search-replace.c (dialog_search_replace_query): New
       	(modal) dialog.
    • Chyla Zbigniew's avatar
      Accept .gnumeric, .xml, .xml.gz not "everything but .xml". · 30ddd928
      Chyla Zbigniew authored
      * src/xml-io.c (xml_probe): Accept .gnumeric, .xml, .xml.gz not
      "everything but .xml".
  8. 27 Sep, 2001 1 commit
    • Jody Goldberg's avatar
      Add a property bag type interface to the escher parser. · 909174cd
      Jody Goldberg authored
      2001-09-26  Jody Goldberg <jgoldberg@home.com>
      	* ms-escher.c (ms_escher_parse) : call ms_escher_header_release.
      	(ms_escher_read_container) : ditto.
      	(ms_escher_header_release) : new to handle attrs.
      	(ms_escher_header_add_attr) : ditto.
      	(ms_escher_read_ClientData) : pass the attributes to the object
      	  and move the blip handing to the container.
      	* ms-obj.c (ms_object_attr_new_flag) : new.
      	(ms_object_attr_new_int) : new.
      	(ms_object_attr_new_ptr) : new.
      	(ms_object_attr_destroy) : new.
      	(ms_object_attr_bag_new) : ditto.
      	(ms_object_attr_bag_destroy) : ditto.
      	(ms_object_attr_bag_insert) : ditto.
      	(ms_object_attr_bag_lookup) : ditto.
      	* ms-excel-read.c (ms_excel_read_workbook) : interface change to
      	(ms_excel_read_sheet) : ditto.
      	(ms_sheet_create_obj) : move the blip handing from escher to here.
      2001-09-27  Jody Goldberg <jgoldberg@home.com>
      	* src/sheet-object-graphic.c (sheet_object_graphic_fill_color_set) :
      	  Use StyleColors and make public.
      	(sheet_object_graphic_destroy) : unref the fill colour.
      	(sheet_object_graphic_new_view) : translate from stylecolor to gdk.
      	(sheet_object_graphic_read_xml) : use style colors.
      	(sheet_object_graphic_write_xml) : use style colors.
      	(sheet_object_graphic_clone) : reference the fill colour.
      	(sheet_object_graphic_print) : use style colour.
      	(cb_dialog_graphic_clicked) : ditto.
      	(cb_dialog_filled_clicked) : ditto.
      	(sheet_object_graphic_user_config) : ditto.
      	(sheet_object_filled_user_config) : ditto.
      	* src/style-color.c (style_color_ref) : NULL is ok.
      	(style_color_unref) : ditto.
      	* src/xml-io.c (xml_node_get_color) : rename and tidy up.
      	(xml_node_get_gdkcolor) : delete.
      	(xml_node_set_gdkcolor) : delete.
      	(xml_read_style_border) : changes to get_color.
      	(xml_read_style) : ditto.
  9. 26 Sep, 2001 1 commit
    • Jody Goldberg's avatar
      Add a sample for the data page. Make the lists of plots and series. · e86e67b2
      Jody Goldberg authored
      2001-09-26  Jody Goldberg <jgoldberg@home.com>
      	* dialog-graph-guru.c : Add a sample for the data page.
      	  Make the lists of plots and series.  rewrite the the glade file
      	  in preparation for constructing the exprEntries.
      2001-09-26  Jody Goldberg <jgoldberg@home.com>
      	* dialog-cell-format.c (cb_protection_locked_toggle) : new.
      	(cb_protection_hidden_toggle) : new.
      	(fmt_dialog_init_protection_page) : new.
      	(fmt_dialog_impl) : call fmt_dialog_init_protection_page.
      2001-09-26  Jody Goldberg <jgoldberg@home.com>
      	* xml-sax-read.c (xml_sax_styleregion_start) : Add hidden & locked.
      2001-09-26  Jody Goldberg <jgoldberg@home.com>
      	* ms-excel-xf.h (_BiffXFData) : locked and hidden are booleans.
      	* ms-excel-read.c (biff_xf_data_new) : read them that way.
      	(ms_excel_get_style_from_xf) : store the protection flags.
      	* ms-excel-write.c (build_xf_data) : ditto.  Add indent.
      	* ms-chart.c (BC_R(seriestext)) : handle manually entered series names.
      2001-09-26  Jody Goldberg <jgoldberg@home.com>
      	* gnumeric.xsd : The style flags are not required, it will eventually
      	  be possible to define styles that only change some of the
      	  attributes.  Add locked & hidden.
      	* src/xml-io.c (xml_write_style) : write locked & hidden.
      	(xml_read_style) : read them too.
      	* src/mstyle.c (mstyle_element_equal) : support locked and hidden.
      	(mstyle_{get,set}_content_{locked,hidden}) : We have not implemented
      	  it yet, but storing the info is easy enough.
      	(mstyle_new_default) : Add locked & hidden.
  10. 15 Sep, 2001 1 commit
    • Jody Goldberg's avatar
      reference v8, and make Max{Col,Row} optional. · e2b84d4e
      Jody Goldberg authored
      2001-09-14  Jody Goldberg <jgoldberg@home.com>
      	* gnumeric.xsd : reference v8, and make Max{Col,Row} optional.
      	* src/xml-io.c : bump the name space version to reflect the schema
      	  and move the location of the dtd and schema to somewhere we control.
      	(xml_workbook_write) : reference the schema.
      	(xml_sheet_write) : The name space is always available already.
  11. 12 Sep, 2001 1 commit
    • Jody Goldberg's avatar
      move the type enums here. merge the addVector routines. change immportSpec · 9da5f392
      Jody Goldberg authored
      2001-09-12  Jody Goldberg <jgoldberg@home.com>
      	* idl/GNOME_Gnumeric_Graph.idl : move the type enums here.
      	  merge the addVector routines.
      	  change immportSpec into an attribute.
      	* src/gnumeric-graph.c (gnm_graph_write_xml) : new routine.
      	(gnm_graph_read_xml) : new routine.
      	(gnm_graph_class_init) : assign them here.
      	(gnm_graph_new) : split this into a wrapper for
      	(gnm_graph_setup) : this new routine.
      	(gnm_graph_vector_seq_scalar) : handle blank cells.
      	(gnm_graph_vector_seq_date) : handle blank cells.
      	(gnm_graph_vector_seq_string) : handle blank cells.
      	(gnm_graph_vector_corba_destroy) : release the subscriber.
      	(gnm_graph_subscribe_vector) : adjust to idl changes.
      	(gnm_graph_get_spec) : new routine.
      	* src/position.c (parse_pos_init_dep) : new utility.
  12. 10 Sep, 2001 1 commit
  13. 07 Sep, 2001 1 commit
    • Morten Welinder's avatar
      Properly initialise context. (gnumeric_xml_write_selection_clipboard): · 786e827a
      Morten Welinder authored
      2001-09-07  Morten Welinder  <terra@diku.dk>
      	* src/xml-io.c (gnumeric_xml_read_selection_clipboard): Properly
       	initialise context.
      	(gnumeric_xml_write_selection_clipboard): Ditto.
      	(StyleSideNames): Constify.
      	(xml_arg_set): Constify.
      	(xml_write_print_repeat_range): Constify.
      	(xml_parse_ctx_new_full): Initialise new shared_exprs member for
      	(xml_parse_ctx_destroy): Destroy shared_exprs.
      	(xml_read_cell): Use shared_exprs over expr_map.
  14. 06 Sep, 2001 2 commits
  15. 05 Sep, 2001 1 commit
    • Jody Goldberg's avatar
      delete. (cb_font_preview_color) : call style_color_new directly. · 6f8c5b58
      Jody Goldberg authored
      2001-09-04  Jody Goldberg <jgoldberg@home.com>
      	* dialog-cell-format.c (picker_style_color) : delete.
      	(cb_font_preview_color) : call style_color_new directly.
      	(cb_border_color) : rgba was border selector specific.
      	  Store it in State::border directly so that none of the other
      	  ColorPickers think it is initialized.
      	(border_format_has_changed) : ditto.
      	(fmt_dialog_impl) : init border.rgba.
      2001-09-04  Jody Goldberg <jgoldberg@home.com>
      	* src/xml-io.c (xml_probe) : accept .xml & .xml.gz
  16. 31 Aug, 2001 1 commit
  17. 29 Aug, 2001 4 commits
  18. 28 Aug, 2001 1 commit
    • Jody Goldberg's avatar
      fix a warning on exit when closing 1 of many open sheets. · 6891d63e
      Jody Goldberg authored
      2001-08-28  Jody Goldberg <jgoldberg@home.com>
      	* src/sheet-control-gui.c (scg_mode_edit) : fix a warning on exit
      	  when closing 1 of many open sheets.
      	* src/gnumeric-graph.c : make the debug spew conditional.
      	(CMANAGER1) : new macro.
      	(gnm_graph_new) : add more safety checks.
      	(gnm_graph_arrange_vectors) : use the versioning macros.
      	(gnm_graph_import_specification) : new routine.
      	* idl/gnumeric-graphs.idl (importSpecification) : new routine.
      	* src/xml-io.c : clean up.
      	Remove the pointless searching of children for content.
      	We never relied on those semantics, nor do we want them.
      	(xml_sheet_create) : Use xmlGetProp directly.
      	(xml_sheet_read) : ditto.
      	(xml_read_solver) : ditto.
      	(xml_write_solver) : use xml_prop_set_cstr.
      	(xml_write_print_info) : Use xmlNewChild.
      	(xml_value_get) : delete and use xmlGetProp directly.
      2001-08-27  Jody Goldberg <jgoldberg@home.com>
      	* src/gnumeric-graph.c (gnm_graph_vector_set_expr) : remove debuggin
  19. 26 Aug, 2001 2 commits
    • Chyla Zbigniew's avatar
      Added "overwrite_files" field. · e06c7615
      Chyla Zbigniew authored
      * src/file-priv.h (struct _GnumFileSaver):
      Added "overwrite_files" field.
      * src/file.h (gnum_file_saver_set_overwrite_files): New function.
      * src/file.c
      (gnum_file_saver_init): Initialize overwrite_files (set to TRUE).
      (gnum_file_saver_save): Report an error and abort saving if file with
      given name already exists and overwrite_files == FALSE.
      * src/plugin-service.h (struct _PluginServiceFileSaver):
      Added "overwrite_files" field.
      * src/plugin-service.c (plugin_service_file_saver_read,
      gnum_plugin_file_saver_new): Handle overwrite_files flag.
      * src/xml-io.c (gnumeric_xml_read_workbook):
      Use fstat to get file size. Corrected error message.
    • Jody Goldberg's avatar
      fix typo. and generate the expression using the source cell rather than · b6548888
      Jody Goldberg authored
      2001-08-26  Jody Goldberg <jgoldberg@home.com>
      	* fn-information.c (gnumeric_expression) : fix typo.
      	  and generate the expression using the source cell rather than then
      	  position with the call to expression.
      2001-08-26  Jody Goldberg <jgoldberg@home.com>
      	* src/gnumeric-graph.c (gnm_graph_add_vector) : merge with
      	  gnum_graph_vector_new and add intelligence to merge multiple
      	  requests for the same vector into a single vector.
      2001-08-26  Jody Goldberg <jgoldberg@home.com>
      	* src/position.c (cellref_get_abs_pos) : rename and adjust signature.
      	* src/expr.c (expr_tree_equal) : new function.
  20. 24 Aug, 2001 1 commit
    • Chyla Zbigniew's avatar
      Replace mega-include <gnome.h> with something smaller. · ac93e10a
      Chyla Zbigniew authored
      * src/analysis-tools.c, src/application.c, src/bonobo-io.c,
      src/clipboard.c, src/cmd-edit.c, src/command-context.c,
      src/commands.c, src/corba-args.c, src/corba-workbook-factory.c,
      src/dates.c, src/dialogs/dialog-about.c,
      src/dialogs/dialog-analysis-tools.c, src/dialogs/dialog-autocorrect.c,
      src/dialogs/dialog-autoformat.c, src/dialogs/dialog-autosave.c,
      src/dialogs/dialog-cell-comment.c, src/dialogs/dialog-cell-format.c,
      src/dialogs/dialog-cell-sort.c, src/dialogs/dialog-consolidate.c,
      src/dialogs/dialog-define-names.c, src/dialogs/dialog-delete-cells.c,
      src/dialogs/dialog-function-wizard.c, src/dialogs/dialog-goal-seek.c,
      src/dialogs/dialog-goto-cell.c, src/dialogs/dialog-graph-guru.c,
      src/dialogs/dialog-insert-cells.c, src/dialogs/dialog-paste-special.c,
      src/dialogs/dialog-search-replace.c, src/dialogs/dialog-sheet-order.c,
      src/dialogs/dialog-simple-input.c, src/dialogs/dialog-solver.c,
      src/dialogs/dialog-stf-export.c, src/dialogs/dialog-stf-preview.h,
      src/dialogs/dialog-stf.c, src/dialogs/dialog-stf.h,
      src/dialogs/dialog-summary.c, src/dialogs/dialog-validate.c,
      src/dialogs/dialog-workbook-attr.c, src/dialogs/dialog-zoom.c,
      src/dialogs/utils-dialog.c, src/expr-name.c, src/expr.c,
      src/file-autoft.c, src/format-template.c, src/format.c, src/formats.c,
      src/func.c, src/global-gnome-font.c, src/gnumeric-util.h,
      src/gui-clipboard.c, src/gui-file.c, src/gui-gnumeric.h, src/gutils.c,
      src/history.c, src/item-bar.c, src/item-cursor.c, src/item-debug.c,
      src/main.c, src/normal-args.c, src/number-match-test.c,
      src/number-match.c, src/parse-util.c, src/parser.y, src/pattern.h,
      src/preview-grid.c, src/print-cell.c, src/print-info.c, src/print.c,
      src/search.c, src/selection.c, src/sheet-autofill.c,
      src/sheet-merge.c, src/sheet-object-bonobo.c,
      src/sheet-object-container.c, src/sheet-object-graphic.c,
      src/sheet-object-item.c, src/sheet-object-widget.c,
      src/sheet-object.c, src/sheet.c, src/stf-parse.h, src/stf.c,
      src/style-color.c, src/style.c, src/test-format.c, src/value-sheet.c,
      src/value.c, src/widgets/gnumeric-dashed-canvas-line.h,
      src/widgets/gnumeric-hscrollbar.c, src/widgets/gnumeric-toolbar.c,
      src/widgets/widget-font-selector.c, src/workbook-cmd-format.c,
      src/workbook-control.c, src/workbook-format-toolbar.c,
      src/workbook-object-toolbar.c, src/workbook-private.h,
      src/xml-io-autoft.c, src/xml-io.c:
      Replace mega-include <gnome.h> with something smaller.
  21. 14 Aug, 2001 1 commit
    • Jody Goldberg's avatar
      fix typo. · 3ca7e095
      Jody Goldberg authored
      2001-08-14  Jody Goldberg <jgoldberg@home.com>
      	* src/format-template.c (format_template_range_check) : fix typo.
      	* src/xml-io.c (xml_sheet_read) : Add some sanity checking for bogus
  22. 10 Aug, 2001 1 commit
    • Lutz Müller's avatar
      Use GdkColors instead of strings. Implemented printing. Objects aren't in · 55ca2396
      Lutz Müller authored
      2001-08-11  Lutz Mller <urc8@rz.uni-karlsruhe.de>
              * src/sheet-object-graphic.c: Use GdkColors instead of strings.
              Implemented printing. Objects aren't in the right place though. Still
              needs some tuning. Configuration implemented (border width, outline
              color, fill color).
              * src/sheet-object-graphic.h: Be consistent, rename
              * sheet-object.c: (sheet_object_read_xml): Remove "Old crufty IO"
              (quoted from code). Get and set the direction here instead of in
              * src/xml-io.[c,h]: Make xml_[get,set]_value_double and
              xml_[get,set]_value_color public.
  23. 17 Jul, 2001 1 commit
    • Jody Goldberg's avatar
      implement. (ms_excel_read_window2) : store initial top left. · 9a5de7db
      Jody Goldberg authored
      2001-07-16  Jody Goldberg <jgoldberg@home.com>
      	* ms-excel-read.c (ms_excel_read_pane) : implement.
      	(ms_excel_read_window2) : store initial top left.
      2001-07-16  Jody Goldberg <jgoldberg@home.com>
      	* applix-read.c (applix_read_view) : Use sheet_set_initial_top_left.
      2001-07-16  Jody Goldberg <jgoldberg@home.com>
      	* src/sheet-object-graphic.c (sheet_object_graphic_write_xml) : use cstr.
      	(sheet_object_filled_write_xml) : ditto.
      	* src/xml-io-autoft.c (xml_write_format_template_members) : remove
      	  extra copying to and fro.
      	* src/xml-io.c (xml_set_value_string) : delete this bogosity.
      	(xml_write_solver) : Use xmlSetProp in its place.
      	(xml_set_value_double) : remove the searchiing silliness.
      	(xml_read_sheet_layout) : new function.
      	(xml_sheet_read) : called from here.
      	(xml_write_sheet_layout) : new function.
      	(xml_sheet_write) : called from here.
      2001-07-16  Jody Goldberg <jgoldberg@home.com>
      	* src/gnumeric-sheet.c (gsheet_compute_visible_region) : add a
      	(gnumeric_sheet_button_release) : Fix scroll wheel handling.
      	  And make the scroll by 1/4 of a page rather than a full page.
      	* src/workbook-control-gui.c (cb_sheet_label_button_press) : while
      	  selecting a range all buttons switch pages.
      	(cb_view_freeze_panes) : Improve handling of border cases.
      	* src/sheet-control-gui.c (scg_set_top_left) : new function.
      	(scg_class_init) : tied in here.
      	(scg_scrollbar_config) : Some usability tuning.
      	* src/sheet.c (sheet_new) : init 'initial_top_left'
      	(sheet_set_initial_top_left) : new function.
      	(sheet_init_sc) : Set the initial top left.
      	(sheet_update_cursor_pos) : delete unnecessary.
      	(sheet_update_only_grid) : It is only called from here.  And even this
      	  seems questionable.
      	(sheet_find_boundary_{vertical,horizontal}) : adds more comments.
      	* src/sheet-control.c (sc_set_top_left) : new function.
  24. 16 Jul, 2001 1 commit
    • Chyla Zbigniew's avatar
      Removed save_to_stream_func member. (gnum_file_saver_setup): Removed · 8a0a4c56
      Chyla Zbigniew authored
      * src/file-priv.h
      (struct _GnumFileSaver): Removed save_to_stream_func member.
      (gnum_file_saver_setup): Removed save_to_stream_func argument.
      * src/file.h
      (gnum_file_saver_new): Removed save_to_stream_func argument.
      (gnum_file_saver_supports_save_to_stream): Removed.
      * src/file.c
      New implementation, uses temporary file and gnum_file_saver_save.
      (gnum_file_saver_setup): Removed save_to_stream_func argument.
      (gnum_file_saver_new): Removed save_to_stream_func argument.
      (gnum_file_saver_supports_save_to_stream): Removed.
      * src/gui-file.c
      (ask_for_file_saver): Show all file savers in format chooser.
      * src/bonobo-io.c (gnumeric_bonobo_io_init),
      src/plugin-service.c (gnum_plugin_file_saver_new),
      src/stf.c (stf_init):
      Adjusted to file.h change (removed save_to_stream_func argument).
      * src/xml-io.c
      (gnumeric_xml_write_workbook_to_stream): Removed.
      (xml_init): Adjusted to file.h change.
  25. 10 Jul, 2001 1 commit
    • Lutz Müller's avatar
      Add a menu item "Send" to the file menu. If this one is clicked, pop up an · 51e7bf1e
      Lutz Müller authored
      2001-07-10  Lutz Müller <urc8@rz.uni-karlsruhe.de>
              * src/workbook-control-gui.c: Add a menu item "Send" to the file menu.
              If this one is clicked, pop up an Evolution-Composer with current
              workbook attached.
              * src/file-priv.h: New virtual function for GnumFileSaver:
              Introduce GnumFileSaverSaveToStreamFunc. Keep a mime type.
              * src/file.[c,h]: Implement save_to_stream and mime_type detection.
              * src/gui-file.[c,h]: Reduce copy & paste by introducing
              (make_format_chooser) and (check_multiple_sheet_support_if_needed).
              New function: (gui_file_save_to_stream) which asks for the desired
              mime type.
              * src/bonobo-io.c: This file saver doesn't support save_to_stream.
              * src/stf.c: This one either.
              * src/xml-io.[c,h]: Implement save_to_stream.
              * src/plugin-service.c: Pass NULL for save_to_stream.
  26. 09 Jul, 2001 1 commit
    • Jody Goldberg's avatar
      Col/Row resize guides now work with panes. · d7707e2d
      Jody Goldberg authored
      and hide/unhide cols/rows works with panes and objects.
      2001-07-09  Jody Goldberg <jgoldberg@home.com>
      	* src/gnumeric-pane.c (canvas_bar_realized) : moved from scg.
      	(canvas_bar_adjustment_changed) : ditto.
      	(gnumeric_pane_header_init) : ditto.
      	(gnumeric_pane_init) : ditto.
      	(gnumeric_pane_release) : ditto.
      	(gnumeric_pane_colrow_resize_end) : new function.
      	(gnumeric_pane_colrow_resize_start) : ditto.
      	(gnumeric_pane_colrow_resize_move) : ditto.
      	* src/colrow.c (colrow_set_visibility) : toggling visibility moves
      	  objects and panes.
      	(colrow_save_sizes) : Use sheet_colrow_get_info.
      	* src/item-bar.c : s/destroy/finalize/
      	s/item_bar/ib/ for internal routines and vars.
      	Some renaming to clean things up
      	Move the struct decl into .c nothing should be looking at the
      	(item_bar_init) : remove unused 'FirstElement' arg.
      	(item_bar_set_arg) : remove unused arg and fix typo.
      	(item_bar_event) : use resize guide support routines in scg
      	  instead of handling it ourselves.
      	(resize_bar_init) : delete, and move concept to gnumeric-pane.
      	(item_bar_start_resize) : move content to gnumeric-pane.
      	(item_bar_end_resize) : move content to gnumeric-pane.
      	* src/sheet-control-gui.c (scg_set_top_row) : pane support.
      	(scg_set_left_col) : ditto.
      	(scg_colrow_resize_end) : new function.
      	(scg_colrow_resize_start) : ditto.
      	(scg_colrow_resize_move) : ditto.
  27. 05 Jul, 2001 1 commit
    • Jody Goldberg's avatar
      Initial support for frozen panes. · 99073bd9
      Jody Goldberg authored
      2001-07-04  Jody Goldberg <jgoldberg@home.com>
      	* src/sheet-merge.c (sheet_merge_add) : Use sheet_redraw_range.
      	* src/sheet-control.c (sc_set_panes) : new virtual.
      	(sc_set_sheet) : renamed from sc_invalidate_sheet.
      	* src/sheet-control-gui.c (scg_primary_pane) : new function. Be very
      	  careful when using this.  It should not be necessary in most cases.
      	(scg_get_wbcg) : convenience routine.
      	(scg_redraw_all) : frozen panes.
      	(scg_redraw_region) : renamed from scg_redraw_cell_region, and frozen
      	  pane support.
      	(scg_redraw_headers) : merge in the code from gnumeric-sheet.
      	(scg_update_cursor_pos) : pane support.
      	(scg_resize) : ditto.
      	(scg_set_zoom_factor) : ditto.  Broken. needs to resize the panes.
      	(scg_scrollbar_config) : adjust to panes.
      	(scg_make_edit_pos_visible) : use scg_make_cell_visible.
      	(scg_colrow_select) : reorg a bit.
      	(vertical_scroll_offset_changed) : adjust to panes.
      	(horizontal_scroll_offset_changed) : ditto.
      	(cb_table_destroy) : ditto.
      	(scg_init) : init the top here.
      	(bar_set_left_col) : from gnumeric-sheet. Still needs work for panes.
      	(bar_set_top_row) : ditto.
      	(gnumeric_sheet_set_left_col) : ditto.
      	(gnumeric_sheet_set_top_row) : ditto.
      	(scg_set_left_col) : TODO.
      	(scg_set_top_row) : ditto.
      	(gnumeric_sheet_set_top_left) : new function split from.
      	(gnumeric_sheet_make_cell_visible) : here.
      	(scg_make_cell_visible) : adjsut to panes and do the real work here.
      	(scg_make_cell_visible_virt : wrapper for use as virtual.
      	(gnumeric_pane_new) : new function.
      	(gnumeric_pane_delete) : ditto.
      	(scg_set_panes) : ditto.
      	(scg_construct) : move the table attachments around and move the
      	  canvas groups into the panes.
      	(sheet_control_gui_new) : beef this up.
      	(scg_unant) : adjust to panes.
      	(scg_ant) : ditto.
      	(scg_cursor_visible) : ditto.
      	(scg_cursor_bound) : ditto.
      	(scg_adjust_preferences) : ditto.
      	(scg_compute_visible_region) : ditto.
      	(scg_create_editor) : ditto.
      	(scg_stop_editing) : ditto.
      	(scg_take_focus) : ditto.
      	(scg_sliding_callback) : adjust top panes, but is still much too
      	(scg_start_sliding) : ditto.
      	(cb_slide_handler) : ditto.
      	(cb_control_point_event) : ditto.
      	(new_control_point) : ditto.
      	(set_item_x_y) : ditto.
      	(set_acetate_coords) : ditto.
      	(scg_object_calc_position) : ditto.
      	(scg_object_view_position) : ditto.
      	(scg_rangesel_changed) : ditto.
      	(scg_rangesel_start) : ditto.
      	(scg_rangesel_stop) : ditto.
      	(scg_rangesel_move) : ditto.
      	(scg_rangesel_extend) : ditto.
      	* src/item-grid.c (sheet_object_begin_creation) : Use the group
      	  associated with the gsheet, not the scg, and use GNUMERIC_IS_SHEET
      	  in preference to != NULL.
      	* src/item-bar.c : Store the gnumeric-sheet rather than the scg so
      	  that we can get to the Pane.
      	* src/embeddable-grid.c (grid_view_activate) : Use scg_take_focus.
      	(grid_view_new) : Use sheet_control_gui_new in place of sheet_new_scg.
      	* convert to E_MAKE_TYPE
      	* Use IS_SHEET in preference to sheet != NULL
      	* sheet_range_calc_spans signature change
      	* src/clipboard.c (clipboard_paste_region) : special handling when
      	  pasting into a selection that consists of a single merged cell.
      	* src/application.c (application_set_selected_sheet) : Use IS_SHEET.
      	(application_clipboard_copy) : ditto.
      	(application_clipboard_cut) : ditto.
      	* src/Makefile.am :
      	    command-context-corba -> workbook-control-corba
      	* src/sheet.c : convert to using IS_SHEET in place of sheet != NULL in
      	  several places.
      	(sheet_is_frozen) : new function.
      	(sheet_freeze_panes) : implement.
      	(sheet_new) : init frozen pane data.
      	(sheet_range_calc_spans) : pass a pointer rather than copy of the range.
      	  and use sheet_redraw_range.
      	(sheet_apply_style) : use sheet_redraw_range.
      	(cb_sheet_get_extent) : premature optimization is evil.
      	(sheet_redraw_region) : rename from sheet_redraw_cell_region.
      	(sheet_set_edit_pos) : use sheet_redraw_range.
      	(sheet_move_range) : ditto.
      	(sheet_init_sc) : new routine.
      	(sheet_attach_control) : rename and task from sheet_new_scg.
      	(sheet_redraw_region) : renamed from sheet_redraw_cell_region.
      	* src/item-cursor.c (item_cursor_update) : increase the spacing for
      	  the autohandle.
      	* src/GNOME_Gnumeric.xml :
      	  - Use Control*colon and Control*semicolon
      	  - desensitize the graph guru for now.
      	  - Add freeze/thaw
      	* src/item-bar.c (item_bar_unrealize) : no need to double unref the
      	* src/print-cell.c (print_merged_range) : This is not being drawn on
      	  the screen, no need for all the fancy calcs to only draw the visible
      	  bits.  We will just clip it.
      	* src/print-cell.c (print_cell) : Use the calulated width, not the col
      	  width for splitting.
      	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet) : Use the scg_
      	  versions of things in preference to the gnumeric_sheet_ versions.
      	(gnumeric_sheet_new) : Store the Pane that this is associated with.
      	(gnumeric_sheet_bar_set_top_row) : moved to sheet-control-gui.c
      	(gnumeric_sheet_set_top_row) : ditto.
      	(gnumeric_sheet_bar_set_left_col) : ditto.
      	(gnumeric_sheet_set_left_col) : ditto.
      	(gnumeric_sheet_make_cell_visible) : ditto.
      	(gsheet_compute_visible_region) : handle panes.
  28. 27 Jun, 2001 1 commit
  29. 18 Jun, 2001 1 commit
  30. 15 Jun, 2001 1 commit
    • Jody Goldberg's avatar
      Use CellPos directly. · 90113e73
      Jody Goldberg authored
      2001-06-15  Jody Goldberg <jgoldberg@home.com>
      	* ms-excel-read.c (ms_excel_sheet_new) : Use CellPos directly.
      	* ms-formula-read.c (ms_excel_parse_formula) : some cleanup.
      2001-06-14  Jody Goldberg <jgoldberg@home.com>
      	* src/sheet-control-gui.c (scg_colrow_select) : don't
      	  discard input when selecting a range.
      	* src/xml-io.c (xml_write_range) : Add some safety.
  31. 12 Jun, 2001 1 commit
    • Chyla Zbigniew's avatar
      Two extra helpers (value, workbook) + changes in count helper), removed · baace536
      Chyla Zbigniew authored
      * src/io-context-priv.h
      (enum GnumProgressHelperType, struct GnumProgressHelper): Two extra
      helpers (value, workbook) + changes in count helper), removed min_f and
      max_f fields.
      (struct ProgressRange): New.
      (struct _IOContext): Added progress_ranges, progress_min, progress_max.
      * src/io-context.h
      (enum WbProgressElements): New.
      (file_io_progress_set, memory_io_progress_set):
      Removed min_f and max_f arguments.
      (count_io_progress_set): Added step argument, removed min_f and max_f.
      (count_io_progress_update): s/value/inc.
      (io_progress_range_push, io_progress_range_pop,
      value_io_progress_set, value_io_progress_update,
      workbook_io_progress_set, workbook_io_progress_update): New.
      * src/io-context.c
      (io_context_init): Initialize extra fields: progress_ranges,
      progress_min, progress_max.
      (io_progress_update): Adjust the value, using current range
      <progress_min, progress_max>.
      (io_progress_range_push, io_progress_range_pop): New.
      (file_io_progress_set, memory_io_progress_set):
      Removed min_f and max_f arguments.
      (file_io_progress_update, memory_io_progress_update): Don't adjust value
      to current range, io_progress_update takes care of this.
      (count_io_progress_set): Added "step" argument, initialize extra
      struct fields: last, current, step.
      (count_io_progress_update): Take value increase as an argument, not
      value itself. Return immediately if value hasn't changed enough.
      (value_io_progress_set, value_io_progress_update,
      workbook_io_progress_set, workbook_io_progress_update): New. Two
      additional helpers, "workbook" should be very useful when saving
      * src/xml-io.h (struct _XmlParseContext): Removed element_counter.
      * src/xml-io.c
      (xml_read_styles, xml_sheet_read): Don't increment element_counter
      manually, just call count_io_progress_update.
      (xml_workbook_read): Pass the size of the step to
      count_io_progress_set, use io_progress_range_{push,pop}.
      (gnumeric_xml_read_workbook): Use io progress helper of type "value".
  32. 04 Jun, 2001 1 commit