1 2018-03-13 Morten Welinder <terra@gnome.org>
5 2017-12-28 Morten Welinder <terra@gnome.org>
9 2017-12-01 Morten Welinder <terra@gnome.org>
13 2017-11-26 Morten Welinder <terra@gnome.org>
15 * xlsx-write.c (xlsx_write_sheet): Add comments to legacy drawing
16 requirements. (So much for "legacy").
18 * xlsx-write-drawing.c (xlsx_write_legacy_object): Extend to
19 handle cell comment objects.
21 * xlsx-write.c (xlsx_write_comments): Preserve spaces in comments.
23 2017-11-20 Morten Welinder <terra@gnome.org>
25 * ms-formula-write.c (xl_map_char_to_type): Improve debug output.
26 (write_funcall): Avoid a critical for ERROR function. This might
27 not be right -- need to check what XL wants for this.
29 2017-11-18 Morten Welinder <terra@gnome.org>
33 2017-10-26 Morten Welinder <terra@gnome.org>
35 * xlsx-read-drawing.c (xlsx_ser_trendline_intercept): Read
38 * xlsx-write-drawing.c (xlsx_write_axis): Make axis tag for
39 contour charts match what XL wants. Even if it isn't obvious why.
40 (xlsx_write_one_chart): Save a view3D for contour charts.
41 (xlsx_write_one_plot): Fix writing trendline equation. Don't
42 write a trendline name if there isn't one. Write intercept=0 when
45 2017-10-24 Morten Welinder <terra@gnome.org>
47 * xlsx-write-drawing.c (xlsx_write_axis): Write a pseudo-3d axis
49 (xlsx_write_one_plot): Start work on surface charts.
51 2017-10-23 Morten Welinder <terra@gnome.org>
53 * xlsx-write-drawing.c (xlsx_write_one_plot): Recognize the third
56 2017-10-21 Morten Welinder <terra@gnome.org>
58 * xlsx-read-drawing.c (dtd): Add stubs for floor, sidewall, and
60 (xlsx_chart_contour): Use XLContourPlot object.
62 2017-10-11 Morten Welinder <terra@gnome.org>
64 * xlsx-read.c (xlsx_wb_name_end): Ignore bogus Print_Area names.
66 2017-07-06 Morten Welinder <terra@gnome.org>
70 2017-03-20 Morten Welinder <terra@gnome.org>
74 2017-03-16 Morten Welinder <terra@gnome.org>
76 * xlsx-read-drawing.c (xlsx_drawing_dtd): Fill out the grammar a
77 bit more to quiet some warnings.
79 2017-03-08 Morten Welinder <terra@gnome.org>
81 * xlsx-write.c (by_hlink_order): Simplify order.
82 (xlsx_write_hlink): Properly handle location.
84 * ms-excel-util.c (xls_collect_hlinks): Sort ranges.
86 * xlsx-read.c (xlsx_CT_HyperLinks): Handle external links with
89 2017-02-28 Jean Brefort <jean.brefort@normalesup.org>
91 * xlsx-write-drawing.c (xlsx_write_go_style_full): do not export
92 transparent fill style if auto.
94 2017-02-26 Jean Brefort <jean.brefort@normalesup.org>
96 * xlsx-write-drawing.c (xlsx_write_go_style_full): always export a
97 transparent fill style. [#779160]
98 (xlsx_write_one_chart): simplify legend style export.
100 2017-02-21 Jean Brefort <jean.brefort@normalesup.org>
102 * xlsx-write-drawing.c (xlsx_write_one_chart): export legend style.
104 2017-02-18 Morten Welinder <terra@gnome.org>
106 * ms-excel-write.c (excel_write_sheet): Don't write hyperlinks to
107 biff7 and before. The strings come out wrong.
109 * xlsx-write.c (xlsx_write_hlinks): Impose an ordering on links.
111 2017-02-16 Jean Brefort <jean.brefort@normalesup.org>
113 * xlsx-write-drawing.c (xlsx_write_layout), (xlsx_write_one_chart): first
114 attempt to export a manual position.
116 2017-02-15 Jean Brefort <jean.brefort@normalesup.org>
118 * xlsx-read-drawing.c (xlsx_chart_text), (xlsx_text_value),
119 (xlsx_body_pr): read text value.
120 * xlsx-write-drawing.c (xlsx_write_one_chart): export legend position.
122 2017-02-15 Jean Brefort <jean.brefort@normalesup.org>
124 * xlsx-write-drawing.c (xlsx_write_series_dim): Fix xlsx export of chart
125 series names. [#778618]
127 2017-02-14 Morten Welinder <terra@gnome.org>
129 * xlsx-read.c (themed_color_from_name): New function to handle
130 alias colours tx1 and tx2.
131 (themed_color): Use themed_color_from_name.
132 (themed_color_from_name): Flip light/dark -- it refers to theme.
134 (xlsx_file_open): Have defaults for mapped colours.
136 * xlsx-read-drawing.c (xlsx_draw_color_themed): Use
137 themed_color_from_name.
138 (xlsx_chart_dtd): Add effectLst to grammar.
140 2017-02-07 Morten Welinder <terra@gnome.org>
142 * xlsx-read.c (wrap_sheet_new): New function to ensure we start
143 with blank header and footer. Fixes #778292.
145 2017-01-30 Morten Welinder <terra@gnome.org>
149 2017-01-03 Andreas J. Guelzow <aguelzow@pyrshep.ca>
151 * xlsx-read.c (xlsx_CT_PageSetup): the default for fitTo* is 1
152 * xlsx-write.c (xlsx_write_print_info): the default for fitTo* is 1
154 2016-08-20 Morten Welinder <terra@gnome.org>
158 2016-06-29 Morten Welinder <terra@gnome.org>
162 2016-06-24 Morten Welinder <terra@gnome.org>
164 * xlsx-read.c (theme_dtd): Ignore miter specs.
166 2016-06-17 Morten Welinder <terra@gnome.org>
170 2016-05-06 Morten Welinder <terra@gnome.org>
174 2016-04-26 Morten Welinder <terra@gnome.org>
176 * xlsx-read.c (xlsx_cell_val_end): Be slightly more relaxed about
177 the syntax of references to the shared strings table. Fixes
180 2016-03-22 Morten Welinder <terra@gnome.org>
184 2016-02-08 Morten Welinder <terra@gnome.org>
186 * xlsx-read-drawing.c (xlsx_chart_layout_target): Do proper
187 parsing. Fixes #761727.
189 2016-02-07 Morten Welinder <terra@gnome.org>
191 * xlsx-read-drawing.c (xlsx_rpr_latin): Check that null style.
194 2016-02-06 Morten Welinder <terra@gnome.org>
198 2016-01-14 Morten Welinder <terra@gnome.org>
200 * ms-formula-read.c (excel_parse_formula1): Add missing length
201 check. Fixes #760545.
203 2016-01-13 Jean Brefort <jean.brefort@normalesup.org>
205 * ms-chart.c (end): Add missing array length check. Fixes #760546.
207 2016-01-07 Morten Welinder <terra@gnome.org>
209 * ms-obj.c (ms_obj_read_biff8_obj): Add missing length check for
210 scroll bars. Fixes #760232.
212 * ms-excel-read.c (excel_formula_shared): Length check for v0.
215 * ms-chart.c (ms_excel_chart_read): Initialize .legend to NULL.
218 * ms-excel-read.c (excel_read_NAME): Fix computation of array
219 length. Fixes #760104.
221 * ms-formula-read.c (excel_parse_formula1): Check that
222 non-parsable data is actually there before dumping it.
224 2016-01-05 Morten Welinder <terra@gnome.org>
226 * ms-formula-read.c (excel_parse_formula1): Fix string length
227 capping. Fixes #760106.
229 2016-01-04 Morten Welinder <terra@gnome.org>
231 * ms-excel-read.c (excel_sheet_new): Undo last change. Fix
234 * ms-obj.c (ms_obj_read_biff8_obj): Fuzzed file fixes. Fixes
237 2016-01-03 Morten Welinder <terra@gnome.org>
239 * ms-excel-read.c (excel_sheet_new): Always create a new sheet.
242 2016-01-02 Morten Welinder <terra@gnome.org>
244 * ms-formula-read.c (excel_parse_formula1): Check for recursive
245 shared formulae. Fixes #760043.
247 * ms-biff.c (ms_biff_query_next): Don't handle CONTINUE records
248 for BOUNDSHEET. Fixes #760089.
250 2015-12-28 Morten Welinder <terra@gnome.org>
254 2015-12-25 Morten Welinder <terra@gnome.org>
258 2015-12-22 Morten Welinder <terra@gnome.org>
260 * ms-excel-write.c (excel_write_DV): Use a special formula context
263 * ms-formula-write.c (excel_write_formula): Handle said formula
266 * ms-obj.h (MSObj): Rename field combo_in_autofilter to
269 2015-10-17 Morten Welinder <terra@gnome.org>
271 * ms-excel-read.c (excel_read_NAME): Handle deleted and selfref
274 * ms-formula-read.c (excel_parse_formula1): Handle deleted sheet.
276 2015-09-20 Morten Welinder <terra@gnome.org>
280 2015-07-28 Morten Welinder <terra@gnome.org>
284 2015-07-07 Morten Welinder <terra@gnome.org>
286 * ms-excel-read.c (excel_parse_name): Handle non-local Print_Area.
289 * ms-biff.c (ms_biff_query_bound_check): When we span records --
290 unhandled -- signal that as an error. Fixes #752080.
292 2015-07-06 Jean Brefort <jean.brefort@normalesup.org>
294 * ms-excel-read.c (excel_read_BOF): fuzzed file issue. [#751989]
296 2015-07-05 Jean Brefort <jean.brefort@normalesup.org>
298 * ms-chart.c (end): one more NULL value issue. [#751969]
299 * ms-excel-read.c (sst_read_string): fix test with undsigned integer.
302 2015-07-04 Jean Brefort <jean.brefort@normalesup.org>
304 * ms-excel-read.c (excel_read_FONT): don't read missing data. [#751909]
306 2015-07-03 Jean Brefort <jean.brefort@normalesup.org>
308 * ms-chart.c (end): protect against missing value. Fixes #751945.
310 2015-07-04 Jean Brefort <jean.brefort@normalesup.org>
312 * ms-excel-read.c (excel_read_sheet), (excel_read_BOF): don't leak charts,
315 2015-07-04 Jean Brefort <jean.brefort@normalesup.org>
317 * ms-escher.c (ms_escher_read_container): protect against wrong record
318 length. Fixes #751249.
320 2015-07-04 Jean Brefort <jean.brefort@normalesup.org>
322 * ms-chart.c (set_radial_axes), (end): make axis type change more secure.
324 2015-07-04 Jean Brefort <jean.brefort@normalesup.org>
326 * ms-chart.c (xl_chart_import_trend_line): add check for array index in
327 xl_chart_import_trend_line(). Fixes #751920.
329 2015-07-03 Jean Brefort <jean.brefort@normalesup.org>
331 * ms-chart.c (end): protect against missing value. Fixes #751908.
333 2015-07-03 Jean Brefort <jean.brefort@normalesup.org>
335 * ms-chart.c (end): fix Y and Z axes exchange in 3D plots. Fixes #751744.
337 2015-07-02 Morten Welinder <terra@gnome.org>
339 * ms-obj.c (read_pre_biff8_read_expr): Check record length.
341 2015-07-01 Morten Welinder <terra@gnome.org>
343 * xls-read-pivot.c (xls_read_SXVIEW): Protect against underflow in
344 length. Fixes #751662.
346 2015-06-29 Morten Welinder <terra@gnome.org>
348 * ms-excel-read.c (excel_formula_shared): Handle duplicates in
349 shared formula tables. This shouldn't happen in proper files.
350 Fixes part of #751660.
352 * ms-formula-read.c (excel_parse_formula1): Survive bogus array
353 constant. Fixes #751659.
355 2015-06-29 Morten Welinder <terra@gnome.org>
357 * ms-excel-read.c (excel_read_CF): Plug leak when reading fuzzed
360 2015-06-28 Jean Brefort <jean.brefort@normalesup.org>
362 * ms-chart.c (end): fuzzed file fix. [#751758]
364 2015-06-25 Jean Brefort <jean.brefort@normalesup.org>
366 * ms-chart.c (end): more unexisting series issues. See #751270, comment #2
368 2015-06-24 Jean Brefort <jean.brefort@normalesup.org>
370 * ms-chart.c (end), (ms_excel_chart_read): don't use unexisting series and
371 initialize XLChartReadState::style_element. Fixes #751384.
373 2015-06-22 Morten Welinder <terra@gnome.org>
375 * ms-escher.c (ms_escher_read_container): Catch crazy length field
376 causing a loop. Fixes #751258.
378 2015-06-22 Jean Brefort <jean.brefort@normalesup.org>
380 * ms-chart.c (3dbarshape), (3d), (ai), (alruns), (area),
381 (areaformat), (attachedlabel), (axesused), (axis), (axisparent),
382 (bar), (boppop), (catserrange), (chart), (chartformat),
383 (chartline), (dat), (defaulttext), (dropbar), (fbi), (fontx),
384 (ifmt), (legend), (legendxn), (line), (lineformat), (markerformat),
385 (objectlink), (pie), (pieformat), (plotgrowth), (serauxerrbar),
386 (serauxtrend), (serfmt), (trendlimits), (seriestext), (serparent),
387 (sertocrt), (shtprops), (siindex), (surf), (text), (tick), (units),
388 (valuerange): fix data size checks.
390 2015-06-22 Jean Brefort <jean.brefort@normalesup.org>
392 * ms-excel-read.c (excel_read_PANE): check data size. [#751271]
394 2015-06-22 Jean Brefort <jean.brefort@normalesup.org>
396 * ms-chart.c (end): skip NULL excel series. [#751270]
398 2015-06-21 Jean Brefort <jean.brefort@normalesup.org>
400 * ms-chart.c (ms_excel_chart_read): initialize XLChartReadState::is_contour.
402 2015-06-20 Morten Welinder <terra@gnome.org>
404 * ms-chart.c (ai): Avoid expression leak on broken file.
406 * xlsx-read.c (attr_uint): Typo.
408 * xls-read-pivot.c (xls_read_pivot_cache): Don't trust large
410 * xlsx-read-pivot.c (xlsx_CT_pivotCacheRecords): Ditto. Also read
413 * ms-chart.c (trendlimits): Bail if we don't have a series. Fixes
416 * ms-excel-read.c (sst_read_string): Handle errors from
417 excel_get_chars. Fixes #751254.
419 2015-06-16 Morten Welinder <terra@gnome.org>
421 * xlsx-read.c (xlsx_file_open): Plug leaks.
423 * ms-excel-write.c (excel_convert_string): Ensure multi-NUL
424 terminator. Fixes #750856.
425 (excel_convert_string): Plug leak.
427 2015-06-15 Morten Welinder <terra@gnome.org>
429 * xlsx-read.c (xlsx_comments_dtd): Fix dtd by not including
430 children in parent scope.
432 2015-06-12 Morten Welinder <terra@gnome.org>
434 * xlsx-read.c (xlsx_collection_begin): Don't reallocation if a
435 collection occurs twice. Fixes #750864.
437 * ms-excel-util.c (xls_header_footer_import): Allocate if needed.
440 2015-06-11 Morten Welinder <terra@gnome.org>
442 * ms-excel-read.c (excel_read_AUTOFILTER): Handle invalid filter
443 condition. Fixes #750811.
444 (excel_read_SST): Fuzzed file fix. #750810.
446 2015-06-01 Morten Welinder <terra@gnome.org>
448 * ms-obj.c (ms_read_TXO): Zero out markup earlier. Fixes #750046.
450 * ms-excel-read.c (excel_fill_bmp_header): Don't read beyond
452 (excel_read_os2bmp): Check that image length makes sense. Fixes
454 (excel_read_FONT): Fix record length check. Fixes #750044.
456 2015-05-30 Jean Brefort <jean.brefort@normalesup.org>
458 * ms-escher.c (ms_escher_read_BSE), (ms_escher_read_Blip),
459 (ms_escher_read_Spgr), (ms_escher_read_ChildAnchor): fixed data access
460 in fuzzed files. [#750042]
462 2015-05-28 Morten Welinder <terra@gnome.org>
464 * ms-excel-read.c (xls_read_range32): Clamp to sane dimensions.
466 2015-05-15 Morten Welinder <terra@gnome.org>
468 * ms-excel-read.c (excel_formula_shared): Catch duplicate shared
469 formulas for the same cell.
471 2015-05-14 Morten Welinder <terra@gnome.org>
473 * ms-excel-read.c (excel_read_FILEPASS): Constify.
475 * md5.c (md5_read_ctx): Don't require aligned memory.
477 2015-05-13 Morten Welinder <terra@gnome.org>
479 * ms-excel-read.c (excel_get_text_fixme): Eliminate.
481 2015-05-12 Morten Welinder <terra@gnome.org>
483 * ms-excel-read.c (excel_read_DV): Stop using
484 excel_get_text_fixme. Fixes #749270.
486 * ms-excel-write.c (extract_txomarkup): Handle missing text.
488 2015-05-11 Morten Welinder <terra@gnome.org>
490 * ms-excel-util.c (xls_header_footer_import): Handle terminating
493 * xls-read-pivot.c (xls_read_pivot_cache_values): Set the right
494 size on error. Fixes #749234.
496 2015-05-10 Morten Welinder <terra@gnome.org>
498 * ms-excel-read.c (excel_read_CONDFMT): Plug leaks.
500 * ms-obj.c (ms_read_TXO): Fix maxlen calculation for UTF-16.
502 * ms-chart.c (chart_write_MARKERFORMAT): Shape map was missing an
505 * xlsx-read-drawing.c (xlsx_data_label_pos): Terminate enum list.
506 (xlsx_ser_labels_pos): Ditto.
507 (xlsx_ser_trendline_type): Ditto.
508 (xlsx_axis_mark): Ditto.
509 (xslx_chart_tick_label_pos): Ditto.
510 (xlsx_scatter_style): Ditto.
512 2015-05-09 Morten Welinder <terra@gnome.org>
514 * xlsx-read-drawing.c (xlsx_read_chart): Handle missing series.
516 (xlsx_read_chart): Free left-over styles.
518 * ms-excel-read.c (excel_read_NAME): Take record length into
521 2015-05-09 Jean Brefort <jean.brefort@normalesup.org>
523 * xlsx-write.c (xlsx_write_font): fix out of bounds read. [#749121]
525 2015-05-08 Morten Welinder <terra@gnome.org>
527 * xlsx-write-drawing.c (xlsx_write_series_dim): GogSeriesDesc does
528 not have a dimension -1, so don't access it.
530 2015-05-07 Morten Welinder <terra@gnome.org>
532 * ms-excel-write.c (blipinf_new): Handle NULL image. Fixes
535 2015-05-06 Morten Welinder <terra@gnome.org>
537 * xlsx-read.c (xlsx_file_open): Plug leaks related to fuzzed
538 files. Fixes #749030.
540 2015-05-04 Morten Welinder <terra@gnome.org>
542 * xlsx-read-drawing.c (xlsx_axis_custom_unit): Allow negative
545 2015-05-04 Jean Brefort <jean.brefort@normalesup.org>
547 * xlsx-read-drawing.c (xlsx_axis_custom_unit): read custom scaling
549 * xlsx-write-drawing.c (xlsx_write_axis): write it back. [#748295]
551 2015-04-28 Morten Welinder <terra@gnome.org>
553 * ms-excel-read.c (sst_read_string): Prevent string overrun.
556 2015-04-26 Morten Welinder <terra@gnome.org>
558 * xlsx-write.c (xlsx_shared_string): Retry hash lookup when we
560 (xlsx_write_cells): Handle string values with formats other than
561 markup. Fixes #748477.
563 2015-04-24 Morten Welinder <terra@gnome.org>
565 * xlsx-write-drawing.c (xlsx_write_go_style_full): Export
568 2015-04-23 Morten Welinder <terra@gnome.org>
570 * xlsx-read.c: simplify parsing and fix attribute namespace
573 2015-04-21 Morten Welinder <terra@gnome.org>
575 * xlsx-read-drawing.c (xlsx_chart_ring_hole): read hole size.
577 2015-04-17 Jean Brefort <jean.brefort@normalesup.org>
579 * xlsx-read-drawing.c (xlsx_chart_layout_manual): fix plot area manual
580 layout import. [#748016]
582 2015-04-16 Morten Welinder <terra@gnome.org>
586 2015-04-16 Morten Welinder <terra@gnome.org>
588 * xlsx-write.c (xlsx_write_comments): Write comments in id order
589 since we refer to them by their implied id based on the order.
591 2015-04-15 Morten Welinder <terra@gnome.org>
593 * xlsx-write.c (xlsx_write_comments): Write comment authors in
596 * ms-excel-util.c (xls_collect_validations): Rename from
597 excel_collect_validations and move from ms-excel-write.c.
600 * xlsx-write.c (xlsx_write_validations): Impose an ordering of
603 2015-04-13 Morten Welinder <terra@gnome.org>
605 * xlsx-read-drawing.c (xlsx_chart_pie_angle): Read firstSliceAng.
607 * xlsx-read.c (xlsx_ext_tabtextcolor): New function for round trip
610 * xlsx-write-drawing.c (xlsx_write_one_plot): Move c:holeSize to
611 where the schema says it should be.
613 2015-04-11 Morten Welinder <terra@gnome.org>
615 * ms-excel-read.c (excel_read_FORMULA): Only print recalc tag in
618 * xlsx-read-color.c (xlsx_draw_color_gamma): Implement.
620 * xlsx-write.c (xlsx_write_workbook): Plug pivot leak.
622 2015-04-10 Morten Welinder <terra@gnome.org>
624 * ms-excel-util.c (xls_collect_hlinks): Rename from
625 excel_collect_hlinks. Move from-ms-excel-write.c. Plug leak.
627 * xlsx-write-docprops.c (xlsx_map_to_date_core): Plug leaks.
629 2015-04-06 Morten Welinder <terra@gnome.org>
631 * xlsx-write-drawing.c (xlsx_write_one_plot): Always write series'
634 2015-04-05 Morten Welinder <terra@gnome.org>
636 * xlsx-read-drawing.c (xlsx_chart_add_plot): Add backplane here.
637 (xlsx_plot_area): Not here, but push a dummy object.
639 2015-04-04 Morten Welinder <terra@gnome.org>
641 * xlsx-read-drawing.c (xlsx_plot_area_end): Get rid of the
642 Backplane we tentatively added.
644 2015-03-31 Morten Welinder <terra@gnome.org>
646 * xlsx-read-color.c: New file extracted from xlsx-read-drawing.c
648 (xlsx_draw_color_hsl_channel): Implement.
650 * xlsx-read.c (theme): Apply colour modifications.
652 2015-03-30 Morten Welinder <terra@gnome.org>
654 * xlsx-read-drawing.c (xlsx_draw_color_rgba_channel): Rename from
655 xlsx_draw_color_alpha. Handle all four channels.
656 (xlsx_draw_color_hsl_channel): Hook up hue-sat-lum modification.
657 (xlsx_draw_color_scrgb): Properly parse <scrgbClr>.
658 (xlsx_chart_drawing_dtd): more grammar.
660 2015-03-30 Jean Brefort <jean.brefort@normalesup.org>
662 * ms-chart.c (ms_excel_chart_read): support absolute sheet object anchoring.
663 * ms-escher.c (ms_escher_clientanchor): ditto.
664 * ms-excel-read.c (ms_sheet_obj_anchor_to_pos),
665 (ms_sheet_realize_obj): ditto.
666 * ms-excel-write.c (excel_write_autofilter_objs),
667 (excel_write_other_v8): ditto.
668 * xlsx-read-drawing.c (xlsx_draw_anchor_start),
669 (xlsx_drawing_twoCellAnchor_end), (xlsx_drawing_oneCellAnchor_end),
670 (xlsx_drawing_absoluteAnchor_end), (xlsx_drawing_anchor_pos),
671 (xlsx_vml_client_data_end): ditto.
672 * xlsx-read.c: ditto.
673 * xlsx-write-drawing.c (xlsx_write_drawing_objects): ditto.
675 2015-03-28 Morten Welinder <terra@gnome.org>
677 * xlsx-read-drawing.c (xlsx_axis_crossax): Improve parsing. Take
678 default values of many enum attributes into account.
679 (xlsx_draw_color_alpha): Fix clamping.
681 2015-03-23 Morten Welinder <terra@gnome.org>
683 * xlsx-write-drawing.c (xlsx_write_chart_text): Move overlay
685 (xlsx_write_go_style_full): Fix noFill/solidFill writing.
687 2015-03-16 Morten Welinder <terra@gnome.org>
689 * xlsx-write-drawing.c (xlsx_write_go_style_full): Ensure that XL
690 doesn't see lines where none are wanted.
692 2015-03-13 Morten Welinder <terra@gnome.org>
694 * xlsx-read-drawing.c (xlsx_drawing_twoCellAnchor_end): Only set
695 style if the object has style. SheetObjectImage does not.
697 * xlsx-read.c (xlsx_ext_begin): Ignore unknown stuff inside.
699 2015-03-09 Morten Welinder <terra@gnome.org>
701 * xlsx-read-drawing.c (cb_axis_set_position): Set position of
702 present axis, not of crossed axis. The latter is more complicated
703 and breaks down with multiple axes.
705 2015-03-08 Morten Welinder <terra@gnome.org>
707 * xlsx-read-drawing.c (xlsx_axis_cleanup): Perform axis-renaming
708 as the last step in cleanup.
710 * xlsx-write-drawing.c (xlsx_write_one_plot): Don't write axes
711 here; return a list of needed axes instead.
712 (xlsx_write_plots): Write the union of needed axes after all the
715 2015-03-07 Morten Welinder <terra@gnome.org>
717 * xlsx-write-drawing.c (xlsx_write_plots): Write all plots, not
720 * xlsx-write.c: Use new go_xml_out_add_double.
722 * xlsx-write-drawing.c: Use new go_xml_out_add_double.
724 * xlsx-write-docprops.c (xlsx_write_docprops_app): Use string for
725 version, nont floating point.
727 * xlsx-write-drawing.c (xlsx_write_chart_float): Drop def_val
730 2015-03-04 Morten Welinder <terra@gnome.org>
732 * xlsx-read-drawing.c (xlsx_create_axis_object): Handle log axis.
733 * xlsx-write-drawing.c (xlsx_write_axis): Ditto.
735 2015-03-04 Morten Welinder <terra@gnome.org>
739 2015-03-04 Morten Welinder <terra@gnome.org>
741 * xlsx-write-drawing.c (xlsx_write_drawing_objects): Fix
742 relationship. Write a prstGeom for the image.
744 2015-03-01 Morten Welinder <terra@gnome.org>
746 * ms-excel-read.c (ms_sheet_realize_obj): Don't let the sheet
747 object take over the memory. We might need it later.
749 2015-02-25 Morten Welinder <terra@gnome.org>
751 * xlsx-write.c (xlsx_write_sheet): Also write combos and lists.
752 * xlsx-write-drawing.c (xlsx_write_legacy_object): Ditto.
754 2015-02-24 Morten Welinder <terra@gnome.org>
756 * xlsx-read.c (xlsx_parse_rel_by_id): Debug code.
758 * xlsx-read-drawing.c (xlsx_vml_drop_style): Don't create objects
759 here -- that'll just leak.
761 * xlsx-write-drawing.c (xlsx_write_axis): Pick the crossing axis
762 within the relevant plot.
764 * xlsx-read-drawing.c (cb_axis_set_position): Don't use
765 g_return_if_fail for data validation.
767 * xlsx-write-drawing.c (xlsx_write_one_plot): Write only the axes
770 * xlsx-read-drawing.c (xlsx_create_axis_object): Move setting of
773 2015-02-23 Morten Welinder <terra@gnome.org>
775 * xlsx-read-drawing.c (xlsx_chart_dtd): Handle gostyle extension
778 * xlsx-write-drawing.c (xlsx_write_chart): Add gnmx namespace as
781 * xlsx-read-drawing.c (xlsx_vml_adj): Read scroll bar value too.
783 2015-02-20 Morten Welinder <terra@gnome.org>
785 * xlsx-read-drawing.c (xlsx_vml_client_data_end): Better handling
786 of anchor: don't overrun col/row limit; use point, not pixels;
787 take invible cols/rows into account.
789 * xlsx-write-drawing.c (xlsx_write_legacy_drawing_objects): Define
790 and reference shapetype.
791 (xlsx_write_legacy_drawing_objects): Export label too.
793 2015-02-19 Morten Welinder <terra@gnome.org>
795 * xlsx-write-drawing.c (xlsx_write_go_style_full): Write gradient
796 position as "50%", not "50000". Excel understands either, but the
797 schemas wants the first. Note, that online schemas seem to differ
800 * xlsx-read.c (attr_percent): New function to read either syntax.
802 2015-02-17 Morten Welinder <terra@gnome.org>
804 * ms-excel-write.c (excel_collect_validations): Plug leak.
805 (excel_write_DV): Don't free ranges here.
807 * xlsx-write-drawing.c (xlsx_go_style_has_font): Simplify now that
808 we have a sane auto_font.
810 2015-02-16 Morten Welinder <terra@gnome.org>
812 * ms-chart.c (chart_write_axis): Only output font record when it's
814 (BC_R(fontx)): When we see a font record, it's not auto_font.
816 * xlsx-read-drawing.c (xlsx_draw_text_run_props): Fix reading of
817 fonts, notably of the auto-font flag. Part of #744632.
819 * xlsx-write-drawing.c (xlsx_write_one_plot): Plug leak.
820 (xlsx_write_plot_1_5_type): Plug leak.
822 2015-02-14 Morten Welinder <terra@gnome.org>
824 * xlsx-write-drawing.c (xlsx_write_go_style_full): When needed
825 store our pattern in extension structure. MS docs say other
826 consumers should ignore, but let's see.
827 (xlsx_write_go_style_full): If translation loses information,
828 store complete arrow details in extension.
830 2015-02-13 Morten Welinder <terra@gnome.org>
832 * xlsx-write-drawing.c (xlsx_write_go_style_full): When we must
833 use fill in the line style, use a:noFill to indicate no line.
834 (xlsx_write_drawing_objects): Fix output of default background.
836 2015-02-12 Morten Welinder <terra@gnome.org>
838 * xlsx-read-drawing.c (xlsx_chart_line_headtail): Improve arrow
839 import with xls_arrow_from_xl.
841 * ms-excel-util.c (xls_arrow_from_xl): New function extracted...
842 * ms-excel-read.c (handle_arrow_head): ...from here.
844 * xlsx-write-drawing.c (xlsx_write_go_style_full): Improve arrow
845 export with xls_arrow_to_xl.
847 * ms-excel-util.c (xls_arrow_to_xl): New function extraced from...
848 * ms-excel-write.c (write_arrow): ...here
850 * xlsx-write.c (xlsx_write_col): Always write column width.
851 Otherwise Excel might see zero.
853 2015-02-10 Morten Welinder <terra@gnome.org>
855 * xlsx-write-drawing.c (xlsx_write_drawing_objects): Save arrow
858 * xlsx-write.c (xlsx2_file_save, xlsx_file_save): Initialize
861 * xlsx-write-docprops.c (xlsx_write_docprops): Plug leak.
863 2015-02-09 Morten Welinder <terra@gnome.org>
865 * xlsx-read-drawing.c (xlsx_chart_line_headtail): First cut at
866 arrow heads. Needs work.
868 2015-02-08 Morten Welinder <terra@gnome.org>
870 * xlsx-write-drawing.c (xlsx_write_drawing_objects): Add leak
873 * xlsx-write.c (xlsx_write_workbook): Plug leaks.
875 2015-02-06 Morten Welinder <terra@gnome.org>
877 * xlsx-write.c (xlsx_write_sheet): Handle sheet widgets.
879 * xlsx-write-drawing.c (xlsx_write_legacy_drawing_objects): First
880 cut at writing sheet widgets.
882 * xlsx-read-drawing.c (xlsx_vml_client_data_start)
883 (xlsx_vml_client_data_end): First attempt at reading scrollbars,
884 radio buttons, checkboxes, buttons, and spin buttons.
885 (xlsx_vml_shape): Reset position so we don't depend on junk.
886 (xlsx_vml_client_data_end): Resolve NaNs in position gracefully.
887 (xlsx_vml_adj): New function to read adjustment details.
889 2015-02-04 Morten Welinder <terra@gnome.org>
893 2015-02-03 Morten Welinder <terra@gnome.org>
895 * xlsx-read-drawing.c (xlsx_chart_line): Default is no markers.
896 (xlsx_chart_line_marker): Set has-markers as requested.
898 * xlsx-write.c (xlsx_write_sheet): Don't complain over sheet
901 * xlsx-write-drawing.c (xlsx_write_go_style_full): Write font
904 * xlsx-read-drawing.c (xlsx_tx_pr): Set the right auto_color flag.
906 2015-02-02 Morten Welinder <terra@gnome.org>
908 * xlsx-read-drawing.c (xlsx_chart_push_obj): Optionally check for leaks.
909 (xlsx_axis_end): Plug leak.
911 * xlsx-write-drawing.c (xlsx_write_axis): Make axis visible.
913 2015-02-01 Morten Welinder <terra@gnome.org>
915 * xlsx-write.c (xlsx_write_comments): We cannot use xml:space in
918 * xlsx-read.c (xlsx_comment_end): Plug leak.
920 2015-01-30 Morten Welinder <terra@gnome.org>
922 * ms-obj.c (ms_obj_read_biff8_obj): Gather orientation.
924 * ms-excel-read.c (ms_sheet_realize_obj): Set orientation.
926 2015-01-28 Morten Welinder <terra@gnome.org>
928 * ms-excel-write.c (excel_write_other_v8): Export sliders as-if
929 they were scrollbars.
931 2015-01-27 Morten Welinder <terra@gnome.org>
933 * xlsx-write-drawing.c (xlsx_write_axis): Fix crossing for
936 2015-01-26 Morten Welinder <terra@gnome.org>
938 * xlsx-write.c (xlsx_write_sheet): Warn about dropped objects.
940 * xlsx-read-drawing.c (xlsx_body_pr): Fix reading angle. In xlsx
941 positive angles are measured clock-wise.
943 * xlsx-write-drawing.c (xlsx_write_go_style_full): Make sure auto
944 markers don't get rotated or flipped.
946 2015-01-23 Morten Welinder <terra@gnome.org>
948 * xlsx-write-drawing.c (xlsx_write_go_style_full): Use rotation to
949 handle marker triangles other than up.
951 * xlsx-read-drawing.c (xlsx_rpr_latin): Read typeface from xlsx charts.
952 (xlsx_sppr_xfrm): Rotate marker shapes.
954 2015-01-23 Morten Welinder <terra@gnome.org>
958 2015-01-21 Morten Welinder <terra@gnome.org>
960 * xlsx-read-drawing.c (xlsx_read_chart): Reset chart position here
961 so we don't accidentally give the first object a (0,0) position.
963 2015-01-21 Morten Welinder <terra@gnome.org>
965 * xlsx-write-drawing.c (xlsx_write_one_plot): varyColor defaults
966 to TRUE, so be sure to output it for line plots etc.
967 (xlsx_write_one_plot): Set smooth for anything but linear
970 2015-01-20 Morten Welinder <terra@gnome.org>
972 * xlsx-write-drawing.c (xlsx_write_one_plot): Initial export of
975 * xlsx-read-drawing.c (xlsx_ser_trendline_type): Initial import of
978 2015-01-19 Morten Welinder <terra@gnome.org>
980 * xlsx-read-drawing.c (xlsx_drawing_twoCellAnchor_end): Fix
982 (xlsx_axis_end): Re-use the id of an automatically generated axis
983 if there is one we can delete that happens to have the right role.
985 * xlsx-write-drawing.c (xlsx_write_one_plot): Use
986 xlsx_plottype_from_type_name for readability.
988 * xlsx-utils.c (xlsx_plottype_from_type_name): New function.
990 2015-01-17 Morten Welinder <terra@gnome.org>
992 * xlsx-write-drawing.c (xlsx_get_axid): New function allowing us
993 to get away from storing truncated pointers as axis ids.
995 * xlsx-read-drawing.c (xlsx_chart_bar_overlap)
996 (xlsx_chart_bar_gap): Fix reading percentages.
997 (xlsx_chart_no_fill): Handle noFill when used to avoid lines
1000 * xlsx-write-drawing.c (xlsx_write_axis): Factor this out from
1001 xlsx_write_one_plot. Write axis label.
1002 (xlsx_write_one_chart): Write chart title.
1004 * xlsx-read-drawing.c (xlsx_plot_area): Keep the backplane in
1007 * xlsx-write-drawing.c (xlsx_write_go_style): Write marker colors.
1009 * xlsx-read-drawing.c (xlsx_chart_solid_fill): Fix reading marker
1012 * xlsx-write-drawing.c (xlsx_write_go_style): Write marker size.
1014 * xlsx-read-drawing.c (xlsx_chart_marker_size): Read marker size.
1016 * xlsx-write.c (xlsx_write_cols): Make sure we include a width for
1017 default-style columns. Otherwise XL will see zero width.
1019 2015-01-16 Morten Welinder <terra@gnome.org>
1021 * xlsx-write-drawing.c (xlsx_write_go_style): Export line style.
1022 (xlsx_write_go_style): Have a first go at exporting marker shapes.
1024 * xlsx-read-drawing.c (xlsx_style_line_start): Also point to the
1025 right auto_color location so we don't end up ignoring the colors
1028 2014-12-16 Morten Welinder <terra@gnome.org>
1030 * xlsx-write-docprops.c (xlsx_meta_write_props_custom_type):
1031 Booleans should be saved as "true" or "false", not "t" and "f".
1032 Excel refuses to understand the latter.
1033 (xlsx_meta_write_props_custom): Don't reuse prop ids. Excel does
1036 * xlsx-utils.c (xlsx_func_hypgeomdist_output_handler): New handler
1039 2014-11-01 Morten Welinder <terra@gnome.org>
1041 * ms-escher.c (ms_escher_get_data): Plug leak.
1043 * ms-excel-read.c (excel_read_MULRK): Catch crazy column numbers
1046 2014-10-30 Morten Welinder <terra@gnome.org>
1048 * ms-excel-read.c (excel_font_get): In case of error, fall back to
1049 font 0 if we have that.
1050 (ms_wb_get_font_markup): Plug leak.
1052 * ms-obj.c (ms_obj_map_forms_obj): Plug leak.
1054 2014-10-28 Morten Welinder <terra@gnome.org>
1056 * ms-chart.c (ms_excel_chart_read): Fix double free.
1058 2014-10-27 Jean Brefort <jean.brefort@normalesup.org>
1060 * xlsx-read-drawing.c (xlsx_axis_format): add some support for axis format.
1061 * xlsx-write-drawing.c (xlsx_write_one_plot): ditto.
1063 2014-10-24 Morten Welinder <terra@gnome.org>
1065 * ms-excel-read.c (excel_get_chars): Plug leak.
1067 * xlsx-read.c (xlsx_file_open): Plug leak.
1069 * xlsx-read-drawing.c (cb_axis_set_position): Plus leak.
1071 2014-09-25 Morten Welinder <terra@gnome.org>
1075 2014-09-20 Morten Welinder <terra@gnome.org>
1077 * xlsx-write.c (xlsx_write_cells): xml:space evidently isn't
1080 2014-09-18 Jean Brefort <jean.brefort@normalesup.org>
1082 * ms-chart.c (chart_write_axis): save axis format. [#736656]
1083 * ms-excel-write.c (set_ifmt), (excel_write_add_object_format):
1086 2014-09-10 Morten Welinder <terra@gnome.org>
1088 * xlsx-read.c: Factor out rich text nodes into a macro. This
1089 replaces having three copies, more or less up to date.
1091 2014-09-08 Morten Welinder <terra@gnome.org>
1093 * xlsx-read.c (xlsx_cell_inline_begin, xlsx_cell_inline_end): New
1094 functions to deal with non-shared rich text strings.
1096 * xlsx-write.c (xlsx_write_cells): Write string values that are
1097 not formula results and not shared using the proper "inlineStr"
1098 type. Neither Excel nor LO really cares, but someone else does,
1099 see bug 736202. As a side effect, this will improve the rich-text
1102 2014-07-27 Morten Welinder <terra@gnome.org>
1104 * ms-excel-write.c (excel_write_DIMENSION): Fix off-by-one, see
1107 2014-06-09 Morten Welinder <terra@gnome.org>
1111 2014-06-05 Morten Welinder <terra@gnome.org>
1113 * xlsx-write.c (xlsx_write_rich_text): Fix color attribute. Only
1114 write xml:space attribute when text has spaces.
1115 (xlsx_write_rich_text): Only write xml:space in contexts where the
1116 schema allow it. The shared strings table does not allow it.
1118 2014-06-03 Morten Welinder <terra@gnome.org>
1120 * xlsx-write.c (xlsx_write_rich_text): Add two missing "break;".
1121 Write only attributes that are present. Handle superscript/subscript.
1122 (xlsx_write_shared_strings): Handle rich text.
1123 (xlsx_write_cells): Don't actually store a markup format as a cell
1126 * xlsx-read.c (xlsx_run_color): Handle indexed colours.
1127 (xlsx_run_weight): Fix handling of bold.
1128 (xlsx_run_underline): Fix handling of underline.
1129 (xlsx_run_vertalign): New function for superscript/subscript.
1130 (add_attr): New function to ensure start_index and end_index get
1133 2014-06-02 Morten Welinder <terra@gnome.org>
1135 * xlsx-read.c (handle_delayed_names): Handle empty string for
1136 expression as #REF for the benefit of LO.
1138 2014-05-31 Morten Welinder <terra@gnome.org>
1140 * xlsx-write.c (xlsx_write_cells): Support value formats. Fixes
1142 (xlsx_write_workbook): Make styles hash use proper hash and
1145 2014-05-23 Morten Welinder <terra@gnome.org>
1149 2014-04-30 Morten Welinder <terra@gnome.org>
1153 2014-04-24 Morten Welinder <terra@gnome.org>
1155 * xlsx-read-drawing.c (xlsx_chart_title_end): Fix manual
1156 positioning of chart titles.
1157 (xlsx_chart_layout_mode): Read as enum, not bool. (We still
1160 2014-04-20 Morten Welinder <terra@gnome.org>
1162 * xlsx-read-drawing.c (xlsx_chart_solid_fill): When we see a
1163 GO_STYLE_FONT marker, solidFill refers to font colour.
1164 (xlsx_chart_text_start): Set sp_type flag GO_STYLE_FONT.
1165 (xlsx_chart_text): Clear flag.
1166 (xlsx_style_line_start): Handle line width.
1168 2014-04-19 Morten Welinder <terra@gnome.org>
1170 * xlsx-read-drawing.c: Constify simple_enum tables and make sure
1171 to check the return value.
1173 2014-04-19 Morten Welinder <terra@gnome.org>
1175 * xlsx-read-drawing.c (xlsx_drawing_twoCellAnchor_end): Fix
1176 reading object positions.
1178 2014-04-18 Andreas J. Guelzow <aguelzow@pyrshep.ca>
1180 * xlsx-write-drawing.c (xlsx_pts_to_emu): new
1181 (xlsx_write_object_anchor): add offset arguments
1182 (xlsx_write_objects): pass offsets to xlsx_write_object_anchor
1184 2014-04-17 Morten Welinder <terra@gnome.org>
1186 * xlsx-read-drawing.c (xlsx_chart_gridlines): Handle minorgrid
1188 (xlsx_axis_info_free): Plug leak.
1190 2014-04-16 Jean Brefort <jean.brefort@normalesup.org>
1192 * ms-chart.c (valuerange): ignore the cross value when auto crossing.
1194 2014-04-14 Morten Welinder <terra@gnome.org>
1196 * xlsx-read.c (xlsx_ext_begin): Don't complain over "ext".
1198 2014-04-13 Morten Welinder <terra@gnome.org>
1202 2014-04-12 Morten Welinder <terra@gnome.org>
1204 * xlsx-read-drawing.c: Add more xml grammer.
1206 2014-03-21 Morten Welinder <terra@gnome.org>
1208 * ms-excel-write.c (txomarkup_new): Take also string argument.
1209 Don't delete last run without attributes unless it is beyond the
1212 * ms-excel-read.c (ms_wb_get_font_markup): Defined a font's pango
1213 attributes in terms of how it differs from font 0.
1215 * xlsx-write.c (xlsx_find_font): Use new gnm_style_equal_elem.
1216 (xlsx_find_border): Ditto.
1217 (xlsx_find_fill): Ditto.
1219 * xlsx-utils.c (xlsx_output_string, xlsx_string_parser): New
1220 function. Fixes #726824.
1222 * xlsx-read.c (xlsx_cond_fmt_rule_begin): Match
1223 xlsx_write_cond_rule changes.
1225 * xlsx-write.c (xlsx_write_cond_rule): Write alternate formulas
1226 even for "Starts with" and friends.
1228 * xlsx-read.c (xlsx_cond_fmt_formula_end): Don't throw critical if
1229 we fail to parse the expression.
1231 2014-03-20 Morten Welinder <terra@gnome.org>
1233 * xlsx-write.c (xlsx_write_background): Be careful about fields
1234 ordering. Excel cares.
1235 (xlsx_write_cond_rule): Fix misunderstanding about type names.
1237 2014-03-19 Morten Welinder <terra@gnome.org>
1239 * xlsx-write.c (xlsx_find_predefined_fill): Take care not to drop
1240 a background colour even if we have a "none" fill.
1242 * xlsx-read.c (xlsx_cond_fmt_rule_end): Reverse the
1243 alternate-expression uses for certain conditions.
1245 * xlsx-write.c (xlsx_write_dxfs): New function.
1247 * xlsx-read.c (xlsx_CT_CustomFilter): Avoid mixing enums.
1248 (xlsx_cond_fmt_formula_end): Parse expressions in the right parse
1250 (xlsx_cond_fmt_rule_begin): Don't complain over type "expression".
1251 (xlsx_dxf_numfmt): New function to read conditional number
1254 2014-03-18 Morten Welinder <terra@gnome.org>
1258 2014-03-17 Morten Welinder <terra@gnome.org>
1260 * ms-excel-write.c (cb_write_condition): Fix handling of font
1263 2014-03-16 Andreas J. Guelzow <aguelzow@pyrshep.ca>
1265 * xlsx-read.c (xlsx_styles_dtd): add stubs
1267 2014-03-16 Morten Welinder <terra@gnome.org>
1269 * ms-excel-util.c (xls_header_footer_import): Treat a NULL string
1270 as an empty string. Redhat #1076912.
1272 2014-03-15 Morten Welinder <terra@gnome.org>
1274 * ms-excel-write.c (cb_write_condition): Store superscript and
1275 subscript in the right place.
1277 * ms-excel-read.c (excel_read_CF): Improve record length checks.
1279 2014-03-12 Morten Welinder <terra@gnome.org>
1281 * ms-excel-write.c (cb_write_condition): Use
1282 gnm_style_cond_get_alternate_expr for conditions not available in
1285 * ms-excel-read.c (excel_read_CF): Undo the alternate expression
1288 2014-03-10 Morten Welinder <terra@gnome.org>
1290 * xlsx-read.c (xlsx_CT_vertAlign): Read super/subscript.
1291 (xlsx_CT_CustomFilter): Preliminary reading of auto filters.
1293 * xlsx-write.c (xlsx_write_fonts): Save super/sub attribute.
1295 2014-03-05 Morten Welinder <terra@gnome.org>
1297 * ms-formula-write.c (excel_write_prep_expr): Rewrite in terms of
1300 2014-03-03 Morten Welinder <terra@gnome.org>
1304 2014-03-02 Andreas J. Guelzow <aguelzow@pyrshep.ca>
1306 * xlsx-write.c (xlsx_write_autofilters): write blank filter info
1308 2014-03-01 Morten Welinder <terra@gnome.org>
1310 * xlsx-write.c (xlsx_write_autofilters): First stab at writing
1311 most auto-filter selections.
1313 * ms-excel-read.c (excel_sheet_insert_val): Don't set value
1314 format. We already the full style for the cell in
1315 excel_set_xf. Fixes #725453.
1317 2014-02-28 Morten Welinder <terra@gnome.org>
1319 * crypt-md4.c: Add missing include. (From Gentoo.)
1321 2014-02-26 Morten Welinder <terra@gnome.org>
1323 * ms-biff.c (ms_biff_query_next): Do auto-continue for
1324 BIFF_MERGECELLS. We don't generate that ourselves, but it's
1327 * boot.c (excel_save): Make sure to save macros in the
1328 _VBA_PROJECT_CUR directory that we loaded them from.
1329 (excel_save): Restore \001Ole member too.
1330 (excel_save): Save the entire _VBA_PROJECT_CUR directory.
1332 2014-02-25 Morten Welinder <terra@gnome.org>
1334 * ms-container.c (ms_container_read_markup): Return NULL when no
1335 attributes are present. idx==0 is the normal font.
1337 * ms-excel-write.c (excel_write_string_in_chunks): BIFF_TXO uses
1338 BIFF_CONTINUE records in a non-standard way.
1340 * ms-biff.c (ms_biff_query_dump, ms_biff_put_len_next)
1341 (ms_biff_put_var_write): Write symbolic opcode name too.
1343 * xlsx-read.c (xlsx_comment_start): Use cell_comment_set_pos to
1344 the anchor gets set up in a standard way.
1346 * ms-biff.c (ms_biff_put_new): No need for bp->buf anymore.
1348 2014-02-24 Morten Welinder <terra@gnome.org>
1350 * xlsx-write.c (xlsx_write_cells): Export row height when it is
1351 not default, even if it is not user-set.
1352 (xlsx_write_style_write_alignment): Fix rotation export for
1355 2014-02-23 Morten Welinder <terra@gnome.org>
1357 * ms-excel-util.c (xls_header_footer_export): New function
1359 * xlsx-write.c (xlsx_write_print_info_hf): ...here.
1361 * ms-excel-util.c (xls_header_footer_import): New function
1363 * xlsx-read.c (xlsx_CT_header_footer): ...here.
1365 * ms-excel-write.c (excel_write_HEADER_FOOTER): Properly translate
1368 * xlsx-read.c (xlsx_CT_header_footer): Read headerfooter info.
1370 * xlsx-write.c (xlsx_write_print_info): headerFooter before page
1371 breaks. Evidently Excel cares.
1373 2014-02-22 Morten Welinder <terra@gnome.org>
1375 * ms-biff.c (ms_biff_query_next): Handle BIFF_CONTINUE for a whole
1376 bunch of record types containing strings or formulae.
1378 * ms-excel-read.c (excel_read_IMDATA): No need to handle
1381 * ms-formula-read.c (undo_save_hacks): Undo the
1382 long-string-constant hack in write_string.
1384 * ms-excel-write.c (excel_convert_string): New function.
1385 (excel_write_comments_biff7): Avoid infinite loop when a comment
1386 contains characters that cannot be represented in the codepage.
1387 (excel_write_string): Use excel_convert_string.
1389 2014-02-21 Morten Welinder <terra@gnome.org>
1391 * ms-excel-read.c (excel_read_FORMULA): Try to handle missing
1394 * ms-biff.c (ms_biff_query_next): Handle CONTINUE record for
1395 BIFF_FORMULA_v0, BIFF_FORMULA_v2, BIFF_STRING_v0, adn
1398 * ms-excel-write.c (excel_write_string): Improve handling of
1401 * ms-formula-write.c (write_string): Split long strings into 255
1402 character chunks: ("s1"&"s2"&...)
1404 2014-02-20 Morten Welinder <terra@gnome.org>
1406 * xlsx-write.c (xlsx_write_print_info): First stab at exporting
1407 headers and footers.
1409 * ms-excel-write.c (excel_write_XF): Fix reversed diagonal border
1412 2014-02-19 Morten Welinder <terra@gnome.org>
1414 * ms-excel-write.c (rotation_to_excel_v7): Fix rotation at 270
1417 * xlsx-write.c (xlsx_write_fonts): Handle underline.
1419 * ms-excel-write.c (excel_write_HEADER_FOOTER): Use one-byte
1420 strings for BIFF7 and earlier. That matches the way we read
1423 2014-02-17 Morten Welinder <terra@gnome.org>
1425 * xlsx-utils.c (xlsx_conventions_new): use same
1426 decimal_digits as in gnumeric export.
1428 * ms-biff.c (ms_biff_query_next): Handle continuation records
1429 here for certain opcodes. Fixes part of #724399.
1431 2014-02-16 Morten Welinder <terra@gnome.org>
1435 2014-02-16 Morten Welinder <terra@gnome.org>
1437 * ms-excel-write.c (excel_write_string): Fix hand. #724399.
1439 2014-02-11 Morten Welinder <terra@gnome.org>
1443 2014-01-11 Andreas J. Guelzow <aguelzow@pyrshep.ca>
1445 * xlsx-read.c (xlsx_theme_dtd): add more stubs
1447 2013-12-21 Morten Welinder <terra@gnome.org>
1449 * ms-excel-read.c (excel_read_XF): Fix length check. Fixes
1452 * ms-obj.c (read_pre_biff8_read_name_and_fmla): Fix and improve
1453 length check. Fixes #720358 and #719349.
1455 2013-12-13 Morten Welinder <terra@gnome.org>
1457 * ms-excel-read.c (excel_read_WINDOW2): Don't crash of truncated
1458 record. Fixes #720426.
1460 * xlsx-read.c (xlsx_cell_end): Make sure state->texpr ends up
1461 NULL. Fixes #720425.
1463 2013-11-28 Morten Welinder <terra@gnome.org>
1467 2013-11-26 Jean Brefort <jean.brefort@normalesup.org>
1469 * ms-excel-write.c (excel_write_string): fix large strings export. [715110#]
1470 (excel_write_ClientTextbox): fix test.
1472 2013-11-25 Morten Welinder <terra@gnome.org>
1474 * ms-excel-write.c (excel_write_string): Fix buffer allocation.
1476 2013-11-22 Morten Welinder <terra@gnome.org>
1478 * ms-excel-write.c (excel_write_RSTRING): Truncate markup at text
1479 length. Fixes #715003.
1481 2013-11-21 Morten Welinder <terra@gnome.org>
1483 * ms-obj.c (read_pre_biff8_read_text): Fix fuzzed file problem
1486 * xlsx-read.c (xlsx_file_open): A severely malformed document can
1487 leave an expression in the state. Free that. Fixes #712788.
1489 2013-11-20 Morten Welinder <terra@gnome.org>
1491 * ms-escher.c (ms_escher_get_data): Fix fuzzed file crash. Fixes
1494 2013-11-19 Morten Welinder <terra@gnome.org>
1496 * ms-excel-read.c (excel_read_CF): Check record size. Fixes
1499 * xlsx-read-drawing.c (xlsx_style_line_end): Clear the current
1500 color. Fixes #712700.
1502 * ms-excel-read.c (excel_read_MERGECELLS): Fix FMR [#712685]
1504 2013-11-11 Morten Welinder <terra@gnome.org>
1506 * ms-excel-write.c (excel_write_ClientTextbox): Fix fuzzed file
1509 2013-10-07 Morten Welinder <terra@gnome.org>
1513 2013-09-13 Morten Welinder <terra@gnome.org>
1515 * ms-excel-read.c (ms_wb_parse_expr): Clear the whole thing,
1516 notably the v7 part. Fixes #707875.
1518 2013-09-01 Morten Welinder <terra@gnome.org>
1522 2013-08-27 Morten Welinder <terra@gnome.org>
1526 2013-08-20 Morten Welinder <terra@gnome.org>
1528 * ms-excel-write.c (excel_write_prep_validations): Handle range
1529 with no validation (and therefore with an input message).
1531 2013-08-19 Morten Welinder <terra@gnome.org>
1535 2013-08-15 Morten Welinder <terra@gnome.org>
1537 * ms-excel-write.c (excel_write_autofilter_names): Fix last fix.
1538 Sometimes we already have _FilterDatabase as a name. If so,
1539 brutally use it. Fixes #705947.
1541 2013-08-15 Andreas J. Guelzow <aguelzow@pyrshep.ca>
1543 * ms-chart.c (BC_R(shtprops)): check whether we have enough data
1545 2013-08-14 Morten Welinder <terra@gnome.org>
1547 * ms-container.c (ms_container_read_markup): Add/reinstate bounds
1548 check. Fixes #705866.
1550 2013-08-05 Andreas J. Guelzow <aguelzow@pyrshep.ca>
1552 * excel-xml-read.c (xl_xml_cell_start): remember how many cols
1554 (xl_xml_cell_end): correctly calc new cell position
1555 (xl_xml_sheet_start): use maximum sheet size
1556 (excel_xml_dtd): add some elements
1558 2013-08-03 Andreas J. Guelzow <aguelzow@pyrshep.ca>
1560 * xlsx-read-drawing.c (xlsx_chart_dtd): add more elements
1562 2013-08-03 Andreas J. Guelzow <aguelzow@pyrshep.ca>
1564 * ms-excel-read.c (excel_read_LABEL): check for NULL fd
1566 2013-08-02 Jean Brefort <jean.brefort@normalesup.org>
1568 * ms-chart.c (axislineformat): fix crah on fuzzed xls reading [#705353],
1569 (chart_write_AI): write all formulas to .xls, even if not supported by
1571 (chart_write_plot): export bubble size scale. [see #705311]
1573 2013-08-01 Morten Welinder <terra@gnome.org>
1575 * ms-excel-read.c (excel_read_MULRK): Fix sanity check. Fixes
1578 2013-07-29 Andreas J. Guelzow <aguelzow@pyrshep.ca>
1580 * xlsx-write.c (xlsx_write_borders): check for NULL borders
1582 2013-07-26 Morten Welinder <terra@gnome.org>
1584 * xlsx-read.c (xlsx_file_open): Release state.val, just in case.
1586 2013-07-21 Andreas J. Guelzow <aguelzow@pyrshep.ca>
1588 * xlsx-write-pivot.c (xlsx_write_pivot_val): check for NULL
1590 (xlsx_write_pivot_cache_records): ditto
1592 2013-07-10 Morten Welinder <terra@gnome.org>
1596 2013-07-09 Andreas J. Guelzow <aguelzow@pyrshep.ca>
1598 * ms-excel-read.c (excel_read_HLINK): check for NULL data
1600 2013-07-09 Morten Welinder <terra@gnome.org>
1602 * ms-formula-read.c (getRefV8): Take GnmSheetSize argument.
1603 Verify row against that. All callers changed. Fixes #703306.
1605 2013-07-02 Andreas J. Guelzow <aguelzow@pyrshep.ca>
1607 * xlsx-read.c (xlsx_sheet_dtd): attach protectedRange to the
1610 2013-07-02 Morten Welinder <terra@gnome.org>
1612 * ms-excel-write.c (excel_write_autofilter_names): Use
1613 expr_name_unref, not expr_name_remove since the fake name is not
1614 in any scope. Fixes #703308.
1616 2013-06-30 Morten Welinder <terra@gnome.org>
1618 * ms-excel-read.c (excel_read_BOUNDSHEET): Check record length.
1621 2013-06-27 Andreas J. Guelzow <aguelzow@pyrshep.ca>
1623 * xlsx-read-drawing.c (xlsx_axis_crosses_at): check for null
1625 (xlsx_axis_crosses): check for null axis->info
1627 2013-06-27 Andreas J. Guelzow <aguelzow@pyrshep.ca>
1629 * ms-formula-read.c (ms-formula-read.c): add another
1632 2013-06-27 Andreas J. Guelzow <aguelzow@pyrshep.ca>
1634 * xlsx-utils.c (xlsx_func_betadist_handler): delete again
1635 (xlsx_func_dist_handler): remove density scaling argument,
1637 (xlsx_conventions_new): disconnect xlsx_func_betadist_handler
1639 2013-06-27 Andreas J. Guelzow <aguelzow@pyrshep.ca>
1641 * xlsx-utils.c (xlsx_func_betadist_handler): new
1642 (xlsx_func_dist_handler): add density scaling argument, change
1644 (xlsx_conventions_new): connect xlsx_func_betadist_handler
1646 2013-06-27 Andreas J. Guelzow <aguelzow@pyrshep.ca>
1648 * xlsx-utils.c (xlsx_func_lognormdist_handler): new
1649 (xlsx_func_negbinomdist_handler): new
1650 (xlsx_conventions_new): connect the above two
1652 2013-06-26 Andreas J. Guelzow <aguelzow@pyrshep.ca>
1654 * xlsx-utils.c (xlsx_func_binominv_handler): use GnmExprList
1656 (xlsx_func_dist_handler): new
1657 (xlsx_func_chisqdist_handler): new
1658 (xlsx_func_fdist_handler): new
1659 (xlsx_conventions_new): connect the last two
1661 2013-06-26 Andreas J. Guelzow <aguelzow@pyrshep.ca>
1663 * xlsx-utils.c (xlsx_func_erf_output_handler): new
1664 (xlsx_conventions_new): connect the above and add erf.precise
1667 2013-06-26 Andreas J. Guelzow <aguelzow@pyrshep.ca>
1669 * xlsx-utils.c (xlsx_conventions_new): add MODE.SNGL
1672 2013-06-26 Andreas J. Guelzow <aguelzow@pyrshep.ca>
1674 * xlsx-utils.c (xlsx_func_betainv_output_handler): new
1675 (xlsx_func_gammainv_output_handler): new
1676 (xlsx_func_lognorminv_output_handler): new
1677 (xlsx_func_tinv_output_handler): new
1678 (xlsx_conventions_new): connect the above
1680 2013-06-25 Andreas J. Guelzow <aguelzow@pyrshep.ca>
1682 * xlsx-utils.c (xlsx_write_r_q_func): add argument and change
1683 all callers to use ....RT function if available
1684 (xlsx_func_r_q_output_handler): add argument and change all
1687 2013-06-25 Andreas J. Guelzow <aguelzow@pyrshep.ca>
1689 * xlsx-utils.c (xlsx_write_r_q_func): add argument and change
1691 (xlsx_func_r_q_output_handler): add argument and change all
1693 (xlsx_func_binominv_output_handler): use xlsx_func_r_q_output_handler
1695 2013-06-25 Morten Welinder <terra@gnome.org>
1699 2013-06-25 Andreas J. Guelzow <aguelzow@pyrshep.ca>
1701 * xlsx-utils.c (xlsx_func_r_q_output_handler): use variable
1702 rather than hard code (wrong) constant
1704 2013-06-25 Andreas J. Guelzow <aguelzow@pyrshep.ca>
1706 * xlsx-utils.c (xlsx_write_r_q_func): new
1707 (xlsx_func_r_q_output_handler): new
1708 (xlsx_func_norminv_output_handler): new
1709 (xlsx_func_chisqinv_output_handler): use
1710 xlsx_func_r_q_output_handler
1711 (xlsx_func_finv_output_handler): ditto
1712 (xlsx_conventions_new): connect
1713 xlsx_func_norminv_output_handler
1715 2013-06-24 Andreas J. Guelzow <aguelzow@pyrshep.ca>
1717 * xlsx-utils.c (xlsx_func_binominv_output_handler):
1718 simplify the expression if some of the flags are constant
1720 2013-06-24 Andreas J. Guelzow <aguelzow@pyrshep.ca>
1722 * xlsx-utils.c (xlsx_func_binominv_output_handler):
1723 translate the expression even for more than 3 arguments
1725 2013-06-22 Andreas J. Guelzow <aguelzow@pyrshep.ca>
1727 * xlsx-utils.c (xlsx_func_floor_output_handler): new
1728 (xlsx_conventions_new): connect new handler
1730 2013-06-21 Andreas J. Guelzow <aguelzow@pyrshep.ca>
1732 * ms-formula-read.c (ms-formula-read.c): add more
1734 * xlsx-utils.c (xlsx_conventions_new): add more
1737 2013-06-21 Andreas J. Guelzow <aguelzow@pyrshep.ca>
1739 * ms-formula-read.c (ms-formula-read.c): add
1741 * xlsx-utils.c (xlsx_func_finv_output_handler): new
1742 (xlsx_conventions_new): connect new handler and add
1743 "f.inv" --> "r.qf" translation
1745 2013-06-21 Andreas J. Guelzow <aguelzow@pyrshep.ca>
1747 * ms-formula-read.c (ms-formula-read.c): add
1748 "chisq.inv" --> "r.qchisq"
1749 * xlsx-utils.c (xlsx_func_chisqinv_output_handler): new
1750 (xlsx_conventions_new): connect new handler and add
1751 "chisq.inv" --> "r.qchisq" translation
1753 2013-06-21 Andreas J. Guelzow <aguelzow@pyrshep.ca>
1755 * xlsx-utils.h: remove duplicates
1756 (xlsx_conventions_new): add argument
1757 * xlsx-read.c (xlsx_file_open): add argument to
1758 xlsx_conventions_new
1759 * xlsx-write.c (xlsx_write_workbook): ditto
1760 * xlsx-utils.c (xlsx_func_map_in): recognize our own functions
1761 (xlsx_func_map_out): new
1762 (xlsx_func_binominv_output_handler): new
1763 (xlsx_conventions_new): add argument and initialize
1764 output hashes and function translator
1766 2013-06-21 Morten Welinder <terra@gnome.org>
1768 * ms-formula-read.c (make_function): Eliminate typo. Fixes
1771 2013-06-21 Andreas J. Guelzow <aguelzow@pyrshep.ca>
1773 * xlsx-utils.c (XLSXExprConventions): add field
1774 (xlsx_func_map_in): chcek and use handler
1775 (xlsx_func_binominv_handler): new
1776 (xlsx_conventions_new): initialize xlfn_handler_map
1777 (xlsx_conventions_free): free the hash here
1779 2013-06-21 Andreas J. Guelzow <aguelzow@pyrshep.ca>
1781 * xlsx-utils.c (XLSXExprConventions): add field
1782 (xlsx_func_map_in): do not initialize xlfn_map here
1783 (xlsx_conventions_new): but here
1784 (xlsx_conventions_free): free the hash here.
1786 2013-06-21 Andreas J. Guelzow <aguelzow@pyrshep.ca>
1788 * xlsx-utils.c (xlsx_func_map_in): new
1789 (xlsx_conventions_new): connect the above
1791 2013-06-20 Andreas J. Guelzow <aguelzow@pyrshep.ca>
1793 * ms-formula-read.c (xl2010_synonyms): add more functions
1795 2013-06-20 Morten Welinder <terra@gnome.org>
1797 * ms-formula-read.c (xl2010_synonyms): Map new function names to
1800 2013-06-20 Andreas J. Guelzow <aguelzow@pyrshep.ca>
1802 * xlsx-read.c (xlsx_pattern): set a default pattern
1804 2013-06-19 Andreas J. Guelzow <aguelzow@pyrshep.ca>
1806 * ms-excel-read.c (excel_read_CF_border): change GnmStyleCond
1807 argument to GnmStyle
1808 (excel_read_CF): pass the overlay not the empty condition to
1809 excel_read_CF_border
1811 2013-06-18 Andreas J. Guelzow <aguelzow@pyrshep.ca>
1813 * xlsx-read.c (xlsx_workbook_dtd): avoid duplication
1815 2013-06-17 Andreas J. Guelzow <aguelzow@pyrshep.ca>
1817 * xlsx-read.c (xlsx_validation_expr): check for null validation;
1819 2013-06-16 Andreas J. Guelzow <aguelzow@pyrshep.ca>
1821 * xlsx-read-drawing.c: connect "ext" handler
1822 * xlsx-read.c: declare xlsx_ext_begin early
1824 2013-06-16 Andreas J. Guelzow <aguelzow@pyrshep.ca>
1826 * xlsx-read.c (xlsx_read_external_book): also try an alternative url
1827 (xlsx_read_external_sheetname): check whether we have a book before
1828 adding sheets to it.
1830 2013-06-16 Morten Welinder <terra@gnome.org>
1832 * xlsx-read-drawing.c (xlsx_blip_start): Handle errors in getting
1833 blip. Fixes #702379.
1835 2013-06-15 Andreas J. Guelzow <aguelzow@pyrshep.ca>
1837 * xlsx-read.c (xlsx_read_chart): there may not be any plots in a chart.
1839 2013-06-13 Morten Welinder <terra@gnome.org>
1841 * ms-excel-read.c (excel_read_COLINFO): Fix crash. [#702182]
1843 2013-06-13 Jean Brefort <jean.brefort@normalesup.org>
1845 * ms-chart.c (end): don't crash when exchanging missing axes. [#702126]
1847 2013-06-12 Andreas J. Guelzow <aguelzow@pyrshep.ca>
1849 * xlsx-write.c (xlsx_write_print_info): fix typo
1850 * xlsx-read.c (xlsx_sheet_page_setup): read more attributes
1851 (xlsx_CT_PageSetup): read more attributes
1853 2013-06-12 Andreas J. Guelzow <aguelzow@pyrshep.ca>
1855 * xlsx-write.c (xlsx_write_print_info): always write fitTo*
1856 (xlsx_write_sheet): write pageSetUpPr
1858 2013-06-12 Andreas J. Guelzow <aguelzow@pyrshep.ca>
1860 * xlsx-read.c (xlsx_set_paper_from_code): update paper list
1862 2013-06-12 Andreas J. Guelzow <aguelzow@pyrshep.ca>
1864 * xlsx-write.c (xlsx_find_paper_code): use the complete list
1865 (xlsx_write_print_info): write all applicable attributes
1867 2013-06-11 Andreas J. Guelzow <aguelzow@pyrshep.ca>
1869 * xlsx-read.c (xlsx_parse_distance): new
1870 (attr_distance): new
1871 (xlsx_paper_size): new
1872 (xlsx_set_paper_from_code): new
1873 (xlsx_CT_PageSetup): handle paper size
1875 2013-06-11 Andreas J. Guelzow <aguelzow@pyrshep.ca>
1877 * xlsx-write.c (xlsx_write_print_info): write paper size
1879 (xlsx_find_paper_code): new
1881 2013-06-10 Andreas J. Guelzow <aguelzow@pyrshep.ca>
1883 * xlsx-read.c (xlsx_CT_PageSetup): new
1884 * xlsx-write.c (xlsx_write_print_info): write orientation
1886 2013-06-05 Morten Welinder <terra@gnome.org>
1888 * ms-excel-write.c (excel_write_HLINKs): Don't remove hlinks here.
1889 (excel_sheet_new): Collect hlinks regardless of biff version.
1892 2013-05-27 Andreas J. Guelzow <aguelzow@pyrshep.ca>
1894 * xlsx-read.c (xlsx_ext_begin): new
1895 (xlsx_sheet_dtd): connect the above
1896 (xlsx_workbook_dtd): connect the above
1897 (xlsx_styles_dtd): connect the above
1899 2013-04-29 Morten Welinder <terra@gnome.org>
1901 * xlsx-read.c (xlsx_cell_end): Don't create empty cells.
1903 2013-04-26 Morten Welinder <terra@gnome.org>
1907 2013-04-22 Morten Welinder <terra@gnome.org>
1909 * boot.c (excel_enc_file_open): Plug leak.
1911 * ms-excel-read.c (excel_read_FONT): Ensure ->script, ->underline,
1912 and ->codepage are set.
1913 (gnm_xl_importer_new): Set more pivot fields.
1915 2013-04-20 Morten Welinder <terra@gnome.org>
1917 * ms-excel-read.c (excel_read_name_str): Make sure we don't end up
1918 requesting (size_t)-1 characters worth of data. Fixes #698424,
1920 (ms_wb_parse_expr): NULL the dummy container vtable.
1922 2013-04-15 Morten Welinder <terra@gnome.org>
1924 * ms-formula-write.c (write_arrays): Handle empty values properly.
1926 * ms-formula-read.c (excel_parse_formula1): Handle empty values in
1927 array constants. Fix handling of booleans and errors in array
1929 (excel_parse_name): Add argument for array data length. All
1930 callers changed. Fixes #654211.
1932 * ms-excel-write.c (excel_write_PAGE_BREAK): Make implied cast of
1933 columnm/row number to guint16 explicit. See #693979.
1935 2013-04-14 Morten Welinder <terra@gnome.org>
1937 * ms-excel-write.c (excel_write_NAME): Store the name's length in
1938 characters, not bytes. This matches the read side and fixes
1941 2013-04-10 Morten Welinder <terra@gnome.org>
1943 * ms-formula-write.c (do_excel_write_prep_expr): Fix unintentional
1944 duplication of externnames.
1946 * ms-excel-write.h (struct _XLSExporter): Change externnames
1947 member to a GPtrArray of char*.
1949 * formula-types.h (ExcelFuncDesc): Add explicit index.
1951 * ms-formula-read.c (make_function): Fix importing of GAMMA (and
1952 others) from LibreOffice's xls files.
1954 2013-04-09 Morten Welinder <terra@gnome.org>
1956 * ms-formula-read.c (make_function): Fix importing of IFERROR and
1957 perhaps other newer functions.
1959 2013-03-09 Morten Welinder <terra@gnome.org>
1963 2013-02-24 Jean Brefort <jean.brefort@normalesup.org>
1965 * ms-chart.c (get_style), (ms_excel_chart_read): add explicit casts to
1967 * xlsx-read-drawing.c (xlsx_style_line_start): ditto.
1969 2013-02-22 Morten Welinder <terra@gnome.org>
1971 * ms-excel-write.c (gather_styles): Use sheet_cells, not
1972 sheet_cell_foreach, so the output won't depend on hash order.
1974 2013-02-14 Jean Brefort <jean.brefort@normalesup.org>
1976 * ms-chart.c (get_style): reversed previous change.
1977 * xlsx-read-drawing.c (xlsx_style_line_start): ditto.
1979 2013-02-10 Jean Brefort <jean.brefort@normalesup.org>
1981 * ms-chart.c (get_style): use go_style_new() instead of gog_style_new().
1982 * xlsx-read-drawing.c (xlsx_style_line_start): ditto.
1984 2013-02-10 Jean Brefort <jean.brefort@normalesup.org>
1986 * xlsx-read-drawing.c (xlsx_drawing_preset_geom): fix uninitialized an
1987 variable issue. [#693492]
1989 2013-02-05 Jean Brefort <jean.brefort@normalesup.org>
1991 * ms-chart.c (ms_excel_chart_read): don't use deprecated gog_style_new().
1993 2013-01-03 Morten Welinder <terra@gnome.org>
1995 * ms-excel-read.h (XL_EXTERNSHEET_MAGIC_SELFREF)
1996 (XL_EXTERNSHEET_MAGIC_DELETED): Intorduce symbolic names for magic
1997 constants. All users changed.
1999 2013-01-01 Morten Welinder <terra@gnome.org>
2001 * ms-excel-write.c (excel_font_overlay_pango): Don't use
2002 deprecated goffice stuff.
2004 2012-12-24 Morten Welinder <terra@gnome.org>
2006 * xlsx-write-drawing.c (xlsx_write_one_plot): Silence warning.
2008 2012-12-18 Morten Welinder <terra@gnome.org>
2012 2012-12-18 Morten Welinder <terra@gnome.org>
2014 * xlsx-write-drawing.c (xlsx_write_chart): Avoid creating empty
2015 charts files. Fixes #690203.
2017 2012-11-29 Morten Welinder <terra@gnome.org>
2021 2012-11-16 Morten Welinder <terra@gnome.org>
2025 2012-11-06 Morten Welinder <terra@gnome.org>
2027 * xlsx-read.c (xlsx_cond_fmt_formula_end): Plug leak.
2029 2012-10-17 Morten Welinder <terra@gnome.org>
2031 * xlsx-write.c (count_default_rows): Delete.
2032 (xlsx_write_cells): Simplify and speed up using
2033 sheet_style_get_nondefault_rows.
2035 2012-10-06 Morten Welinder <terra@gnome.org>
2037 * xlsx-write.c (xlsx_write_cells): Get all cells in the order we
2038 need them instead of doing a million lookups. Don't write styles
2039 that match the column default -- especially not for cells with
2041 (xlsx_write_cols): Write column default styles.
2043 2012-09-06 Morten Welinder <terra@gnome.org>
2047 2012-08-16 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2049 * xlsx-read-pivot.c (xlsx_CT_pivotCacheDefinition): also look for
2052 2012-08-16 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2054 * plugin.xml.in: refer to ISO/IEC 29500:2008 and emphasize the
2055 Standards compliance
2057 2012-08-15 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2059 * xlsx-read.c (xlsx_webpub_begin): new
2060 (xlsx_workbook_dtd): new
2062 2012-08-14 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2064 * xlsx-read.c (xlsx_border_begin_v2): new
2065 (xlsx_file_open): use version info to set the saver
2067 2012-08-03 Jean Brefort <jean.brefort@normalesup.org>
2069 * boot.c (excel_read_metadata), (excel_save): replace deprecated functions
2072 2012-08-02 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2074 * ms-excel-read.c (excel_read_AUTOFILTER): adjust call to
2075 gnm_filter_condition_new_bucket
2076 * xlsx-read.c (xlsx_CT_Top10): adjust call to
2077 gnm_filter_condition_new_bucket
2079 2012-08-01 Jean Brefort <jean.brefort@normalesup.org>
2081 * excel-xml-read.c (parse_color): Rename style_color_new_i8.
2082 * ms-excel-read.c (excel_palette_get), (excel_read_WINDOW2): ditto.
2084 2012-07-18 Morten Welinder <terra@gnome.org>
2086 * ms-excel-read.c (excel_read_LABEL): Fix crash [#679992].
2087 (excel_read_XF_OLD): Fix length check.
2088 (excel_read_FORMAT): Fix length check for pre-v7 records.
2089 (excel_read_FONT): Guess codepage for <=v4 records.
2091 2012-07-15 Morten Welinder <terra@gnome.org>
2095 2012-06-25 Morten Welinder <terra@gnome.org>
2099 2012-04-21 Morten Welinder <terra@gnome.org>
2103 2012-03-27 Morten Welinder <terra@gnome.org>
2105 * ms-excel-write.c (excel_write_selections): Evidently we should
2106 not restrict the cursor position to the pane. Fixes #671513 [2].
2108 * ms-excel-read.c (excel_read_SELECTION): Read in sane order.
2110 * ms-excel-write.c (excel_write_SELECTION): Write in reverse
2113 2012-03-12 Morten Welinder <terra@gnome.org>
2115 * ms-formula-write.c (write_node): Handle sets.
2117 * ms-excel-write.c (excel_write_chart_v8): Regularlize code and
2118 output object name too.
2120 * ms-chart.c (chart_write_LEGEND): Include the style when writing
2123 2012-03-11 Morten Welinder <terra@gnome.org>
2125 * ms-excel-write.c (excel_write_SETUP): Export paper size.
2127 * ms-excel-util.c (xls_paper_name): Extract from ms-excel-read.c
2128 (xls_paper_size): New pseudo-inverse of above.
2130 * ms-excel-write.c (excel_write_obj_v8): Handle graphs here too.
2131 (excel_sheet_new): Put graphs into the regular object queue too.
2133 2012-03-10 Morten Welinder <terra@gnome.org>
2135 * ms-excel-write.c (excel_write_DEFAULT_ROW_HEIGHT)
2136 (excel_write_ROWINFO): Add 1e-6 to toughen against rounding
2139 * ms-excel-read.c (excel_read_COLINFO): Drop work-around for buggy
2140 pre-Gnumeric 1.7.5 export. This fixes hard-size-set detection for
2143 * ms-excel-write.c (excel_write_objs_v8): Unify writing of objects
2144 to help fix stacking issues.
2145 (excel_sheet_new): Eliminate special lists for lines and
2147 (cb_write_condition): Make export of conditional italic match
2150 2012-03-09 Morten Welinder <terra@gnome.org>
2152 * xlsx-write.c (xlsx_write_sheet): Use new
2153 sheet_style_most_common.
2155 * ms-excel-write.c (excel_sheet_extent): Use new
2156 sheet_style_get_nondefault_extent.
2157 (gather_styles): Gather styles for all columns.
2158 (excel_write_colinfos): Ensure a column style for all columns.
2159 (excel_sheet_write_block): Drop only styles that differ from the
2160 column default. Visibility is irrelevant.
2161 (excel_sheet_new): Use new sheet_style_most_common.
2163 2012-03-08 Morten Welinder <terra@gnome.org>
2165 * ms-formula-write.c (excel_write_formula): Base length
2166 calculation on position, not length. That matters if we have
2169 * ms-excel-write.c (excel_write_image_v8): Reimplement based on
2170 excel_write_textbox_or_widget_v8.
2171 (excel_write_textbox_or_widget_v8): Don't write text style
2172 properties unless we have a text.
2173 (excel_write_vector_blip, excel_write_raster_blip): Constify.
2175 * ms-excel-read.c (excel_fill_bmp_header): Fix incorrect use of
2178 2012-03-07 Morten Welinder <terra@gnome.org>
2180 * ms-obj.c (ms_obj_read_pre_biff8_obj): Use symbolic object type
2181 names, not magic constants.
2183 * ms-excel-read.c (ms_sheet_parse_expr_internal): Fix crash when
2184 debugging was turned on.
2186 * ms-excel-write.c (cb_write_condition): Actually save the font
2187 flags. Part of #671531.
2188 (excel_write_ClientTextbox): Fix confusion between byte offsets
2189 and character offsets.
2190 (excel_write_RSTRING): Ditto. Part of #671531.
2191 (cb_write_condition): Fix pattern export. Part of #671531.
2193 2012-03-06 Morten Welinder <terra@gnome.org>
2195 * ms-excel-write.c (cb_write_condition): Handle lack of style
2197 (excel_write_prep_conditions): Ditto.
2198 (put_colors): Ditto. Fixes crash of #671267.
2199 (write_sheet_head): Export page breaks even if we have one of
2200 horizontal/vertical. Part of #671531.
2202 2012-03-02 Morten Welinder <terra@gnome.org>
2206 2012-01-29 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2208 * xlsx-read.c (attr_bool): accept "true"
2209 (xlsx_run_style): If val is missing it defaults to TRUE
2210 (xlsx_run_color): fix the range of values for the pango color
2212 (xlsx_comment_text): rename to xlsx_r_text
2213 (cb_trunc_attributes): new
2214 (xlsx_comment_rich_text): rename to xlsx_rich_text and make sure
2215 the attributes do not spill into the next run
2216 (xlsx_sstitem_start): new
2217 (xlsx_sstitem_end): use state->r_text
2218 (xlsx_shared_strings_dtd): connect rich text items
2220 2012-01-29 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2222 * xlsx-read.c (xlsx_cell_inline_text_end): new
2223 (xlsx_sheet_dtd): connect the above
2225 2011-12-27 Jean Brefort <jean.brefort@normalesup.org>
2227 * xlsx-read-drawing.c (xlsx_chart_text_start),
2228 (xlsx_draw_text_run_props): always set a font size.
2230 2011-11-30 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2232 * xlsx-read-docprops.c (xlsx_read_core_keys): use G_VALUE_INIT
2233 * xlsx-read.c: add dead-kittens.h
2235 2011-11-30 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2237 * excel-xml-read.c (xl_xml_selection): adjust call to
2238 sv_selection_add_full
2239 * ms-excel-read.c (excel_read_SELECTION): adjust calls to
2240 sv_selection_add_full and sv_selection_add_pos
2242 2011-11-27 Morten Welinder <terra@gnome.org>
2246 2011-11-24 Morten Welinder <terra@gnome.org>
2250 2011-11-21 Morten Welinder <terra@gnome.org>
2252 * xlsx-read.c (start_update_progress): Handle NULL xin.
2253 (xlsx_file_open): Use right input stream for progress update.
2256 2011-11-20 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2258 * ms-excel-read.c (excel_read_SETUP): rename
2259 PRINT_ERROR and PRINT_COMMENTS constants
2260 * ms-excel-write.c (excel_write_SETUP): ditto
2262 2011-10-29 Jean Brefort <jean.brefort@normalesup.org>
2264 * xlsx-read-drawing.c (xlsx_blip_start): don't set an invalid
2267 2011-10-27 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2269 * ms-excel-read.c (ms_wb_get_font_markup): use
2270 subscript/superscript attributes
2271 * ms-excel-write.c (excel_font_overlay_pango): export
2272 subscript/superscript attributes (and fix PANGO_ATTR_RISE
2275 2011-10-17 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2277 * xlsx-write.c (xlsx_write_sheet): don't miss cell content that
2280 2011-10-07 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2282 * ms-excel-read.c (excel_choose_border): new
2283 (excel_set_xf): check for border consistency
2285 2011-09-06 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2287 * ms-excel-read.c (gnm_xl_get_codepage): use guint
2289 2011-08-29 Jean Brefort <jean.brefort@normalesup.org>
2291 * xlsx-read-drawing.c (xlsx_ser_labels_show_val),
2292 (xlsx_ser_labels_show_cat), (xlsx_ser_labels_start),
2293 (xlsx_data_label_show_val), (xlsx_data_label_show_cat),
2294 (xlsx_data_label_start): set a default separator.
2296 2011-08-28 Jean Brefort <jean.brefort@normalesup.org>
2298 * ms-chart.c (end), (xl_chart_import_error_bar),
2299 (ms_excel_chart_read), (store_dim), (chart_write_series): moved
2300 two helpers to goffice.
2301 * xlsx-read-drawing.c (xlsx_tx_pr), (xlsx_draw_text_run_props),
2302 (xlsx_ser_labels_show_val), (xlsx_ser_labels_show_cat),
2303 (xlsx_ser_labels_pos), (xlsx_ser_labels_start),
2304 (xlsx_ser_labels_end), (xlsx_data_label_pos),
2305 (xlsx_data_label_index), (xlsx_data_label_show_val),
2306 (xlsx_data_label_show_cat), (xlsx_data_label_start),
2307 (xlsx_chart_ser_f), (xlsx_chart_solid_fill),
2308 (xlsx_draw_color_themed): fix various data labels import issues.
2310 2011-08-22 Jean Brefort <jean.brefort@normalesup.org>
2312 * xlsx-read-drawing.c (xlsx_ser_data_show_val),
2313 (xlsx_ser_data_show_cat), (xlsx_ser_data_pos),
2314 (xlsx_ser_data_start), (xlsx_chart_ser_f): import data labels,
2315 (xlsx_chart_solid_fill): fix fill color.
2317 2011-08-22 Jean Brefort <jean.brefort@normalesup.org>
2319 * xlsx-read-drawing.c (xlsx_chart_ser_f): fix import of series names.
2321 2011-08-20 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2323 * ms-excel-write.c (cb_cell_pre_pass): avoid synthesizing the same style several
2326 2011-08-20 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2328 * ms-excel-write.c (cb_cell_pre_pass): synthesize wrap-text style if necessary
2329 (build_xf_data): we need to write wrap-text in variant 4
2331 2011-08-18 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2333 * xlsx-read-docprops.c (xlsx_read_docprops_*): handle progress reports
2334 * xlsx-read.c (maybe_update_progress): new
2335 (start_update_progress): new
2336 (end_update_progress): new
2337 (xlsx_CT_Row): handle progress reports
2338 (xlsx_CT_RowsCols_end): handle progress reports
2339 (xlsx_sheet_begin): handle progress reports
2340 (xlsx_comment_end): ditto
2341 (xlsx_wb_end): ditto
2342 (xlsx_file_open): ditto
2344 2011-08-17 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2346 * xlsx-read-drawing.c (xlsx_scatter_style): also read incorrect "markers"
2347 * xlsx-write-drawing.c (xlsx_write_chart): write "marker" rather than "markers"
2349 2011-08-14 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2351 * plugins/excel/boot.c (excel_enc_file_open): new
2352 (excel_file_open): use excel_enc_file_open
2353 * plugins/excel/excel.h (excel_read_workbook): add argument
2354 * plugins/excel/ms-excel-read.c (excel_read_FONT): for charset 0 consider
2356 (gnm_xl_get_codepage): new
2357 (gnm_xl_importer_new): add argument, change caller and convert codepage override
2358 (excel_read_workbook): add argument and change all callers
2359 * plugins/excel/ms-excel-read.h (_GnmXLImporter): add field
2360 * plugins/excel/plugin.xml.in: add new encoding dependent file opener
2362 2011-08-12 Valek Filippov <frob@gnome.org>
2364 * plugins/excel/ms-excel-read.c (excel_read_FONT): convert charset to codepage
2365 and store in ExcelFont
2366 (excel_get_chars): set str_iconv based on codepage and change all callers
2367 (plugins/excel/ms-excel-read.h): change charset to codepage in ExcelFont
2369 2011-08-11 Valek Filippov <frob@gnome.org>
2371 * plugins/excel/ms-excel-read.c (excel_read_FONT): store charset in ExcelFont
2372 (excel_read_LABEL): pass charset to excel_get_text_fixme
2373 (excel_get_text_fixme): pass charset to excel_get_text
2374 (excel_get_chars): set str_iconv based on charset and change all callers
2375 (plugins/excel/ms-excel-read.h): add charset to ExcelFont
2377 2011-08-01 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2379 * plugins/excel/plugin.xml.in: use TM symbol
2381 2011-07-31 Morten Welinder <terra@gnome.org>
2385 2011-07-29 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2387 * excel-xml-read.c: Use G_GNUC_UNUSED
2388 (excel_xml_dtd): add PageMargins
2389 (xl_xml_data_end): parse numbers carefully
2390 (excel_xml_file_open): switch to C locale
2392 2011-07-21 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2394 * xlsx-read.c (xlsx_wb_name_end): check for "_xlnm." prefix
2395 * xlsx-write.c (xlsx_write_named_expression): also write permanent
2398 2011-07-21 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2400 * xlsx-write.c (xlsx_write_named_expression): new
2401 (xlsx_write_definedNames): new
2402 (xlsx_write_workbook): call xlsx_write_definedNames
2404 2011-07-03 Jean Brefort <jean.brefort@normalesup.org>
2406 * xlsx-read-drawing.c (xlsx_chart_text_start), (xlsx_chart_text),
2407 (xlsx_read_chart): fixed loading xlsx files with empty chart titles.
2409 2011-07-01 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2411 * xlsx-write-docprops.c (xlsx_map_prop_name_to_output_fun):
2412 use GSF_META_NAME_MM_CLIP_COUNT
2413 * xlsx-read-docprops.c: use GSF_META_NAME_MM_CLIP_COUNT
2415 2011-06-28 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2417 * xlsx-write-docprops.c (xlsx_read_core_keys): implement
2419 2011-06-27 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2421 * xlsx-write-docprops.c (xlsx_map_to_keys): new
2422 (xlsx_map_prop_name_to_output_fun): connect xlsx_map_to_keys
2423 (xlsx_meta_write_props): depend on xlsx_map_prop_name_to_output_fun
2426 2011-06-26 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2428 * xlsx-utils.h (XL_NS_PROP_CUSTOM): new
2429 * xlsx-read.c (XLSXReadState): new field meta_prop_name
2430 (XL_NS_PROP_CUSTOM): new namespace
2431 * xlsx-read-docprops.c (xlsx_read_property_begin): new
2432 (xlsx_read_property_end): new
2433 (xlsx_read_custom_property_type): new
2434 (xlsx_read_custom_property): new
2435 (xlsx_read_property_date): new
2436 (xlsx_docprops_custom_dtd): new
2437 (xlsx_docprops_extended_dtd): add elements
2438 (xlsx_read_docprops_custom): new
2439 (xlsx_read_docprops): call xlsx_read_docprops_custom
2441 2011-06-26 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2443 * xlsx-write.c: new includes (for xlsx-write-docprops.c)
2444 * xlsx-write-docprops.c (xlsx_map_time_to_int): new
2445 (xlsx_map_to_int): new
2446 (xlsx_map_to_bool): new
2447 (xlsx_map_to_date_core): new
2448 (xlsx_map_prop_name_to_output_fun): new
2449 (xlsx_meta_write_props_extended): use xlsx_map_prop_name_to_output_fun
2450 (xlsx_map_prop_type): replaced by xlsx_map_prop_name_to_output_fun
2451 (xlsx_meta_write_props): use xlsx_map_prop_name_to_output_fun
2452 (xlsx_map_to_pid): new
2453 (xlsx_meta_write_props_custom): new
2454 (xlsx_write_docprops_custom): call xlsx_meta_write_props_custom
2456 2011-06-25 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2458 * xlsx-write-docprops.c (xlsx_write_docprops_custom):
2460 * xlsx-write.c (ns_docprops_custom): new
2461 (xlsx_write_fills): Kspread needs the formats implied by
2464 2011-06-25 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2466 * xlsx-write-docprops.c (xlsx_write_docprops_app): The
2467 AppVersion format should really be d.dddd.
2469 2011-06-25 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2471 * xlsx-read-docprops.c (xlsx_read_core_prop_type): renamed
2472 to xlsx_read_prop_type
2473 (xlsx_read_core_prop): renamed to xlsx_read_prop
2474 (xlsx_read_core_prop_dt): renamed to xlsx_read_prop_dt
2475 (xlsx_read_prop_int): new
2476 (xlsx_read_prop_boolean): new
2477 (xlsx_docprops_extended_dtd): new
2478 (xlsx_read_docprops_extended): implement
2479 * xlsx-read.c (xlsx_ns): add name spaces
2480 * xlsx-utils.h (XL_NS_PROP): new
2481 (XL_NS_PROP_VT): new
2482 * xlsx-write-docprops.c (xlsx_write_docprops_app): The
2483 AppVersion format is prescribed to d.dddd.
2485 2011-06-25 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2487 * xlsx-write.c (ns_docprops_extended_vt): new
2488 * xlsx-write-docprops.c (xlsx_map_prop_name_extended): new
2489 (xlsx_meta_write_props_extended): new
2490 (xlsx_write_docprops_app): write more properties
2491 (xlsx_write_docprops_core): no need to remove the generator
2492 meta data, we only write selected props anyways.
2494 2011-06-25 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2496 * xlsx-write.c (xlsx_write_predefined_fills): new
2497 (xlsx_write_fills): use the above
2498 (xlsx_find_predefined_fill): new
2499 (xlsx_find_fill): use xlsx_find_predefined_fill
2501 2011-06-25 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2503 * xlsx-read-docprops.c (new)
2504 * Makefile.am: add xlsx-read-docprops.c
2505 * xlsx-utils.h: add XL_NS_PROP_*
2506 * xlsx-write.c (xlsx_write_fills): start with some fills
2508 (xlsx_write_style): apparently Excel writes apply*
2509 attributes always. So do we now.
2510 * xlsx-read.c: add some includes, including
2511 xlsx-read-docprops.c
2512 (xlsx_ns): som emore namespaces
2513 (xlsx_file_open): call xlsx_read_docprops from
2514 xlsx-read-docprops.c
2516 2011-06-24 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2518 * xlsx-write.c (xlsx_write_style): usually write an xfId,
2519 write apply* attributes only if they are false (nobody
2520 seems to write true ones)
2521 (xlsx_write_cellStyleXfs): write a named style record to refer
2523 (xlsx_write_cellXfs): adust call to xlsx_write_style
2524 (xlsx_get_style_id): new, extracted from xlsx_write_cells
2525 (xlsx_write_cells): use xlsx_get_style_id
2526 (xlsx_write_workbook): make sure we write the default style
2529 2011-06-24 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2531 * xlsx-write.c: add include
2532 * xlsx-write-docprops.c (xlsx_map_prop_type): add more items
2533 (xlsx_meta_write_props): also write keywords
2535 2011-06-24 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2537 * xlsx-write.c (xlsx_write_shared_strings): xml:space is
2539 (xlsx_write_styles): ditto
2540 (xlsx_write_workbook): ditto
2541 * xlsx-write-docprops.c (xlsx_write_docprops_app): ditto
2542 (xlsx_write_docprops_core): ditto
2544 2011-06-24 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2546 * xlsx-write.c (xlsx_write_fonts): check the font names
2548 (xlsx_write_rich_text): we definitely need to check the text
2550 2011-06-24 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2552 * xlsx-write.c (xlsx_write_num_formats): the format strings
2553 need to be properly encoded for xlm
2555 2011-06-23 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2557 * xlsx-write.c (xlsx_write_borders): fix element order
2559 2011-06-23 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2561 * xlsx-write.c (ns_docprops_core_cp): new
2562 (ns_docprops_core_dc): new
2563 (ns_docprops_core_dcmitype): new
2564 (ns_docprops_core_dcterms): new
2565 (ns_docprops_core_xsi): new
2566 * xlsx-write-docprops.c (xlsx_map_prop_type): new
2567 (xlsx_map_prop_name): new
2568 (xlsx_meta_write_props): new
2569 (xlsx_write_docprops_core): imlement
2571 2011-06-23 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2573 * Makefile.am: add xlsx-write-docprops.c
2574 * xlsx-write.c (ns_docprops_extended): new
2575 (xlsx_write_workbook): call xlsx_write_docprops
2576 * xlsx-write-docprops.c: new
2578 2011-06-16 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2580 * xlsx-read-drawing.c (xlsx_drawing_dtd): add srcRect
2582 2011-06-16 Morten Welinder <terra@gnome.org>
2586 2011-06-16 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2588 * xlsx-write.c (xlsx_write_border): use the appripriate
2589 element name based on ECMA-376 edition
2590 (xlsx_write_workbook): in edition 2 "codePage" was replaced by
2592 (xlsx2_file_save): new
2593 * plugin.xml.in: add file saver for ECMA-376 2nd edition
2594 * xlsx-write-pivot.c (xlsx_write_pivot_cache_definition):
2595 2nd edition replaced "refreshedDate" attribute with
2598 2011-06-16 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2600 * xlsx-write.c (xlsx_write__rich_text): handle NULL attribute
2603 2011-06-16 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2605 * xlsx-write.c (xlsx_write_border): write diagonal border element
2606 (xlsx_write_borders): support diagonal elements
2607 * xlsx-read.c (xlsx_col_border_begin): new
2608 (xlsx_border_end): fix reference counting
2609 (xlsx_border_diagonal_end): new
2611 2011-06-15 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2613 * xlsx-write.c (xlsx_write_border): use edition 1 elements
2614 (xlsx_write_cells): also write styles for empty cells
2616 2011-06-15 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2618 * xlsx-write.c (xlsx_find_border): new
2619 (xlsx_write_border): new
2620 (xlsx_write_borders): implement
2621 (xlsx_write_style): handle borders
2622 (xlsx_write_cellXfs): add argument, change all callers
2623 (xlsx_write_styles): call xlsx_write_borders
2624 * xlsx-read.c: for borders "left" and "right" are really called
2627 2011-06-15 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2629 * xlsx-write.c (xlsx_find_font): new
2630 (xlsx_write_fonts): implement
2631 (xlsx_find_fill): check for straight equality
2632 (xlsx_write_style): handle font-info
2633 (xlsx_write_cellXfs): add argument, change all callers
2634 (xlsx_write_styles): call xlsx_write_fonts
2636 2011-06-15 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2638 * xlsx-write.c (xlsx_load_buildin_num_formats): new
2639 (xlsx_write_num_formats): new
2640 (xlsx_write_style): connect to the number formats
2641 (xlsx_write_cellXfs): add argument, change all callers
2642 (xlsx_write_styles): call xlsx_write_num_formats
2644 2011-06-15 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2646 * xlsx-write.c (xlsx_write_color_element): new
2647 (xlsx_find_fill): new
2648 (xlsx_write_fills): implement
2649 (xlsx_write_style): use written fills
2650 (xlsx_write_cellXfs): ditto
2651 (xlsx_write_styles): connect xlsx_write_fills with xlsx_write_cellXfs
2652 (xlsx_write_cells): GPOINTER_TO_INT(0) yields NULL, so shift when
2653 storing 0-based indices
2655 2011-06-15 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2657 * xlsx-write.c (xlsx_write_style_want_alignment): new
2658 (xlsx_write_style_write_alignment): new
2659 (xlsx_write_style): new
2660 (xlsx_write_cellXfs): new
2661 (xlsx_write_styles): connect xlsx_write_cellXfs
2662 (xlsx_write_cells): llink to styles
2663 (xlsx_write_workbook): initialize and finalize style lists
2665 2011-06-14 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2667 * xlsx-utils.h (xlsx_get_gradient_direction): new
2668 * xlsx-utils.c (xlsx_get_gradient_direction): new
2669 * xlsx-read-drawing.c (xlsx_chart_grad_linear): use
2670 xlsx_get_gradient_direction
2672 2011-06-14 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2674 * xlsx-read.c (xlsx_cell_begin): don't overwrite an existing row style
2675 (xlsx_CT_Row): the row style should only be used if customFormat == 1
2676 (xlsx_CT_GradientFill): consider this a solid colour fill until we
2677 really import the gradients
2679 2011-06-14 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2681 * xlsx-read.c (elem_color): add allow_alpha argument, change all
2682 callers and set alpha to 0xFF if it is not allowed
2683 (xlsx_pattern_fg_bg): if we are reading a colour for a solid fill, ignore
2684 alpha. LibreOffice 3.3.2 sets the alpha to 0 and Excel seems to ignore it
2685 (xlsx_font_color): ditto
2687 2011-05-22 Morten Welinder <terra@gnome.org>
2689 * ms-excel-write.c (excel_write_autofilter_names): Use proper
2690 ctor/dtor methods for GnmNamedExpr.
2691 (excel_write_autofilter_names): Use new
2692 expr_name_set_is_placeholder.
2694 2011-05-21 Morten Welinder <terra@gnome.org>
2698 2011-05-20 Morten Welinder <terra@gnome.org>
2700 * xlsx-write.c (xlsx_write_rich_text): Clamp "start" too.
2702 2011-05-03 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2704 * ms-chart.c (chart_write_LEGEND): use
2705 GNM_*_KILL_SWITCH_WARNING
2707 2011-05-04 Jean Brefort <jean.brefort@normalesup.org>
2709 * xlsx-read-drawing.c (xlsx_chart_pop_obj): don't set a style to a
2711 (xlsx_axis_mark): pass a true boolean to make gobject happy,
2712 (xlsx_axis_end): don't exchange radar plots axes,
2713 (xlsx_chart_legend_pos): add new enum values not in spec, but occuring,
2714 (xlsx_chart_solid_fill): set line color to line, not fill.
2716 2011-05-03 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2718 * ms-chart.c (chart_write_LEGEND): disable -Wswitch for this function
2720 2011-05-03 Jean Brefort <jean.brefort@normalesup.org>
2722 * xlsx-read-drawing.c (xlsx_style_line_start): don't crash on NULL
2724 (cb_axis_set_position): fix axis crossing position.
2725 * xlsx-write-drawing.c (xlsx_write_chart): partially fix circular
2728 2011-04-08 Jean Brefort <jean.brefort@normalesup.org>
2730 * xlsx-read-drawing.c: import some legacy drwawings.
2731 * xlsx-read.c: ditto.
2733 2011-04-04 Morten Welinder <terra@gnome.org>
2735 * ms-obj.c (ms_obj_read_pre_biff8_obj): Improve record length
2738 2011-03-24 Morten Welinder <terra@gnome.org>
2742 2011-03-23 Morten Welinder <terra@gnome.org>
2744 * xlsx-read-drawing.c (xlsx_axis_crosses): Avoid using
2745 uninitialized values if an attribute is missing.
2747 2011-03-22 Jean Brefort <jean.brefort@normalesup.org>
2749 * xlsx-read-drawing.c (xlsx_chart_push_obj), (xlsx_chart_pop_obj),
2750 (xlsx_chart_text_start), (xlsx_chart_text), (xlsx_body_pr),
2751 (xlsx_axis_mark), (xslx_chart_tick_label_pos),
2752 (xlsx_chart_marker_end), (xlsx_chart_start_dummy),
2753 (xlsx_read_chart): import axis ticks format.
2754 * xlsx-read.c: add a GOStyle stack.
2756 2011-03-21 Jean Brefort <jean.brefort@normalesup.org>
2758 * xlsx-read-drawing.c (xlsx_draw_text_run_props),
2759 (xlsx_sheet_drawing), (xlsx_sheet_legacy_drawing): add a dtd for lecacy
2761 * xlsx-read.c: ditto.
2762 * xlsx-utils.h: ditto.
2764 2011-03-20 Jean Brefort <jean.brefort@normalesup.org>
2766 * xlsx-read-drawing.c (xlsx_chart_push_obj), (xlsx_chart_pop_obj),
2767 (xlsx_chart_text_start), (xlsx_chart_text), (xlsx_chart_p_start),
2768 (xlsx_chart_text_content), (xlsx_draw_text_run_props),
2769 (xlsx_rel_size_anchor_start), (xlsx_rel_size_anchor),
2770 (xlsx_user_shape_pos), (xlsx_user_shape), (xlsx_user_shape_end),
2771 (xlsx_axis_crosses), (xlsx_chart_style_end),
2772 (xlsx_draw_color_themed), (xlsx_chart_marker_end),
2773 (xlsx_chart_layout_manual), (cb_axis_set_position),
2774 (xlsx_read_chart): import labels and positions.
2776 2011-03-19 Jean Brefort <jean.brefort@normalesup.org>
2778 * xlsx-read-drawing.c (xlsx_chart_user_shapes): add missing dtd entries,
2779 (xlsx_chart_legend), (xlsx_chart_legend_pos), (xlsx_plot_area),
2780 (xlsx_chart_layout_manual), (xlsx_chart_layout_target),
2781 (xlsx_chart_layout_dim), (xlsx_chart_layout_mode): work on positions.
2782 * xlsx-read.c: ditto.
2784 2011-03-18 Jean Brefort <jean.brefort@normalesup.org>
2786 * xlsx-read-drawing.c (xlsx_chart_user_shapes),
2787 (xlsx_chart_text_start), (xlsx_chart_text): add chartDrawing namespace.
2788 * xlsx-read.c: ditto.
2789 * xlsx-utils.h: ditto.
2791 2011-03-18 Jean Brefort <jean.brefort@normalesup.org>
2793 * xlsx-read-drawing.c (xlsx_chart_text_start), (xlsx_chart_text): import
2794 text in sheet filled objects.
2795 * xlsx-write-drawing.c (xlsx_write_series_dim): don't export strings as
2798 2011-03-15 Jean Brefort <jean.brefort@normalesup.org>
2800 * xlsx-read-drawing.c (xlsx_draw_color_end): fixed some auto style issues.
2801 * xlsx-write-drawing.c (xlsx_write_plot_1_5_type),
2802 (xlsx_write_series_dim), (xlsx_write_go_style), (xlsx_write_chart): ditto.
2804 2011-03-14 Jean Brefort <jean.brefort@normalesup.org>
2806 * xlsx-write-drawing.c (xlsx_write_chart): export radial plot axes,
2807 anf fix overlap in barcol plots.
2809 2011-03-13 Morten Welinder <terra@gnome.org>
2811 * xlsx-utils.c (xlsx_lookup_external_wb): It looks like [0] is
2812 used to refer to the "self" workbook.
2814 2011-03-12 Jean Brefort <jean.brefort@normalesup.org>
2816 * Makefile.am: add new xlsx drawing/chart files.
2817 * xlsx-read-drawing.c: new file, better import of styles.
2818 * xlsx-read.c: moved drawing/chart code to xlsx-read-drawing.c.
2819 * xlsx-write-drawing.c: new file with enhanced chart export.
2820 * xlsx-write.c: moved drawing/chart code to xlsx-write-drawing.c.
2822 2011-03-05 Jean Brefort <jean.brefort@normalesup.org>
2824 * xlsx-read.c (xlsx_chart_ser_f), (xlsx_chart_text_start),
2825 (xlsx_chart_text): accept formulas in labels.
2826 * xlsx-write.c (xlsx_write_series_dim), (xlsx_write_rgbarea),
2827 (xlsx_write_go_style), (xlsx_write_chart): export chart background.
2829 2011-03-05 Jean Brefort <jean.brefort@normalesup.org>
2831 * xlsx-read.c (xlsx_chart_xy), (xlsx_scatter_style): import the scatter
2832 plot default series style.
2834 2011-03-05 Jean Brefort <jean.brefort@normalesup.org>
2836 * xlsx-read.c (xlsx_plot_axis_id), (xlsx_axis_crosses_at),
2837 (cb_axis_set_position): import axis crossing position. [#642941]
2839 2011-03-04 Morten Welinder <terra@gnome.org>
2841 * xlsx-read.c (xlsx_sheet_begin): Use attr_enum.
2842 (xlsx_wb_name_begin, xlsx_wb_name_end): Collect names and define
2844 (handle_delayed_names): Define all collected names properly.
2846 2011-03-04 Jean Brefort <jean.brefort@normalesup.org>
2848 * xlsx-read.c (xlsx_axis_end), (xlsx_chart_p_start),
2849 (xlsx_chart_text_content): import multiple runs chart titles. [#643814]
2851 2011-03-03 Morten Welinder <terra@gnome.org>
2853 * xlsx-read.c (xlsx_chart_text): Avoid criticals in the absense of
2855 (xlsx_sheet_begin): Import sheet state. Fixes #643815.
2857 2011-02-22 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2859 * xlsx-write.c (xlsx_axis_crosses_at): new
2860 (xlsx_chart_dtd): connect xlsx_axis_crosses_at
2862 2011-02-21 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2864 * xlsx-write.c (xlsx_write_comments): skip NULL author
2865 (see glib bug #642944)
2867 2011-02-21 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2869 * xlsx-read.c (xlsx_chart_dtd): add c:crossesAt
2870 (xlsx_cell_expr_begin): don't ignore shared expressions with
2873 2011-02-02 Morten Welinder <terra@gnome.org>
2877 2011-01-06 Morten Welinder <terra@gnome.org>
2879 * xls-read-pivot.c (xls_read_SXVIEW): The record contains a cache
2880 index, not a cache id.
2881 (xls_read_SXVI): Fix debug print.
2883 2010-12-26 Jean Brefort <jean.brefort@normalesup.org>
2885 * ms-chart.c (areaformat), (chart_write_LINEFORMAT): enhance color support.
2888 2010-12-17 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2890 * ms-excel-read.c (excel_read_FONT): try to make cppcheck happy
2892 2010-12-17 Jean Brefort <jean.brefort@normalesup.org>
2894 * ms-excel-read.c (ms_sheet_realize_obj): make object invisible outline
2895 persistent. [#637393]
2896 * ms-excel-write.c (excel_write_textbox_or_widget_v8):
2898 2010-11-25 Morten Welinder <terra@gnome.org>
2902 2010-10-13 Morten Welinder <terra@gnome.org>
2904 * ms-excel-read.c (excel_read_SELECTION): Work around missing
2905 selection. Fixes #632050.
2906 (excel_parse_name): Treat global Print_Area a tad better.
2908 2010-10-03 Jean Brefort <jean.brefort@normalesup.org>
2910 * xlsx-write.c (xlsx_write_rich_text): really assign the buffer before
2913 2010-10-01 Morten Welinder <terra@gnome.org>
2917 2010-10-01 Jean Brefort <jean.brefort@normalesup.org>
2918 * xlsx-read.c (elem_color), (xlsx_run_weight), (xlsx_run_style),
2919 (xlsx_run_family), (xlsx_run_size), (xlsx_run_strikethrough),
2920 (xlsx_run_underline), (xlsx_run_color), (xlsx_comments_start),
2921 (xlsx_comments_end), (xlsx_comment_author_end),
2922 (xlsx_comment_start), (xlsx_comment_end), (xlsx_comment_text),
2923 (xlsx_comment_rich_text), (xlsx_wb_end), (xlsx_file_open): read cell
2925 * xlsx-write.c (xlsx_write_rich_text), (write_comment_author),
2926 (xlsx_write_comments), (xlsx_write_sheet), (xlsx_file_save): write cell
2929 2010-09-15 Jean Brefort <jean.brefort@normalesup.org>
2931 * ms-chart.c (tick), (chart_write_axis): export/import tick label rotation
2934 2010-09-04 Morten Welinder <terra@gnome.org>
2938 2010-08-16 Morten Welinder <terra@gnome.org>
2942 2010-07-30 Morten Welinder <terra@gnome.org>
2946 2010-07-28 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2948 * excel-xml-read.c (xl_xml_font): add UNDERLINE_*_LOW
2949 * ms-excel-read.c (xls_uline_to_gnm_underline): new
2950 (excel_get_style_from_xf): use xls_uline_to_gnm_underline
2951 (ms_wb_get_font_markup): use gnm_translate_underline_to_pango
2952 (excel_read_CF): use xls_uline_to_gnm_underline
2953 * ms-excel-write.c (map_underline_to_xl) rename
2954 to map_style_underline_to_xl and use new map_underline_to_xl,
2956 (map_underline_to_xl): new
2957 (excel_font_to_string): add UNDERLINE_*_LOW
2958 (excel_font_overlay_pango): use gnm_translate_underline_from_pango
2959 (excel_font_from_go_font): fix typo
2960 (excel_write_FONT): use map_underline_to_xl
2961 * xlsx-read.c (xlsx_font_uline): add UNDERLINE_*_LOW
2962 (xlsx_font_valign): fix typo
2964 2010-07-27 Andreas J. Guelzow <aguelzow@pyrshep.ca>
2966 * ms-excel-read.h (ExcelFont): change underline field from PangoUnderline
2967 to MsBiffFontUnderline
2968 * ms-excel-read.c (excel_read_FONT): underline field of ExcelFont is not
2969 a GnmUnderline but (now) a MsBiffFontUnderline
2970 (excel_get_style_from_xf): convert underline from MsBiffFontUnderline
2973 2010-07-26 Morten Welinder <terra@gnome.org>
2975 * ms-excel-write.c (write_arrow): Fix argument type for "id".
2977 2010-07-13 Jean Brefort <jean.brefort@normalesup.org>
2979 * ms-chart.c (chart_write_AREAFORMAT): fixed the auto flag. [see
2982 2010-07-10 Jean Brefort <jean.brefort@normalesup.org>
2984 * ms-chart.c (end): do not crash when a chart has more than one
2987 2010-07-09 Morten Welinder <terra@gnome.org>
2989 * ms-excel-write.c (excel_write_SETUP): Avoid right-shift bigger
2992 2010-06-28 Morten Welinder <terra@gnome.org>
2996 2010-06-23 Morten Welinder <terra@gnome.org>
2998 * xlsx-read.c (xlsx_CT_RowsCols_end): New function.
2999 (xlsx_CT_Col): Delay applying the style so we can merge areas.
3002 2010-06-16 Morten Welinder <terra@gnome.org>
3006 2010-05-30 Morten Welinder <terra@gnome.org>
3010 2010-05-20 Morten Welinder <terra@gnome.org>
3014 2010-05-07 Morten Welinder <terra@gnome.org>
3018 2010-04-29 Morten Welinder <terra@gnome.org>
3020 * ms-excel-write.c (excel_write_DOPER): Fix saving of integers.
3021 (excel_write_AUTOFILTERINFO): Fix swapped "and" and "or".
3023 2010-04-23 Morten Welinder <terra@gnome.org>
3025 * ms-excel-read.c (supbook_get_sheet): Return "deleted sheet" for
3026 external references so we don't end up with sheet-local refs.
3027 (excel_read_SUPBOOK): Clean up using new docs.
3029 2010-04-21 Jean Brefort <jean.brefort@normalesup.org>
3031 * ms-chart.c (ai), (objectlink), (end), (ms_excel_chart_read): import
3032 chart title when it is actually the series label. [#616262]
3034 2010-04-16 Morten Welinder <terra@gnome.org>
3038 2010-04-15 Morten Welinder <terra@gnome.org>
3040 * ms-excel-write.c (excel_write_textbox_or_widget_v8): Take
3041 bp->length into account too.
3043 2010-04-14 Andreas J. Guelzow <aguelzow@pyrshep.ca>
3045 * xlsx-write.c (xlsx_write_workbook): write 1900/1904 date base
3048 2010-04-14 Andreas J. Guelzow <aguelzow@pyrshep.ca>
3050 * xlsx-read.c (xlsx_CT_WorkbookPr): new
3051 (xlsx_workbook_dtd); hook up xlsx_CT_WorkbookPr
3053 2010-03-31 Jean Brefort <jean.brefort@normalesup.org>
3055 * ms-chart.c (chart_write_AREAFORMAT): export transparent patterns as
3058 2010-03-29 Morten Welinder <terra@gnome.org>
3060 * ms-formula-write.c (write_funcall): Guess argument types for
3061 functions that the excel format doesn't know about.
3062 (guess_arg_types): New function.
3064 * ms-excel-write.c (excel_write_externsheets_v7,
3065 excel_write_externsheets_v8): Fix letter case for extername
3068 2010-03-08 Morten Welinder <terra@gnome.org>
3072 2010-02-18 Andreas J. Guelzow <aguelzow@pyrshep.ca>
3074 * xlsx-write.c (xlsx_write_cells): use value_get_as_gstring
3075 rather than value_get_as_string. [#610372]
3077 2010-02-13 Morten Welinder <terra@gnome.org>
3081 2010-01-29 Jean Brefort <jean.brefort@normalesup.org>
3083 * ms-excel-write.c (excel_write_textbox_or_widget_v8): export transparency
3086 2010-01-29 Jean Brefort <jean.brefort@normalesup.org>
3088 * ms-excel-read.c (ms_sheet_realize_obj): really import transparent objects.
3090 2010-01-19 Morten Welinder <terra@gnome.org>
3094 2009-12-29 Jody Goldberg <jody@gnome.org>
3096 * xls-read-pivot.c (xls_read_SXVI) : new stub. Currently only notices
3097 when XL wants to hide things.
3098 (xls_read_SXVD) : used from here.
3100 2009-12-24 Jean Brefort <jean.brefort@normalesup.org>
3102 * xlsx-read-pivot.c (xlsx_CT_Number),
3103 (xlsx_CT_pivotCacheDefinition): fixed double/gnm_float issues.
3104 * xlsx-read.c (xlsx_axis_bound), (elem_color), (xlsx_CT_Row),
3105 (xlsx_CT_Col), (xlsx_CT_SheetFormatPr), (xlsx_CT_PageMargins),
3106 (xlsx_CT_Top10), (xlsx_CT_Pane), (xlsx_CT_FontSize): ditto.
3108 2009-12-21 Jean Brefort <jean.brefort@normalesup.org>
3110 * ms-chart.c (lineformat), (chart_write_LINEFORMAT): fix import export
3111 of line type in scatter plots. [#605043]
3113 2009-12-15 Morten Welinder <terra@gnome.org>
3117 2009-12-09 Jean Brefort <jean.brefort@normalesup.org>
3119 * ms-chart.c (end): always initialize matrix bounds. [#593937]
3121 2009-11-29 Morten Welinder <terra@gnome.org>
3125 2009-11-01 Morten Welinder <terra@gnome.org>
3129 2009-10-16 Morten Welinder <terra@gnome.org>
3131 * ms-excel-read.c (excel_read_DIMENSIONS): Store dimensions for
3134 2009-10-15 Morten Welinder <terra@gnome.org>
3136 * ms-excel-write.c (excel_write_line_v8): Fix handling of
3138 (excel_write_textbox_or_widget_v8, excel_write_line_v8): Export
3141 2009-10-14 Morten Welinder <terra@gnome.org>
3143 * ms-escher.c (ms_escher_read_OPT): Don't arbitrarily add 1 to
3144 MS_OBJ_ATTR_OUTLINE_STYLE's value.
3146 * ms-excel-read.c (ms_sheet_realize_obj): Read dash style
3148 (xl_pattern_to_line_type): Fix mapping.
3150 * ms-excel-write.c (excel_write_line_v8): Export line start arrow
3153 2009-10-13 Morten Welinder <terra@gnome.org>
3155 * ms-formula-write.c (excel_write_array_formula): Set
3156 allow_sheetless_ref to avoid t8001 failure.
3158 * ms-obj.c (ms_objv8_write_spinbutton, ms_objv8_write_adjustment):
3161 2009-10-12 Morten Welinder <terra@gnome.org>
3163 * ms-formula-write.c (excel_write_formula): Handle new
3164 EXCEL_CALLED_FROM_OBJ.
3165 (CTXT_NAME_OBJ): Rename from CTXT_NAME.
3167 * ms-obj.c (ms_objv8_write_macro_fmla): Use EXCEL_CALLED_FROM_OBJ.
3169 * ms-excel-write.c (excel_write_textbox_v8): Don't write macro
3172 * ms-obj.c (ms_objv8_write_checkbox_fmla,
3173 ms_objv8_write_macro_fmla): Pad length; use NAME context.
3174 (ms_objv8_write_checkbox_link): Take extra "active" argument. All
3177 2009-10-11 Morten Welinder <terra@gnome.org>
3179 * ms-excel-write.c (excel_write_textbox_v8): Call
3180 ms_objv8_write_radiobutton_data when appropriate.
3182 * ms-obj.c (ms_objv8_write_radiobutton_data): New function.
3184 * ms-escher.c (ms_escher_clientdata): Drop argument that turned
3185 out to be not useful.
3187 2009-10-11 Morten Welinder <terra@gnome.org>
3191 2009-10-09 Morten Welinder <terra@gnome.org>
3193 * ms-excel-write.c (excel_write_autofilter_names): Initialize
3194 nexpr.pos completely.
3196 * ms-excel-read.c (excel_read_NAME): Fix FMR in debug code.
3198 * ms-obj.c (ms_obj_read_biff8_obj): Read the macro reference too.
3200 2009-10-08 Morten Welinder <terra@gnome.org>
3202 * ms-escher.c (ms_escher_opt_add_bool): New function.
3204 * ms-excel-write.c (excel_write_line_v8): Simplify using
3205 ms_escher_opt_add_bool.
3207 2009-10-07 Morten Welinder <terra@gnome.org>
3209 * ms-excel-write.c (excel_write_textbox_v8): Export
3210 checkbox/radiobutton link and current value.
3212 * ms-obj.c (ms_objv8_write_checkbox_fmla,
3213 ms_objv8_write_checkbox_data): New functions.
3215 * ms-escher.c (ms_escher_opt_add_color): New function.
3217 * ms-excel-write.c (excel_write_textbox_v8): Make sure the textbox
3218 gets to be part of the container. Export line and background
3219 colours. Export outline width.
3220 (excel_write_line_v8): Export line colour and width.
3222 * ms-escher.c (ms_escher_opt_end): Docs were wrong. Do not
3223 include own header in length.
3224 (ms_escher_opt_add_str_wchar): Fix type error.
3226 2009-10-06 Morten Welinder <terra@gnome.org>
3228 * ms-excel-read.c (ms_sheet_realize_obj): Restore colour reading.
3229 (ms_sheet_map_color): Add new "pauto" argument. All callers
3232 2009-10-05 Morten Welinder <terra@gnome.org>
3234 * ms-excel-write.c (excel_write_textbox_v8): Export
3236 (excel_sheet_new): Prepare for handling lines.
3237 (blipinf_new): Plug leak.
3238 (extract_txomarkup): Plug leak.
3239 (xf_init, cb_cell_pre_pass, cb_accum_styles,
3240 excel_write_ClientTextbox): Plug leak.
3241 (excel_write_line_v8): Export lines and arrows.
3243 * ms-biff.h (_BiffPut): Change type of streamPos to gsf_off_t.
3245 * ms-chart.c (chart_write_axis): Don't dump uninitialized memory
3247 (map_1_5d_type): Plug leak.
3249 * ms-biff.c (ms_biff_put_len_next): Make sure we don't mix _var_
3250 and _len_ calls. Make sure we commit.
3252 2009-10-04 Morten Welinder <terra@gnome.org>
3254 * ms-excel-write.c (excel_write_textbox_v8): Attempt to handle
3255 rectangles and ovals.
3257 * ms-escher.c (ms_escher_get_inst, ms_escher_set_inst,
3258 ms_escher_spcontainer_start, ms_escher_spcontainer_end,
3259 ms_escher_sp, ms_escher_opt_start, ms_escher_opt_end,
3260 ms_escher_opt_add_simple, ms_escher_clientanchor,
3261 ms_escher_clientdata): New functions.
3263 * ms-excel-write.c (excel_write_textbox_v8): Use new Escher output
3266 2009-10-02 Morten Welinder <terra@gnome.org>
3268 * ms-excel-write.c (excel_sheet_new): Display name of sheet
3269 objects we cannot export.
3271 * ms-excel-read.c (ms_sheet_realize_obj): Set object name if we
3274 * ms-escher.c (ms_escher_read_OPT): Assume pointers are UTF-16
3275 strings, not UTF-8. Fits objs.xls
3277 * ms-excel-write.c (excel_sheet_new): Don't complain over filter
3278 combos. They are handled, but differently.
3280 2009-10-01 Morten Welinder <terra@gnome.org>
3282 * ms-excel-write.c (excel_sheet_new): Exclude GNM_SO_FILLED_TYPE
3283 objects with no text as we do not export them right. [#596886]
3285 2009-09-20 Morten Welinder <terra@gnome.org>
3289 2009-09-05 Morten Welinder <terra@gnome.org>
3293 2009-09-05 Jean Brefort <jean.brefort@normalesup.org>
3295 * all files: renamed go-color.h macros.
3297 2009-09-05 Jean Brefort <jean.brefort@normalesup.org>
3299 * ms-chart.c (end): don't use z values as x or y when there are no
3300 labels or categories. [See #593937]
3302 2009-09-04 Jean Brefort <jean.brefort@normalesup.org>
3304 * ms-chart.c (axis), (xl_axis_get_elem), (valuerange): use gnm_go_data
3305 instead of simple go_data [#594068],
3306 (end): don't require x and y values for surfaces.
3308 2009-09-01 Jean Brefort <jean.brefort@normalesup.org>
3310 * ms-chart.c: renamed GOColor macros.
3311 * ms-excel-read.c: ditto.
3312 * ms-excel-write.c: ditto.
3313 * xlsx-read.c: ditto.
3314 * xlsx-write.c: ditto.
3316 2009-08-31 Jean Brefort <jean.brefort@normalesup.org>
3318 * ms-chart.c (lineformat), (ms_excel_chart_read),
3319 (style_is_completely_auto), (chart_write_style),
3320 (chart_write_DROPBAR): replace GOStyle::outline.
3321 * ms-excel-read.c (ms_sheet_realize_obj): ditto.
3322 * ms-excel-write.c (extract_gog_object_style): ditto.
3323 * xlsx-read.c (xlsx_draw_line_dash): ditto.
3325 2009-08-30 Morten Welinder <terra@gnome.org>
3329 2009-08-15 Morten Welinder <terra@gnome.org>
3333 2009-06-20 Morten Welinder <terra@gnome.org>
3337 2009-06-17 Andreas J. Guelzow <aguelzow@pyrshep.ca>
3339 * xlsx-write.c (xlsx_write_breaks): Quiet enum handling
3341 2009-06-16 Morten Welinder <terra@gnome.org>
3343 * boot.c: Quiet pivot debugging.
3345 2009-06-11 Andreas J. Guelzow <aguelzow@pyrshep.ca>
3347 * ms-excel-read.c (excel_parse_name): If it looks like the print area
3348 could have been one of our old "whole sheet" areas, set it to nil.
3350 2009-06-09 Jody Goldberg <jody@gnome.org>
3352 * xls-read-pivot.c (xls_read_SXIVD) : ignore magic index of 0xfffe.
3353 Need to figure out what it does.
3355 2009-06-07 Andreas J. Guelzow <aguelzow@pyrshep.ca>
3357 * ms-excel-write.c (excel_write_PAGE_BREAK): don't save automatic
3360 2009-05-23 Morten Welinder <terra@gnome.org>
3364 2009-05-19 Morten Welinder <terra@gnome.org>
3366 * ms-excel-read.c (excel_read_WINDOW1): Normalize bools, or else
3367 gobject will complain.
3369 2009-05-18 Morten Welinder <terra@gnome.org>
3371 * ms-excel-read.c (excel_read_WINDOW1): Use g_object_set instead
3372 of poking directly into a WorkbookView.
3374 2009-05-14 Jon K Hellan <hellan@acm.org>
3376 * ms-excel-util.c (init_xl_font_widths): Add DejaVu fonts with
3377 same metrics as Bitstream Vera.
3379 2009-05-10 Andreas J. Guelzow <aguelzow@pyrshep.ca>
3381 * xlsx-write.c (xlsx_write_cols): and don't commit debugging code
3383 2009-05-10 Andreas J. Guelzow <aguelzow@pyrshep.ca>
3385 * xlsx-write.c (xlsx_write_cols): fix off-by-one error [#569862]
3387 2009-05-10 Andreas J. Guelzow <aguelzow@pyrshep.ca>
3389 * xlsx-write.c (xlsx_write_sheet): write the tags in schema ordering
3391 2009-05-06 Morten Welinder <terra@gnome.org>
3395 2009-05-06 Morten Welinder <terra@gnome.org>
3397 * ms-excel-read.c (excel_read_init): Use the GnmFunc's case in the
3400 2009-05-05 Morten Welinder <terra@gnome.org>
3402 * ms-excel-write.c (excel_sheet_write_block): Add one-element
3403 cache. Fixes #581378.
3405 2009-05-02 Jean Brefort <jean.brefort@normalesup.org>
3407 * ms-chart.c (get_style), (ms_excel_chart_read): use reimplemented
3410 2009-04-28 Jody Goldberg <jody@gnome.org>
3412 * xlsx-read.c : initial work on reading external refs. Still broken
3413 for refs to sheets with spaces in their names '[1]A Space!A1' thanks
3414 to massively silly quoting conventions. This will take a parser
3417 2009-04-26 Morten Welinder <terra@gnome.org>
3419 * ms-excel-write.c (excel_sheet_extent): Fix off-by-one when we
3420 overflow the area available.
3422 2009-04-25 Morten Welinder <terra@gnome.org>
3426 2009-04-22 Morten Welinder <terra@gnome.org>
3428 * ms-container.c (ms_container_read_markup): Fix badly
3429 misunderstood field. Fixes #579835.
3431 2009-04-16 Jean Brefort <jean.brefort@normalesup.org>
3433 * ms-chart.c: (get_style): create a GogStyle object, not a GOStyle.
3435 2009-04-15 Morten Welinder <terra@gnome.org>
3437 * ms-obj.c (ms_read_TXO): Fix text problem. [#578878]
3439 2009-04-10 Jean Brefort <jean.brefort@normalesup.org>
3441 * ms-chart.c: fixed after GogStyle -> GOStyle rename.
3442 * ms-excel-read.c: ditto.
3443 * ms-excel-write.c: ditto.
3444 * xlsx-read.c: ditto.
3446 2009-04-11 Jody Goldberg <jody@gnome.org>
3448 * plugin.xml.in : get rid of bogus .sml suffix now that we have
3450 * excel-xml-read.c : accept title and description in metadata
3451 (xl_xml_col_start) : only assign width > 0.
3452 (xl_xml_num_fmt) : fix previous patch.
3454 2009-04-02 Morten Welinder <terra@gnome.org>
3456 * ms-excel-write.c (excel_sheet_new): Limit maxcols to what we
3457 actually have. Fixes #577758.
3459 2009-04-01 Morten Welinder <terra@gnome.org>
3461 * xlsx-write.c (xlsx_write_sheet): Fix access to ->sheet.
3462 (xlsx_write_objects): Plug leak.
3464 2009-03-31 Morten Welinder <terra@gnome.org>
3466 * xlsx-write.c: Partial fix for #168875.
3467 * ms-excel-read.c: Ditto.
3468 * ms-excel-write.c: Ditto.
3470 * ms-obj.c (read_pre_biff8_read_name_and_fmla): Add sanity checks.
3471 (ms_obj_read_pre_biff8_obj): Add and fix sanity checks. Fixes
3474 * ms-excel-read.c (excel_read_MERGECELLS): Fix sanity check.
3477 * ms-chart.c (ms_excel_chart_read): Leak less on errors.
3478 (BC_R(scatter)): Add sanity check for V8 case. Fixes #577400.
3480 * ms-excel-read.c (excel_read_CF): Add sanity checks. Fixes
3483 * ms-biff.c (ms_biff_query_next): If the read fails, make sure
3484 ->length is zero to match the NULL ->data.
3486 2009-03-30 Morten Welinder <terra@gnome.org>
3488 * ms-chart.c (ms_excel_chart_read): Add sanity check. Fixes
3491 * ms-excel-read.c (excel_read_IMDATA): Add sanity check. Fixes
3494 * ms-container.c (ms_container_get_blip): Add sanity check. Fixes
3497 * ms-excel-read.c (excel_read_MULBLANK): Add sanity checks. Fixes
3500 2009-03-29 Morten Welinder <terra@gnome.org>
3502 * ms-obj.c (ms_read_TXO): Add sanity check.
3504 * ms-biff.c (ms_biff_query_peek_next): Read the length field too
3505 and make sure there's enough left to read the data. Fixes
3508 * ms-chart.c (lineformat): Add sanity check. Fixes #577208.
3510 2008-12-10 Jody Goldberg <jody@gnome.org>
3512 * excel-xml-read.c (xl_xml_probe_start_element) : new.
3513 (excel_xml_file_probe) : use the new gsf_xml_probe.
3515 * plugin.xml.in : SpreadsheetML has a probe function now.
3517 2009-03-22 Morten Welinder <terra@gnome.org>
3521 2009-03-20 Morten Welinder <terra@gnome.org>
3523 * ms-excel-read.c (excel_read_LABEL_markup): Fix sanity check
3526 * ms-container.c (ms_container_read_markup): Fix termination
3528 (ms_container_read_markup): Fix sanity check off-by-one.
3530 * ms-excel-read.c (excel_read_init): Use magic formats for 0x0e,
3531 0x0f, and 0x16. Keep the nameless magic for 0x10.
3533 2009-03-16 Morten Welinder <terra@gnome.org>
3535 * ms-excel-read.c (excel_read_LABEL_markup): Verify that offsets
3537 (excel_read_LABEL_markup): Ditto. Fixes #575452.
3539 2009-03-15 Morten Welinder <terra@gnome.org>
3541 * ms-excel-read.c (excel_read_init): Reinstate, but without
3542 looking at go_format_builtins.
3544 2009-03-15 Morten Welinder <terra@gnome.org>
3546 * ms-excel-read.c (excel_read_init): Do not localize formats 14,
3549 * ms-chart.c (ms_excel_chart_read_NUMBER,
3550 ms_excel_chart_read_LABEL): Add extra sanity check. Fixes #575393.
3552 2009-03-14 Morten Welinder <terra@gnome.org>
3554 * ms-excel-write.c (excel_font_from_go_font): Don't crash if the
3555 font descriptor lacks a family. Part of #575318.
3556 (cb_NOTE_v8): If there is no author, just use the empty string.
3558 2009-03-10 Morten Welinder <terra@gnome.org>
3560 * ms-excel-read.c (ms_biff_bof_data_new): Handle BIFF_BOF_v8
3561 records indicating MS_BIFF_V2/MS_BIFF_V3/MS_BIFF_V4 files. (And
3562 indicating broken tools too, of course.)
3564 2009-02-22 Morten Welinder <terra@gnome.org>
3568 2009-02-20 Morten Welinder <terra@gnome.org>
3570 * ms-chart.c (chart_create_obj): Bullet proof.
3572 2009-02-18 Morten Welinder <terra@gnome.org>
3574 * ms-formula-write.c (do_excel_write_prep_expr): Use
3575 excel_func_by_name hash table instead of linear search.
3577 * ms-excel-read.c (excel_read_init): Set up new hash table
3580 2009-02-17 Morten Welinder <terra@gnome.org>
3582 * ms-formula-read.c (excel_func_desc): Rename entry 92 back to
3583 "SERIES" hoping that won't break anything. Fixes #572127.
3585 2009-01-31 Morten Welinder <terra@gnome.org>
3587 * ms-formula-read.c (excel_parse_formula1): Use
3588 gnm_expr_new_range_ctor, not build_binop.
3590 2009-01-23 Morten Welinder <terra@gnome.org>
3592 * ms-excel-write.c (excel_sheet_write_block): Handle the case of a
3593 missing cell better. Partially fixes #568929.
3595 2009-01-16 Jean Brefort <jean.brefort@normalesup.org>
3597 * ms-chart.c: (chart_write_AI): support GOData simple
3598 instances [#567953],
3599 (chart_write_axis_sets): do not write invalid AXESUSED field, see
3602 2009-01-15 Morten Welinder <terra@gnome.org>
3604 * ms-excel-read.c (excel_read_DELTA): Check tolerance. Fixes
3606 (excel_read_CALCCOUNT): Check count.
3608 2009-01-15 Jean Brefort <jean.brefort@normalesup.org>
3610 * ms-chart.c: (axesused): Don't use g_return_val_if_fail for data
3613 2009-01-11 Morten Welinder <terra@gnome.org>
3615 * ms-formula-write.c (write_node): Don't introduce parentheses
3616 around explicit parentheses. Fixes #567380.
3618 2008-12-15 Morten Welinder <terra@gnome.org>
3620 * ms-chart.c (BC_R): Don't use g_return_val_if_fail for data
3621 dependent errors. Fixes #564499.
3623 2008-12-12 Morten Welinder <terra@gnome.org>
3625 * ms-excel-util.c (two_way_table_move): Make sure we keep
3626 unique_keys correct. See #564078.
3628 2008-12-11 Morten Welinder <terra@gnome.org>
3630 * ms-excel-write.c (map_pattern_to_xl): Throw in some translations
3631 of Gnumeric-specific patterns. Fixes #564078.
3633 2008-12-08 Jean Brefort <jean.brefort@normalesup.org>
3635 * ms-chart.c: (3d): use an int for an integer property, not a double.
3637 2008-11-11 Jean Brefort <jean.brefort@normalesup.org>
3639 * ms-chart.c: (3d), (chart_write_plot): some work on 3d import/export,
3640 (ms_excel_chart_write): fixed segfault when exporting an empty contour
3643 2008-10-21 Morten Welinder <terra@gnome.org>
3645 * ms-chart.c (BC_R(end)): Don't look first series if there are no
3646 series. Fixes #557077.
3648 2008-10-18 Jody Goldberg <jody@gnome.org>
3652 2008-10-02 Morten Welinder <terra@gnome.org>
3654 * ms-excel-write.c (excel_write_NAME): Don't write a formula for
3657 2008-10-01 Morten Welinder <terra@gnome.org>
3659 * ms-excel-write.c (excel_foreach_name): Use new
3660 workbook_foreach_name.
3662 2008-10-13 Jody Goldberg <jody@gnome.org>
3664 * ms-obj.c (ms_read_OBJ) : standalone OBJ records outside escher
3665 groups appear to use the old style. [#546887]
3667 2008-10-09 Jody Goldberg <jody@gnome.org>
3669 * xlsx-read.c (xlsx_pattern_fg_bg) : merge _fg and _bg and
3670 restore/comment on why there seems to be a need for magic in the
3671 case of conditional formats.
3673 2008-10-09 Jody Goldberg <jody@gnome.org>
3675 * xlsx-read.c (indexed_color) : return a GOColor.
3676 (themed_color) : new. Has some magic to use the theme indicies as
3677 lookups into a hard coded map.d
3678 (xlsx_draw_color_themed) : simplified, the theme_colors_by_name is always defined.
3679 (hue_to_color) : new.
3680 (apply_tint) : new. Could be moved into goffice.
3681 (elem_color) : handle tints, and themes.
3682 (xlsx_get_style_xf) : new.
3683 (xlsx_pattern_fg) : drop the magic pattern based inversion.
3684 (xlsx_pattern_bg) : ditto.
3685 (xlsx_border_end) : add protection.
3686 (xlsx_xf_begin) : merge parent styles when available.
3687 (xlsx_cell_style) : it is an index into the style_xfs, not the cell_xfs.
3688 (xlsx_file_open) : read themes before styles.
3690 2008-09-11 Jody Goldberg <jody@gnome.org>
3692 * ms-excel-read.c (excel_read_TAB_COLOR) : no sense checking for NULL.
3695 2008-09-02 Jody Goldberg <jody@gnome.org>
3697 * boot.c (excel_file_open) : store VBA if it is available
3699 2008-08-29 Jody Goldberg <jody@gnome.org>
3703 2008-08-29 Morten Welinder <terra@gnome.org>
3705 * ms-excel-read.c (excel_wb_get_fmt): Handle broken 1.6 formats.
3707 2008-08-02 Jean Brefort <jean.brefort@normalesup.org>
3709 * xlsx-read.c: Fixed axis position.
3711 2008-08-01 Jean Brefort <jean.brefort@normalesup.org>
3713 * ms-chart.c: (axis), (valuerange): set the "cross-axis-id" property.
3715 2008-07-28 Jean Brefort <jean.brefort@normalesup.org>
3717 * ms-chart.c: (ai): add a warning, (tick): import text orientation,
3718 (chart_write_AI): fix AI export (reverses 2008-02-29 change),
3719 (chart_write_axis): export text orientation [#544935].
3721 2008-07-02 Jody Goldberg <jody@gnome.org>
3723 * xlsx-read.c (xlsx_CT_worksheet) : new. Looks for related pivot
3724 tables. If the gsf extension necessary is available.
3725 (cb_find_pivots) : new.
3727 2008-06-30 Jody Goldberg <jody@gnome.org>
3729 * xlsx-read.c (xlsx_CT_PivotCache) : new, read a cache.
3730 * xlsx-read-pivot.c : New.
3731 * Makefile.am : dist xlsx-read-pivot.c
3733 2008-02-29 Jean Brefort <jean.brefort@normalesup.org>
3735 * ms-chart.c (chart_write_AI): Do not export non-existing values
3736 (fixes some criticals, see #519788).
3738 2008-06-29 Morten Welinder <terra@gnome.org>
3740 * ms-chart.c (xl_chart_import_error_bar): More checks on parent.
3743 2008-06-25 Jody Goldberg <jody@gnome.org>
3747 2008-06-22 Jody Goldberg <jody@gnome.org>
3749 * ms-biff.c (ms_biff_query_next) : don't return anything if the record
3750 looks suspicious. [#539666]
3752 2008-06-22 Jody Goldberg <jody@gnome.org>
3754 * ms-chart.c (chart_realize_obj) : throw in a warning (not used yet).
3755 (chart_create_obj) : call out to the container.
3757 2008-06-19 Morten Welinder <terra@gnome.org>
3759 * ms-chart.c (end): Fix corrupted-file crash. [#539178]
3761 2008-06-13 Jody Goldberg <jody@gnome.org>
3763 * ms-obj.c (ms_obj_read_expr) : handle empty expressions without a
3765 (ms_obj_read_biff8_obj) : drop the debug spew.
3767 * ms-excel-read.c (excel_read_EXTERNNAME) : rework the logic to
3768 differentiate between name/DDE/OLE, and always load the name itself
3769 even if we do not support DDE/OLE.
3770 (excel_read_EXTERNSHEET_v7) : hush.
3771 (excel_read_HEADER_FOOTER) : drop the size checks (they were wrong for
3772 older sheets) they are unnecessary. The biff_text handles it better.
3773 (excel_biff_text_1) : use the same structure as the logic in ...
3774 (excel_biff_text_2) : ... here. And make it clear that we only need
3777 * ms-chart.c (BC_R(surf)) : This is only 2 bytes, not 6.
3779 2008-06-12 Jody Goldberg <jody@gnome.org>
3781 * ms-excel-read.c (gnm_xl_importer_free) : don't free a name that
3783 (excel_parse_name) : Do not free the name string here.
3784 (excel_read_EXTERNNAME) : get the name string even for DDE and OLE.
3785 Fix the test for DDE links.
3786 Improve the warning for unsupported types, and win32 proof them.
3787 free the name string here.
3788 (excel_read_NAME) : and free it here too.
3789 (excel_read_SUPBOOK) : relax the size check to <=. If there are no
3790 sheets in the external link (e.g. DDE links) then this is the whole
3791 record. Remove the warning about unknown encoding. There is no
3792 requirement that the first character be one of the magic encoding
3795 2008-06-11 Morten Welinder <terra@gnome.org>
3797 * ms-excel-util.c (two_way_table_put): If we free the key because
3798 it is a duplicate, continue with the valid version, not the freed.
3801 2008-05-07 Morten Welinder <terra@gnome.org>
3803 * ms-excel-write.c (ExcelStyleVariant): New type.
3804 (xf_init): Create cell_style_variant hash. Change domain type of
3805 xf.two_way_table to ExcelStyleVariant. All users changed.
3806 (xf_free): Destroy cell_style_variant.
3807 (cb_cell_pre_pass): If a string cell needs quoting, mark it as
3809 (excel_sheet_write_block): Use proper variant.
3810 (build_xf_data): Set ->format properly.
3811 (excel_write_XF): Propagate ->format into XF. Fixes #530704.
3813 2008-05-04 Jody Goldberg <jody@gnome.org>
3817 2008-05-04 Jody Goldberg <jody@gnome.org>
3819 * xlsx-read.c : Add stub for 'functionGroup'
3821 2008-05-02 Morten Welinder <terra@gnome.org>
3823 * ms-excel-read.c (excel_read_XF): Dump more of the xf when debugging.
3825 2008-05-02 Jody Goldberg <jody@gnome.org>
3827 * ms-excel-read.c (ms_biff_bof_data_new) : make the version info spew
3830 2008-04-27 Morten Welinder <terra@gnome.org>
3832 * ms-excel-read.c (excel_sheet_insert_val): Don't set formats for
3833 blanks and bools. Fixes #530259.
3835 2008-03-29 Morten Welinder <terra@gnome.org>
3837 * ms-formula-read.c (excel_parse_formula1): Fix swapped length
3838 checks. Fixes #524926.
3840 2008-03-12 Morten Welinder <terra@gnome.org>
3842 * ms-excel-read.c (excel_wb_get_fmt): Replace invalid formats by
3845 2008-03-07 Jean Brefort <jean.brefort@normalesup.org>
3847 * xlsx-read.c: (xlsx_chart_text): create GnmGOData instead
3848 of GOData, (xlsx_axis_cleanup): do not unref a non deletable axis.
3850 2008-02-29 Jean Brefort <jean.brefort@normalesup.org>
3852 * ms-chart.c: (ms_excel_chart_read): do not leak the default lot style,
3853 (store_dim): accept vectors with nul length,
3854 (chart_write_axis): fix export of invisible axis.
3856 2008-02-29 Jean Brefort <jean.brefort@normalesup.org>
3858 * ms-chart.c (BC_R(end)): Drop axes that the plot cannot handle.
3859 Fixes a number of criticals from #518939.
3861 2008-02-27 Morten Welinder <terra@gnome.org>
3863 * ms-chart.c (set_radial_axes): If clearing the parent fails, the
3864 ref-count is not as expected to stop messing with the object.
3865 Fixes #518939. Mostly.
3867 2008-02-23 Morten Welinder <terra@gnome.org>
3869 * ms-excel-read.c (excel_externsheet_v8): Take guint16 argument to
3870 prevent negative lookups.
3872 2008-02-19 Morten Welinder <terra@gnome.org>
3874 * ms-escher.c (ms_escher_get_data): Add a few checks before Sum1
3877 2008-02-17 Morten Welinder <terra@gnome.org>
3879 * ms-obj.c (ms_read_OBJ): Return error indicator.
3880 * ms-escher.c (ms_escher_read_ClientData): Handle errors from
3881 ms_read_OBJ. Fixes #517106.
3883 2008-02-15 Morten Welinder <terra@gnome.org>
3885 * ms-chart.c (ms_excel_chart_read): Check record length here for
3886 all chart record types. (Derived from Jean's patch to #515343.)
3887 Fixes #514513, #515343, #515873, #515876.
3888 (BC(register_handlers)): Fix the minimum length of siindex
3891 2008-02-08 Morten Welinder <terra@gnome.org>
3893 * ms-chart.c: Sprinkle some length checks. Fixes #515269,
3894 #515275, and #515335.
3896 * ms-excel-read.c (excel_read_SUPBOOK): Add length checks. Fixes
3899 2008-02-07 Morten Welinder <terra@gnome.org>
3901 * ms-biff.c (ms_biff_query_bound_check): Return (guint32)-1 on
3902 error so we can tell.
3904 * ms-excel-read.c (gnm_xl_importer_free): Be more careful when
3906 (sst_read_string): Be more careful. This code is a mess.
3908 * ms-chart.c (xl_chart_import_error_bar): Avoid crash in missing
3909 parent-series case. Fixes #514630.
3911 * ms-formula-read.c (excel_parse_formula1, excel_parse_formula):
3912 Grow a maxlen argument and make sure we do not read more. Fixes
3915 * ms-excel-read.c (excel_read_string_header, excel_get_text): Grow
3916 an array_length argument and make sure we do not read more array
3917 data than call. All callers changed.
3918 (excel_biff_text, excel_biff_text_1, excel_biff_text_2): New
3919 Biff-record based wrappers for excel_get_text.
3920 (excel_formula_shared): Make sure to copy the data behind the
3923 2008-02-05 Morten Welinder <terra@gnome.org>
3925 * ms-escher.c (ms_escher_read_Blip): Don't construct bogus blip.
3928 * ms-excel-read.c (excel_read_FONT): Add length checks. Fixes
3931 2008-02-04 Morten Welinder <terra@gnome.org>
3933 * ms-excel-read.c (excel_biff_text, excel_biff_text_1,
3934 excel_biff_text_2): New functions. Use these where possible to
3937 * ms-chart.c (ai): Handle missing series. Fixes #514435.
3938 (fontx): Add length checks. Fixes #514436.
3939 * ms-biff.c (ms_biff_query_set_decrypt): Handle empty record.
3942 * ms-excel-read.c (excel_read_FORMULA): When we see multiple
3943 expressions for a single cell, don't leak. Fixes #514295.
3944 (excel_cell_fetch): New function.
3945 (excel_read_FORMULA, excel_read_LABEL, excel_sheet_insert_val):
3946 Use excel_cell_fetch so we range check cell position.
3948 * ms-chart.c (ms_excel_chart_read): Factor the rest of cases out
3949 into functions so XL_CHECK_CONDITION can be used. Fixes #514229
3950 and several other similar issues.
3952 * ms-excel-read.c (excel_read_DEF_ROW_HEIGHT): Add length checks.
3955 2008-02-03 Morten Welinder <terra@gnome.org>
3957 * ms-excel-read.c (excel_read_sheet): Factor the rest of cases out
3958 into functions so XL_CHECK_CONDITION can be used. Fixes #513963
3959 and several other similar issues.
3961 2008-02-02 Morten Welinder <terra@gnome.org>
3963 * ms-excel-read.c (excel_read_workbook) [BIFF_DSF]: Properly check
3964 record length. Fixes #513835.
3965 (excel_read_HLINK): Be even stricter about record lengths.
3967 2008-02-01 Morten Welinder <terra@gnome.org>
3969 * ms-excel-read.c (excel_read_NAME): Properly check record length.
3971 (excel_read_FORMAT): Ditto. Fixes #513608.
3972 (excel_read_ROW): Ditto. Fixes #513787.
3974 * ms-chart.c (BC_R): Ditto. Fixes #513790.
3976 2008-01-31 Morten Welinder <terra@gnome.org>
3978 * ms-excel-read.c (excel_read_BOOLERR): Properly check record
3980 (excel_read_HEADER_FOOTER): Ditto.
3981 (excel_read_REFMODE): Ditto. Fixes #513364.
3982 (excel_read_PAGE_BREAK): Ditto. Fixes #513361.
3983 (excel_set_xf): Ditto. Fixes #513551.
3985 2008-01-30 Morten Welinder <terra@gnome.org>
3987 * ms-excel-read.c (excel_read_EXTERNNAME): Fix the error case.
3989 (excel_read_LABEL): Properly check record length. Fixes #513313.
3990 (excel_read_SELECTION): Properly check record length. Fixes #513317.
3992 2008-01-29 Morten Welinder <terra@gnome.org>
3994 * ms-excel-write.c (excel_write_string): Fix length written for
3995 the unicode case (with length measured in characters).
3997 2008-01-29 Morten Welinder <terra@gnome.org>
3999 * ms-excel-read.c (excel_read_EXTERNSHEET_v8): Check q->length
4000 properly. Fixes #512984.
4002 2008-01-15 Morten Welinder <terra@gnome.org>
4004 * ms-excel-read.c (excel_read_HLINK): Improve error checks.
4007 2008-01-12 Jean Brefort <jean.brefort@normalesup.org>
4009 * ms-chart.c: (ms_excel_chart_write): save graph title if any and
4010 if the first chart has no title. [#301720]
4012 2007-12-21 Jody Goldberg <jody@gnome.org>
4016 2007-12-12 Jean Brefort <jean.brefort@normalesup.org>
4018 * ms-chart.c: (lineformat), (ms_excel_chart_read),
4019 (chart_write_LINEFORMAT), (chart_write_axis),
4020 (ms_excel_chart_write): fix import / export of lines format. [#502968]
4021 * ms-excel-read.c: (xl_pattern_to_line_type),
4022 (ms_sheet_realize_obj): ditto.
4023 * ms-excel-read.h: ditto.
4025 2007-12-07 Morten Welinder <terra@gnome.org>
4027 * ms-chart.c (ms_excel_chart_read): Copy list of contributors
4028 because it will change underneath us. [#501656]
4030 2007-12-03 Jody Goldberg <jody@gnome.org>
4034 2007-11-28 Jean Brefort <jean.brefort@normalesup.org>
4036 * ms-chart.c: (axislineformat): always set the style, even for
4038 (objectlink): started work on series labels import,
4039 (set_radial_axes),(radar), (radararea), load radar plot axes. [#499349]
4040 (end): a better auto marker test for #344950,
4041 (ms_excel_chart_read), reparent invisible axis children before
4043 (chart_write_axis_sets): write radar plots axes.
4044 * ms-excel-read.c: (excel_read_BOF): reverse objects stack order.
4046 2007-11-23 Jody Goldberg <jody@gnome.org>
4048 * xlsx-read.c (xlsx_CT_PageMargins) : enable top/bottom.
4049 Convert header/footer from inches to pts.
4051 2007-11-19 Jody Goldberg <jody@gnome.org>
4055 2007-11-18 Jody Goldberg <jody@gnome.org>
4057 * ms-excel-write.c (excel_write_HLINKs) : implement.
4058 * ms-excel-read.c (excel_read_HLINK) : enable file and unc links.
4059 * plugin.xml.in : prefer biff8 to biff7 when matching by suffix.
4061 2007-11-17 Morten Welinder <terra@gnome.org>
4063 * ms-formula-write.c (write_funcall): Fix error message.
4065 2007-11-15 Morten Welinder <terra@gnome.org>
4067 * ms-excel-write.c (excel_sheet_free): Plug leaks. [#497191]
4069 2007-11-12 Morten Welinder <terra@gnome.org>
4071 * xlsx-read.c (xlsx_CT_Selection): Plug leak.
4073 2007-11-15 Jean Brefort <jean.brefort@normalesup.org>
4075 * ms-chart.c: (areaformat): set fill.auto_fill to FALSE for
4076 transparent backgounds,
4077 (XL_gog_series_set_dim), (ms_excel_chart_read): fix compiler warnings.
4079 2007-11-12 Jean Brefort <jean.brefort@normalesup.org>
4081 * ms-chart.c: (axislineformat), (ms_excel_chart_read),
4082 (chart_write_axis): use the "invisible" property for axis when
4085 2007-11-06 Jean Brefort <jean.brefort@normalesup.org>
4087 * ms-chart.c: (xl_axis_get_elem): don't set cross auto each
4088 time there is an auto parameter, just for cross.
4090 2007-11-04 Morten Welinder <terra@gnome.org>
4094 2007-11-01 Morten Welinder <terra@gnome.org>
4096 * ms-excel-write.c (excel_write_ClientTextbox): Survive NULL
4097 label. Patches over #492377.
4098 (excel_write_string): Handle NULL txt here, just in case.
4100 2007-10-29 Morten Welinder <terra@gnome.org>
4102 * ms-chart.c: use g_printerr where appropriate.
4103 (objectlink): Plug another leak.
4105 2007-10-29 Morten Welinder <terra@gnome.org>
4107 * ms-chart.c (ms_excel_chart_read): Avoid freeing a value when
4109 (seriestext): Fix leak.
4111 2007-10-29 Jean Brefort <jean.brefort@normalesup.org>
4113 * ms-chart.c: (axislineformat): set s->xaxis to NULL after deletion,
4114 (ms_excel_chart_read): initialize state.interpolation. [#491131]
4116 2007-10-27 Morten Welinder <terra@gnome.org>
4118 * ms-excel-write.c (cb_write_macro_NAME): Don't delete
4119 efunc->macro_name here. That won't work when we write the
4121 (free_excel_func): New function.
4122 (excel_write_state_new): Install free_excel_func as value
4123 destructor for the hash. Fixes #490828.
4125 2007-10-27 Jean Brefort <jean.brefort@normalesup.org>
4127 * ms-chart.c: enhance axes labels import, export them, and fix
4128 export of line patterns.
4130 2007-10-24 Morten Welinder <terra@gnome.org>
4132 * ms-formula-write.c (excel_formula_write_NAME_v7): Use a
4133 sequential id instead of casting the expression address to a
4136 2007-10-21 Morten Welinder <terra@gnome.org>
4140 2007-09-28 Emmanuel Pacaud <emmanuel.pacaud@lapp.in2p3.fr>
4142 * ms-chart.c (ms_excel_chart_write): remove unused zoom argument in
4143 gog_renderer_update call.
4145 2007-09-28 Jean Brefort <jean.brefort@normalesup.org>
4147 * ms-chart.c: do not use WITH_GOFFICE_0_4 anymore.
4149 2007-09-27 Jody Goldberg <jody@gnome.org>
4151 * xlsx-read.c : Fix import of existing conditional format types.
4152 We can not handle the computed range formats yet.
4154 2007-09-24 Jody Goldberg <jody@gnome.org>
4156 * ms-chart.c (BC_R(end)) : Don't leak a style when faced with an empty
4159 2007-09-21 Morten Welinder <terra@gnome.org>
4161 * md5.c: Switch to GPL2 version, see bug #478398. (Patch by
4164 2007-09-16 Jody Goldberg <jody@gnome.org>
4166 * xlsx-read.c (xlsx_plot_area_start) : new.
4167 (xlsx_plot_area_end) : new.
4168 (xlsx_chart_logbase) : new.
4169 (xlsx_draw_line_dash) : new.
4170 (xlsx_chart_marker_symbol) : new.
4171 (xlsx_chart_marker_end) : assign the marker symbol here, so that we
4173 (xlsx_chart_gridlines) : new.
4174 (xlsx_chart_pop) : new.
4176 2007-09-16 Jody Goldberg <jody@gnome.org>
4178 * xlsx-read.c (xlsx_plot_area_start) : new.
4179 (xlsx_plot_area_end) : new.
4180 (xlsx_chart_logbase) : new.
4181 (xlsx_draw_line_dash) : new.
4182 (xlsx_chart_marker_symbol) : new.
4183 (xlsx_chart_marker_end) : assign the marker symbol here, so that we
4185 (xlsx_chart_gridlines) : new.
4186 (xlsx_chart_pop) : new.
4188 2007-09-16 Jody Goldberg <jody@gnome.org>
4190 * xlsx-read.c (xlsx_plot_area_start) : new.
4191 (xlsx_plot_area_end) : new.
4192 (xlsx_chart_logbase) : new.
4193 (xlsx_draw_line_dash) : new.
4194 (xlsx_chart_marker_symbol) : new.
4195 (xlsx_chart_marker_end) : assign the marker symbol here, so that we
4197 (xlsx_chart_gridlines) : new.
4198 (xlsx_chart_pop) : new.
4200 2007-09-16 Jody Goldberg <jody@gnome.org>
4202 * xlsx-read.c (attr_rgb) : new.
4203 (xlsx_chart_push_obj) : new.
4204 (xlsx_chart_pop_obj) : new.
4205 (simple_bool) : new.
4206 (xlsx_vary_colors) : use it.
4208 (xlsx_chart_pie_sep) : use it.
4209 (xlsx_chart_bar_overlap) : ditto.
4210 (xlsx_chart_bar_gap) : ditto.
4211 (simple_float) : new.
4212 (simple_enum) : new.
4213 (xlsx_chart_bar_dir) : use it.
4214 (xlsx_chart_add_plot) : new.
4215 (xlsx_chart_pie) : use it.
4216 (xlsx_chart_ring) : use it.
4217 (xlsx_chart_bar) : use it.
4218 (xlsx_chart_area) : use it.
4219 (xlsx_chart_line) : use it.
4220 (xlsx_chart_xy) : use it.
4221 (xlsx_chart_bubble) : use it.
4222 (xlsx_chart_radar) : use it.
4224 (xlsx_axis_info_free) : new.
4225 (xlsx_plot_axis_id) : new.
4226 (xlsx_axis_id) : new.
4227 (xlsx_axis_start) : new.
4228 (xlsx_axis_delete) : new.
4229 (xlsx_axis_orientation) : new.
4230 (xlsx_axis_pos) : new.
4231 (xlsx_axis_bound) : new.
4232 (xlsx_axis_crosses) : new.
4233 (xlsx_axis_end) : new.
4234 (xlsx_chart_ser_f) : handle series names.
4236 (xlsx_chart_pt_start) : new.
4237 (xlsx_chart_pt_end) : new.
4238 (xlsx_chart_pt_index) : new.
4239 (xlsx_chart_pt_sep) : new.
4240 (xlsx_chart_style_start) : new.
4241 (xlsx_chart_style_end) : new.
4242 (xlsx_style_line_start) : new.
4243 (xlsx_style_line_end) : new.
4244 (xlsx_chart_no_fill) : new.
4245 (xlsx_chart_solid_fill) : new.
4246 (xlsx_draw_color_themed) : new.
4247 (xlsx_draw_color_rgb) : new.
4248 (xlsx_draw_color_alpha) : new.
4249 (xlsx_draw_color_end) : new.
4250 (xlsx_chart_marker_start) : new.
4251 (xlsx_chart_marker_end) : new.
4252 (xlsx_chart_text) : new.
4253 (xlsx_chart_text_content) : new.
4255 (cb_axis_set_position) : new.
4256 (xlsx_axis_cleanup) : new.
4257 (xlsx_read_chart) : set up the extensions to handle styles, and
4258 connect up the axis after parsing.
4260 * ms-chart.c (excel_font_from_go_font) : take a XLExportBase.
4261 (chart_write_text) : fix call to excel_font_from_go_font.
4262 (chart_write_axis) : ditto.
4264 * xlsx-write.c (xlsx_write_series_dim) : silence a warning.
4266 2007-09-15 Jean Brefort <jean.brefort@normalesup.org>
4268 * ms-chart.c: (chart_write_axis_sets): use "Backplane" instead of
4269 "Grid" when goffice is 0.5,
4271 2007-09-15 Jean Brefort <jean.brefort@normalesup.org>
4273 * ms-chart.c: (end): use "Backplane" instead of "Grid" when goffice is 0.5,
4274 (chart_write_text), (ms_excel_chart_write): made some work on titles
4277 2007-09-13 Jean Brefort <jean.brefort@normalesup.org>
4279 * ms-chart.c: (end), (chart_write_text), (chart_write_axis),
4280 (ms_excel_chart_write): export text with style and import chart
4282 * ms-excel-write.c: (excel_font_from_go_font),
4283 (extract_gog_object_style): export fonts used in charts.
4284 * ms-excel-write.h: ditto.
4286 2007-09-08 Jody Goldberg <jody@gnome.org>
4288 * xlsx-read.c (xlsx_vary_colors) : new.
4290 * ms-chart.c (chart_write_LEGEND) : new code split from.
4291 (chart_write_axis_sets) : here.
4292 * ms-chart.c (BC_R(boppop)) : place holder to at least get the pie.
4294 2007-09-04 Jody Goldberg <jody@gnome.org>
4298 2007-09-01 Jody Goldberg <jody@gnome.org>
4300 * xlsx-write.c (xlsx_write_init_row) : new.
4301 (xlsx_write_cells) : add a simple compression mechanism to avoid
4302 producing an empty row element if there is no useful content.
4303 (xlsx_write_hlink) : fix the namespace of the "id" attr.
4304 (xlsx_write_hlinks) : yay consistency! No count for this collection.
4305 (xlsx_write_chart_bool) : always generate a val, ignore the supposed
4306 default value. (fixes pie varyColor)
4307 (xlsx_write_chart) : vary pie color is not the default. We need to
4309 (xlsx_write_objects) : nvGraphicFramePr and xfrm are required.
4310 (xlsx_write_sheet) : re-order placement of protection element.
4312 2007-08-25 Jean Brefort <jean.brefort@normalesup.org>
4314 * ms-chart.c: (gelframe): should now compile with goffice-0.4
4316 2007-08-25 Jean Brefort <jean.brefort@normalesup.org>
4318 * ms-chart.c: (gelframe): return if type is less that 5, otherwise
4319 set fill type and colors not auto.
4321 2007-08-25 Jody Goldberg <jody@gnome.org>
4323 * xlsx-read.c (xlsx_chart_legend) : new.
4325 2007-08-24 Jody Goldberg <jody@gnome.org>
4327 * xlsx-read.c (xlsx_CT_DataValidation_begin) : don't lose the input
4330 2007-08-24 Jody Goldberg <jody@gnome.org>
4332 * xlsx-write.c (xlsx_write_validation) : LTE and GT were swapped.
4333 * xlsx-read.c (xlsx_CT_DataValidation_begin) : ditto.
4335 2007-08-24 Jody Goldberg <jody@gnome.org>
4337 * xlsx-read.c (xlsx_chart_pie) : new.
4338 (xlsx_chart_ring) : new.
4339 (xlsx_chart_bar) : new.
4340 (xlsx_chart_area) : new.
4341 (xlsx_chart_line) : new.
4342 (xlsx_chart_xy) : new.
4343 (xlsx_chart_bubble) : new.
4344 (xlsx_chart_radar) : new.
4345 (xlsx_plot_end) : new.
4346 (xlsx_chart_ser) : new.
4347 (xlsx_chart_ser_f) : new.
4348 (xlsx_ser_type_start) : new.
4349 (xlsx_ser_type_end) : new.
4350 (xlsx_drawing_twoCellAnchor) : new.
4351 (xlsx_drawing_twoCellAnchor_end) : new.
4352 (xlsx_drawing_pos) : new.
4353 (xlsx_read_chart) : create the chart.
4355 2007-08-23 Jody Goldberg <jody@gnome.org>
4357 * xlsx-write.c (xlsx_write_merges) : split into a function for
4359 (xlsx_write_validation) : new partial implementation.
4360 (xlsx_write_validations) : new. Uses excel_collect_validations.
4361 (xlsx_write_sheet) : call the new routines.
4363 * xlsx-read.c (xlsx_parse_sqref) : normalize the ranges to be extra
4364 careful, and document that they are in reverse order.
4365 (xlsx_CT_DataValidation_begin) : finish, and cache the top left corner
4367 (xlsx_validation_expr) : parse relative to the first corner, not A1.
4369 * ms-excel-write.c (excel_write_DV) : split extraction code out into.
4370 (excel_collect_validations) : here.
4372 2007-08-03 Jody Goldberg <jody@gnome.org>
4374 * ms-excel-read.c (excel_read_HLINK) : fix import of local links.
4376 2007-08-05 Jean Brefort <jean.brefort@normalesup.org>
4378 * ms-chart.c: (chart_write_series), (chart_write_plot): free
4379 strings returned by g_object_get.
4381 2007-08-04 Jean Brefort <jean.brefort@normalesup.org>
4383 * ms-chart.c: fixed interpolation mode import/export after
4384 the change in goffice.
4386 2007-07-27 Jody Goldberg <jody@gnome.org>
4388 * ms-chart.c (end) : don't leak a style of the legend doesn't have a
4391 2007-07-26 Jody Goldberg <jody@gnome.org>
4393 * ms-obj.c (ms_obj_read_expr) : new.
4394 (read_pre_biff8_read_expr) : use it here.
4395 (ms_obj_read_pre_biff8_obj) : here.
4396 (ms_obj_map_forms_obj) : and here. Also check for source ranges for
4397 combos and lists. [#451384]
4399 2007-07-25 Jody Goldberg <jody@gnome.org>
4401 * ms-excel-read.c (excel_read_SHEETPROTECTION) : size check was too
4404 2007-07-24 Jody Goldberg <jody@gnome.org>
4408 2007-07-13 Jody Goldberg <jody@gnome.org>
4410 * ms-obj.c (ms_obj_read_biff8_obj) : send the actual record, not
4411 the 4 byte header that loses 4 trailing bytes.
4412 (ms_obj_map_forms_obj) : Use existing tools to properly handle
4413 longer names and objects with data sources (combos/lists).
4415 * xlsx-write.c (xlsx_write_calcPR) : new.
4417 2007-07-09 Jody Goldberg <jody@gnome.org>
4419 * xlsx-read.c (xlsx_CT_CalcPr) : new. Read the iterate and recalc
4420 properties. Need to add the refmode.
4421 * xlsx-write.c (xlsx_write_calcPR) : ditto.
4422 (xlsx_write_workbook) : called from here.
4424 2007-07-14 Jody Goldberg <jody@gnome.org>
4426 Report form coverity.
4427 * ms-obj.c (ms_read_TXO) : remove failure modes for items we do not
4428 actually use. alignments are enumerated from 1, not 0.
4430 2007-06-21 Jody Goldberg <jody@gnome.org>
4432 * ms-excel-read.h : delete MsBiffFontUnderline, there was no need for
4433 an intermediate type.
4435 * ms-excel-write.c (excel_write_PAGE_BREAK) : just hard code the
4436 min/max. The values seem constant in all my tests.
4438 * ms-excel-biff.h : Start some cleanup, and begin to follow the naming
4439 convention 'XLS_...' for binary and 'XLSX_...' for oox.
4440 Define some Maximas.
4442 2007-06-16 Jody Goldberg <jody@gnome.org>
4444 * ms-excel-read.c (excel_read_PAGE_BREAK) : new.
4445 (excel_read_sheet) : called from here.
4447 * ms-excel-write.c (excel_write_PAGE_BREAK) : new.
4448 (write_sheet_head) : called from here.
4450 * xlsx-read.c (xlsx_CT_PageBreak) : new.
4451 (xlsx_CT_PageBreaks_begin) : new.
4452 (xlsx_CT_PageBreaks_end) : new.
4454 * xlsx-write.c (xlsx_write_breaks) : new.
4455 (xlsx_write_print_info) : called from here.
4457 2007-06-06 Jody Goldberg <jody@gnome.org>
4459 * ms-excel-util.c (init_xl_font_widths) : add Calibri.
4461 2007-06-12 Jody Goldberg <jody@gnome.org>
4463 * plugin.xml.in : Use 'Office 2007' as the description for the writer
4466 2007-06-10 Jody Goldberg <jody@gnome.org>
4468 * xlsx-write.c : Move the OpenPkg support out of here and into libgsf.
4469 * xlsx-read.c : ditto.
4470 (xlsx_parse_rel_by_id) : new wrapper to handle errors from
4471 gsf_open_pkg_parse_rel_by_id.
4473 2007-06-10 Jody Goldberg <jody@gnome.org>
4475 * xlsx-read.c (xlsx_CT_SheetProtection) : new.
4476 * xlsx-write.c (xlsx_write_protection) : new.
4477 (xlsx_write_sheet) : called from here.
4479 * ms-excel-read.c (excel_read_SHEETPROTECTION) : new.
4480 (excel_read_sheet) : called here.
4482 * ms-excel-write.c (excel_write_SHEETPROTECTION) : new.
4483 (excel_write_sheet) : called here after the validations.
4485 2007-06-01 Jean Brefort <jean.brefort@normalesup.org>
4487 * ms-chart.c: do not delete a valid axis.
4489 2007-05-25 Morten Welinder <terra@gnome.org>
4491 * plugin.xml.in: Add mime types for most of the savers.
4493 2007-05-16 Jean Brefort <jean.brefort@normalesup.org>
4495 * ms-chart.c: (fontx), (tick), (end): import legend and
4496 axis labels font. [#437858]
4498 2007-05-07 Andreas J. Guelzow <aguelzow@pyrshep.ca>
4500 * ms-excel-write.c (excel_write_SETUP): adjust for new
4501 arguments of print_info_get_margins
4502 (excel_write_WSBOOL): ditto
4503 * ms-excel-read.c (excel_init_margins): use print_info_set_edge_to_*
4504 (excel_read_sheet): use print_info_set_edge_to_*
4505 * xlsx-write.c (xlsx_write_print_info): adjust for new
4506 arguments of print_info_get_margin
4508 2007-05-07 Jean Brefort <jean.brefort@normalesup.org>
4510 * ms-chart.c: (axis), (catserrange), (lineformat), (valuerange),
4511 (end), (ms_excel_chart_read), (chart_write_axis),
4512 (chart_write_axis_sets), (ms_excel_chart_write): fix import/export
4513 of axis sets. [#318610]
4515 2007-05-03 Morten Welinder <terra@gnome.org>
4519 2007-05-02 Andreas J. Guelzow <aguelzow@pyrshep.ca>
4521 * ms-excel-write.c (write_sheet_head): change PrintUnit content
4522 * ms-excel-read.c (excel_print_unit_init_inch): deleted
4523 (excel_init_margins): use GO_IN_TO_PT
4524 (excel_read_sheet): ditto
4525 * xlsx-write.c (xlsx_write_print_info): change PrintUnit content
4527 2007-04-29 Jody Goldberg <jody@gnome.org>
4529 * plugin.xml.in : remove duplicate xlsx entry
4531 2007-04-24 Andreas J. Guelzow <aguelzow@pyrshep.ca>
4533 * ms-excel-write.c (excel_write_SETUP): use
4534 print_info_get_paper_orientation
4535 (write_sheet_head): print_info might be modified
4536 * ms-excel-read.c (excel_read_SETUP): use
4537 print_info_set_paper_orientation
4539 2007-04-21 Morten Welinder <terra@gnome.org>
4543 2007-04-03 Andreas J. Guelzow <aguelzow@pyrshep.ca>
4545 * ms-excel-write.c (write_sheet_head): use print_info_get_margins
4546 * ms-excel-read.c (paper_size_table): use PWG 5101.1-2002
4547 (excel_read_SETUP): use modified paper_size_table
4548 * xlsx-write.c (xlsx_write_print_info): use print_info_get_margins
4550 2007-03-19 Jody Goldberg <jody@gnome.org>
4552 * xlsx-write.c (xlsx_write_cells) : keep f before v, but do not try to
4553 export an attribute of c once we have started the f or v.
4554 (xlsx_write_cells) : export array formulas.
4555 (xlsx_write_cells) : export bool values a "1" "0" rather than
4556 value_get_as_string.
4558 2007-03-18 Jody Goldberg <jody@gnome.org>
4560 * xlsx-read.c (xlsx_file_open) : Visible error if no workbook is
4563 * xlsx-write.c (xlsx_write_sheet) : Define some new constants for the
4564 spreadsheet, and relationship namespaces. Then update them to the
4565 versions used in the official 2007 release.
4566 (xlsx_write_shared_strings) : ditto.
4567 (xlsx_write_styles) : ditto.
4568 (xlsx_write_workbook) : ditto.
4569 (xlsx_write_col) : up the accuracy of width export to match XL 2007.
4570 put hidden before other flags to ease visual inspection of xml.
4571 (xlsx_write_cols) : skip initial empty cols, and include the last col.
4573 2007-03-16 Morten Welinder <terra@gnome.org>
4575 * ms-excel-read.c (excel_read_FONT): In case we get a NULL
4576 fontname, assume "Arial". Fixes #418868.
4578 2007-03-05 Jody Goldberg <jody@gnome.org>
4580 * xlsx-utils.c (xlsx_cellref_as_string) : no need to use the
4581 convention for the sheet_sep, hard code it.
4582 (xlsx_rangeref_as_string) : ditto.
4583 (xlsx_expr_conv_new) : adapt to changes.
4585 2007-01-11 Jody Goldberg <jody@gnome.org>
4587 * ms-escher.c (ms_escher_read_OPT_bools) : improve debug stream.
4588 (ms_escher_read_OPT) : add a few more properties based on the results
4589 of the test file that fills in as many properties as I could find
4590 samples/excel/objs.xls.
4591 (ms_escher_sp_new) : new. unused as yet.
4592 (ms_escher_sp_free) : ditto.
4593 (ms_escher_sp_len) : ditto.
4594 (ms_escher_sp_add_OPT) : ditto.
4595 (ms_escher_sp_set_anchor) : ditto.
4596 (ms_escher_sp_write) : ditto.
4598 * ms-obj.c (ms_obj_read_biff8_obj) : do not generate a warning for
4599 combos with no link, or the special autofilter combos.
4600 (ms_obj_read_biff8_obj) : include the id in the debug spew.
4601 (ms_obj_read_biff8_obj) : Do not warn about unknown flags that we know
4603 (ms_objv8_write_note) : new basic stub.
4605 * ms-excel-write.c (excel_write_textbox_v8) : cheap hack to handle
4606 comments somewhat at an invented anchor.
4608 (excel_write_objs_v8) : keep track of the number of comments too.
4609 (excel_sheet_new) : count comments too. General tidyup in prep for
4610 moving to generated escher.
4612 2007-03-04 Morten Welinder <terra@gnome.org>
4616 2007-02-16 Morten Welinder <terra@gnome.org>
4620 2007-01-06 Morten Welinder <terra@gnome.org>
4622 * xlsx-read.c (xlsx_cell_val_end): Use gnm_strto, not strtod.
4624 2006-12-19 Jody Goldberg <jody@gnome.org>
4626 * ms-excel-write.c (excel_write_autofilter_objs) : minor
4629 2006-12-19 Jody Goldberg <jody@gnome.org>
4631 * xlsx-read.c (xlsx_get_num_fmt) : handle the standard builtins
4632 and paste over the unicode variants of the documented locale
4635 2006-12-18 Jody Goldberg <jody@gnome.org>
4637 * ms-container.c (ms_container_parse_expr) : handle 0 length
4638 expressions as NULL. Looks like combos & lists with no links are
4639 exported with length 0.
4641 2006-12-17 Jody Goldberg <jody@gnome.org>
4645 2006-12-17 Jean Brefort <jean.brefort@normalesup.org>
4647 * ms-chart.c: (lineformat): use auto color for series only when
4648 the color index is equal to the series index. [#166820]
4650 2006-12-16 Jody Goldberg <jody@gnome.org>
4652 * ms-excel-read.c (excel_read_COLINFO) : silence warning due to
4655 2006-12-16 Jody Goldberg <jody@gnome.org>
4657 Start work on autofilters, only Top10 is implemented for in or out.
4658 * xlsx-read.c (xlsx_CT_Filters_begin) : new.
4659 Massive renaming to use '_begin' rather than '_start' just because I
4660 like the sound better.
4661 * xlsx-write.c (xlsx_write_autofilters) : new.
4663 2006-12-16 Jody Goldberg <jody@gnome.org>
4665 * ms-excel-read.c (ms_sheet_realize_obj) : link in the content
4666 expression, and the linked cell for combo and list objects.
4667 * ms-obj.c (ms_obj_read_biff8_obj) : read ListboxData which seems to
4668 contain the content expression.
4670 2006-12-11 Morten Welinder <terra@gnome.org>
4672 * ms-excel-write.c (log_put_color): Remove "inline" -- it's
4673 pointless and triggers a gcc bug. (gcc bug #30153)
4675 2006-12-04 Jody Goldberg <jody@gnome.org>
4679 2006-11-24 Jody Goldberg <jody@gnome.org>
4681 * ms-obj.c (ms_obj_attr_get_ptr) : change signature to better
4682 distiguish between NULL and not-specified.
4683 * ms-excel-read.c (ms_sheet_realize_obj) : Using NULL as the default
4684 was a bad idea. We could not differentiate between empty text which
4685 got stored as NULL, and not specified which should use the default.
4686 Use the new signature to ms_obj_attr_get_ptr to handle this
4687 correctly. (test case : checkboxes in 375620 with no labels)
4689 2006-11-24 Jody Goldberg <jody@gnome.org>
4691 * xlsx-write.c (xlsx_write_col) : set 'bestFit' if the column has a
4692 size different from the default and it has _not_ been set by the
4694 * ms-excel-write.c (excel_write_COLINFO) : ditto. Set the
4695 undocumented flags customWidth and bestFit based on the OfficeOpen
4697 * ms-excel-read.c (excel_read_COLINFO) : the undocumented bestfit and
4698 customwidth flags are not a perfect match with our hard_size. Use
4699 customwith && !bestfit == hard_size. That should match even the
4700 mis-exported xls from older gnumeric's and OOo.
4701 * xlsx-read.c (xlsx_CT_Col) : ditto, but there are no worries about
4702 older gnumeric's or OOo mis-generating.
4704 2006-11-20 Jody Goldberg <jody@gnome.org>
4708 2006-11-19 Morten Welinder <terra@gnome.org>
4712 2006-11-09 Jody Goldberg <jody@gnome.org>
4714 * xlsx-read.c (xlsx_file_open) : use the new
4715 gnm_push_C_locale/gnm_pop_C_locale utils.
4716 * xlsx-write.c (xlsx_file_save) : ditto.
4718 2006-10-27 Jon K Hellan <hellan@acm.org>
4720 * ms-excel-read.c (excel_read_MERGECELLS): Accept overlapping
4721 merges, as Excel does.
4723 2006-10-24 Jon K Hellan <hellan@acm.org>
4725 * ms-obj.c (ms_read_TXO): Handle UTF-16, and switching between
4726 single byte and UTF-16 between CONTINUE records [#340293].
4728 2006-10-17 Jody Goldberg <jody@gnome.org>
4732 2006-10-12 Jean Brefort <jean.brefort@normalesup.org>
4734 * ms-chart.c: (serfmt): add missing braces.
4736 2005-07-06 Jon K Hellan <hellan@acm.org>
4738 * ms-excel-read.c (ms_sheet_realize_obj): Realize Excel 95 images
4741 * ms-obj.h: Add MS_OBJ_ATTR_IS_GOBJECT_MASK and
4742 MS_OBJ_ATTR_IMDATA. Widen MS_OBJ_ATTR_MASK.
4744 * ms-obj.[ch] (ms_obj_attr_new_gobject,
4745 ms_obj_attr_get_gobject): New. Add support for GObject attributes.
4746 (ms_obj_attr_destroy): Handle GObject attributes.
4747 (ms_obj_read_pre_biff8_obj): Save Excel 95 image as attribute.
4749 2006-10-09 Jon K Hellan <hellan@acm.org>
4751 * ms-excel-read.c (excel_read_HLINK): Fix bug with URLs having
4754 2006-10-02 Jody Goldberg <jody@gnome.org>
4758 2006-09-30 Jean Brefort <jean.brefort@normalesup.org>
4760 * ms-chart.c: (end): Don't use auto_shape or auto_dash when plot has
4761 no marker/line and series have while importing from excel. [#319727]
4764 2006-09-29 Jean Brefort <jean.brefort@normalesup.org>
4766 * ms-chart.c: (serfmt), (chart_write_SERFMT),
4767 (style_is_completely_auto), (chart_write_style): implemented serfmt
4768 to import/export interpolation type for splines. [#349457].
4770 2006-09-24 Jody Goldberg <jody@gnome.org>
4772 * xlsx-read.c : Some initial work at parsing charts.
4773 Only an outline of a parser for now, no actual work.
4775 2006-09-23 Jody Goldberg <jody@gnome.org>
4777 * ms-excel-read.c (excel_read_SETUP) : Do not warn of print scale of
4778 0, according to the OfficeOpen docs that means 'auto' we treat it as
4781 * ms-excel-write.c (cb_check_names) : We no longer write placeholders,
4782 no need to check for them.
4783 (excel_foreach_name) : Ditto.
4784 (excel_write_NAME) : Do not export place holders.
4785 (excel_write_autofilter_names) : Add a hook to warn of multiple
4786 autofilters in one sheet. [#346217]
4788 2006-06-30 Andreas J. Guelzow <aguelzow@pyrshep.ca>
4790 * ms-formula-read.c (parse_list_pop): use %p for pointers #346045
4791 * ms-formula-write.c (sheet_pair_hash): extinguish warning #346045
4793 2006-06-22 Andreas J. Guelzow <aguelzow@pyrshep.ca>
4795 * ms-excel-write.c (excel_sheet_extent): use ngettext #123860
4797 2006-06-03 Jody Goldberg <jody@gnome.org>
4799 * xlsx-read.c (xlsx_ns) : add the namespace for beta2.
4800 (xlsx_shared_strings_dtd) : s/sstItem/si/ for beta2.
4801 * xlsx-write.c (gsf_outfile_open_pkg_close) : move to the new
4802 spreadsheetml namespace.
4803 (xlsx_write_styles) : ditto.
4804 (xlsx_write_shared_strings) : ditto.
4805 (xlsx_write_sheet) : ditto.
4807 2006-05-31 Jody Goldberg <jody@gnome.org>
4809 * ms-excel-write.c (gather_styles) : Use sheet_cell_foreach, rather
4810 than accessing Sheet::cell_hash directly. This will make it easier
4811 to jump to the quad tree later.
4812 (excel_write_workbook) : use the new sheet_cells_count rather than
4813 accessing Sheet::cell_hash.
4815 2006-05-22 Jody Goldberg <jody@gnome.org>
4817 * ms-formula-read.c (excel_parse_formula1) : disable the long lived
4818 warning about extended attr 0 with 3 and 0xA. It has something to
4819 do with singleton arrays, but does not seem important.
4821 2006-05-25 Jean Brefort <jean.brefort@normalesup.org>
4823 * boot.c: replaced gi18n.h by gi18n-lib.h.
4824 * excel-xml-read.c: ditto.
4825 * ms-excel-read.c: ditto.
4826 * ms-excel-write.c: ditto.
4827 * ms-formula-read.c: ditto.
4828 * ms-formula-write.c: ditto.
4829 * xlsx-read.c: ditto.
4830 * xlsx-write.c: ditto.
4832 2006-05-19 Morten Welinder <terra@gnome.org>
4834 * ms-formula-read.c (excel_parse_formula): Avoid critical on array
4836 * ms-excel-read.c: Add more checks for corrupted files.
4838 2006-05-18 Morten Welinder <terra@gnome.org>
4840 * ms-formula-read.c (excel_parse_formula): Reinstate the call for
4843 * ms-excel-read.c: Don't use g_return_if_fail and
4844 g_return_val_if_fail for condition relating to file contents. (They
4845 produce CRITICALS and Jon Kaare will complain one day.)
4847 2006-05-16 Morten Welinder <terra@gnome.org>
4849 * ms-excel-read.c (excel_read_MULRK): Add some bullet-proofing.
4852 2006-05-08 Jody Goldberg <jody@gnome.org>
4856 2006-04-29 Jody Goldberg <jody@gnome.org>
4858 * ms-excel-write.c (excel_write_WINDOW2) : merge excel_write_PANE into
4859 here and fix export of H or V only freezes.
4861 2006-04-23 Jody Goldberg <jody@gnome.org>
4863 * xlsx-write.c : new. Basic export and some code that will move to
4864 libgsf for 'Open Package' support.
4865 * plugin.xml.in : Add xlsx export.
4866 * Makefile.am : ditto.
4868 2006-04-23 Jody Goldberg <jody@gnome.org>
4870 * ms-excel-read.c (excel_read_EXTERNSHEET_v7) : patch
4871 tweak to import broken quoted sheetname from gnumeric-1.0.x eg
4874 2006-04-23 Jody Goldberg <jody@gnome.org>
4876 * ms-chart.c (ms_excel_chart_read) : Don't set the graph and chart
4877 styles to blank unless this is a full sheet object. Fixes the
4878 import of older charts that are not wrapped in BOF records eg
4881 2006-04-18 Morten Welinder <terra@gnome.org>
4883 * boot.c (excel_file_open): Don't leak the meta_data object.
4885 2006-04-16 Jody Goldberg <jody@gnome.org>
4887 * xlsx-read.c : new. Basic import and some code that will move to
4888 libgsf for 'Open Package' support.
4889 * plugin.xml.in : Add xlsx import.
4890 * Makefile.am : ditto.
4892 2006-04-15 Jody Goldberg <jody@gnome.org>
4894 * ms-excel-write.c (halign_to_excel) : add HALIGN_DISTRIBUTED.
4895 * ms-excel-read.c (excel_read_TAB_COLOR) : office 12 seems to add some
4898 2006-04-09 Jean Brefort <jean.brefort@normalesup.org>
4900 * ms-chart.c: (xl_chart_import_trend_line), (ms_excel_chart_read),
4901 (chart_write_trend_line), (chart_write_series): fix import/export
4902 of trend lines (only those supported by xl).
4904 2006-04-08 Jean Brefort <jean.brefort@normalesup.org>
4906 * ms-chart.c: (xl_chart_import_reg_curve): import power regression
4907 and moving average lines.
4909 2006-04-07 Jody Goldberg <jody@gnome.org>
4911 http://bugzilla.gnome.org/show_bug.cgi?id=336858
4912 * ms-excel-read.c (excel_read_EXTERNNAME) : be more careful about
4913 bounds checking. Looks like 'miniCalc' generates EXTERNNAME with no
4914 expressions at all for it's external functions.
4916 2006-03-30 Morten Welinder <terra@gnome.org>
4918 * ms-formula-write.c (write_node): Add missing table entry for
4919 array elements. Write the right PTG for data tables.
4920 (excel_write_array_formula): New function.
4921 (excel_write_formula): Change to take a texpr. All callers
4924 * ms-formula-write.h (ExcelFuncContext): Elminate
4925 EXCEL_CALLED_FROM_ARRAY which is now implicit.
4927 2006-03-22 Jody Goldberg <jody@gnome.org>
4929 * ms-chart.c (BC_R(lineformat)) : store the format in outline as well
4930 as line. We do not know where it's going to be used.
4932 2006-03-19 Morten Welinder <terra@gnome.org>
4934 * ms-formula-write.c (write_node): Handle integers in VALUE_FLOAT
4937 2005-12-28 Jody Goldberg <jody@gnome.org>
4939 * boot.c (excel_file_open) : use the new workbook_set_meta_data rather
4940 than kludging GObject data.
4942 2006-03-16 Morten Welinder <terra@gnome.org>
4944 * ms-excel-read.c (excel_get_style_from_xf): Even though the third
4945 argument of style_border_fetch isn't used yet, get it right.
4947 2006-03-16 Morten Welinder <terra@gnome.org>
4949 * ms-excel-read.c (excel_read_EXTERNNAME): Use NULL, not 0.
4950 * ms-biff.c (ms_biff_query_next): Ditto.
4951 (ms_biff_query_destroy): Ditto.
4952 (ms_biff_put_new): Ditto.
4953 (ms_biff_put_len_next): Ditto.
4954 (ms_biff_put_len_commit): Ditto.
4956 2006-03-13 Morten Welinder <terra@gnome.org>
4958 * ms-excel-write.c (write_sheet_head): Write protection flags.
4959 * ms-excel-read.c (excel_read_sheet_PROTECT): Store falg.
4960 (excel_read_workbook_PROTECT): New function.
4961 (excel_read_workbook): Read protection flags.
4962 Patch from Klokan Petr Pridal. [#330129]
4964 2006-03-13 Morten Welinder <terra@gnome.org>
4966 * ms-container.h (MSContainerClass): Make the parse_expr method
4967 return a texpr. All users changed.
4969 * ms-formula-read.c (excel_parse_formula): Make this return a
4970 texpr. All users fixed.
4971 * ms-container.c (ms_container_parse_expr): Ditto.
4972 * ms-obj.c (ms_obj_attr_new_expr): Ditto.
4974 2006-03-10 Jody Goldberg <jody@gnome.org>
4976 * ms-formula-read.c (excel_parse_formula) : back port handling of
4977 AttrChoose and AttrGoto
4979 2006-03-10 Jody Goldberg <jody@gnome.org>
4981 * ms-formula-read.c (excel_parse_formula) : don't forget to re-push
4982 the new set with the extra element.
4984 2006-02-27 Morten Welinder <terra@gnome.org>
4986 * ms-excel-write.c (blipinf_new): Fix potential 64-bit issue.
4988 2006-02-21 Morten Welinder <terra@gnome.org>
4990 * ms-chart.c (ms_excel_chart_write): Plug minor leak.
4992 2006-01-20 Jody Goldberg <jody@gnome.org>
4994 * ms-excel-write.c (excel_write_FORMULA) : adjust to new
4995 GNM_EXPR_OP_ARRAY handling
4996 * ms-formula-write.c (excel_write_prep_expr) : ditto.
4997 (write_node) : ditto.
4999 2006-01-17 Morten Welinder <terra@gnome.org>
5001 * ms-chart.c (chart_write_AI): Allocate right amount of memory.
5003 2005-12-22 Stepan Kasal <kasal@ucw.cz>
5005 * ms-excel-write.c (excel_write_externsheets_v8): Use the actual
5006 number of sheets in the magic self referential SUPBOOK record.
5007 * ms-excel-read.c (supbook_get_sheet): Use EXCEL_SUP_BOOK_SELFREF
5008 to recognize the self referential SUPBOOK record.
5009 (excel_read_EXTERNSHEET_v8): Simplify the read of sup_index.
5010 * ms-excel-read.h (ExcelExternSheetV8): Remove the unused member wb.
5012 2005-12-05 Jean Brefort <jean.brefort@normalesup.org>
5014 * ms-chart.c: (axislineformat): do not set style before setting parent,
5015 (object_swap_children): new helper function,
5016 (end): also swap axis children for bar charts and do not access
5017 directly GOMarker fields (now a private structure),
5018 (xl_chart_import_error_bar): fixed some import issues,
5019 (chart_write_error_bar): implement error bars export,
5020 (chart_write_reg_curve): fix an indexation bug,
5021 (chart_write_series): export error bars,
5022 (ms_excel_chart_write): use go_marker_set_shape.
5024 2005-11-27 Jean Brefort <jean.brefort@normalesup.org>
5026 * biff-types.h: add new custom biff code for goffice regression curves.
5027 * ms-chart.c: (ai), (serauxtrend), (trendlimits),
5028 (register_handlers), (xl_chart_import_reg_curve),
5029 (style_is_completely_auto), (chart_write_style),
5030 (chart_write_error_bar), (chart_write_reg_curve),
5031 (chart_write_series), (ms_excel_chart_write): export regression
5032 curves and enhance import.
5034 2005-11-18 Jean Brefort <jean.brefort@normalesup.org>
5036 http://bugzilla.gnome.org/show_bug.cgi?id=321678
5037 * ms-chart.c: (ms_excel_chart_read): do not import series without
5038 chart group as error bars or regrssion curves for MS_BIFF_V4 or earlier.
5040 2005-11-16 Jody Goldberg <jody@gnome.org>
5042 http://bugzilla.gnome.org/show_bug.cgi?id=321678
5043 * ms-chart.c (xl_chart_import_reg_curve) : if the parent has no series
5044 there is not much we can do.
5046 http://bugzilla.gnome.org/show_bug.cgi?id=321677
5047 * ms-chart.c (BC_R(gelframe)) : don't crash when faced with an
5048 unsupported plot type that has a gradient.
5050 2005-11-14 Jody Goldberg <jody@gnome.org>
5054 2005-11-08 Morten Welinder <terra@gnome.org>
5056 * ms-excel-write.c (blipinf_new): Don't crash if blip->type ends
5057 up NULL. Fixes crash from #321009.
5059 2005-11-05 Jody Goldberg <jody@gnome.org>
5061 * excel-xml-read.c : Support DateTime values
5063 2005-10-23 Jody Goldberg <jody@gnome.org>
5065 * excel-xml-read.c (xl_xml_col_start) :
5069 - support sizes (still off by what seems like a constant factor ??
5071 (xl_xml_row_start) : ditto.
5072 (xl_xml_pane) : init edit pos to A1.
5073 (xl_xml_selection) : new. handle selection
5074 (xl_xml_editpos_col) : new. handle edit position
5075 (xl_xml_editpos_row) : new. ditto.
5076 (xl_xml_data_start) : load Data::Type here
5077 (xl_xml_cell_start) : not here. Store the expr.
5078 (xl_xml_data_end) : store exprs and values.
5079 (xl_xml_named_range) : new. No entirely functional.
5080 It does not handle implicit fwd declatation of names.
5082 2005-10-12 Jody Goldberg <jody@gnome.org>
5084 * ms-formula-read.c (excel_parse_formula) : Ignore the data for Attr
5085 CHOOSE that specifies which element to select. We do not need it.
5086 * ms-excel-read.c (excel_read_FORMULA) : Use val_offset consistently
5088 2005-10-10 Jody Goldberg <jody@gnome.org>
5092 2005-10-03 Jody Goldberg <jody@gnome.org>
5094 * excel-xml-read.c : Implement based on inspection of exported result
5095 of a test xls (Did not read or download the schemas). No support
5096 for expressions or names yet.
5098 2005-10-02 Jody Goldberg <jody@gnome.org>
5100 * plugin.xml.in : enable SpreadsheetML importer
5102 * excel-xml-read.c : implement
5104 * ms-formula-write.c (write_funcall) : handle macros.
5105 exporting Analysis.xls
5107 * ms-formula-read.c (excel_parse_formula) : REF_3D, and AREA_3D for
5108 biff7 seem to use the shared flag to define whether to sign extend.
5110 * ms-excel-read.c (excel_parse_name) : name expressions are parsed as
5111 shared. Not sure about this. This seems to work for the oo name
5112 and relref tests. Do more validation.
5113 (ms_wb_get_font_markup) : suppress warning.
5114 (excel_read_BOOLERR) : new split from.
5115 (excel_read_sheet) : here.
5117 * ms-chart.c (BC_R(alruns)) : do not leak content. [#157059]
5118 (BC_R(pieformat)) : The magic 0xfffd in dataformat seems to do
5119 something here too. Without it plots that had a default separation
5120 were thinking that it was just for 1 pt.
5122 2005-09-30 Jean Brefort <jean.brefort@normalesup.org>
5124 * ms-chart.c: (text), (xl_chart_import_error_bar): fixed style leaks.
5126 2005-09-30 Jean Brefort <jean.brefort@normalesup.org>
5128 * ms-chart.c: (xl_chart_import_reg_curve): set the correct value to the
5131 2005-09-28 Jody Goldberg <jody@gnome.org>
5133 * ms-chart.c (xl_chart_import_reg_curve) : split out from
5134 ms_excel_chart_read.
5135 (xl_chart_import_error_bar) : ditto.
5137 * ms-excel-write.c (excel_font_overlay_pango) : check super/sub scripts.
5138 (excel_font_hash) : ditto.
5139 (excel_font_equal) : ditto.
5140 (excel_font_new) : init the super/sub status
5141 (map_underline_to_xl) : new.
5142 (map_script_to_xl) : new.
5143 (cb_write_condition) : handle super/sub script.
5144 (excel_write_FONT) : ditto.
5145 (excel_font_new) : ditto.
5147 * ms-excel-read.c (ms_wb_get_font_markup) : The super/subscript
5148 distances were broken. Use 5000 not 500. Seems like we may want a
5150 (excel_read_FONT) : Use GOFontScript
5151 (excel_get_style_from_xf) : store the script (super/sub)
5152 (excel_read_CF) : handle scripts.
5154 2005-09-26 Jean Brefort <jean.brefort@normalesup.org>
5156 * ms-chart.c: (axislineformat): read the areaformat for type 3
5157 to avoid a style leak.
5159 2005-09-21 Jean Brefort <jean.brefort@normalesup.org>
5161 * ms-chart.c: (chart_write_MARKERFORMAT): don't use style if NULL.
5163 2005-09-21 Jean Brefort <jean.brefort@normalesup.org>
5165 * ms-chart.c: (markerformat): enhance markers import for MS_BIFF_V8
5166 (chart_write_MARKERFORMAT): enhanced export as well.
5168 2005-09-18 Jody Goldberg <jody@gnome.org>
5170 * ms-chart.c (BC_R(radar)) : XL defaults to having markers, goffice
5172 * ms-chart.c (chart_write_plot) : check marker status for radar plots.
5174 2005-09-14 Jean Brefort <jean.brefort@normalesup.org>
5176 * ms-chart.c: (ms_excel_chart_read): import polynomial, exponential and
5177 logarithmic regression curves.
5179 2005-09-08 Jody Goldberg <jody@gnome.org>
5183 2005-09-06 Jody Goldberg <jody@gnome.org>
5185 * ms-excel-read.c (excel_formula_shared) : finish TABLE importer.
5186 * ms-excel-write.c (excel_write_FORMULA) : finish TABLE exporter.
5188 2005-09-04 Jody Goldberg <jody@gnome.org>
5190 * ms-excel-write.c (excel_write_ClientTextbox) : property is called
5193 2005-09-04 Jody Goldberg <jody@gnome.org>
5195 * ms-chart.c (chart_write_AI) : Move logic from #152317 here.
5196 If we are writing an expression with only a string constant do not
5199 2005-08-29 Jody Goldberg <jody@gnome.org>
5201 * ms-formula-read.c (excel_parse_formula) : support data tables.
5202 * ms-excel-read.c (excel_formula_shared) : ditto.
5203 * ms-formula-write.c (write_node) : ditto.
5204 * ms-excel-write.c (excel_write_FORMULA) : ditto.
5206 2005-08-27 Jody Goldberg <jody@gnome.org>
5208 * ms-obj.c (ms_obj_map_forms_obj) : no need to warn about record with
5209 no expressions. (Wallenbach/Formulas-2003/chap05/character\ set.xls)
5211 2005-08-28 Morten Welinder <terra@gnome.org>
5215 2005-08-28 Morten Welinder <terra@gnome.org>
5219 2005-08-25 Stepan Kasal <kasal@ucw.cz>
5221 * ms-chart.c (BC_R(text)): Comment out declarations of variables for
5224 2005-08-24 Jody Goldberg <jody@gnome.org>
5226 * ms-excel-write.c (excel_font_new) : typo. [#314206]
5228 2005-08-17 Jean Brefort <jean.brefort@normalesup.org>
5230 * ms-chart.c (ms_excel_chart_write): fix a compilation warning
5231 introduced yesterday and also a multiple chart export problem
5234 2005-08-15 Morten Welinder <terra@gnome.org>
5238 2005-08-15 Jean Brefort <jean.brefort@normalesup.org>
5240 * ms-chart.c: (ms_excel_chart_write): unref state.root_view.
5242 2005-08-05 Stepan Kasal <kasal@ucw.cz>
5244 * ms-excel-write.c (excel_write_string): Fix warning.
5246 2005-08-04 Jody Goldberg <jody@gnome.org>
5248 From Nick Lamb <njl98r@ecs.soton.ac.uk>
5249 * ms-excel-read.c (excel_read_XF_OLD) : improve alignment and
5252 2005-08-04 Jody Goldberg <jody@gnome.org>
5254 * ms-excel-read.c (excel_read_XF) : Add HALIGN_DISTRIBUTED. no idea
5257 * ms-obj.c (ms_read_OBJ) : no docs for OBJ before biff5. Ignore to
5260 * ms-excel-util.c (init_xl_font_widths) : make the font hash case
5263 2005-08-02 Jean Brefort <jean.brefort@normalesup.org>
5265 * ms-chart.c (ms_excel_chart_read): fixed import x error bars.
5267 2005-08-01 Jody Goldberg <jody@gnome.org>
5269 * ms-excel-read.c (excel_read_WINDOW2) : Don't crash if there is no
5271 (excel_read_SELECTION) : ditto.
5272 (excel_read_PANE) : ditto. #309544
5274 * ms-excel-read.c (excel_palette_get) : add the tooltip colour
5277 2005-07-29 Jody Goldberg <jody@gnome.org>
5279 * ms-chart.c (BC_R(objectlink)) : store the style for labels
5280 (BC_R(fontx)) : lookup the font and assign it to a style. Need to
5281 finish GOFont to store the remaining attributes.
5282 * ms-excel-read.c (excel_font_get_gofont) : new.
5283 (excel_read_FONT) : init the gofont member.
5284 (excel_font_free) : unref it here.
5286 2005-07-15 Jody Goldberg <jody@gnome.org>
5288 * ms-excel-write.c (excel_write_SETUP) : remove unecessary scaling.
5290 2005-07-15 Jon K Hellan <hellan@acm.org>
5292 * ms-excel-write.c (excel_write_SETUP): Fix typo.
5294 2005-07-06 Jody Goldberg <jody@gnome.org>
5296 * ms-chart.c (BC_R(objectlink)) : fix leak. [#157058]
5298 2005-07-15 Jody Goldberg <jody@gnome.org>
5300 * ms-obj.c (ms_read_TXO) : handle CONTINUES for text
5301 (read_pre_biff8_read_text) : renamed from read_pre_biff8_read_str.
5302 Handle continues in text and markup. The layout is _very_ odd.
5303 It seems that XL can write things it can not read.
5304 (read_pre_biff8_read_name_and_fmla) : handle the name reading inline,
5305 that is different from read_text. The CONTINUE handling is very
5308 * ms-excel-write.c (excel_write_SETUP) : rewrite to handle the new
5310 (write_sheet_head) : export value for BIFF_PRINTHEADERS and only
5311 export the left/right margins if they are set.
5313 * ms-excel-read.c : Store the ver in the importer rather than the
5315 s/ExcelWorkbook/GnmXLImporter/
5317 (excel_get_chars) : renamed from ms_biff_get_chars. Take an importer
5318 and use it's iconv rather than a global.
5319 (excel_get_text) : renamed from biff_get_text. Take an importer
5321 (excel_read_BOUNDSHEET) : new need for a ver arg, just use the importer.
5323 (gnm_xl_importer_set_version) : new.
5324 (gnm_xl_importer_set_codepage) : rename from
5325 excel_iconv_open_for_import and store the iconv in the importer rather
5326 than as a global. Add improved fallback and debug info.
5327 (excel_palette_get) : merge default palette handing into here and add
5328 0x7fff as a synonym for black. We need a better solution for themed
5329 colours eventually. Change signature to take an importer rather
5330 than the palette object directly. That keeps us from digging into
5331 the import object directly.
5332 (excel_get_default_palette) : delete.
5333 (excel_read_XF_OLD) : use ver from importer, no need for arg.
5334 (excel_read_XF) : ditto.
5335 (excel_read_FORMULA) : clarify up the debug info.
5336 (ms_wb_get_font_markup) : better fallback for invalid fonts.
5337 (gnm_xl_importer_new) : renamed from excel_workbook_new and remove the
5338 version tag. The importer is now created without a version, and we
5339 init that later. It also has a larger life cycle with the plan to
5340 extend that and have gnumeric create it for the new in/out framework
5342 (gnm_xl_importer_free) : renamed from excel_workbook_destroy and close
5344 (excel_read_name_str) : take an importer rather than a ver.
5345 (excel_read_SETUP) : rewrite to store the new biff8+ properties for
5346 comments and errors, and to add n_copies, and start page.
5347 (excel_read_CF) : turn off some debugging.
5348 (excel_read_sheet) : add handler for BIFF_PRINTHEADERS.
5349 (excel_read_BOF) : merge the standalone worksheet handler with the
5350 others. Do not create the importer here, that get's passed in.
5351 (excel_read_workbook) : no need to set the global iconv here, the
5352 importer handles it. Create the importer much earlier as a step
5353 towards gobjectificatin.
5355 * ms-chart.c (BC_R (ver)) : new to get the version from the importer
5357 (BC_R(attachedlabel)) :
5360 (BC_R(markerformat)) :
5365 (BC_R(surf)) : Use it in place of passing in the ver
5366 (ms_excel_chart_read) : no need to pass version around
5367 (ms_chart_map_color) : adjust to change in excel_palette_get
5369 * ms-biff.c (ms_biff_password_hash) :
5370 (ms_biff_crypt_seq) :
5371 (ms_biff_pre_biff8_query_set_decrypt) :
5372 (ms_biff_query_set_decrypt) :
5373 (verify_password) : silence some sign difference warnings
5375 2005-07-11 Jody Goldberg <jody@gnome.org>
5377 * ms-excel-read.c (excel_read_IMDATA) : Read the CONTINUE records
5378 associated with the IMDATA even when not debugging. (#127756).
5380 2005-07-11 Jon K Hellan <hellan@acm.org>
5382 * ms-excel-write.c (excel_write_SETUP): Export page
5383 orientation. I.e.: get the meaning of "orientation set" flag
5384 right, and don't mark it "invalid".
5386 2005-07-09 Jon K Hellan <hellan@acm.org>
5388 * ms-excel-read.c (excel_read_workbook): Read BOF before entering
5389 record reading loop (#152528).
5391 2005-07-04 Jean Brefort <jean.brefort@normalesup.org>
5393 * ms-chart.c: (ms_excel_chart_read): correctly import error bars
5394 for line plots (#309457).
5396 2005-07-01 Jean Brefort <jean.brefort@normalesup.org>
5398 * ms-chart.c: (axislineformat): import axis grids,
5399 (chart_write_axis): export axis grids.
5401 2005-07-01 Jean Brefort <jean.brefort@normalesup.org>
5403 * ms-chart.c: import error bars, (linear) regression curves and stock
5404 plots, export stock plots.
5406 2005-06-28 Jody Goldberg <jody@gnome.org>
5408 * ms-excel-write.c (cb_write_condition) : no need to unmap the kludge
5409 to handle overlays with back colours and no pattern. We handle that
5411 * ms-excel-read.c (excel_read_CF) : rather than kludging it here. It
5412 was breaking when applying a conditional to a base that already had
5415 2005-06-27 Jody Goldberg <jody@gnome.org>
5417 * ms-excel-read.c (excel_read_FORMULA) : improve debug output
5419 2005-06-22 Jody Goldberg <jody@gnome.org>
5421 * ms-excel-write.c (map_color_to_palette) : simplify
5422 and remove the direct comparisons to colours. Just take an
5423 index and return it on NULL or auto.
5424 (xl_le_set_range) : new.
5425 (write_border) : new.
5426 (cb_write_condition) : new.
5427 (excel_write_conditions) : new.
5428 (excel_write_DVALs) : renamed from excel_write_DVAL.
5429 (excel_write_prep_conditions) : new.
5430 (put_colors) : look in conditional styles too.
5432 * ms-excel-read.c (excel_read_CF_border) : new.
5433 (excel_read_CF) : implement.
5434 (excel_read_CONDFMT) : complete.
5436 2005-06-13 Jody Goldberg <jody@gnome.org>
5440 2005-06-02 Jody Goldberg <jody@gnome.org>
5442 * ms-formula-read.c (excel_parse_formula) : slight improvement of
5443 extended ptg parsing. Use the test workbook to tell which items put
5444 something on the stack and which do not.
5446 2006-06-02 Emmanuel Pacaud <emmanuel.pacaud@univ-poitiers.fr>
5448 * plugins/excel/ms-chart.c (BC_R): use gog_object_set_position_flags.
5450 2005-05-25 Jody Goldberg <jody@gnome.org>
5452 * ms-excel-read.c (excel_read_sheet) : store the default style after
5453 we parse the sheet. For older xls formats XF records happen after
5456 2005-05-24 Morten Welinder <terra@gnome.org>
5458 * ms-biff.c (ms_biff_query_destroy): Work harder at not leaving
5459 passwords in memory.
5461 (verify_password): Ditto.
5463 * ms-excel-read.c (excel_read_FILEPASS): Plug leak.
5465 2005-05-18 Jody Goldberg <jody@gnome.org>
5467 http://bugzilla.gnome.org/show_bug.cgi?id=166611
5468 * ms-formula-read.c (excel_parse_formula) : Create a fwd declaration
5469 of a NAME record that has not been read yet being used in a PTG_NAME.
5471 * ms-excel-read.c (excel_read_NAME) : keep a count of the name
5472 records and use fwd declaration if they exist.
5473 (excel_workbook_destroy) : move the names array into the workbook from
5475 (excel_workbook_new) : ditto.
5477 2005-05-18 Jody Goldberg <jody@gnome.org>
5479 http://bugzilla.gnome.org/show_bug.cgi?id=304528
5480 * ms-chart.c (ms_excel_chart_read) : don't leak the array for invalid
5481 series (Analysis.xls). Handle missing siindex record (chap03-1.xls).
5483 2005-05-19 Jody Goldberg <jody@gnome.org>
5485 http://bugzilla.gnome.org/show_bug.cgi?id=304558
5486 * ms-excel-read.c (excel_read_COLINFO) : we can't draw columns without
5487 margins yet so map their width to 4pts rather than hiding them.
5489 2005-05-17 Jody Goldberg <jody@gnome.org>
5491 * ms-chart.c (ms_excel_chart_read) : add some protection
5493 2005-05-17 Morten Welinder <terra@gnome.org>
5495 * ms-chart.c (excel_chart_series_new): Set data[i].series also.
5497 2005-05-16 Jean Brefort <jean.brefort@normalesup.org>
5499 * ms-chart.c: (ai): replace a g_assert by a warning,
5500 (seriestext): add a const to fix a compilation warning,
5501 (end): fix default-style-has-lines,
5502 (chart_write_AI): fix a compilation warning and labels export,
5503 (ms_excel_chart_write): export GogSurfaceSeries.
5505 2005-05-16 Morten Welinder <terra@gnome.org>
5507 * ms-excel-read.c: Always set ->text_dir.
5509 2005-05-16 Jody Goldberg <jody@gnome.org>
5511 * ms-excel-write.c (excel_write_XF) : remove debug spew
5513 2005-05-14 Jean Brefort <jean.brefort@normalesup.org>
5515 * ms-chart.c: (chart_write_AI): fixed tests, (chart_write_axis_sets ):
5516 add a missing break.
5518 2005-05-13 Jean Brefort <jean.brefort@normalesup.org>
5520 * ms-chart.c: (chart_write_AI): don't forget toi export the >AI record
5521 even for constant labels!
5523 2005-05-13 Jean Brefort <jean.brefort@normalesup.org>
5525 * ms-chart.c: (seriestext): use a constant GnmExpr instead of
5526 a GODataScalarStr, (chart_write_AI): export constant series labels,
5527 (chart_write_siindex): fix a stupid bug.
5530 2005-05-13 Jean Brefort <jean.brefort@normalesup.org>
5532 * ms-chart.c: (chart_write_AI): fix a crash condition. Constant series
5533 names are not exported yet.
5535 2005-05-12 Jody Goldberg <jody@gnome.org>
5537 * ms-excel-read.c (excel_read_ROW) : fix debug spew
5539 2005-05-12 Jody Goldberg <jody@gnome.org>
5541 * ms-pivot.c (excel_read_pivot_caches) : don't produce warnings for
5542 files without OLE2 wrapper
5544 2005-05-12 Jean Brefort <jean.brefort@normalesup.org>
5546 * ms-chart.c: export series data when constant;
5548 2005-05-10 Jody Goldberg <jody@gnome.org>
5552 2005-05-09 Morten Welinder <terra@gnome.org>
5554 * ms-chart.c (chart_write_axis): Fix C99ism.
5556 2005-04-23 Jody Goldberg <jody@gnome.org>
5558 * ms-formula-read.c (excel_func_desc) : We do not need the VARARG vs
5559 FIXED flags anymore min_args vs max_args is enough. Replace both
5561 (make_function) : No need to generate warnings about VAR vs FIXED
5562 * ms-formula-write.c (write_funcall) : Use max_args from the func
5565 2005-05-07 Jean Brefort <jean.brefort@normalesup.org>
5567 * ms-chart.c: (excel_chart_series_new), (ai), (series), (siindex),
5568 (switch), (while), (if): enhanced import of data, and make some work
5569 on coutour plots export.
5571 2005-05-04 Jody Goldberg <jody@gnome.org>
5573 * ms-formula-read.c : Add ISHYPERLINK
5575 * ms-excel-write.c (excel_write_COLINFO) : patch a minor leak.
5577 * boot.c (excel_read_metadata) : close the meta data streams.
5578 (excel_file_open) : let the summary props overide the document.
5580 2005-04-10 Jean Brefort <jean.brefort@normalesup.org>
5582 * ms-chart.c: (3d), (ai), (axis), (surf), (switch):
5583 import contours and surfaces plots.
5585 2005-04-09 Jody Goldberg <jody@gnome.org>
5587 * boot.c (excel_save) : Use the new GsfDocMetaData api
5588 (excel_read_metadata) : ditto.
5589 (excel_file_open) : ditto.
5591 2005-03-24 Stepan Kasal <kasal@ucw.cz>
5593 * Makefile.am (excel_la_LIBADD): Add an explanation for $(Z_LIBS).
5595 2005-03-23 Jody Goldberg <jody@gnome.org>
5597 * ms-excel-read.c (excel_read_workbook) : add a hook to read pivot
5598 table caches. It doesn't do much yet, but it's a start.
5599 * ms-biff.c (ms_biff_query_copy_decrypt) : new TODO
5600 * boot.c : Add a debug hook for pivots, and remove pointless comments
5601 * biff-types.h : update for the pivot table and cache elements
5602 * Makefile.am : Add ms-pivot.[ch]
5604 2005-03-23 Morten Welinder <terra@gnome.org>
5606 * ms-escher.c (ms_escher_read_OPT): Use g_fopen, not fopen.
5607 * ms-excel-read.c (excel_read_IMDATA): Ditto.
5609 2005-03-15 Jody Goldberg <jody@gnome.org>
5611 * ms-excel-write.c (excel_write_workbook) : init n when totaling the
5614 2005-03-14 Jean Brefort <jean.brefort@normalesup.org>
5616 * ms-chart.c: import/export logarithmic axis.
5618 2005-03-13 Emmanuel Pacaud <emmanuel.pacaud@univ-poitiers.fr>
5620 * ms-chart.c (BC_R): use gog_chart_get_axes.
5621 (chart_write_axis_sets): use gog_chart_get_axis_set.
5622 s/AXIS_ELEM/GOG_AXIS_ELEM
5624 2005-03-12 Jody Goldberg <jody@gnome.org>
5626 * ms-excel-read.c (excel_read_DV) : Lists also have no use for
5628 Invert the use_dropdown flag. XL stores that as 'suppress combo'
5629 * ms-excel-write.c (excel_write_DV) : invert user_dropdown
5631 2005-03-11 Jean Brefort <jean.brefort@normalesup.org>
5633 * ms-chart.c (valuerange): import logarithmix axis mapping.
5635 2005-02-16 Jody Goldberg <jody@gnome.org>
5637 * ms-excel-write.c (excel_write_workbook) : Use count_io_progress_set
5638 so that we can remove workbook_io_progress_set.
5640 2005-02-09 Jody Goldberg <jody@gnome.org>
5642 * ms-excel-read.c (excel_read_BOUNDSHEET) : set the visibility of
5645 2005-02-08 Jody Goldberg <jody@gnome.org>
5647 * ms-excel-read.c (excel_read_SETUP) : drop debug spew
5649 2005-02-08 Morten Welinder <terra@gnome.org>
5651 * ms-excel-write.c (txomarkup_new): Work around Pango bug #166700.
5652 Don't compare freed pointer against NULL. Fixes #166532.
5654 2005-02-07 Jody Goldberg <jody@gnome.org>
5656 * ms-excel-write.c (excel_write_SETUP) : store the fit to pages width
5658 (excel_write_WSBOOL) : set the fit to page flag.
5660 * ms-excel-read.c (excel_read_WSBOOL) : read the fit to page flag.
5661 (excel_read_SETUP) : read the fit to pages width and height.
5663 2005-02-08 Jody Goldberg <jody@gnome.org>
5667 2005-02-07 Morten Welinder <terra@gnome.org>
5669 * ms-excel-write.c (excel_font_overlay_pango): Plug leak.
5672 2004-12-07 Jody Goldberg <jody@gnome.org>
5674 * ms-excel-write.c (excel_write_WINDOW2) : export sheet level rtl
5675 setting (we could move it to SheetView)
5676 (build_xf_data) : store the text dir.
5677 (excel_write_XF) : write it.
5679 * ms-excel-read.c (excel_read_WINDOW2) : read sheet level rtl flag
5680 (excel_read_XF) : read the text dir.
5681 (excel_get_style_from_xf) : store the text dir.
5683 2005-01-17 Jody Goldberg <jody@gnome.org>
5687 2005-01-16 Jody Goldberg <jody@gnome.org>
5689 * ms-excel-write.c (excel_write_COLINFO) : fix the breakage
5691 http://bugzilla.gnome.org/show_bug.cgi?id=163236
5692 * ms-formula-read.c (excel_func_desc) : Merge in the latest OOo data
5693 and some new research
5695 * boot.c (plugin_init) : add some function table validation tests.
5696 We'll want more as the data structures get cleaned up
5698 2005-01-14 Jody Goldberg <jody@gnome.org>
5700 http://bugzilla.gnome.org/show_bug.cgi?id=155719
5701 * ms-excel-write.c (writer_header_footer) : quick and easy
5703 * ms-excel-read.c (xl_hf_strstr) : simple handling of XL's ampersand
5705 (excel_read_HEADER_FOOTER) : implement.
5707 2005-01-13 Jody Goldberg <jody@gnome.org>
5709 http://bugzilla.gnome.org/show_bug.cgi?id=163409
5710 * ms-excel-write.c (excel_write_COLINFO) : handle ci == NULL
5711 so that we can export empty cols with formats. If the format is the
5712 same as the sheet default don't bother to export.
5713 (excel_write_colinfos) : we may need to export empty cols.
5715 2005-01-10 Jody Goldberg <jody@gnome.org>
5717 http://bugzilla.gnome.org/show_bug.cgi?id=163406
5718 * ms-excel-util.c (init_xl_font_widths) : fix entries for Bitstream
5721 2005-01-10 Jody Goldberg <jody@gnome.org>
5723 * ms-formula-write.c (write_arrays) : handle booleans and errors in
5726 2004-11-13 Jody Goldberg <jody@gnome.org>
5728 * ms-excel-read.c (ms_sheet_realize_obj) : We have a clear separation
5729 between create and realize now, we should use it. This routine sets
5731 (ms_sheet_create_obj) : this one creates objects for use later.
5732 I am not entire happy with this split. It no longer feels
5733 necessary but it is much too close to release to contemplate
5736 2004-12-17 Jody Goldberg <jody@gnome.org>
5738 http://bugzilla.gnome.org/show_bug.cgi?id=161534
5739 * ms-excel-read.c (excel_read_DIMENSIONS) : be extra anal with
5740 dimension records because they have ordinal zero
5742 2004-11-20 J.H.M. Dassen (Ray) <jdassen@debian.org>
5744 * ms-excel-read.c (excel_read_SETUP): Also import paper sizes for which
5745 gnome-print doesn't have names.
5747 2004-12-09 Jody Goldberg <jody@gnome.org>
5751 2004-12-09 Jody Goldberg <jody@gnome.org>
5753 * ms-chart.c (BC_R(surf)) : prep but leave ifdefed to avoid problems
5754 with XL's funky representation of axes.
5756 2004-11-28 Jody Goldberg <jody@gnome.org>
5760 2004-11-28 Jody Goldberg <jody@gnome.org>
5762 * ms-excel-read.c (excel_read_WINDOW2) : document rtl
5763 * ms-excel-write.c (excel_write_WINDOW2) : ditto
5765 2004-11-19 Emmanuel Pacaud <emmanuel.pacaud@univ-poitiers.fr>
5767 * ms-chart.c (BC_R(radararea)): type of area radar is
5769 (chart_write_plot): ditto.
5771 2004-11-16 Jody Goldberg <jody@gnome.org>
5773 * ms-chart.c (ms_excel_chart_write) : ultra-basic handling of graphs
5774 with multiple charts
5776 2004-11-15 Jody Goldberg <jody@gnome.org>
5778 * ms-excel-read.c (excel_read_SETUP) : hide some spurious debug spew
5780 2004-11-15 Jody Goldberg <jody@gnome.org>
5782 http://bugzilla.gnome.org/show_bug.cgi?id=157997
5783 * ms-excel-read.c (ms_sheet_realize_obj) : a temp patch for the object
5784 double unrefing. A more significant patch is waiting for after
5787 2004-11-14 J.H.M. Dassen (Ray) <jdassen@debian.org>
5789 * ms-excel-read.c (excel_read_SETUP): Import paper sizes. This works
5790 now that we have delayed instantiation of print configs. For now it
5791 only works for paper sizes for which gnome-print has names though.
5793 2004-11-07 Jody Goldberg <jody@gnome.org>
5797 2004-10-31 Jody Goldberg <jody@gnome.org>
5801 2004-11-01 Morten Welinder <terra@gnome.org>
5803 * ms-excel-read.c (ms_biff_get_chars): Give g_iconv the right kind
5806 * ms-excel-write.c (excel_write_string): Ditto.
5807 (excel_write_string_len): Change second argument to be size_t*.
5809 * ms-excel-read.h (ms_biff_get_chars): Give g_iconv the right kind
5812 * ms-excel-write.h (excel_write_string_len): Change second
5813 argument to be size_t*.
5815 * ms-escher.c (ms_escher_get_data): Fix confusion between
5818 2004-10-18 Jon K Hellan <hellan@acm.org>
5820 * ms-obj.c (ms_obj_read_pre_biff8_obj): Unref pixbuf returned by
5823 * ms-excel-read.c (excel_read_os2bmp): New. Handle headerless OS/2
5825 (excel_read_IMDATA): Call excel_read_os2bmp to handle OS/2
5826 BMP. Other format may be dumped to file.
5827 (excel_read_sheet): Unref pixbuf returned by excel_read_IMDATA.
5829 2004-10-15 Morten Welinder <terra@gnome.org>
5831 * ms-excel-write.c (excel_sheet_new): Don't free the same thing
5834 2004-10-11 Morten Welinder <terra@gnome.org>
5836 * ms-excel-read.c (ms_sheet_realize_obj): Plug leak.
5838 2004-10-10 Jody Goldberg <jody@gnome.org>
5840 * ms-obj.c (ms_obj_map_forms_obj) : move here and pull in the linked
5841 cell data when available.
5843 2004-10-08 Jody Goldberg <jody@gnome.org>
5845 * ms-obj.c (ms_obj_read_biff8_obj) : some simple mapping from Forms
5846 objects to things we understand. No properties imported yet.
5848 http://bugzilla.gnome.org/show_bug.cgi?id=154734
5849 * ms-chart.c (BC_R(end)) : cheesy swapping of the formatting
5850 associated with X and Y axes for bar plots.
5852 2004-10-05 Jody Goldberg <jody@gnome.org>
5856 2004-09-16 Stepan Kasal <kasal@ucw.cz>
5858 * Makefile.am (excel_la_LIBADD): New variable, set to $(Z_LIBS).
5859 (INCLUDES): add $(Z_CPPFLAGS)
5861 2004-09-24 Jody Goldberg <jody@gnome.org>
5863 * ms-obj.c (ms_obj_attr_new_flag) : add some safety checking
5864 (ms_obj_read_pre_biff8_obj) : merge up the handling of similar
5865 structures to get more consistent import.
5867 * ms-excel-write.c (excel_write_objs) : now that text boxes and
5868 rectangles are the same we need to do more work to figure out which
5869 are which. Make a list and use that in place of repeated lookups.
5870 (excel_sheet_new) : make the list here.
5871 (excel_write_state_new) : use the list.
5872 (excel_sheet_free) : new.
5873 (excel_write_state_free) : use excel_sheet_free.
5875 * ms-excel-read.c (ms_sheet_map_color) : rework to use GOColor
5876 (ms_sheet_realize_obj) : simplify greatly by using GObject properties
5877 with common names in the sheet objects and merging the handling of
5878 related types (text==rectangle ...)
5879 (ms_sheet_create_obj) : Use the new object types in a step towards
5880 removing this function.
5882 * ms-escher.c (ms_escher_read_OPT_bools) : new.
5883 (ms_escher_read_OPT) : read the boolean blocks as a group to avoid
5884 kludging around the infrastructure for 1:1 properties.
5885 While in here make the debug spew for complex options more useful
5886 Store PTR properties
5888 2004-09-17 Jody Goldberg <jody@gnome.org>
5890 * ms-excel-read.c (ms_sheet_realize_obj) : default to outline with == 1
5892 2004-09-22 Jody Goldberg <jody@gnome.org>
5894 http://bugzilla.gnome.org/show_bug.cgi?id=153260
5895 * ms-excel-write.c (excel_write_BOF) : use the versioned ids directly
5896 (excel_write_FORMULA) : ARRAY is v2 for the versions we can export
5898 * ms-excel-read.c (excel_unexpected_biff) : tweak the typing for
5900 (ms_biff_bof_data_new) : straight to opcodes.
5901 (excel_read_PALETTE) : ditto.
5902 (excel_formula_shared) : ditto.
5903 (excel_read_DEF_ROW_HEIGHT) : ditto.
5904 (excel_read_FORMULA) : ditto, but be careful. Use the BOF version,
5905 not the record. Our export was dropping the version.
5906 (excel_read_ROW) : better handling for old versions.
5908 * ms-chart.c (ms_excel_chart_read) : use raw opcodes for non-chart
5911 * ms-biff.c : Drop all the ms_op ls_op nonsense and just store opcode
5912 a straight 16 bit id.
5914 * biff-types.h : Rework to include explicit versioning for all records
5915 We were hitting too many odd ball records with invalid versioning
5916 Not just 0x1<byte>, but also 0x8<byte> even though that is a valid
5919 2004-09-16 Jody Goldberg <jody@gnome.org>
5921 * ms-excel-read.c (xl_find_fontspec) : Scale the right direction
5923 2004-09-18 J.H.M. Dassen (Ray) <jdassen@debian.org>
5925 * ms-excel-read.c: Added comments on how the paper size information can
5926 be used once gnome-print's API has been extended.
5928 2004-09-17 Jody Goldberg <jody@gnome.org>
5930 * ms-escher.c (ms_escher_read_OPT) : make debug spew slightly easier
5933 2004-09-16 Jon K Hellan <hellan@acm.org>
5935 * ms-excel-write.c (xf_init): Register default XF, its font and
5937 (pre_pass): Not here.
5939 2004-09-15 Jon K Hellan <hellan@acm.org>
5941 * ms-excel-write.c (txomarkup_new): New. Factored out of
5943 (cb_cell_pre_pass): See above.
5944 (excel_write_ClientTextbox): Change first parameter to
5945 ExcelWriteState. Save markup.
5946 (excel_write_textbox): See above.
5947 (extract_txomarkup): New. Extract markup for text object and store
5950 2004-09-14 Jody Goldberg <jody@gnome.org>
5952 * ms-excel-util.c (init_xl_font_widths) : rework the font table
5953 completely to use more closely calibrated size info.
5955 * ms-excel-read.c (base_char_width_for_read) : delete
5956 (xl_find_fontspec) : new.
5957 (excel_read_COLINFO) : rework to simplify by using the new font table,
5958 and sync it with the exporter.
5959 (excel_read_DEF_COL_WIDTH) : ditto.
5960 (excel_read_sheet) : Store the default style on import. We have no
5961 way of modifying it at run time, so we might as well use it for
5964 2004-09-09 Jody Goldberg <jody@gnome.org>
5966 * ms-chart.c (BC_R(pieformat)) : Store the separation for singletons
5967 (cb_store_singletons) : Check for pie separation and use it
5969 2004-09-09 Jody Goldberg <jody@gnome.org>
5971 * ms-chart.c (excel_chart_series_new) : init singletons
5972 (excel_chart_series_delete) : free singletons if necessary
5973 (BC_R(end)) : Create any singletons for the newly created series
5975 2004-09-09 Morten Welinder <terra@gnome.org>
5977 * ms-excel-read.c (excel_read_PALETTE): Plug leak.
5979 2004-09-08 Jody Goldberg <jody@gnome.org>
5983 2004-09-07 Jody Goldberg <jody@gnome.org>
5985 * ms-excel-write.c (palette_init) : Just use biff8 palette. We're
5986 going to dump a custom palette anyway so it does not really matter
5988 2004-09-04 Jon K Hellan <hellan@acm.org>
5990 * ms-excel-write.c (excel_write_ClientTextbox,
5991 excel_write_textbox): Implement simple text box export.
5992 (excel_write_objs, excel_sheet_new): Export text boxes.
5994 2004-09-03 Jody Goldberg <jody@gnome.org>
5996 * ms-excel-write.c (palette_init) : Export the xlp5 colours too
5998 * ms-obj.c (ms_obj_read_pre_biff8_obj) : remove some unnecssary
5999 pre-conditions that got confused when there was no name even when we
6000 were not expecting one.
6001 (excel_get_default_palette) : get a corrected palette for biff7.
6003 * ms-excel-read.c (ms_sheet_realize_obj) : merge the realization of
6004 text/label/rectangle/oval they all inherit from sheet-object-filled.
6006 * ms-escher.c (ms_escher_read_OPT) : Make some headway understanding
6007 booleans and use that to fix outline and fill handling.
6009 2004-09-02 Jody Goldberg <jody@gnome.org>
6011 http://bugzilla.gnome.org/show_bug.cgi?id=151618
6012 * plugins/excel/ms-chart.c (BC_R(end)) : Add the plot to the chart
6013 before setting it up so that the initial setup does not override the
6016 2004-08-31 Jody Goldberg <jody@gnome.org>
6018 * ms-biff.c (ms_biff_crypt_seq) : Add some bounds checking
6019 We need more docs in here.
6021 2004-08-30 Jody Goldberg <jody@gnome.org>
6023 * ms-excel-write.c (excel_write_BOUNDSHEET) : Export the sheet types
6024 we can import (worksheet, chart, xlm).
6025 Export sheet visibility too
6027 2004-08-31 Morten Welinder <terra@gnome.org>
6029 * md5.c (wvMD5Init, wvMD5Update): Use ANSI prototypes.
6031 2004-08-29 Jody Goldberg <jody@gnome.org>
6033 * plugin.xml.in : disable the non-functional spreadsheetml importer
6035 2004-08-29 Jody Goldberg <jody@gnome.org>
6039 2004-08-29 Jody Goldberg <jody@gnome.org>
6041 http://bugzilla.gnome.org/show_bug.cgi?id=151150
6042 * ms-chart.c (ms_excel_chart_write) : bar/col plots center axis ticks
6044 2004-08-27 Jody Goldberg <jody@gnome.org>
6046 * ms-chart.c (ms_excel_chart_write) : MS Xl can not handle plots with
6047 no data. Drop them with a warning.
6049 * ms-excel-write.c (excel_write_workbook) : We only need a header if
6050 we're going to export an image.
6052 2004-08-26 Jon K Hellan <hellan@acm.org>
6054 * ms-excel-write.c: Remove ENABLE_METAFILE ifdef
6056 2004-08-22 Jody Goldberg <jody@gnome.org>
6058 * ms-chart.c (BC_R(area,bar,line)) : Use the in_3d placeholders in
6059 plot_1_5d, we already export it.
6061 2004-08-21 Jon K Hellan <hellan@acm.org>
6063 * ms-excel-read.c (excel_read_IMDATA): Add comment about OS/2 BMP
6066 2004-08-20 Jody Goldberg <jody@gnome.org>
6068 * ms-excel-read.c (excel_read_BOUNDSHEET) : Fix differentiation
6069 between sheet and chart, then handle both.
6070 (excel_read_BOF) : Handle full page charts.
6072 * ms-chart.c (BC_R(pieformat)) : no need to limit separation here.
6073 The plot can handle it.
6075 2004-08-17 Jon K Hellan <hellan@acm.org>
6077 * ms-excel-write.c: Enable WMF/EMF export.
6078 (blipinf_free): Don't crash if blip is NULL. That's supposed to
6080 (excel_write_vector_blip): Fix off by 8 bytes error.
6082 2004-08-12 Jody Goldberg <jody@gnome.org>
6084 * ms-excel-util.c (init_xl_font_widths) : adjust the sizes for 'Sans'
6085 to conform to XL's notion of an unknown font
6087 2004-08-15 Jody Goldberg <jody@gnome.org>
6089 * ms-formula-write.c (write_node) : get closer to matching the classes
6090 for the more obscure variants, OOo is wrong, but I don't have a
6091 clear map on what is right yet.
6093 * ms-excel-write.c (excel_write_BOF) : update the version in the BOF a
6096 * ms-formula-read.c : tweak the expected return types for SUM,
6097 TRANSPOSE, MINVERSE, and MMULT
6099 2004-08-11 Jon K Hellan <hellan@acm.org>
6101 * ms-excel-read.c (excel_formula_shared): Simplify using g_memdup.
6102 (excel_read_IMDATA): Initialize variables.
6104 * ms-escher.c (ms_escher_blip_new, ms_escher_read_ClientAnchor):
6107 * crypt-md4.c: Include crypt-md4.h and make signatures consistent
6110 * crypt-md4.h: Add include guards.
6112 2004-08-11 Jon K Hellan <hellan@acm.org>
6116 * Makefile.am (excel_la_SOURCES): Add crypt-md4.[ch]
6118 * crypt-md4.[ch]. New files. MD4 checksum to use as BLIP
6119 id. Grabbed from Ethereal, originally from Samba.
6122 (blipinf_new): New function. Initialize a record for image data.
6123 (blipinf_free): New function. Free an image data record.
6124 (excel_write_image): New function. Write an image Sp record
6126 (excel_write_objs): Include images in record length. Write images.
6127 (excel_sheet_new): Save image info.
6128 (excel_write_image_bytes): New function. Save image in chunks,
6129 letting the biff layer insert CONTINUE records.
6130 (excel_write_vector_blip): New function. Save a vector format BLIP.
6131 (excel_write_raster_blip): New function. Save a raster format BLIP.
6132 (get_bliptype): New function. Get bliptype record.
6133 (excel_write_blip): New function. Save an image BLIP.
6134 (excel_write_blips): New function. Save the images as BLIPs.
6135 (excel_write_workbook): Get length of BLIP records. Call
6137 (excel_write_state_new): Initialize cur_blip.
6138 (excel_write_state_free): Free BLIP lists from sheets.
6140 * ms-excel-write.h (struct ExcelWriteSheet): Add blips, num_blips.
6141 (struct _ExcelWriteState): Add cur_blip.
6143 2004-07-10 Jody Goldberg <jody@gnome.org>
6145 * ms-excel-write.c (excel_write_workbook) : write WINDOW1 for all the views
6146 (excel_write_sheet) : Drop the WINDOW1 here but expand to write a
6147 WINDOW2, PANE, SCL, SELECTION tuple for all views, not just the
6150 2004-07-19 Jody Goldberg <jody@gnome.org>
6154 2004-07-05 Jody Goldberg <jody@gnome.org>
6156 * ms-excel-read.c (excel_read_IMDATA) : Add an optional mechanism for
6157 doing something with the data. Still not entirely sure what format
6158 it is. I'd hoped BMP but that does not appear to work.
6160 * biff-types.h : Add a few more records
6162 2004-06-29 Jody Goldberg <jody@gnome.org>
6164 * ms-excel-read.c (excel_read_REFMODE) : new.
6165 * ms-excel-write.c (write_sheet_head) : export REFMODE
6167 2004-06-26 Jody Goldberg <jody@gnome.org>
6169 * boot.c (excel_read_metadata) : Failure is a warning, not
6172 * ms-chart.c (ms_excel_chart_write) : do not write FBI
6173 (chart_write_axis_sets) : Handle transposed X-Y (bars)
6175 2004-06-22 Jody Goldberg <jody@gnome.org>
6177 * ms-excel-write.c (extract_gog_object_style) : handle no fmt for axis.
6178 (excel_write_objs) : the count is +1, not the spid
6180 2004-06-20 Jody Goldberg <jody@gnome.org>
6182 * ms-excel-write.c (palette_get_index) : make public
6183 (excel_write_start_drawing) : new to handle spids across sheets.
6184 (excel_write_autofilter_objs) : use it.
6185 (excel_write_chart) : use it.
6186 (excel_write_objs) : do more detailed obj setup here.
6187 (put_color) : minor simplification.
6188 (extract_gog_object_style) : new
6189 (excel_write_state_new) : use it to collect the colors for the
6191 (excel_sheet_new) : decide on sheet obejcts to export here.
6193 * ms-escher.c (-excel_write_MS_O_DRAWING_GROUP) : delete
6195 * ms-chart.c (}) : First pass at a basicly working chart exporter
6197 2004-06-13 Jody Goldberg <jody@gnome.org>
6199 * ms-escher.c (excel_write_MS_O_DRAWING_GROUP) : merge the xp and 2k
6200 versions and tidy up. This will likely need some work for blips
6202 * ms-chart.c (chart_write_plot) : implement the plot types we can
6204 (chart_write_axis) : provide a default for inverted and
6205 log-scale so that we only set them if lookup succeeds.
6206 (ms_excel_write_chart) : more work. gnumeric and OOo can
6207 now import the basic column charts. XL does not like the colours
6208 and gets the formating wrong, but it can at least read a single
6211 * ms-excel-write.c (excel_write_chart) : put the spid in the write
6212 spot I was off by two bytes.
6213 (excel_write_autofilter_objs) : Move the container wrapper from here
6214 (excel_write_objs) : to this new routine so that it can be shared by
6215 filters and charts. We are now close to bit perfect matches to XP.
6217 2004-06-07 Jody Goldberg <jody@gnome.org>
6219 * ms-excel-write.c (excel_write_chart) : add and End after the common
6221 * ms-chart.c (chart_write_color) : write.
6223 2004-06-08 Morten Welinder <terra@gnome.org>
6225 * ms-excel-read.c (excel_read_FILEPASS): Use gnm_destroy_password.
6227 2004-06-05 Jody Goldberg <jody@gnome.org>
6229 * ms-excel-write.c (excel_write_chart) : sync the sizes when exporting
6230 the anchor and object id.
6232 2004-06-01 Jody Goldberg <jody@gnome.org>
6234 * ms-chart.c (BC_R(end)) : patch style leak
6236 2004-05-31 Jody Goldberg <jody@gnome.org>
6238 * ms-chart.c : more fill in the blanks work towards export.
6239 (BC_R(seriestext)) : Use the simpler GODataScalarStr
6241 2004-05-26 Jody Goldberg <jody@gnome.org>
6243 * ms-excel-write.c (excel_write_AUTOFILTERINFO) : Use the right buffer
6245 2004-05-24 Jody Goldberg <jody@gnome.org>
6247 * ms-chart.c : more work towards chart export
6249 * ms-biff.c (ms_biff_put_2byte) : fix.
6251 2004-05-21 Jody Goldberg <jody@gnome.org>
6253 * ms-excel-read.c (excel_read_WSBOOL) : add more comments.
6255 * ms-chart.c (ms_excel_write_chart) : start filling in some of the
6256 blanks. No where near functional, but at least we can operate in
6257 'paint by numbers' mode for a while.
6259 * ms-biff.c (ms_biff_put_empty) : new util
6260 (ms_biff_put_2byte) : ditto.
6262 * ms-excel-write.c : Use the new utilities to clarify the code.
6263 (excel_write_SETUP) : make public for use in chart export
6264 (excel_write_SCL) : make public for use in chart export
6266 2004-05-20 Morten Welinder <terra@gnome.org>
6268 * ms-escher.c (ms_escher_read_Blip): We were reading 8 bytes too
6271 2004-05-15 Jody Goldberg <jody@gnome.org>
6273 * ms-excel-write.c (excel_write_BOF) : init the len for bifftypes
6275 http://bugzilla.gnome.org/show_bug.cgi?id=103054
6276 (write_sheet_head) : put externsheet tables in every sheet for biff7
6277 (excel_write_externsheets_v8) : The self reference is for the addin,
6278 not the others. Fixes 103054 for XL97
6279 (excel_write_workbook) : NAME records start at 0, not at the end of
6280 the externname table
6282 * boot.c (excel_file_open) : 95 in should export as 95
6283 (find_content_stream) : keep track of what type of stream this is.
6285 * ms-chart.c (BC_R(axislineformat)) : deleted axis still exist, and
6286 they hide their labels here rather than in tick. Don't apply grid
6287 line styles to the axis.
6289 2004-05-10 Jody Goldberg <jody@gnome.org>
6291 * ms-chart.c (BC_R(end)) : doh! Use the ExcelSeries::has_legend to
6292 set the GogSeries not the GogSeries on itself.
6294 2004-05-09 Jody Goldberg <jody@gnome.org>
6296 * ms-excel-read.c (excel_read_WINDOW2) : It seems like there can be
6297 multiple WINDOW2, SCL, PANE, SELECTION blocks when there are
6298 multiple windows. For now we don't support importing multiple views
6299 so we need to at leat not break if a previous view was frozen.
6301 2004-05-07 Jody Goldberg <jody@gnome.org>
6303 * ms-biff.c (ms_biff_put_var_write) : Quick and simple support for
6304 continue. It will not split a block of content, but it will split
6305 between blocks (attempted writes).
6307 2004-05-06 Jody Goldberg <jody@gnome.org>
6309 * ms-obj.c (ms_obj_attr_get_*) : Take an attrbag rather than an obj to
6312 * ms-escher.c (ms_escher_read_container) : add a
6313 'return_attrs_in_container' kludge parameter.
6314 (ms_escher_parse) : make the return of the attributes optional and
6315 actually make it work.
6316 (ms_escher_read_OPT) : load properties for gradients.
6318 * ms-chart.c (BC_R(gelframe)) : support gradients
6319 (BC_R(legend)) : store the legend object.
6320 (BC_R(legendxn)) : notice deleted legend elements.
6321 (BC_R(text)) : import the text colour.
6322 (BC_R(end)) : support legend styles and clarify the grid vs plotarea
6325 2004-05-03 Jody Goldberg <jody@gnome.org>
6327 * excel-xml-read.c : some tweaks to get a layout that will support
6330 2004-05-04 Morten Welinder <terra@gnome.org>
6332 * ms-excel-write.c (excel_write_DV): Map VALIDATION_OP_NONE to
6333 VALIDATION_OP_BETWEEN on save.
6335 * ms-excel-read.c (excel_read_DV): Make sure
6336 VALIDATION_TYPE_CUSTOM is paired with VALIDATION_OP_NONE.
6338 2004-04-29 Jody Goldberg <jody@gnome.org>
6340 * ms-excel-write.c (excel_font_overlay_pango) : new.
6341 (excel_write_RSTRING) : new.
6342 (cb_cell_pre_pass) : merge cb_collect_value_fmts, sst_collect_str
6343 add support for richtext
6344 (excel_write_cell) : export RSTRINGS for richtext
6346 2004-04-22 Jody Goldberg <jody@gnome.org>
6348 http://bugzilla.gnome.org/show_bug.cgi?id=136086
6349 * ms-excel-write.c (excel_sheet_write_DBCELL) : optimization was a bit
6350 optimistic. Even if there are no values, we still need to export
6351 rows with visible formating (borders, backgrounds, ...)
6353 2004-04-21 Morten Welinder <terra@gnome.org>
6355 * ms-excel-read.c (excel_read_LABEL): Plug leak.
6357 2004-04-20 Jody Goldberg <jody@gnome.org>
6359 * ms-excel-read.c (sst_read_string) : Use the right string when
6360 calculating offsets.
6362 2004-04-19 Jody Goldberg <jody@gnome.org>
6364 * ms-chart.c (BC_R(end)) : graph style wants outline not line
6365 (ms_excel_read_chart) : there is not 'Graph' concept in xls, remove
6366 it's style. Charts default to blank too.
6368 2004-04-19 Jody Goldberg <jody@gnome.org>
6370 * ms-excel-read.c (excel_sheet_insert_val) : fix the fix.
6371 We do need to apply the style, even if we're not going to assigned
6372 the format to the value.
6374 2004-04-19 Jody Goldberg <jody@gnome.org>
6376 * ms-excel-read.c (sst_read_string) : don't forget the last markup
6377 element. Leave some debug in here to figure out what's going on
6380 2004-04-19 Jody Goldberg <jody@gnome.org>
6382 * ms-excel-read.c (excel_sheet_insert_val) : only assign a format if
6383 there is no existing markup.
6384 (sst_bound_check) : do some extra checking to ensure the existence of
6385 unbroken region of desired length.
6386 (sst_read_string) : handle rich text.
6388 2004-04-18 Jody Goldberg <jody@gnome.org>
6390 * ms-obj.c (ms_obj_read_pre_biff8_obj) : fix the name offset for
6393 * ms-excel-read.c : convert global_string char * array into an
6394 ExcelStringEntry sst array with strings and markup in preparation
6395 for reading richtext from an SST.
6397 2004-04-17 Jody Goldberg <jody@gnome.org>
6399 * ms-excel-read.c (excel_read_HEADER_FOOTER) : new to handle biff8 vs
6401 (excel_read_LABEL_markup) : new. Handle biff[57] and biff8 RSTRING
6404 2004-04-17 Jody Goldberg <jody@gnome.org>
6406 * ms-excel-read.c (excel_read_str_name) : new.
6407 (excel_read_str_name) : split from here.
6408 (excel_read_EXTERNNAME) : used here too.
6410 * ms-excel-read.c (excel_read_XF_OLD) : differentiate biff2 vs biff3
6413 2004-04-15 Jody Goldberg <jody@gnome.org>
6415 * ms-chart.c (ms_excel_read_chart_BOF) : ignore the version in the BOF
6416 it lies. Use the container's version.
6418 * ms-excel-read.c (excel_read_NAME) : rework to handle unicode
6419 suffixes and to some general cleanup.
6421 2004-04-14 Jody Goldberg <jody@gnome.org>
6423 * ms-excel-read.c (excel_read_DEF_ROW_HEIGHT) : handle biff2
6424 (excel_read_WINDOW2) : ditto.
6425 (excel_read_EXTERNSHEET_v7) : be smarter about handling the buggy
6426 files from 1.0.7 that exported quoted sheet names.
6428 2004-04-12 Jody Goldberg <jody@gnome.org>
6430 * ms-excel-read.c : Use GO_UNIT in place of inches_to_points.
6432 2004-03-28 Jody Goldberg <jody@gnome.org>
6436 2004-03-18 Jody Goldberg <jody@gnome.org>
6438 * ms-excel-write.c (excel_write_WINDOW2) : We only support frozen
6439 panes. Set the flag indicating that this was only a freeze, not a
6441 (excel_write_PANE) : docs are wrong. The field indicates what type of
6443 (excel_write_selections) : rework to match XL.
6444 (excel_write_SCL) : Only write the record if zoom != 100%
6445 (excel_write_BOF) : update BOF to XP sp2
6447 * ms-excel-read.c (excel_read_SELECTION) : Allow the active pane from
6448 the PANE record to override the default of 3.
6449 (excel_read_PANE) : store the active pane.
6451 2004-03-16 Jody Goldberg <jody@gnome.org>
6453 http://bugzilla.gnome.org/show_bug.cgi?id=137377
6454 * ms-obj.c (ms_read_TXO) : init markup even if there is no string.
6456 2004-03-11 Jody Goldberg <jody@gnome.org>
6458 http://bugzilla.gnome.org/show_bug.cgi?id=136730
6459 * ms-excel-read.c (excel_get_xf) : be more flexible and handle xls
6460 generated with no XF records.
6461 (excel_get_style_from_xf) : ditto.
6462 (excel_sheet_insert_val) : ditto.
6464 * ms-obj.c (ms_obj_read_pre_biff8_obj) : despite the name
6465 PangoAttributes::end_index is exclusive, not inclusive.
6467 2004-03-08 Jody Goldberg <jody@gnome.org>
6469 * ms-excel-read.c (excel_read_XF) : throw in a simple heuristic for
6470 when to set a valueformat. At issue is that we want to display
6471 dates/times formatted, but do not want to display accounting
6472 formats. This kludge disables the application for any format that
6473 has more than one condition. It's not strictly a solution, but it
6474 will solve the common problems.
6476 2004-03-06 Jody Goldberg <jody@gnome.org>
6478 * ms-obj.c (ms_obj_read_pre_biff8_obj) : handle outline width for text
6480 * ms-excel-read.c (ms_sheet_create_obj) : ditto.
6482 2004-03-06 Jody Goldberg <jody@gnome.org>
6484 * ms-obj.c (ms_obj_attr_new_markup) : new.
6485 (ms_obj_attr_get_markup) : new.
6486 (ms_obj_attr_destroy) : teach about PangoAttrList
6487 (append_txorun) : new.
6488 (ms_obj_read_pre_biff8_obj) : font colours come with the FONT info in
6489 txoruns. The docs are wrong the colour in the record is useless.
6490 Remove some extra debug spew.
6492 * ms-excel-read.c (excel_wb_get_fmt) : no point using pointers to
6493 ints. Just use G_INT_TO_POINTER.
6494 (ms_sheet_get_fmt) : ditto.
6495 (excel_read_BOUNDSHEET) : ditto.
6496 (excel_workbook_new) : ditto.
6497 (excel_workbook_reset_style) : ditto.
6498 (base_char_width_for_read) : ditto.
6499 (excel_read_FORMAT) : ditto.
6500 (excel_read_FONT) : ditto.
6501 (excel_get_font) : ditto.
6502 Also no need for this to take a sheet, take a workbook.
6503 (biff_font_data_destroy) : free the new optional attr lists.
6504 (ms_sheet_create_obj) : Use markup rather than a single colour.
6505 (biff_guint16_hash (guint16 const *d)
6506 (biff_guint32_hash (guint32 const *d)
6507 (biff_guint16_equal) : delete.
6508 (biff_guint32_equal) : delete.
6509 (excel_get_style_from_xf) : remove some useless code now that font
6510 substitution is handled at the app level.
6512 (ms_wb_get_font_markup) : new. build a PangoAttrList from a FONT record.
6514 * ms-container.c (ms_container_get_fmt) : automatically chain up
6515 (ms_container_get_markup) : new.
6517 * ms-chart.c (chart_get_fmt) : delete.
6519 2004-03-03 Jody Goldberg <jody@gnome.org>
6521 * ms-formula-read.c (excel_formula_parses_ref_sheets) : extend to
6522 handle local 3d references properly.
6524 2004-02-22 Jody Goldberg <jody@gnome.org>
6526 * ms-chart.c (BC_R(end)) : We're using GogRadar rather than GogRadial.
6527 Set the no-marker state using the right name.
6528 (BC_R(radararea)) : set the area flag to indicate filled.
6530 2004-02-21 Jody Goldberg <jody@gnome.org>
6532 * ms-excel-util.c (two_way_table_new) : store the destroy func.
6533 (two_way_table_put) : patch leak and use the destroy func on things
6534 that are already in the table.
6536 * ms-chart.c (BC_R(radar)) : connect the new engine
6537 (BC_R(radararea)) : ditto.
6539 2004-02-09 Morten Welinder <terra@gnome.org>
6541 * ms-biff.c (ms_biff_query_next): Change to return gboolean and
6542 fix the g_return_val_if_fail results.
6544 2004-02-04 Jody Goldberg <jody@gnome.org>
6546 * ms-excel-read.c (excel_read_CODENAME) : new routine to store the
6547 codename for later use while round tripping.
6548 (excel_read_sheet) : use it here.
6549 (excel_read_workbook) : use it here.
6551 * ms-excel-write.c (excel_write_CODENAME) : new routine to use the
6552 stored codename rather than generating one on the fly.
6553 (excel_write_sheet) : use it here.
6554 (excel_write_workbook) : and here.
6556 2004-01-29 Jody Goldberg <jody@gnome.org>
6558 From Nick Lamb <njl98r@ecs.soton.ac.uk>
6559 * ms-excel-read.c (excel_read_FILEPASS) : new.
6560 (excel_read_sheet) : use it here.
6561 (excel_read_workbook) : and here.
6563 2004-01-28 Jean Brefort <jean.brefort@ac-dijon.fr>
6565 * plugins/excel/ms-chart.c: (scatter):add import of bubble plots
6567 2004-01-28 Andreas J. Guelzow <aguelzow@taliesin.ca>
6569 * ms-excel-read.c (excel_read_SETUP): use print_info_set_orientation
6570 * ms-excel-write.c (excel_write_SETUP): ditto
6572 2004-01-16 Jody Goldberg <jody@gnome.org>
6574 * ms-escher.c (ms_escher_get_data) : as pointed out by Nick Lamb
6575 some gelframe records can get rather big.
6577 2004-01-14 Jody Goldberg <jody@gnome.org>
6579 From Nick Lamb <njl98r@ecs.soton.ac.uk>
6580 * ms-biff.c : Merge in patch to support xor based 'encryption'
6582 2004-01-12 Jody Goldberg <jody@gnome.org>
6584 http://bugzilla.gnome.org/show_bug.cgi?id=130791
6585 * ms-formula-write.c (excel_write_prep_expr) : fix cut-n-paste-o in
6586 change for 1.2.2 that added macros and broke plugin functions.
6588 2004-01-07 Jody Goldberg <jody@gnome.org>
6590 * ms-excel-read.c (excel_read_SELECTION) : disable some debug spew.
6592 2004-01-07 Jon K Hellan <hellan@acm.org>
6594 * ms-chart.c (BC_R(legend)): Initialize pos for XL_pos = 7.
6596 2004-01-05 Jody Goldberg <jody@gnome.org>
6598 http://bugzilla.gnome.org/show_bug.cgi?id=130577
6599 * ms-excel-write.c (excel_write_SELECTION) : generalize a bit.
6600 (excel_write_selections) : new wrapper to handle selectins for each pane
6602 http://bugzilla.gnome.org/show_bug.cgi?id=130579
6603 * ms-excel-read.c (excel_read_SELECTION) : we only care about
6604 selections in the primary pane.
6606 2003-12-24 Jody Goldberg <jody@gnome.org>
6608 * ms-excel-write.c (excel_write_WRITEACCESS) : don't free memory we do
6610 (excel_write_COUNTRY) : init both fields.
6611 (write_sheet_head) : pre biff8 it was part of the sheet record. Its
6612 hard to tell if this should be part of every sheet or just the first.
6614 (write_workbook) : biff8 puts the COUNTRY record in the workbook area.
6616 2003-12-23 Jody Goldberg <jody@gnome.org>
6620 2003-12-22 Jody Goldberg <jody@gnome.org>
6622 * ms-chart.c (BC_R(ifmt)) : pull in axis value format.
6624 2003-12-19 Jon K Hellan <hellan@acm.org>
6626 * ms-excel-write.c (excel_write_WRITEACCESS): Use
6627 gnm_get_real_name to get user name.
6629 2003-12-18 Jody Goldberg <jody@gnome.org>
6631 * ms-chart.c (XL_gog_series_set_dim) : Don't leak data we're not
6633 (BC_R(get_style)) : new. creates the style as necessary, and flags it
6634 to ignore the object's default settings.
6636 2003-12-13 Jody Goldberg <jody@gnome.org>
6638 http://bugzilla.gnome.org/show_bug.cgi?id=127625
6639 * ms-excel-read.c (excel_sheet_destroy) : kludge around autofilters in
6640 XL97 that have no related drop downs (eg guia.xls)
6642 2003-11-26 Jody Goldberg <jody@gnome.org>
6646 2003-11-25 Jody Goldberg <jody@gnome.org>
6648 * ms-formula-write.c (excel_write_prep_expr) : handle macros.
6649 (write_funcall) : ditto.
6651 * ms-formula-read.c : add specs for the text_B_ functions
6652 (excel_parse_formula) : improve debug info.
6653 Fix unicode strings.
6655 * ms-excel-write.c (write_workbook) : unsigned does not go < 0
6656 (cb_enumerate_macros) : new.
6657 (cb_write_macro_NAME) : new.
6658 (excel_write_names) : new.
6660 * ms-excel-read.c (get_xtn_lens) : add a limiter on the rich text
6662 (excel_formula_shared) : add some debug.
6663 (excel_read_NAME) : register macro functions.
6664 (excel_read_ROW) : disable debug spew.
6665 (excel_read_CF) : ditto.
6666 (excel_read_DIMENSIONS) : ditto.
6667 (excel_read_GUTS) : ditto.
6668 (excel_read_HLINK) : target frame is first (according to
6669 xls-export-crash.xls) and the docs.
6670 (excel_read_SUPBOOK) : handle external workbooks with unicode names.
6672 * ms-escher.c (ms_escher_parse) : return the property bag.
6674 2003-11-20 Jody Goldberg <jody@gnome.org>
6676 * ms-chart.c (BC_R(radar)) : Add a note.
6678 2003-11-20 Jody Goldberg <jody@gnome.org>
6680 * ms-formula-read.c (make_function) : Take a Workbook to allow for
6681 for book local function lookup.
6683 2003-11-20 Jody Goldberg <jody@gnome.org>
6685 * ms-excel-write.c (excel_sheet_new) : Include row/col info in the
6688 * ms-excel-write.c (excel_write_GUTS) : max col/row outline levels are
6691 2003-11-19 Andreas J. Guelzow <aguelzow@taliesin.ca>
6693 * ms-excel-read.c (excel_read_SETUP): use print_info_set_n_copies
6695 2003-11-18 Jody Goldberg <jody@gnome.org>
6697 * ms-chart.c (BC_R(lineformat)) : Handle 'invisible'
6698 (BC_R(markerformat)) : none is never auto.
6699 (BC_R(end)) : Set the plot defaults for line and XY.
6701 2003-11-17 Jody Goldberg <jody@gnome.org>
6703 http://bugzilla.gnome.org/show_bug.cgi?id=127204
6704 * ms-chart.c (ms_excel_read_chart) : remove any grids that were
6705 automaticly created if there were none in the input stream.
6707 * plugins/excel/ms-chart.c (BC_R(areaformat)) : we need to consider
6708 pattern = 0 as NONE only if it is not autoformat. Our theme engine
6709 does not change fill types, so it would ignore styles with fill=NONE
6711 2003-11-15 Jody Goldberg <jody@gnome.org>
6713 * ms-excel-write.c (write_sheet_head) : save the manual recalc flag.
6715 2003-11-14 Jody Goldberg <jody@gnome.org>
6717 http://bugzilla.gnome.org/show_bug.cgi?id=126908
6718 * ms-excel-read.c (ms_sheet_create_obj) : gnumeric defaults to
6719 different outline and background colours. Set them if the file does
6720 not so that things look xl-ish.
6722 2003-11-13 Jody Goldberg <jody@gnome.org>
6724 * ms-excel-write.c (excel_write_sheet) : store a CODENAME
6725 (write_workbook) : ditto.
6727 * boot.c (excel_save) : store the saved properties if we have them
6728 (excel_file_open) : store CompObj and properties.
6729 (excel_read_metadata) : its easier to blob the stream.
6731 2003-10-27 Jody Goldberg <jody@gnome.org>
6733 * boot.c (find_content_stream) : Move this logic here.
6734 (excel_file_open) : from here.
6735 (excel_file_probe) : so that this can share it.
6737 2003-10-25 Jody Goldberg <jody@gnome.org>
6739 * ms-excel-write.c (excel_write_SELECTION) : doh!
6741 2003-10-18 Jody Goldberg <jody@gnome.org>
6743 http://bugzilla.gnome.org/show_bug.cgi?id=124244 [unable to open group]
6744 * ms-excel-read.c (excel_read_COLINFO) : set collapsed even if level == 0
6745 (excel_read_ROW) : ditto.
6747 2003-10-13 Jody Goldberg <jody@gnome.org>
6749 * ms-biff.c (ms_biff_query_next) : fail if we run out of data part way
6752 * ms-excel-read.c (excel_read_XF_OLD) : init all flags to FALSE.
6754 2003-10-08 Jody Goldberg <jody@gnome.org>
6758 2003-10-08 Jody Goldberg <jody@gnome.org>
6760 * ms-chart.c (conditional_set_double) : Use the new const val GOData
6761 to support manual axis bounds and invert the logic to be correct.
6762 (BC_R(seriestext)) : store the text associated with axis and chart
6764 (BC_R(end)) : free strings associated with text records if they
6765 haven't been used yet.
6767 2003-09-30 Jody Goldberg <jody@gnome.org>
6769 * ms-excel-read.c (excel_read_HLINK) : typo 0x80 rather than 0x8 was
6770 breaking import of local workbook links (Thanks to Tim for noticing)
6772 2003-09-29 Jody Goldberg <jody@gnome.org>
6774 From Nick Lamb <njl195@zepler.org.uk>
6775 * boot.c (excel_file_probe) : bug in libgsf < 1.8.3 that would not
6776 seek back to 0 on failed gsf_infile_msole_new.
6778 2003-09-27 Jody Goldberg <jody@gnome.org>
6780 * ms-formula-write.c (write_funcall) : Use the last specified type for
6781 the remainder of the args in a vararg function.
6783 * ms-formula-read.c : AND,OR, and IF args appear to be V not R
6785 2003-09-27 Jody Goldberg <jody@gnome.org>
6787 * ms-excel-write.c (excel_write_SST) : be extra careful about unicode
6790 2003-09-25 Jody Goldberg <jody@gnome.org>
6792 * ms-escher.c (ms_escher_read_OPT) : dump the complex data too so that
6793 we don't forget it exists.
6795 * ms-chart.c (excel_chart_series_new) : init style.
6796 (excel_chart_series_delete) : unref style if necessary.
6797 (BC_R(color)) : DOH! they use bgr no rgb.
6798 (BC_R(areaformat)) : handle none, and start work on pattern map.
6799 (BC_R(begin)) : make prettier with newline.
6800 (BC_R(dataformat)) : don't create the style here. Do it on demand in
6801 {area,line,marker}format.
6802 (BC_R(frame)) : notice the difference between a chart and a grid.
6803 (BC_R(markerformat)) : create the styles on demand.
6804 (conditional_set_double) : prep for importing manual axis bounds.
6805 (BC_R(valuerange)) : ditto. Still need a static GOData.
6806 (BC_R(end)) : hook the series and plot default styles in.
6807 Enable styles for charts and grids.
6809 2003-09-23 Jody Goldberg <jody@gnome.org>
6811 * ms-chart.c (BC_R(lineformat)) : fix import of axis line styles.
6813 2003-09-13 Nick Lamb <njl195@zepler.org.uk>
6815 * ms-excel-read.c (excel_sheet_new) : typo fix
6816 (excel_read_FORMAT) : Early BIFF uses smaller datatypes
6817 (excel_read_FONT) : Implement for early BIFF
6818 (excel_get_xf) : More early BIFF hacks
6819 (excel_read_XF_OLD) : New function, read OLD XF structures
6820 (excel_workbook_add_XF) : Obsoleted, removed
6821 (excel_formula_shared) : Early BIFF uses smaller datatypes
6822 (excel_workbook_reset_style) : New function, needed for XLW files
6823 (excel_read_EXTERNNAME) : typo fix, Early BIFF fixes
6824 (excel_read_NAME) : Early BIFF uses smaller datatypes
6825 (excel_read_sheet) : Style is per-sheet in XLW files, what default?
6826 Use excel_read_XF_OLD instead of excel_workbook_add_XF
6827 (excel_read_BOF) : Stop using excel_workbook_add_XF,
6828 report XL4 workbooks to stderr just like all other file types
6830 * ms-formula-read.c (excel_parse_formula) :
6831 Handle PTG_SHEET and PTG_SHEET_END, at least for known examples
6832 Also early BIFF as usual has smaller datatypes
6834 2003-09-21 Jody Goldberg <jody@gnome.org>
6836 * ms-formula-read.c (excel_parse_formula) : disable debug spew.
6838 2003-09-21 Jody Goldberg <jody@gnome.org>
6840 * ms-formula-write.c (xl_map_char_to_type) : new util.
6841 (xl_get_op_class) : wrapper to help calculate the result class.
6842 (write_cellref_v7) : handle operand classes.
6843 (write_cellref_v8) : handle operand classes.
6844 (excel_formula_write_CELLREF) : ditto and operator mapping.
6845 (excel_formula_write_AREA) : ditto.
6846 (write_funcall) : ditto.
6847 (excel_formula_write_NAME_v8) : ditto.
6848 (excel_formula_write_NAME_v7) : ditto.
6849 (write_node) : ditto.
6850 (excel_write_formula) : collect more information on the calling context
6852 2003-09-18 Jody Goldberg <jody@gnome.org>
6854 * ms-escher.c (excel_write_MS_O_DRAWING_GROUP) : Add UserDefined to
6855 silence some warnings.
6857 2003-09-16 Jody Goldberg <jody@gnome.org>
6859 * ms-formula-write.c : push all the 'shared' arguments into the
6860 PolishData that we're passing around anyway.
6862 * ms-formula-write.c (excel_write_prep_expr) : register functions that
6863 exist only in arrays too.
6865 * ms-excel-util.c (init_xl_font_widths) : add Albany
6867 2003-09-15 Jody Goldberg <jody@gnome.org>
6869 * ms-chart.c (ms_excel_read_chart) : patch leak.
6871 2003-09-15 Jody Goldberg <jody@gnome.org>
6875 2003-09-15 Jody Goldberg <jody@gnome.org>
6877 * ms-chart.c (BC_R(legend)) : handle the legend's position.
6879 * ms-excel-util.c : "Arial Cyr" in addition to "Arial CYR"
6881 2003-09-14 Jody Goldberg <jody@gnome.org>
6883 * ms-chart.c (BC_R(pie)) : don't confuse center diameter with
6884 separation, use it to distinguish between pie and ring.
6885 (BC_R(pieformat)) : handle separation here.
6887 2003-09-13 Jody Goldberg <jody@gnome.org>
6889 * ms-chart.c (BC_R(tick)) : enable. Looks like axis label enabling
6890 should be here. Wonder what that flag in lineformat is for ??
6892 2003-09-13 Jody Goldberg <jody@gnome.org>
6894 * ms-chart.c (BC_R(lineformat)) : disable axis label setting for now
6895 it seems over zealous.
6897 2003-09-13 Jody Goldberg <jody@gnome.org>
6899 * ms-chart.c (BC_R(color)) : disable debug spew.
6900 (BC_R(lineformat)) : impl.
6901 (BC_R(markerformat)) : impl.
6903 2003-09-10 Jody Goldberg <jody@gnome.org>
6907 2003-09-03 Jody Goldberg <jody@gnome.org>
6909 * ms-excel-util.c (init_xl_font_widths) : 128pt does not seem like a
6910 good yard stick for Courier, Use 64, and scale it.
6911 Arial Narrow is even worse, size it based on 32pt
6913 2003-08-22 Jody Goldberg <jody@gnome.org>
6915 * ms-excel-read.c (excel_read_BOF) : fix the warning. We need the
6916 stream pos at the _start_ of the sheet.
6918 2003-08-21 Jody Goldberg <jody@gnome.org>
6922 2003-08-20 Jody Goldberg <jody@gnome.org>
6924 * ms-excel-read.c (excel_read_BOF) : finding a sheet not listed in the
6925 right place is a warning not a failure.
6927 * ms-excel-write.c (excel_write_DV) : handle missing titles and msgs
6929 2003-08-09 Jody Goldberg <jody@gnome.org>
6931 * ms-chart.c (BC_R(areaformat)) : use the new GogStyle extensions.
6933 2003-07-31 Andreas J. Guelzow <aguelzow@taliesin.ca>
6935 * ms-excel-read.c (excel_workbook_destroy): remove last argument
6936 in workbook_sheet_reorder
6938 2003-08-01 Jody Goldberg <jody@gnome.org>
6940 * ms-excel-util.c (init_xl_font_widths) : add a bunch of arial
6943 2003-07-31 Jody Goldberg <jody@gnome.org>
6945 * ms-chart.c (BC_R(line)) : connect to the new line plot.
6946 (BC_R(area)) : connect to the new area plot.
6948 2003-07-28 Jody Goldberg <jody@gnome.org>
6950 * ms-formula-read.c (make_function) : dup the name because plugins get
6951 removed before symbols do and we would crash referencing a static
6952 string from the plugin.
6953 (PHONETIC) : appears to have 1 arg (optional ?)
6955 2003-07-24 Jody Goldberg <jody@gnome.org>
6957 * ms-biff.c (ms_biff_pre_biff8_query_set_decrypt) : new placeholder.
6958 (ms_biff_query_set_decrypt) : take a version so that we can correctly
6959 recognize encrypted files for versions before biff8.
6961 2003-07-19 Jody Goldberg <jody@gnome.org>
6963 * ms-obj.c (ms_obj_read_pre_biff8_obj) : Parse scollbars and spinners
6965 * ms-excel-read.c (ms_sheet_realize_obj) : apparently spinners use
6966 scrollbar records. Pass the current value too.
6968 * ms-excel-write.c (excel_write_SST) : simplify a bit to avoid a
6969 potential corner case that would generate an empty CONTINUE.
6971 2003-07-18 Jody Goldberg <jody@gnome.org>
6973 * ms-excel-write.c (excel_write_SST) : handle strings > 8224 bytes.
6974 (excel_sheet_write_block) : improve warning message and fallback to
6975 the default style when there is a problem.
6977 2003-07-17 Jody Goldberg <jody@gnome.org>
6979 * ms-excel-util.c (init_xl_font_widths) : add Bitstream Vera, and its
6982 * ms-formula-read.c (parse_list_push) : be more
6983 resilient in the face of missing args.
6985 2003-07-16 Jody Goldberg <jody@gnome.org>
6987 * ms-excel-read.c (ms_biff_get_chars) : make public.
6988 * ms-obj.c (ms_read_TXO) : use ms_biff_get_chars.
6990 2003-07-16 Jody Goldberg <jody@gnome.org>
6992 * ms-obj.c (ms_read_OBJ) : always register the object.
6994 * ms-container.c : Make the obj_queue a GSList.
6995 (ms_container_get_obj) : new.
6996 (ms_container_realize_objs) : only realize MSObjs that have gnumeric
6999 * ms-escher.c (ms_escher_header_init) : init new 'release_attrs' flag
7000 to allow us to pass management of an attr bag to an object, but still
7001 retain access to it.
7002 (ms_escher_header_release) : honour the flag.
7003 (ms_escher_read_ClientData) : set the flag.
7005 * ms-excel-read.c (excel_read_NOTE) : Discover an undocumented flag.
7006 0x100 == no indicator visible
7007 While we're here store the author, and the inidcator position.
7008 (excel_read_HLINK) : frames are 0x80 not 0x8
7009 (ms_sheet_realize_obj) : cheat to handle cell comments. In xl97 and
7010 up the comment objects store the possition of the display box, not the
7011 position of the indicator. We need a better comment object.
7012 (ms_sheet_realize_obj) : Store the text for text boxes too.
7013 (ms_sheet_create_obj) : no need to set a blank text, we assign it later.
7014 (ms_sheet_create_obj) : create comments.
7016 2003-07-07 Jody Goldberg <jody@gnome.org>
7018 * ms-excel-read.c (excel_palette_get) : fix error message.
7020 2003-07-02 Andreas J. Guelzow <aguelzow@taliesin.ca>
7022 * ems-excel-write.c (xcel_sheet_new): add some spaces in strings
7024 2003-06-21 Jody Goldberg <jody@gnome.org>
7026 * ms-chart.c (BC_R(chartformat)) : vary_style_by_element is now in plot
7027 * ms-excel-write.c : Start work on escher wrapper for exporting charts
7028 in XL97. NOT ENABLED OR FINISHED.
7030 2003-06-11 Jody Goldberg <jody@gnome.org>
7032 * ms-excel-write.c (excel_sheet_new) : Capitalize and mark Excel as a
7035 2003-06-11 Jody Goldberg <jody@gnome.org>
7037 * ms-chart.c (ms_excel_read_chart) : handle NULL sogs. That currently
7038 indicates an attempt to read a chart in its own notebook tab.
7040 2003-06-07 Jody Goldberg <jody@gnome.org>
7044 2003-06-07 Jody Goldberg <jody@gnome.org>
7048 2003-05-30 Jody Goldberg <jody@gnome.org>
7050 * ms-chart.c (excel_chart_series_delete) : unref the data if nothing
7052 (BC_R(end)) : if we use the series clear the pointer.
7054 2003-05-25 Jody Goldberg <jody@gnome.org>
7056 * ms-chart.c : remove xml, jump to goffice and disable anything that
7057 does not obviously connect to GOG for now. All we get are plot
7058 types and series for now, no formating.
7060 2003-05-21 Jody Goldberg <jody@gnome.org>
7062 * ms-chart.c (BC_R(gelframe)) : enable debugging when dumping
7065 * ms-escher.c (ms_escher_parse) : accept gelframes.
7066 (ms_escher_read_OPT) : the length _includes_ the header, don't try to
7068 (ms_escher_read_Blip) : ditto.
7069 weaken size restriction for uncompression.
7070 test-xls/billeterie2000-6.xls has a blip that is larger than its
7071 compressed content, dunno why.
7073 2003-05-20 Morten Welinder <terra@gnome.org>
7075 * ms-excel-read.c: Adapt to StyleColor changes.
7076 * ms-excel-write.c: Adapt to StyleColor changes.
7078 2003-05-19 Jody Goldberg <jody@gnome.org>
7080 * ms-excel-read.c (excel_read_CF) : tone down the amoutn of debug spew.
7082 * ms-excel-read.c (excel_read_XCT) : work around more undocumented xls crack.
7083 What the #$!@#&%!@ do negative counts mean.
7085 2003-05-12 Jody Goldberg <jody@gnome.org>
7087 * ms-excel-write.c (excel_write_FORMULA) : set the alwaysCalc flag for
7088 cells with dynamic depends.
7090 2003-05-11 Jody Goldberg <jody@gnome.org>
7094 2003-04-28 Morten Welinder <terra@gnome.org>
7096 * ms-excel-read.c (biff_string_get_flags): Fix 0/FALSE confusion.
7097 (biff_xf_data_destroy): Ditto.
7099 2003-04-21 Jody Goldberg <jody@gnome.org>
7101 * ms-excel-write.c (excel_write_MERGECELLS) : handle too many merges
7102 for a single biff record.
7103 * ms-biff.c (ms_biff_max_record_len) : new.
7105 2003-04-09 Morten Welinder <terra@gnome.org>
7107 * boot.c (excel_file_probe): Guard against gsf read error.
7108 (excel_file_open): Ditto.
7111 2003-03-26 Jody Goldberg <jody@gnome.org>
7113 * ms-excel-read.c (excel_read_tab_color) : no need to operate on the
7114 pixel directly. Use the rgb in the StyleColor.
7115 (excel_read_WINDOW2) : ditto.
7117 2003-03-18 Jody Goldberg <jody@gnome.org>
7119 * boot.c : suppress warning
7121 2003-03-18 Jody Goldberg <jody@gnome.org>
7123 * ms-excel-read.c (excel_read_EXTERNSHEET_v7) : work around a bug in
7124 1.0.x export that quoted names in EXTERNSHEET.
7125 (excel_read_workbook) : recognize 1.0.x files.
7126 (excel_workbook_new) : init the new flag.
7128 2003-03-07 Morten Welinder <terra@diku.dk>
7130 * ms-chart.c (register_handlers): Use G_N_ELEMENTS.
7132 * ms-obj.c (ms_read_OBJ): Ditto.
7134 * ms-excel-write.c (excel_write_builtin_name): Ditto.
7135 (excel_write_FORMATs): Ditto.
7136 (map_pattern_index_to_excel): Ditto.
7138 * ms-excel-read.c (excel_map_pattern_index_from_excel): Ditto.
7140 2003-03-05 Jody Goldberg <jody@gnome.org>
7142 * ms-biff.c (ms_biff_query_next) : more Morten warnings.
7143 (ms_biff_query_peek_next) : ditto.
7145 * ms-obj.c (ms_obj_read_biff8_obj) : TRUE on error in precondition
7147 2003-02-05 Jody Goldberg <jody@gnome.org>
7149 * ms-excel-write.c (excel_write_FORMAT) : biff8 formats have 2 byte
7150 lengths, biff7 has 1 byte.
7152 * ms-excel-read.c (excel_read_FORMULA) : Add a quick size check.
7154 2003-02-04 Jody Goldberg <jody@gnome.org>
7156 * boot.c (excel_file_probe) : actually return the flag, and support
7159 2003-01-28 Jody Goldberg <jody@gnome.org>
7163 2003-01-25 Jody Goldberg <jody@gnome.org>
7165 * excel-xml-read.c (xl_xml_wb) : quick framework to parse xml from
7166 Office XP. Just a descriptor for now no real work.
7168 2003-01-21 Jody Goldberg <jody@gnome.org>
7170 * ms-excel-write.c (excel_foreach_name) : doh!
7172 2003-01-08 Jody Goldberg <jody@gnome.org>
7174 * ms-excel-write.c (excel_sheet_new) : fix the text of the warning
7176 (excel_foreach_name) : loop over the gnumeric data structures rather
7177 than the ExcelState wrappers so that we can do things before the
7178 ExcelSheets are created.
7180 * ms-biff.c (MAX_BIFF7_RECORD_SIZE) : increase this a smidge to match
7181 the actual limit and allow export to handle all 16k rows in xl95.
7183 2003-01-06 Jody Goldberg <jody@gnome.org>
7185 * ms-excel-write.c (excel_write_state_new) : bp is not valid yet
7186 take biff7 and biff8 flags directly.
7188 2003-01-02 Jody Goldberg <jody@gnome.org>
7190 * ms-excel-read.c (excel_read_1904) : Enable 1904 support.
7191 * ms-excel-write.c (write_workbook) : Set 1904 flag as necessary.
7193 2002-12-31 Jody Goldberg <jody@gnome.org>
7197 2002-12-30 Jody Goldberg <jody@gnome.org>
7199 * ms-excel-write.c (excel_write_WRITEACCESS) : patch small leak, and
7200 add a sanity failsafe.
7202 2002-12-29 Jody Goldberg <jody@gnome.org>
7204 * ms-biff.c (ms_biff_put_new) : Use the canonical name that is
7205 available in glibc, and libiconv.
7207 2002-12-30 Jon K Hellan <hellan@acm.org>
7209 * ms-excel-read.c (excel_read_workbook): Pass filename to
7210 cmd_context_get_password.
7212 2002-12-30 Morten Welinder <terra@diku.dk>
7214 * ms-excel-read.c (excel_formula_shared): Return NULL on failure,
7217 2002-12-25 Jody Goldberg <jody@gnome.org>
7219 * ms-excel-write.c (excel_write_state_new) : register sheets with
7220 filters. check validation exppressions for sheets.
7221 (excel_write_prep_validations) : new.
7222 (excel_sheet_new) : init validation lists here if necessary.
7223 (excel_write_DVAL) : not here.
7225 2002-12-24 Jody Goldberg <jody@gnome.org>
7227 * ms-excel-read.c (excel_read_NAME) : arrrggghh MS kills me.
7229 * ms-formula-read.c (excel_parse_formula) : disabled a bit too much
7230 debug info and broke the code.
7232 2002-12-24 Jody Goldberg <jody@gnome.org>
7234 * ms-excel-read.c (ms_sheet_create_obj) : cut-n-paste-o in line creation
7235 support font color for text boxes.
7236 (excel_palette_get) : just call colour 64 black if it gets this far.
7237 It only happens for shet objects and we need to do more research
7238 on how to handle these.
7239 (excel_read_DV) : fix double free
7241 * ms-obj.c (ms_obj_read_pre_biff8_obj) : be more picky about what we
7242 call an arrow head. Fix the directions for lines. Find the
7243 undocumented flag to fix named objects.
7245 2002-12-22 Jody Goldberg <jody@gnome.org>
7249 2002-12-22 Jody Goldberg <jody@gnome.org>
7253 2002-12-21 Jody Goldberg <jody@gnome.org>
7255 * ms-escher.c (excel_write_MS_O_DRAWING_GROUP) : new.
7256 * ms-excel-write.c (excel_write_AUTOFILTERINFO) : write the biff8
7257 combos. Thats it we're done.
7259 2002-12-20 Jody Goldberg <jody@gnome.org>
7261 * ms-excel-write.c (excel_write_AUTOFILTERINFO) : write the fields
7262 to handle the last 1/4 of the puzzle. The only thing missing now is
7263 exporting the combos for biff8.
7264 (excel_write_DOPER) : new.
7266 2002-12-18 Jody Goldberg <jody@gnome.org>
7268 * ms-excel-write.c (excel_write_AUTOFILTERINFO) : new.
7269 (write_sheet_head) : use it here to export the 1st 1/4 of autofilters.
7270 (excel_write_NAME) : support hidden names.
7271 (excel_write_autofilter_names) : create pretend names for the 1st
7272 filter in each sheet.
7273 (write_workbook) : use excel_write_autofilter_names to generate the
7274 next 1/4 of autofilters.
7275 (excel_write_autofilter_objs) : generate simple biff7 style objects
7276 for the filter combos.
7277 (excel_write_sheet) : Use excel_write_autofilter_objs for the next 1/4.
7279 2002-12-17 Jody Goldberg <jody@gnome.org>
7281 * ms-formula-write.c (excel_write_prep_expr) : make it public.
7282 (excel_write_prep_expressions) : just do the initialization not the
7284 (excel_formula_write_NAME_v8) : new.
7285 (write_node) : handle names for biff8.
7287 * ms-excel-write.c (excel_write_BOF) : no need to clone XL2k bug that
7288 erroneously calls XL95 XL97.
7289 (excel_write_externsheets_v7) : we also export the selfref magic.
7290 (excel_write_NAME) : renamed from excel_write_NAME_v7 and extended to
7292 (write_workbook) : export names for BIFF8 too.
7293 (cb_check_names) : new.
7294 (excel_write_state_new) : prep the expressions in names too.
7296 2002-12-16 Morten Welinder <terra@diku.dk>
7298 * ms-excel-write.c (excel_write_map_errcode): Base on
7299 value_error_classify.
7301 2002-12-16 Morten Welinder <terra@diku.dk>
7303 * ms-excel-read.c (biff_get_error): Rename from
7304 biff_get_error_text and return a full error instead. Add evalpos
7305 argument. All callers changed.
7307 2002-12-15 Jody Goldberg <jody@gnome.org>
7309 * ms-container.c (ms_container_finalize) : cull out unused
7312 2002-12-13 Jody Goldberg <jody@gnome.org>
7314 * ms-formula-read.c : Tack on a 'shared' flag in alot of places to
7315 control the use of _REF/_AREA vs _REFN/_AREAN
7317 * ms-excel-write.c (excel_write_BOF) : bump generated BOF to look like
7321 (excel_write_DV) : new.
7322 (excel_write_DVAL) : new.
7323 (excel_write_NAME_v7) : export names using shared formula conventions.
7324 (excel_write_sheet) : export validation.
7325 (write_workbook) : add a XL9FILE flag.
7327 * ms-excel-read.c (excel_read_DV) : several small tweaks
7328 1) string lengths are 2 bytes
7329 2) Use the option flags to enable/disable input msg and validation
7330 3) Parse expressions relative to the top left of the first range
7331 4) Parse as shared expressions
7333 2002-12-13 Jon K Hellan <hellan@acm.org>
7335 * ms-excel-read.c (excel_read_HLINK): Fix typo.
7337 2002-12-08 Jody Goldberg <jody@gnome.org>
7339 * ms-excel-read.c (excel_prepare_autofilter) : don't fully register
7340 the magic filter name.
7342 2002-12-06 Jody Goldberg <jody@gnome.org>
7344 * ms-excel-read.c (excel_read_AUTOFILTER) : don't forget the unicode
7347 2002-12-03 Morten Welinder <terra@diku.dk>
7349 * ms-excel-read.c (excel_print_unit_init_inch): Convert to
7351 (excel_init_margins): Ditto.
7352 (excel_read_SETUP): Ditto.
7353 * ms-excel-write.c (excel_write_margin): Ditto.
7354 (excel_write_SETUP): Ditto.
7356 2002-11-30 Jody Goldberg <jody@gnome.org>
7358 * ms-excel-read.c (excel_read_AUTOFILTER) : finish.
7359 (read_DOPER) : finish.
7361 2002-11-29 Jody Goldberg <jody@gnome.org>
7363 * ms-excel-write.c (excel_write_WINDOW1) : make view const
7364 (excel_write_state_new) : ditto.
7366 * ms-excel-read.c (excel_prepare_autofilter) : new.
7367 (excel_read_NAME) : handle autofilters.
7369 * ms-escher.c (ms_escher_read_ClientTextbox) : store the text.
7371 * plugins/excel/boot.c (excel_save) : make the view const not the
7373 (excel_dsf_file_save) : ditto.
7374 (excel_biff8_file_save) : ditto.
7375 (excel_biff7_file_save) : ditto.
7377 2002-11-26 Jody Goldberg <jody@gnome.org>
7379 * ms-excel-read.c (ms_sheet_create_obj) : use the new label setting
7382 2002-11-28 Jon K Hellan <hellan@acm.org>
7384 * boot.c (excel_save, excel_dsf_file_save, excel_biff8_file_save)
7385 (excel_biff7_file_save): Receive gsf output stream from higher
7386 layer rather than creating and closing it here.
7388 2002-11-25 Jody Goldberg <jody@gnome.org>
7390 * ms-excel-read.c (excel_set_xf) : remove bogus optimization.
7391 (excel_set_xf_segment) : ditto. We can not assume that the default is
7392 the current format. See 'Tax2001-23.xls'
7394 2002-11-24 Jody Goldberg <jody@gnome.org>
7396 * ms-formula-read.c (excel_formula_parses_ref_sheets) : fix typo.
7397 check the source not the destination.
7399 2002-11-24 Jody Goldberg <jody@gnome.org>
7401 * ms-obj.c (ms_obj_read_pre_biff8_obj) : add some fun.
7403 2002-11-20 Jody Goldberg <jody@gnome.org>
7405 * ms-formula-write.c (excel_formula_write_NAME_v7) : support qualified
7408 * ms-excel-read.c (excel_read_EXTERNSHEET_v7) : fix handling of the
7411 * boot.c (excel_file_open) : Try the output even more and assign the
7412 savers as level AUTO.
7413 * plugin.xml.in : ditto.
7415 2002-11-17 Jody Goldberg <jody@gnome.org>
7417 * biff-types.h : s/SXVX/SXVS/ ancient typo
7419 2002-11-15 Jody Goldberg <jody@gnome.org>
7423 2002-11-15 Jody Goldberg <jody@gnome.org>
7425 * ms-formula-write.c : tidy up sheet hanlding in references.
7427 * ms-excel-write.c (excel_write_NAME_v7) : new.
7428 (excel_foreach_name) : ditto.
7429 (write_workbook) : produce names for biff7 including sheet local and
7432 2002-11-14 Jon K Hellan <hellan@acm.org>
7434 * plugin.xml.in: Remove "open" and "import" attributes.
7436 2002-11-13 Jody Goldberg <jody@gnome.org>
7438 * ms-excel-write.c (excel_write_comments_biff7) : fix. #$^! libxml had
7439 poluted the global name space with function 'comment' which I
7440 accidentally used as a variable name without defining it.
7442 2002-11-13 Jody Goldberg <jody@gnome.org>
7444 * ms-excel-write.c (excel_sheet_write_block) : speedup empty rows.
7445 And use the undocumented optimized form for the DBCELL (#rows == 0)
7446 when dealing with sparse regions.
7447 (excel_write_ROWINFO) : ignore empty rows.
7449 2002-11-13 Jody Goldberg <jody@gnome.org>
7451 * ms-formula-read.c (excel_parse_formula) : fix typo that broke 3d
7454 * ms-formula-write.c (sheet_pair_add_if_unknown) : new.
7455 (excel_write_prep_expr) : use it for refs and regions.
7457 * ms-excel-write.c (excel_write_state_free) : release the function and
7459 (excel_write_SCL) : new. Clean up and support zoom > 100
7460 (cb_write_sheet_pairs) : new.
7461 (excel_write_externsheets_v8) : generate sheet pairs for the
7462 externsheet. Still no support for external links.
7463 (excel_write_get_externsheet_idx) : implement.
7465 2002-11-12 Jody Goldberg <jody@gnome.org>
7467 * ms-excel-write.c : Don't use StyleFont. In the case where a font
7468 does not exist on the display system it does the wrong thing.
7469 MStyle can contain an invalid font. StyleFont gets remapped to the
7472 2002-11-12 Jody Goldberg <jody@gnome.org>
7474 * ms-excel-write.c (palette_get_index) : add a warning if we are going
7476 (gather_palette) : improve debug.
7478 * ms-excel-util.c (two_way_table_move) : rename from
7479 two_way_table_replace and fix.
7481 2002-11-11 Jody Goldberg <jody@gnome.org>
7483 * ms-formula-write.c (write_cellref_v7) : fix signature.
7484 (write_cellref_v8) : ditto.
7485 (write_ref) : fix biff8 case.
7487 * ms-excel-write.c (gather_styles) : we already gathered the most
7488 common styles earlier.
7489 (excel_sheet_new) : most common style in a column does not extend the
7492 * ms-biff.c (ms_biff_put_len_next) : handle correct max biff record
7493 sizes for biff7 vs biff8. Looks like they teaked things so that the
7494 dbcell records will always fit in 1 biff record.
7495 (ms_biff_put_len_commit) : ditto.
7497 2002-11-10 Jody Goldberg <jody@gnome.org>
7499 * ms-biff.c (ms_biff_put_new) : take a codepage as an argument.
7500 * ms-excel-write.c (excel_write_v7) : pass in the code page we stored
7502 (excel_write_v8) : ignore the codepage. biff8 uses unicode.
7504 * ms-excel-read.c (excel_read_workbook) : store the codepage we
7507 2002-11-10 Jody Goldberg <jody@gnome.org>
7509 * ms-formula-write.c (write_arrays) : rewrite.
7511 2002-11-10 Jody Goldberg <jody@gnome.org>
7513 * ms-formula-write.c (write_string) : Use excel_write_string.
7514 (write_arrays) : Use it here, but this code is suspect.
7516 * ms-excel-write.c (excel_write_string_len) : new routine to find char
7517 and byte lengths of strings.
7518 (current_workbook_iconv) : delete.
7519 (biff_convert_text) : delete.
7520 (biff_put_text) : delete.
7521 (excel_write_string) : new replacement for biff_put_text that does the
7522 conversion and writting inline rather than from a buffer, has
7523 smarter unicode handling and a more useful set of flags.
7524 (excel_write_externsheets_v7) : Use it here.
7525 (excel_write_externsheets_v8) : Use it here.
7526 (excel_write_NAME_v7) : Use it here.
7527 (excel_write_BOUNDSHEET) : Use it here.
7528 (excel_write_FONT) : Use it here.
7529 (excel_write_FORMAT) : Use it here.
7530 (excel_write_value) : Use it here.
7531 (excel_write_FORMULA) : Use it here.
7532 (excel_write_comments_biff7) : Use it here.
7533 (excel_write_SST) : Handle the unicode caes.
7534 (excel_write_WRITEACCESS) : new to handle biff7 vs biff8
7535 (excel_utf8_has_multibyte) : delete.
7536 (write_workbook) : Use excel_write_WRITEACCESS and clean up the
7537 codepage handling to conform to
7538 biff7 == single byte vs biff8 == unicode.
7540 * ms-excel-biff.h (EX_SETSTRLEN) : delete.
7542 * ms-biff.c (ms_biff_put_new) : Add a buffer and iconv handler to
7543 simplify string handling. excel95 gets locale specific handler.
7544 excel97 and up goes to utf16-le.
7545 (ms_biff_put_destroy) : cleanup.
7547 2002-11-07 Jody Goldberg <jody@gnome.org>
7549 * ms-excel-write.c (excel_write_state_new) : merge biff7 and biff8
7551 (excel_write_externsheets_v8) : basic initial implementation handles
7554 * ms-excel-read.c (excel_read_workbook) : add a flag to indicate dual
7557 * boot.c (excel_file_open) : set the saver reasonably intellifently.
7558 (excel_save) : support dual stream files.
7559 (excel_dsf_file_save) : new.
7560 * plugin.xml.in : enable dual stream files
7562 2002-11-05 Jody Goldberg <jody@gnome.org>
7564 * plugin.xml.in : enable excel97
7566 * ms-excel-write.c (excel_write_value) : use BIFF8 SST records.
7567 (excel_write_state_free) : clean up SST here.
7568 (excel_write_state_new) : shared routine for biff7 and biff8.
7569 (excel_utf8_has_multibyte) : quicky utility.
7570 (excel_write_SST) : initial basic implementation still needs unicode
7572 (excel_write_BOF) : renamed from biff_bof_write and sync versions with
7575 2002-11-04 Jody Goldberg <jody@gnome.org>
7577 * boot.c (excel_save) : prep for biff8 save, and double stream files.
7579 * ms-excel-read.c (excel_read_XF) : fix rotation.
7580 (excel_read_SST) : improve debug info.
7582 * ms-excel-write.c (write_xf_record) : write the BIFF8 support.
7583 (rotation_to_excel) : new.
7585 2002-11-04 J.H.M. Dassen (Ray) <jdassen@debian.org>
7587 * ms-biff.c, ms-escher.c, ms-excel-read.c, ms-excel-write.c,
7588 ms-formula-write.c, ms-obj.c: Included headers for some standard
7591 2002-11-04 Nick Lamb <njl98r@ecs.soton.ac.uk>
7593 * biff-types.h: Add BIFF_INTEGER
7594 * ms-excel-read.c: More non-OLE Excel file support.
7596 2002-11-02 J.H.M. Dassen (Ray) <jdassen@debian.org>
7598 * ms-obj.h: Added declaration of ms_obj_new .
7600 2002-11-01 Jody Goldberg <jody@gnome.org>
7604 2002-10-31 Jody Goldberg <jody@gnome.org>
7606 * ms-formula-read.c (excel_parse_formula) : adjust the name and
7607 externname handling.
7609 * ms-excel-read.c (excel_workbook_new) : make supbook an array rather
7611 (excel_workbook_destroy) : cleanup the new data structures.
7612 (excel_read_EXTERNNAME) : revamp handling for biff8 to store in a
7613 distinct structure from the NAMEs, and associate that with the
7614 SUPBOOK even though the docs claim otherwise. I suspect the docs
7615 were written for Biff7 and not updated. This is the only thing that
7616 makes sense based on the record ordering.
7617 (excel_read_NAME) : merge in the ms_container_add_name code.
7618 (excel_externsheet_v8) : simplify the interface and return the structure
7619 (supbook_get_sheet) : adjust to the new data structures.
7620 (excel_read_SUPBOOK) : be more expressive. We're ready to handle
7621 externals now. Just need to write a parser for the links.
7623 * ms-container.c (ms_container_get_name) : No sense having it here.
7624 The code is specific to the PTG handler. move it there.
7625 (ms_container_add_name) : also more specific to the NAME and
7626 EXTERNNAME handlers. Move it there.
7628 2002-10-30 Jody Goldberg <jody@gnome.org>
7630 * ms-excel-read.c (excel_read_NAME) : handle unicode names.
7632 2002-10-28 Morten Welinder <terra@diku.dk>
7634 * ms-escher.c (ms_escher_read_ClientTextbox): Don't leak text even
7635 though we haven't implemented the feature. (I'm tired of hunting
7638 2002-10-28 Jody Goldberg <jody@gnome.org>
7640 * ms-excel-write.c (excel_write_WINDOW2) : go back to selecting the
7642 (excel_write_WINDOW1) : store the currently selected sheet here too.
7644 * ms-excel-read.c (excel_read_EXTERNSHEET_v7) : kludge around screw up
7645 in opencalc exporter.
7647 2002-10-27 Nick Lamb <njl98r@ecs.soton.ac.uk>
7649 * ms-excel-read.c: Factor out some code into new functions, more
7650 support for non-OLE Excel files, especially formulae.
7652 2002-10-27 Jody Goldberg <jody@gnome.org>
7656 2002-10-26 Jody Goldberg <jody@gnome.org>
7658 * ms-excel-write.c : Start rationalizing things.
7659 * ms-formula-write.c : ditto. Lots of adjustments.
7660 - start handling biff7 externsheets correctly
7661 - fix handling of non builtin functions
7663 * ms-excel-read.c (excel_add_name) : delete.
7664 (excel_workbook_get_name) : ditto.
7666 * ms-formula-read.c : Hopefully the last major tweak to names and
7667 externsheets for biff7. This now loads all test cases smoothly.
7668 It seems that biff7 stores per bof sets of externsheets.
7670 * ms-container.c (ms_container_init) : Add a version and a workbook
7671 pointer. Init the new biff7 extern handling data structures.
7672 (ms_container_finalize) : and release them here.
7673 (ms_container_get_name) : new to handle biff7 or biff8 magic.
7674 (ms_container_add_name) : ditto.
7676 * ms-chart.c (BC_R(ai)) : parse the expression as ourselves, not the
7678 (chart_parse_expr) : implement.
7679 (ms_excel_chart) : handle EXTERNSHEET and EXTERNCOUNT for biff7 style
7680 storage with per BOF EXTERN*.
7682 * ms-biff.c (ms_biff_put_destroy) : take responsibility for the output
7685 * boot.c (excel_save) : check that we can open the output file before
7686 we bother collecting things for export.
7688 2002-10-25 Jody Goldberg <jody@gnome.org>
7690 * ms-excel-read.c (excel_read_XF) : init shrink to fit in the non
7693 2002-10-24 Jody Goldberg <jody@gnome.org>
7695 * ms-excel-read.c (excel_parse_name) : patch leak.
7697 2002-10-25 Morten Welinder <terra@diku.dk>
7699 * ms-biff.c (skip_bytes): Make scratch buffer static to ensure
7700 it's initialised. Add assert, just in case.
7702 2002-10-24 Morten Welinder <terra@diku.dk>
7704 * ms-excel-read.c (excel_read_XCT): Fix typo, I think.
7706 2002-10-21 Jody Goldberg <jody@gnome.org>
7708 * ms-formula-read.c (excel_parse_formula) : Ok. take a 2nd crack at
7709 the externsheet handling in area3d and ref3d for biff7. It seems
7710 like XL2k generates different indicies when exporting as XL95 than
7711 XL95 did. So have a fall back. If the theory that
7712 a+1 == -ixals, a, b are 0 based
7714 a == ixals, and a, b are 1 based
7716 2002-10-21 Jody Goldberg <jody@gnome.org>
7718 * ms-formula-read.c (ms_excel_parse_formula) : improve readability of
7719 debug spew and send thing to stderr.
7720 Fix handling of extern names and refrences. This time I think we've
7723 2002-10-21 Jody Goldberg <jody@gnome.org>
7725 * ms-excel-read.c : tidy up naming conventions
7726 excel_read_<BIFFTAG>
7727 - Use fprintf to keep g_warning and printfs in sync
7728 - Use esheet for ExcelSheets and ewb for ExcelWorkbooks
7729 - Use Sheet and wb for the gnumeric variants
7730 (ms_excel_sheet_new) : check to see if the sheet already exists
7731 in case it was implicitly created in a SUPBOOK or EXTERNSHEET.
7732 This will be useful when we start restoring external links shortly.
7733 (ms_excel_workbook_attach) : delete.
7734 (ms_excel_workbook_detach) : delete.
7735 (ms_excel_sheet_destroy) : clear out the sheet local extensheet
7737 (excel_read_BOUNDSHEET) : use ms_excel_sheet_new.
7738 (excel_externsheet_v8) : rewrite to handle self ref. Only partially
7740 (supbook_get_sheet) : ditto.
7741 (excel_read_EXTERNSHEET_v8) : ditto.
7742 (excel_externsheet_v7) : fix to use local externsheets.
7743 (excel_read_EXTERNSHEET_v7) : rewrite and prep for external
7745 (excel_workbook_get_name) : work around 'self ref' records for biff8.
7746 (excel_parse_name) : work on scoping. works for biff7 not biff8.
7747 (ms_excel_handle_delayed_NAMEs) : delete. the externsheet records are
7749 (excel_read_EXTERNNAME) : builtin names are just short forms for
7750 names, they have special meanings to XL but no special behavior.
7751 (excel_read_NAME) : ditto. Use the new externsheet setup and drop all
7752 of the delayed parsing goo.
7753 (excel_read_XCT) : new. prep for external references.
7754 (excel_read_CALCMODE) : new. now that we support manual recalc.
7756 2002-10-17 Jody Goldberg <jody@gnome.org>
7758 * ms-excel-read.c (ms_excel_parse_NAME) : It looks like some
7759 builtinnames are just names, no definitions. eg 'Database'
7760 It also looks like these sheet_indexes apply to externsheet records
7761 for <= biff7 (see pivot.xls) rather than boundsheets.
7763 2002-10-13 Jody Goldberg <jody@gnome.org>
7765 * ms-excel-read.c (ms_excel_read_pane) : the sizes are only valid if
7766 there is a freeze in that direction.
7768 * ms-excel-read.c (ms_excel_read_dv) : Fix handling of empty strings
7769 and improve validation. NOTE : This is likely to come up again.
7770 We need to know when there is always a 1 byte header, and when there
7771 isn't in biff_get_text.
7773 2002-10-09 Morten Welinder <welinder@rentec.com>
7775 * ms-obj.h (struct _MSObj): Avoid "gboolean ... : 1".
7776 * ms-excel-read.h (struct _ExcelSheet): Avoid "gboolean ... : 1".
7778 2002-10-10 Nick Lamb <njl98r@ecs.soton.ac.uk>
7780 * plugin.xml.in: Excel 4.x had .XLW workbooks as well as .XLS
7781 * boot.c: Try to load non-OLE files too
7783 2002-10-09 Morten Welinder <terra@diku.dk>
7785 * ms-excel-read.c (ms_excel_workbook_destroy): Don't leak
7788 2002-10-08 Jody Goldberg <jody@gnome.org>
7790 * ms-excel-write.c (write_names) : Fix leak by not inserting copies of
7793 2) no need to do a string compare
7795 2002-10-07 Jody Goldberg <jody@gnome.org>
7797 * ms-excel-read.c (ms_excel_read_workbook) : handle workbook protected
7798 files (thanks jpablo).
7800 2002-10-04 Jody Goldberg <jody@gnome.org>
7802 * ms-excel-read.c (ms_excel_parse_NAME) : ahhh, I understand now.
7803 names with expr_len == 0 represent the placeholders used for unknown
7806 2002-10-02 Jody Goldberg <jody@gnome.org>
7808 * ms-chart.c (BC_R) : handle empty text.
7810 * boot.c : simplify now that IOContext inherits from CommandContext
7811 Move the metadata export here for symetry with the import.
7813 2002-09-30 Jody Goldberg <jody@gnome.org>
7815 * plugin.xml.in : disable 97 until it is ready for widespread use
7817 2002-09-30 Jody Goldberg <jody@gnome.org>
7821 2002-09-30 Jody Goldberg <jody@gnome.org>
7823 * boot.c (excel_file_open) : typo
7825 2002-09-27 Jody Goldberg <jody@gnome.org>
7827 * boot.c (excel_save) : restore macros.
7829 * boot.c (excel_file_open) : handle confused files that misname the
7830 streams. Store macros if they exist.
7832 2002-09-26 Jody Goldberg <jody@gnome.org>
7834 * ms-formula-read.c (ms_excel_parse_formula) : fix handling of 26 & 27.
7835 The docs are confusing. The cached data is appended not to the
7836 subexpression but to the entire string. While we're here add a stub
7839 2002-09-26 Jody Goldberg <jody@gnome.org>
7841 * ms-formula-read.c (ms_excel_parse_formula) : supply handling of
7842 pgts 26 & 27. We can ignore them but they frequently wrap the
7843 intersection operator, the export will be a pain in the butt.
7845 2002-09-25 Jody Goldberg <jody@gnome.org>
7847 * ms-formula-read.c (binary_ops) : enable intersection
7849 * ms-formula-write.c (ms_formula_build_pre_data) : ditt.
7850 (write_node) : ditto.
7852 2002-09-15 Jody Goldberg <jody@gnome.org>
7854 * ms-formula-read.c (const) : DateDif takes 3 arguments.
7856 2002-09-10 Morten Welinder <terra@diku.dk>
7858 * ms-escher.c: Make shade_ParamMask be within int's range by
7860 * ms-escher.c: Avoid trailing commas in enums.
7862 2002-09-05 Jody Goldberg <jody@gnome.org>
7864 * ms-formula-write.c (ms_formula_write_pre_data) : remove some obvious
7867 2002-09-04 Jody Goldberg <jody@gnome.org>
7869 * *.c : remove ifdef WITH_BONOBOization of graphs
7871 2002-08-30 Jody Goldberg <jody@gnome.org>
7873 * boot.c (excel_read_metadata) : new.
7874 (excel_file_open) : read the doc and summary meta info streams.
7875 Don't do anything with the data yet, but start the ball rolling.
7877 2002-08-30 Morten Welinder <terra@diku.dk>
7879 * ms-excel-read.c (ms_excel_read_formula): Avoid copying of
7881 (ms_excel_parse_formula): Ditto.
7883 2002-08-29 Morten Welinder <terra@diku.dk>
7885 * ms-excel-util.c (two_way_table_new): Take an extra arg for
7886 getting rid of keys. All callers changed.
7888 * ms-excel-write.c (formats_init): Supply an unreffer to
7891 2002-08-29 Morten Welinder <terra@diku.dk>
7893 * ms-excel-write.c (free_workbook): Plug leaks.
7895 2002-08-28 Jody Goldberg <jody@gnome.org>
7897 * ms-excel-read.c (ms_excel_read_workbook) :
7898 excel_iconv_open_for_import moved to libgsf.
7900 2002-08-28 Jody Goldberg <jody@gnome.org>
7902 * ms-excel-read.c (ms_excel_read_workbook) : gnm_iconv_close moved to
7904 * ms-excel-write.c (write_workbook) : ditto.
7905 * ms-summary.c (ms_summary_read) : ditto.
7906 (ms_summary_write) : ditto.
7908 2002-08-25 Jody Goldberg <jody@gnome.org>
7912 2002-08-25 Jody Goldberg <jody@gnome.org>
7914 * ms-excel-write.c (excel_write_externsheets) : store the unquoted
7916 (excel_write_SELECTION) : swap args to be consistent.
7917 Store current pane == 3 rather than 0 to silence the warning when
7918 loading our sheets in MS Excel.
7919 (ms_excel_write_workbook) : add some dummy metadata streams.
7921 2002-08-21 Jody Goldberg <jody@gnome.org>
7923 * ms-obj.c (ms_obj_new) : add a convenience routine to be safe.
7924 (ms_read_OBJ) : Use it here.
7926 2002-08-19 Jon K Hellan <hellan@acm.org>
7928 * ms-biff.c (ms_biff_query_peek_next, ms_biff_put_var_seekto,
7929 ms_biff_put_var_commit, ms_biff_put_len_commit): Use glib's seek
7930 enum instead of the enum which used to be in libgsf.
7932 * ms-excel-write.c (biff_boundsheet_write_last, write_index): Ditto.
7934 2002-08-18 Jody Goldberg <jody@gnome.org>
7936 * ms-excel-util.c (excel_iconv_open_for_import) : fix unicode codepage
7937 to be actual unicode with the high bit lopped off, which I hope is
7938 synonymous with 8859-1. This still needs to be translated into
7941 2002-08-17 Jon K Hellan <hellan@acm.org>
7943 * ms-chart.c (BC_R): Fix typos.
7945 2002-08-17 Jody Goldberg <jody@gnome.org>
7947 * ms-excel-util.c (get_locale_charset_name) : delete.
7948 (excel_iconv_open_for_import) : realize that 1200 and 1201 are both
7949 unicode and that we only want to convert to UTF-8.
7950 (excel_wcstombs) : die die die. We may need this again one day when
7951 exporting UTF-8 back to xl 95. But we'll cross that bridge when we
7954 * ms-excel-read.c (get_chars) : internally text should always be UTF-8.
7955 (ms_excel_read_workbook) : fix the warning.
7956 I've found some references for the code pages.
7958 2002-08-16 Jon K Hellan <hellan@acm.org>
7960 * ms-excel-read.c (ms_excel_read_SUPBOOK): Shut up warning.
7962 2002-08-15 Jon K Hellan <hellan@acm.org>
7964 * ms-excel-write.c (biff_boundsheet_write_last, write_index):
7965 Change type of oldpos variable to gsf_off_t.
7967 2002-08-13 Jody Goldberg <jody@gnome.org>
7969 * ms-obj.c (ms_obj_read_pre_biff8_obj) : support colours for polygons.
7971 * ms-excel-read.c (ms_sheet_create_obj) : Add support for polygon
7973 (ms_sheet_obj_anchor_to_pos) : hmm, our supposition that >= 97 ==
7974 1/256 and < 97 == 1024 seems wrong in the face of chap03-1.
7976 2002-08-12 Jody Goldberg <jody@gnome.org>
7980 2002-08-12 Jody Goldberg <jody@gnome.org>
7982 * ms-obj.c (ms_object_attr_new_array) : new.
7983 (ms_object_attr_get_expr) : ditto.
7984 (ms_object_attr_destroy) : support arrays.
7985 (ms_obj_read_pre_biff8_obj) : Parse the coord list for polygons.
7987 * ms-excel-read.c (ms_excel_read_SUPBOOK) : do a touch more.
7988 Still need to write the encoded path parser.
7990 * ms-excel-read.c (ms_excel_read_cf) : don't leak.
7992 2002-08-11 Jody Goldberg <jody@gnome.org>
7994 * ms-formula-read.c (ms_excel_parse_formula) : add bounds testing to
7995 reading const strings. It will save us from corrupt data, and
7996 rescue us from the misexported xls in 1.0.6,1.0.7
7998 * ms-excel-read.c (biff_xf_data_new) : read shrink to fit.
7999 (ms_excel_parse_NAME) : Ignore 0 length expressions.
8001 * ms-formula-read.c (expr_tree_error) : new.
8002 (parse_list_pop) : use it more loudly here.
8003 (ms_excel_parse_formula) : and here.
8005 2002-08-09 Jody Goldberg <jody@gnome.org>
8007 * ms-excel-read.c (ms_excel_read_workbook) : silence the warnings
8008 caused by reading the padding at the end of files.
8010 2002-08-08 Jody Goldberg <jody@gnome.org>
8012 * ms-formula-read.c (ms_excel_parse_formula) : improve handling of
8015 * ms-excel-read.c (biff_boundsheet_data_new) : improve debug spew.
8016 (sst_read_string) : no need to pass version an sst is biff8 specific.
8017 (ms_excel_read_SST) : ditto.
8018 (ms_excel_read_EXSST) : new convience routine.
8019 (biff_boundsheet_data_new) : move boundsheet_data_by_index into a ptr
8020 array, and store the gnumeric sheets directly.
8021 (ms_excel_workbook_new) : use g_hash_table_new_full to make cleanup
8023 (ms_excel_workbook_destroy) : simplify.
8024 (ms_excel_read_SETUP) : support the 'print comments' flag
8025 (ms_excel_read_MULRK) : split into its own function.
8026 (ms_excel_read_MULBLANK) : ditto.
8027 (ms_excel_read_SCL) : ditto
8028 (ms_excel_read_sheet) : spew the sheet password in case we need to
8030 (ms_excel_SUPBOOK) : I finally understand the self reference magic.
8031 More work to do to support external links.
8032 (ms_excel_workbook_get_externsheet_v8) : improve the warnings on error.
8033 (ms_excel_externsheet_v8) : those sheet indicies are BOUNDSHEET
8034 references if the supbook is a self reference. We cannot directly
8035 access the Gnumeric sheets because XL has hidden elements that skew
8037 (ms_excel_workbook_get_externsheet_v7) : ditto.
8038 (ms_excel_externsheet_v7) : store the sheet directly.
8040 * ms-excel-write.c (write_magic_interface) : biff8 stores the code
8041 page in the interface header for some reason.
8042 (ms_excel_write_EOF) : rename from biff_write_eof.
8043 (excel_write_SETUP) : new.
8044 (write_wsbool) : remove duplicate code.
8045 (excel_write_COUNTRY) : new.
8046 (write_sheet_head) : tidy.
8047 (excel_write_sheet_tail) : SCL is not version specific.
8048 (sst_collect_str) : new.
8049 (ms_excel_write_SST) : prepare to write an SST (not finished)
8051 2002-08-07 Jody Goldberg <jody@gnome.org>
8053 * ms-excel-write.c (init_base_char_width_for_write) : delete.
8054 (style_get_char_width) : renamed from get_base_char_width as it is now
8055 just a wrapper around the
8056 (ms_excel_write_DEFCOLWIDTH) : renamed from write_default_col_width
8057 and use the right font in the width calculations.
8058 (ms_excel_write_COLINFO) : renamed from write_colinfo and use the
8059 right font in the width calculations.
8061 2002-08-06 Morten Welinder <terra@diku.dk>
8063 * *.c: use gsf_le_get_double and gsf_le_set_double.
8065 2002-08-05 Jody Goldberg <jody@gnome.org>
8067 * ms-biff.c (ms_biff_put_var_write) : const.
8069 * ms-excel-write.c (write_magic_interface) : Use the symbolic names.
8070 (biff_put_text) : no need to write 8byte text 1 byte at a time.
8072 2002-08-06 Morten Welinder <terra@diku.dk>
8074 * md5.h (UINT4): Portability fix.
8078 * biff-types.h: Guard.
8079 * escher-types.h: Guard.
8080 * formula-types.h: Guard.
8082 2002-08-04 Jody Goldberg <jody@gnome.org>
8084 * ms-formula-read.c (ms_excel_parse_formula) : remove bogisity about
8087 2002-07-22 Zbigniew Chyla <cyba@gnome.pl>
8089 * plugin.xml.in: Set loader type to "Gnumeric_Builtin:module".
8091 2002-08-01 Jody Goldberg <jody@gnome.org>
8093 * ms-excel-write.c (biff_put_text) : set the unicode flag on the
8094 string header for unicode strings. This routine needs to be cleaned
8095 up to handle UTF-8 -> UTF-16 if necessary.
8096 (biff_boundsheet_write_first) : tidy and make the name len 1 byte.
8097 (gather_palette) : convert to new two way table convention.
8098 (gather_fonts) : ditto.
8099 (gather_formats) : ditto.
8101 (after_put_mstyle) : ditto.
8102 (put_mstyle) : simplify.
8104 (cell_used_map_new) : delete.
8105 (cell_mark_used ) : delete.
8106 (cell_is_used) : delete.
8107 (excel_cell_get) : delete.
8108 (pre_cell) : delete.
8109 (pre_blank) : delete.
8110 (pre_blanks) : delete.
8111 (pre_colstyle) : delete.
8112 (gather_styles) : greatly simplify by using the knowledge that there
8113 is a per sheet hash of the styles in use.
8114 (cb_accum_styles) : new.
8115 (write_cell) : Use the gnumeric data structures directly.
8116 (write_block) : ditto.
8117 (ms_excel_write_wsbool) : new.
8118 (write_sheet_head) : use ms_excel_write_wsbool.
8119 (excel_sheet_new) : no more need for large cell map.
8120 (excel_sheet_free) : ditto.
8122 * ms-excel-util.c (two_way_table_new) : Allow for ptr tp ptr
8123 comparisons as an optimization.
8124 (two_way_table_free) : ditto.
8125 (two_way_table_put) : ditto.
8126 (two_way_table_replace) : ditto.
8127 (two_way_table_key_to_idx) : ditto.
8129 * boot.c (excel_save) : bah! I forgot to commit this. export is
8132 2002-07-21 Jody Goldberg <jody@gnome.org>
8136 2002-07-19 Jody Goldberg <jody@gnome.org>
8138 * ms-excel-read.c (ms_excel_read_hlink) : improve bounds checking.
8140 2002-07-19 Jody Goldberg <jody@gnome.org>
8142 * plugins/excel/ms-excel-read.c (ms_excel_read_hlink) : tidy up and
8143 support custom tool tips.
8145 2002-07-18 Jody Goldberg <jody@gnome.org>
8147 * ms-excel-read.c (ms_excel_read_imdata) : only read the amount of
8148 data in the imrecord. not all continues add infinitum. Fixes
8151 * ms-obj.c (ms_read_TXO) : don't expect continue records if there is
8152 no text. Fixes guia2.xls.
8154 2002-07-16 Jody Goldberg <jody@gnome.org>
8156 * ms-excel-read.c (ms_excel_read_sheet) : reorder 0x1xx entries to be
8157 in increasing order and support hlinks.
8158 (ms_excel_read_hlink) : new.
8160 2002-07-14 Jody Goldberg <jody@gnome.org>
8162 * ms-obj.c (ms_obj_read_pre_biff8_obj) : move the
8163 initialization of the prop bag from here.
8164 (ms_read_OBJ) : to here. Fixes the guia2 hash warnings.
8166 2002-07-09 Morten Welinder <terra@diku.dk>
8168 * boot.c (excel_file_open): Don't leak the stream.
8170 2002-06-27 Jody Goldberg <jody@gnome.org>
8172 * ms-excel-read.c (ms_excel_read_selection) : put the edit_pos in the
8175 * ms-excel-write.c (write_sheet_tail) : Use stern_brocot to get a
8176 reasonable fraction.
8177 (write_sheet_selection) : split the writing of the selection out into
8178 here and implement it.
8180 2002-06-22 Jody Goldberg <jody@gnome.org>
8182 * ms-formula-write.c (operations) : export intersection.
8184 * ms-formula-read.c (ms_excel_parse_formula) : enable mem_func
8186 (binary_ops) : use range_ctor for RANGE.
8188 2002-06-20 Jody Goldberg <jody@gnome.org>
8190 * ms-excel-read.c (ms_excel_workbook_new) : store the workbookview.
8191 (ms_excel_read_selection) : selection is now in the view.
8193 2002-06-06 Jody Goldberg <jody@gnome.org>
8195 * ms-excel-read.c (ms_excel_read_workbook) : convert to gsf.
8196 No need to handle the ole here. Just take a GsfInput. That way we
8197 can try to parse non ole files too :-)
8199 * ms-biff.c (ms_biff_query_set_decrypt) : convert to Gsf.
8200 (ms_biff_query_new) : ditto.
8201 (ms_biff_query_peek_next) : ditto.
8202 (ms_biff_query_next) : ditto.
8204 * boot.c (excel_file_probe) : convert to GsfInput.
8205 (excel_file_open) : ditto.
8207 * biff-types.h : add a few under-documented opcodes.
8209 2002-05-28 Jody Goldberg <jody@gnome.org>
8211 * ms-biff.c (ms_biff_query_peek_next) : we only need the opcode, not
8214 2002-05-14 Jody Goldberg <jody@gnome.org>
8216 http://bugzilla.gnome.org/show_bug.cgi?id=81766
8217 * ms-excel-read.c (ms_excel_read_formula) : work around undocumented
8218 'feature' that will store a 0 length RECORD for empty strings.
8220 2002-05-29 Jody Goldberg <jody@gnome.org>
8224 2002-05-15 Jody Goldberg <jody@gnome.org>
8226 * ms-biff.c (verify_password) : support unicode passwords.
8228 2002-05-15 Andreas J. Guelzow <aguelzow@taliesin.ca>
8230 * ms-excel-read.c (ms_excel_init_margins) : margins are now in
8232 (ms_excel_read_setup) : ditto
8233 (ms_excel_read_sheet) : ditto
8234 * ms-excel-write.c (margin_write) : ditto
8235 (write_sheet_head) : use modified margin_write
8237 2002-05-05 Jody Goldberg <jody@gnome.org>
8239 * ms-obj.c (ms_obj_read_biff8_obj) : tack on a flag to handle the
8240 magic associated with combos for filters.
8241 * ms-excel-read.c (ms_sheet_create_obj) : respect the new flag.
8243 2002-04-29 Jody Goldberg <jody@gnome.org>
8247 2002-04-21 Jody Goldberg <jody@gnome.org>
8249 * ms-excel-read.c (ms_excel_externsheet_v8) : handle references to
8252 * ms-escher.c (ms_escher_read_Blip) : remove some debug cruft.
8254 2002-04-15 Jon K Hellan <hellan@acm.org>
8256 * boot.c: s/main.h/libgnumeric.h/
8258 * ms-excel-write.c: Ditto.
8260 2002-04-13 Jody Goldberg <jody@gnome.org>
8262 * ms-excel-read.c (ms_excel_read_AUTOFILTER) : start work on filters.
8263 (ms_excel_read_sheet) : support the filter records.
8265 2002-04-13 Jon K Hellan <hellan@acm.org>
8267 * ms-chart.c: s/ENABLE_BONOBO/WITH_BONOBO/
8269 * ms-excel-read.c: Ditto
8271 2002-03-27 Jody Goldberg <jody@gnome.org>
8273 * ms-biff.c (ms_biff_query_set_decrypt) : protect against NULL
8276 2002-03-25 Jody Goldberg <jody@gnome.org>
8280 2002-03-26 Jody Goldberg <jody@gnome.org>
8282 * ms-biff.c (wvMD5StoreDigest) : new from libwv-7.1
8284 (verify_password) : tweaked from libwv.
8286 (ms_biff_query_set_decrypt) : new.
8287 (ms_biff_query_new) : support encryption.
8288 (ms_biff_query_next) : ditto.
8289 (ms_biff_query_destroy) : ditto.
8291 * ms-excel-read.c (ms_biff_bof_data_new) : Use the un-decoded data.
8292 (ms_excel_read_sheet) : comment that it seems like bytes 12 & 16 are
8294 (biff_boundsheet_data_new) : stream start pos seems un encrypted.
8296 2002-03-22 Jon K Hellan <hellan@acm.org>
8298 * ms-excel-read.c (ms_excel_get_style_from_xf): Be prepared for
8299 color 65 as pattern color.
8301 2002-03-20 Jody Goldberg <jody@gnome.org>
8303 * ms-excel-read.c (ms_excel_read_sheet) : 15 is the
8304 default fmt for cells. 0 is the default style fmt that is its
8306 (ms_excel_set_xf) : not strictly correct. We should apply if the col,
8308 (ms_excel_set_xf_segment) : no need to apply if it is the default.
8310 2002-03-18 Morten Welinder <terra@diku.dk>
8312 * ms-excel-read.h (_ExcelWorkbook): Add sharer.
8314 * ms-excel-read.c (ms_excel_workbook_new): Initialize sharer.
8315 (ms_excel_workbook_destroy): Destroy sharer.
8317 * ms-formula-read.c (ms_excel_parse_formula): Share resulting
8320 2002-03-16 Jody Goldberg <jody@gnome.org>
8322 * ms-excel-read.c (ms_excel_workbook_destroy) : we can have NULL
8323 names as place holders.
8325 2002-03-15 Jody Goldberg <jody@gnome.org>
8327 * ms-excel-read.c (ms_excel_sheet_destroy) : make deleting the
8328 gnum_sheet optional.
8330 * ms-excel-read.c (ms_excel_parse_NAME) : add a ref.
8331 (ms_excel_workbook_destroy) : don't leak the sheets, or the names.
8333 2002-03-15 Andreas J. Guelzow <aguelzow@taiesin.ca>
8335 * ms-excel-read.c : calculate desired tab_text_color upon reading of
8338 2002-03-14 Jody Goldberg <jody@gnome.org>
8340 * ms-obj.c (ms_obj_read_pre_biff8_obj) : doh! Fix sense of result so
8343 2002-03-11 Jody Goldberg <jody@gnome.org>
8345 * ms-excel-read.c (ms_excel_externname) : Store the name for use as a
8348 2002-03-10 Jody Goldberg <jody@gnome.org>
8352 2002-03-08 Jody Goldberg <jody@gnome.org>
8354 * ms-excel-read.c (ms_excel_workbook_new) : store an iocontext.
8355 init the delayed name list for xl95.
8356 (ms_excel_parse_NAME) : split out of.
8357 (ms_excel_read_NAME) : here.
8358 (ms_excel_handle_delayed_NAMEs) : new.
8359 (ms_excel_externsheet_v8) : be quiet.
8360 (ms_excel_read_workbook) : check for delayed names on EOF.
8362 2002-03-07 Jody Goldberg <jody@gnome.org>
8364 * ms-excel-read.c (ms_excel_externsheet_v8) : don't warn for local
8366 (ms_excel_read_NAME) : typo.
8368 2002-03-07 Jody Goldberg <jody@gnome.org>
8370 * ms-excel-read.c : revamp extensheet handling and name import.
8371 Still does not work for XL95, but things should be ok for >= 97.
8372 Getting closer to supporting external references.
8374 2002-03-02 Jody Goldberg <jody@gnome.org>
8376 * ms-excel-write.c (write_externsheets) : Use unquoted. This code
8379 2002-03-02 Jody Goldberg <jody@gnome.org>
8381 * ms-excel-read.c (ms_excel_read_formula) : avoid leaking when faced
8383 (ms_excel_read_formula) : ditto.
8385 2002-02-28 Jody Goldberg <jody@gnome.org>
8387 * ms-formula-write.c (write_area) : write explicitly scoped addreses
8388 as area3d not area. Use tx = 0xffff and warn that we only support
8391 * ms-excel-write.c (write_bits) : better attribution and dump names.
8392 (write_workbook) : let write_bits handle the names.
8394 2002-02-26 Jody Goldberg <jody@gnome.org>
8396 * ms-escher.c (ms_escher_get_data) : clarify the interface.
8397 (ms_escher_read_BSE) : fix call to ms_escher_get_data.
8398 (ms_escher_read_Sp) : ditto.
8399 (ms_escher_read_ClientAnchor) : ditto.
8400 (ms_escher_read_OPT) : ditto.
8401 (ms_escher_read_container) : ditto.
8402 (ms_escher_read_Blip) : support decompress and validate emf & wmf.
8404 * ms-excel-util.c (excel_iconv_open_for_import) : recognize that
8405 cp1200 makes no sense in that context and fall back to 8859-1.
8407 2002-02-24 Jody Goldberg <jody@gnome.org>
8409 http://bugzilla.gnome.org/show_bug.cgi?id=72459
8410 * ms-formula-write.c (write_node) : fix typo.
8412 2002-02-26 Morten Welinder <terra@diku.dk>
8414 * ms-excel-read.c (biff_get_rk): Improve precision ever so
8415 slightly on numbers that are scaled by 0.01.
8417 2002-02-25 Jon K Hellan <hellan@acm.org>
8419 * ms-excel-read.c (ms_sheet_create_image): New function. Factor
8420 image creation out of ms_sheet_create_obj and also handle cropping.
8421 (ms_sheet_create_obj): Call ms_sheet_create_image.
8423 2002-02-23 Jon K Hellan <hellan@acm.org>
8425 * plugin.xml.in: Recognize *.xlt extension.
8427 2002-02-21 Morten Welinder <terra@diku.dk>
8429 * ms-excel-write.c (init_base_char_width_for_write): Constify.
8430 (ms_excel_write_workbook): Constify.
8432 * ms-excel-read.c (get_substitute_font): Constify.
8433 (ms_excel_get_style_from_xf): Constify.
8434 (biff_boundsheet_data_new): Constify.
8436 * ms-summary.c (read_summary_items): Constify.
8438 * ms-excel-util.c (get_locale_charset_name): Constify. Remove
8439 code conditioned on HAVE_ICONV && !HAVE_ICONV.
8441 * ms-escher.c (ms_escher_read_BSE): Constify.
8443 2002-02-20 Morten Welinder <terra@diku.dk>
8445 * ms-excel-write.c (write_value): Fix format.
8447 * ms-excel-read.c (ms_excel_read_name): Constify.
8449 * ms-formula-read.c (formula_func_data): Constify.
8451 * ms-excel-util.c (two_way_table_put): Constify.
8453 2002-02-19 Jon K Hellan <hellan@acm.org>
8455 * ms-excel-read.c (ms_excel_palette_get): Update documentation.
8456 (ms_excel_get_style_from_xf): Remove case 0.
8457 (biff_xf_data_new): Save difference bits. We don't use them yet,
8458 though. Documentation is wrong, background color is one bit more
8461 * ms-excel-write.h (struct _ExcelFont): Add is_auto member.
8462 (PALETTE_BLACK): Change from 0 to 8.
8463 (PALETTE_WHITE): Change from 1 to 9.
8464 (PALETTE_AUTO_PATTERN, PALETTE_AUTO_BACK, PALETTE_AUTO_FONT,
8465 FILL_NONE, FILL_SOLID): Define
8467 * ms-excel-write.c (write_window2): Write grid / auto pattern
8469 (style_color_to_int): Rename to style_color_to_rgb888.
8470 (palette_put_defaults): Call index 8 'PALETTE_BLACK'. Mark both
8471 black and white as in use.
8472 (palette_get_index): Return 8 (PALETTE_BLACK) for black, and 9
8473 (PALETTE_WHITE) for white.
8474 (put_color): Call style_color_to_rgb888 with new name.
8475 (excel_font_new): Call style_color_to_rgb888 with new name. Save
8477 (excel_font_hash): Include is_auto in hash func, and shift flags
8478 so they don't just cancel each other.
8479 (excel_font_equal): Include is_auto in comparison.
8480 (write_font): Store as auto color when appropriate.
8481 (fixup_fill_colors): Simplify and merge into build_xf_data.
8482 (style_color_to_pal_index): New function. Return Excel color
8483 index, possibly auto, for a style color.
8484 (get_xf_differences): We have discovered that background color is
8485 stored with 1 bit more than documented. Use this to improve test
8486 for pattern difference between XF and parent style. Locking: XL
8487 default is on, so we're different if locking is off.
8488 (build_xf_data): Store as auto color where appropriate. Use
8489 style_color_to_pal_index.
8490 (write_xf_record): Documentation is wrong - there is no fSxButton
8491 bit. The bg color uses the bit, making bg field 7 bits wide. Don't
8492 store data for borders which aren't there.
8494 2002-02-18 Jody Goldberg <jody@gnome.org>
8498 2002-02-15 Jody Goldberg <jody@gnome.org>
8500 * ms-escher.c (write_file) : delete.
8501 (ms_escher_read_BSE) : remove the bonobo-ness from here it is none of
8502 excel's business. Just use the new SheetObjectImage. While we're
8503 at it avoid a few memory copies of the image.
8504 * ms-excel-read.c (ms_sheet_create_obj) : ditto.
8506 * ms-container.c (ms_container_get_blip) : return non-const.
8508 2002-02-08 Jon K Hellan <hellan@acm.org>
8510 * ms-excel-read.c (ms_excel_read_window2): No need to unref
8511 pattern_color, sheet_style_set_auto_pattern_color now does that.
8513 2002-02-05 Jon K Hellan <hellan@acm.org>
8515 * ms-excel-read.c (black_or_white_contrast): Burn.
8516 (ms_excel_palette_get): Simplify to get autocolors right. We used
8518 (ms_sheet_map_color): Use style_color_new_i8 to convert from
8520 (ms_excel_read_window2): Update pattern color according to
8521 icvHdr/rgbHdr grid color if fDefaultHdr flag says so.
8523 2002-02-03 Jody Goldberg <jody@gnome.org>
8525 * ms-excel-write.c (pre_cell) : adjust to Cell::format moving into the
8528 2002-01-31 Jody Goldberg <jody@gnome.org>
8530 * ms-excel-util.c (init_xl_font_widths) : add Helv.
8532 * ms-excel-read.c (ms_sheet_create_obj) : GObject vs GtkObject
8533 * ms-obj.c (ms_obj_delete) : ditto.
8534 * ms-chart.c (ms_excel_read_chart) : ditto.
8536 2002-01-30 Jody Goldberg <jody@gnome.org>
8538 * ms-formula-read.c (ms_excel_parse_formula) : give a warning when
8539 dealing with references to external workbooks.
8541 2002-01-29 Jody Goldberg <jody@gnome.org>
8543 * ms-excel-read.c (ms_sheet_create_obj) : move to new sheet widget
8546 2002-01-23 Jody Goldberg <jody@gnome.org>
8548 * ms-summary.c (EXCEL_TO_GNUM_MAPPING_COUNT) : use G_N_ELEMENTS.
8549 (excel_to_gnumeric) : delete unused.
8550 (read_summary_items) : suppress warnings.
8551 (read_summary_items) : fix leak.
8553 * ms-excel-write.c : s/StyleFont::size/StyleFont::size_pts/
8555 * ms-excel-util.c (g_unichar_to_utf8) : delete.
8557 2002-01-21 Jody Goldberg <jody@gnome.org>
8561 2002-01-21 Jody Goldberg <jody@gnome.org>
8563 * ms-obj.c (ms_object_attr_get_*) : new.
8564 (ms_obj_read_biff8_obj) : read scrollbar attributes.
8566 * ms-excel-read.c (ms_sheet_realize_obj) : Add scrollbars.
8567 (ms_sheet_create_obj) : ditto.
8569 2002-01-20 jody goldberg <jody@gnome.org>
8571 * ms-chart.c (BC_R(vector_details)) : use gnm_vector_date.
8573 2002-01-17 Jody Goldberg <jody@gnome.org>
8575 * ms-obj.c (ms_object_attr_new_expr) : new.
8576 (ms_object_attr_destroy) : handle expressions.
8577 (ms_obj_read_biff8_obj) : use the expression parser for
8578 GR_CHECKBOX_FORMULA.
8580 * ms-formula-read.c (getRefV7) : remove the pointless malloc/free.
8582 (make_inter_sheet_ref) : delete.
8583 (make_inter_sheet_ref_v7) : ditto.
8585 * ms-excel-read.c (ms_sheet_realize_obj) : add support for a
8586 checkbox's link. Needs to be done here, AFTER being assigned to a
8588 (ms_excel_workboot_get_externsheets) : renamed from
8589 biff_get_externsheet_name, and simplified.
8591 2002-01-14 Jody Goldberg <jody@gnome.org>
8593 * ms-formula-read.c (ms_excel_parse_formula) : fix support for
8594 importing local 3d references, external 3d is still not supported.
8596 2002-01-15 Jody Goldberg <jody@gnome.org>
8600 2002-01-13 Jody Goldberg <jody@gnome.org>
8602 * ms-excel-read.c (ms_excel_read_tab_color) : turn down the debug
8605 2002-01-12 Jody Goldberg <jody@gnome.org>
8607 * ms-excel-read.c (ms_excel_read_dv) : reorg slightly and enable.
8608 * ms-excel-read.c (ms_excel_read_tab_color) : new function.
8609 (ms_excel_read_sheet) : called from here.
8611 2002-01-11 Jody Goldberg <jody@gnome.org>
8613 * ms-formula-read.c (ms_excel_parse_formula) : fix area 3d and its
8616 2002-01-06 Jody Goldberg <jody@gnome.org>
8620 2002-01-04 Jody Goldberg <jody@gnome.org>
8622 * ms-chart.c (excel_chart_series_write_xml) : more protection for
8625 2002-01-03 J.H.M. Dassen (Ray) <jdassen@debian.org>
8627 * ms-escher.c (ms_escher_blip_new) : cast to fix signedness warning.
8628 * ms-excel-read.c (biff_get_text) : likewise
8629 * ms-excel-read.c (get_string) : likewise
8630 * ms-excel-write.c (write_bits) : char -> guint8.
8631 * ms-excel-write.c (write_value) : ditto
8632 * ms-chart.c (excel_chart_series_write_xml) : cast / type change
8633 * ms-chart.c (BC_R) : ditto
8634 * ms-chart.c (BC_R(*)) : ditto
8635 * ms-chart.c (ms_excel_chart) : ditto
8637 2001-12-31 Jody Goldberg <jody@gnome.org>
8641 2001-12-30 Zbigniew Chyla <cyba@gnome.pl>
8643 * plugin.xml.in: Fixed typo.
8645 Please, DO NOT change strings few hours before the release!
8647 2001-12-29 Andreas J. Guelzow <aguelzow@taliesin.ca>
8649 * plugin.xml.in : Standardize: MS Excel (tm)
8651 2001-12-27 Jody Goldberg <jody@gnome.org>
8653 * ms-formula-read.c (ms_excel_parse_formula) : enable support for
8654 deleted 3d references.
8656 2001-12-24 Jody Goldberg <jody@gnome.org>
8660 2001-12-20 Jody Goldberg <jody@gnome.org>
8662 * ms-formula-read.c (ms_excel_parse_formula) : add support for
8663 FORMULA_PTG_REF_ERR.
8664 FORMULA_PTG_AREA_ERR.
8666 * ms-obj.c (ms_read_OBJ) : add protection against missing virtuals.
8667 If the object is a graph read it even if we do not support them in
8668 this context (embedded in another object) or if we do not support
8669 graphs at all. This enables us to read embedded graphs without
8670 throwing off the rest of the parsing.
8672 2001-12-15 Jody Goldberg <jody@gnome.org>
8676 2001-12-10 Jody Goldberg <jody@gnome.org>
8678 * ms-summary.c (read_summary_items) : use iconv.
8679 (ms_summary_read) : ditto.
8680 (set_summary_item) : ditto.
8681 (ms_summary_write) : ditto.
8683 2001-12-05 Jody Goldberg <jody@gnome.org>
8685 * ms-excel-write.c (write_formula) : handle array formulas.
8686 * ms-formula-write.c (write_node) : ditto.
8687 (ms_excel_write_formula) : remove pointless malloc & free.
8689 2001-11-25 Jody Goldberg <jody@gnome.org>
8691 * ms-formula-read.c : s/ParseList/ExprList/
8692 * ms-formula-write.c : ditto.
8694 2001-11-20 Jody Goldberg <jgoldberg@home.com>
8696 * ms-excel-read.c (biff_boundsheet_data_new) : Doh!
8698 2001-11-19 Jody Goldberg <jgoldberg@home.com>
8702 2001-11-16 Jody Goldberg <jgoldberg@home.com>
8704 * ms-excel-read.c (ms_excel_read_dv) : read things in. Not stored yet.
8705 (ms_excel_read_range) : new convenience routine.
8706 (ms_excel_read_mergecells) : used here.
8707 (ms_excel_biff_dimensions) : used here.
8708 (ms_excel_read_dv) : used here.
8709 (ms_excel_read_condfmt) : used here, fix import of multiple areas.
8711 2001-11-09 Jody Goldberg <jgoldberg@home.com>
8713 * ms-excel-read.c (ms_excel_read_guts) : adjust to different outline
8714 scoping semantics. We count from 0. XL counts from 1.
8716 * boot.c (excel_file_open) : better error message when opening a
8719 2001-11-05 Jody Goldberg <jgoldberg@home.com>
8721 * plugin.xml.in : enable overwriting files by default.
8723 2001-11-05 Jody Goldberg <jgoldberg@home,com>
8727 2001-11-04 Jody Goldberg <jgoldberg@home.com>
8729 * ms-excel-read.c (ms_excel_read_cf) : Handle 'Formula' constraints in
8730 addition to 'Value'.
8731 (ms_excel_read_condfmt) : new routine.
8732 (ms_excel_read_dval) : fix sense of size check.
8733 (ms_excel_read_sheet) : cf records should only be associated
8736 2001-10-30 Jody Goldberg <jgoldberg@home.com>
8738 * ms-excel-write.c : Use d() debug macors to make things
8739 more readable. And use esheet in place of sheet to avoid
8740 confusion with gnumeric core.
8741 (write_colinfo) : make xf_index an argument.
8742 (pre_colstyle) : new routine to gather the most common style in each col
8743 (gather_styles) : called from here.
8744 (write_mulblank) : take an array rather than a GList.
8745 (write_block) : only write a blank cell if it is different from the
8748 2001-10-30 Morten Welinder <terra@diku.dk>
8750 * ms-chart.c (BC_R-ai): Plug leak.
8753 2001-10-27 Jody Goldberg <jgoldberg@home.com>
8755 * ms-excel-read.c (ms_excel_read_dval) : new function.
8756 (ms_excel_read_dv) : new function.
8757 (ms_excel_read_sheet) : call them here and remove warning.
8759 2001-10-29 Jody Goldberg <jgoldberg@home.com>
8763 2001-10-29 Jody Goldberg <jgoldberg@home.com>
8765 * ms-excel-read.c (ms_excel_get_xf) : Use a better default in the face
8768 * ms-chart.c (chart_get_fmt) : new function to chain to parent.
8769 (ms_excel_chart) : use it here.
8771 2001-10-29 Jody Goldberg <jgoldberg@home.com>
8775 2001-10-29 Jody Goldberg <jgoldberg@home.com>
8777 * ms-excel-read.c (biff_name_data_get_name) : adjust to signature
8778 change in expr_tree_new_name. FIXME : how does XL mark names from
8781 2001-10-23 Jody Goldberg <jgoldberg@home.com>
8783 * ms-excel-write.c (write_rowinfo) : remove duplicate code.
8785 * ms-excel-read.c (biff_name_data_get_name) : adjust to new named
8788 2001-10-22 Almer S. Tigelaar <almer@gnome.org>
8790 * ms-excel-read.c (ms_excel_read_cf): Adjust for
8791 changes to style-condition.[ch]
8793 2001-10-18 Jody Goldberg <jgoldberg@home.com>
8797 2001-10-18 Jody Goldberg <jgoldberg@home.com>
8799 * ms-chart.c (BC_R(bar)) : typo.
8801 2001-10-18 Jody Goldberg <jgoldberg@home.com>
8803 * ms-chart.c (BC_R(dropbar)) : The docs lie. it is ok to have
8806 * ms-chart.c (BC_R(store_chartgroup_type)) : store the type as a
8807 property rather than a child.
8808 (BC_R(bar)) : store the attributes as children rather than props.
8809 (BC_R(line)) : ditto.
8810 (BC_R(pie)) : ditto.
8811 (BC_R(pieformat)) : ditto.
8812 (BC_R(scatter)) : ditto.
8814 2001-10-15 Jody Goldberg <jgoldberg@home.com>
8816 * ms-excel-write.c (excel_sheet_new) : merge check_sheet into here.
8817 rename according to our standards. Only complain about being too
8818 large if the content is too large, silently clip the formats.
8820 2001-10-12 Jody Goldberg <jgoldberg@home.com>
8822 * ms-chart.c (BC_R(legend)) : Use more guppi-ish terms for legend
8825 2001-10-07 Jody Goldberg <jgoldberg@home.com>
8829 2001-10-03 Jody Goldberg <jgoldberg@home.com>
8831 * ms-chart.c (excel_chart_series_write_xml) : fix this for non bonobo
8834 2001-09-30 Jody Goldberg <jgoldberg@home.com>
8836 * ms-chart.c (excel_chart_series_write_xml) : Use
8837 gnm_graph_series_add_dimension.
8838 (BC_R(seriestext)) : store constant labels as expresions.
8840 2001-09-28 Jody Goldberg <jgoldberg@home.com>
8842 * ms-chart.c (excel_chart_series_write_xml) : adjust to new xml
8845 2001-09-27 Jody Goldberg <jgoldberg@home.com>
8847 * ms-obj.c (ms_object_attr_bag_lookup) : accept NULL attrBags.
8849 * ms-escher.c (ms_escher_read_OPT) : oops lost the blip id.
8851 2001-09-27 Jody Goldberg <jgoldberg@home.com>
8853 * ms-excel-read.c (ms_excel_wb_get_fmt) : renamed something
8854 better than biff_format_data_lookup.
8856 * ms-chart.c (BC_R(ai)) : Use ms_container_get_fmt.
8857 (BC_R(ifmt)) : ditto.
8859 * ms-container.c (ms_container_get_fmt) : new function.
8861 2001-09-27 Jody Goldberg <jgoldberg@home.com>
8863 * ms-excel-read.c (ms_sheet_map_color) : new utility.
8864 (ms_sheet_create_obj) : set the fill colour.
8866 * ms-escher.c (ms_escher_read_OPT) : generalize to make things more
8869 * ms-obj.c (ms_object_attr_new_uint) : store a uint to facilitate
8872 2001-09-26 Jody Goldberg <jgoldberg@home.com>
8874 * ms-escher.c (ms_escher_parse) : call ms_escher_header_release.
8875 (ms_escher_read_container) : ditto.
8876 (ms_escher_header_release) : new to handle attrs.
8877 (ms_escher_header_add_attr) : ditto.
8878 (ms_escher_read_ClientData) : pass the attributes to the object
8879 and move the blip handing to the container.
8881 * ms-obj.c (ms_object_attr_new_flag) : new.
8882 (ms_object_attr_new_int) : new.
8883 (ms_object_attr_new_ptr) : new.
8884 (ms_object_attr_destroy) : new.
8885 (ms_object_attr_bag_new) : ditto.
8886 (ms_object_attr_bag_destroy) : ditto.
8887 (ms_object_attr_bag_insert) : ditto.
8888 (ms_object_attr_bag_lookup) : ditto.
8890 * ms-excel-read.c (ms_excel_read_workbook) : interface change to
8892 (ms_excel_read_sheet) : ditto.
8893 (ms_sheet_create_obj) : move the blip handing from escher to here.
8895 2001-09-26 Jody Goldberg <jgoldberg@home.com>
8897 * ms-obj.c (ms_read_OBJ) : Init the inversion flags.
8899 * ms-escher.c (ms_escher_read_Sp) : store the inversion flags.
8900 (ms_escher_read_ClientData) : copy the inversion flags.
8901 (ms_escher_init_heade) : init the inversion flags.
8903 2001-09-26 Jody Goldberg <jgoldberg@home.com>
8905 * ms-excel-xf.h (_BiffXFData) : locked and hidden are booleans.
8906 * ms-excel-read.c (biff_xf_data_new) : read them that way.
8907 (ms_excel_get_style_from_xf) : store the protection flags.
8908 * ms-excel-write.c (build_xf_data) : ditto. Add indent.
8910 * ms-chart.c (BC_R(seriestext)) : handle manually entered series names.
8912 2001-09-25 Jon K Hellan <hellan@acm.org>
8914 * .cvsignore: Add plugin.xml
8916 2001-09-17 Jody Goldberg <jgoldberg@home.com>
8918 * ms-obj.c (ms_read_OBJ) : init the new object more completely.
8920 2001-09-16 Jody Goldberg <jgoldberg@home.com>
8922 * ms-chart.c : clean up debug routines.
8923 (BC_R(dataformat)) : Use an extra node to handle pt vs series
8925 (BC_R(end)) : cleanup dataformats.
8926 (excel_chart_series_write_xml) : just link in the new child rather
8927 than creating it here.
8928 (BC_R(dataformat)) : handle formating pts vs entire series.
8929 (BC_R(markerformat)) : implement
8930 (BC_R(areaformat)) : implement
8931 (BC_R(lineformat)) : implement
8932 (BC_R(pieformat)) : implement
8933 (BC_R(color)) : tweak interface.
8934 (ms_excel_chart) : ignore a few more records.
8936 2001-09-14 Jody Goldberg <jgoldberg@home.com>
8938 * ms-chart.c (excel_chart_series_write_xml) : Use the gal routines for
8939 symetry with the guppi implementation.
8941 2001-09-09 Jody Goldberg <jgoldberg@home.com>
8943 * ms-chart.c (BC_R(pieformat)) : store pie separation.
8944 (BC_R(get_chartgroup_type)) : new function.
8946 2001-09-08 Jody Goldberg <jgoldberg@home.com>
8948 * ms-chart.c (legend) : xml-ize and fix transposition of right & left.
8949 (pie) : Guppi uses radians and has 0 in a different place.
8951 2001-09-04 Jody Goldberg <jgoldberg@home.com>
8953 * ms-obj.c (ms_read_OBJ) : Use ms_destroy_OBJ.
8955 * ms-chart.c (ms_excel_chart) : don't import the spec if we did not
8958 2001-09-03 Jody Goldberg <jgoldberg@home.com>
8960 * ms-excel-read.c (ms_excel_read_cf) : Do some guessing about how they
8961 store the format information.
8962 (ms_excel_read_sheet) : merge in ms_excel_read_cell, and reorder the
8963 records to match their biff order. call ms_excel_read_cf.
8965 2001-09-02 Jody Goldberg <jgoldberg@home.com>
8967 * biff-types.h : Add CONDFMT
8969 2001-08-29 Jody Goldberg <jgoldberg@home.com>
8971 * ms-chart.c (excel_chart_series_new) : init the xml node.
8972 (excel_chart_series_write_xml) : new.
8973 (BC_R(store_chartgroup_type)) : new utility.
8974 (BC_R(bar)) : convert to xml.
8975 (BC_R(line)): convert to xml.
8976 (BC_R(pie)) : convert to xml.
8977 (BC_R(scatter)) : convert to xml.
8978 (BC_R(chartformat)) : store the general chart group details.
8979 (BC_R(end)) : store the series specs associated with this chartgroup.
8980 (ms_excel_chart) : tweaks for xml.
8982 2001-08-28 Jody Goldberg <jgoldberg@home.com>
8984 * ms-obj.c (ms_read_OBJ) : pass graphs into their parser.
8986 * ms-excel-read.c (ms_sheet_realize_obj) : renamed from
8987 ms_sheet_obj_realize.
8988 (ms_sheet_create_obj) : renamed from ms_sheet_obj_create.
8989 Improve the warnings for unhandled objects.
8990 Pass graphs into the parser.
8992 * ms-container.c (ms_container_workbook) : delete.
8994 * ms-chart.c (ms_excel_chart) : enable some of the xml spec generation.
8995 and take the GnmGraph as an argument.
8996 (ms_excel_read_chart) : take the graph as an argument.
8998 2001-08-27 Jody Goldberg <jgoldberg@home.com>
9000 * ms-excel-read.c (ms_sheet_parse_expr_internal) : disable some of the
9003 2001-08-26 Zbigniew Chyla <cyba@gnome.pl>
9005 * boot.c (excel_save):
9006 Remove GNUMERIC_ENABLE_XL_OVERWRITE hack. This is now supported via
9007 flag in plugin.xml file.
9009 * plugin.xml.in: s/file_overwrite/overwrite_files/
9011 2001-08-24 Jody Goldberg <jgoldberg@home.com>
9013 * ms-excel-read.c : fix and prune includes.
9014 * ms-excel-write.c : ditto.
9017 2001-08-23 Jody Goldberg <jgoldberg@home.com>
9019 * ms-chart.c (ms_excel_chart) : only delete the series after
9020 processing. condtionalize some of the debug spew.
9021 condtionalize parsing based on the existence of a graph
9022 condtionalize making the graph on the debug flag (for now)
9023 (BC_R(sertocrt)) : store the chart group.
9024 (BC_R(series_impl)) : merge back into BC_R(series).
9025 (BC_R(vector_details)) : use the gnumeric type directly.
9026 (excel_chart_series_new) : new.
9027 (excel_chart_series_destroy) : new.
9029 * ms-container.c (ms_container_workbook) : new function.
9030 (ms_container_sheet) : ditto.
9032 * ms-excel-read.c (ms_wb_workbook) : new function.
9033 (ms_excel_workbook_new) : used here.
9034 (ms_sheet_workbook) : new function.
9035 (ms_sheet_sheet) : new function.
9036 (ms_excel_sheet_new) : used here.
9038 2001-08-21 Jody Goldberg <jgoldberg@home.com>
9040 * ms-chart.c (gnm_graph_vector_type_name) : use the version in gnumeric-graph.c
9041 (BC_R(vector_details)) : Use the correct index for the debug info.
9043 * ms-excel-read.c (ms_excel_biff_dimensions) : Use range_name.
9045 2001-08-21 Zbigniew Chyla <cyba@gnome.pl>
9047 * plugin.xml: Removed
9049 * plugin.xml.in: Copied from plugin.xml, prepared for localization.
9051 * Makefile.am: Use xml-i18n-tools to create plugin.xml (with
9052 translations merged from .po file).
9054 2001-08-20 Jody Goldberg <jgoldberg@home.com>
9058 2001-08-20 Jody Goldberg <jgoldberg@home.com>
9060 * Makefile.am : Remove unused stubs for gnumeric-chart.
9061 * ms-chart.c : s/ExcelChart/ExcelChartReadState/g
9062 (BC_R(top_state)) : new function.
9063 (map_excel_vec_type_to_gnm) : new function.
9064 (BC_R(vector_details)) : new function.
9065 (BC_R(series_impl)) : Use vector_details.
9066 (BC_R(ai)) : actually handle the vector.
9067 (BC_R(begin)) : keep a stack of the states.
9068 (BC_R(series)) : keep track of the series.
9070 * ms-excel-read.c (ms_sheet_obj_realize) : use the correct anchor specs.
9071 and use the new SheetObjectAnchor mechanism.
9072 (ms_sheet_obj_create) : signatue change for sheet_object_container_new.
9074 2001-08-20 Jody Goldberg <jgoldberg@home.com>
9076 * ms-excel-read.c (ms_excel_read_formula) : improve the debug info.
9077 (ms_excel_read_bof) : Doh! We modify the sheet counter.
9078 (ms_excel_read_workbook) : signature changes for ms_excel_read_bof.
9080 2001-08-11 Jody Goldberg <jgoldberg@home.com>
9084 2001-08-07 Jody Goldberg <jgoldberg@home.com>
9086 * ms-excel-read.c (ms_excel_read_setup) : print scaling is stored as a
9087 percentage in XL and in Gnumeric. Improve the warning as long as
9090 2001-08-03 Jody Goldberg <jgoldberg@home.com>
9092 Consistently refer to /ExcelSheet/ instances as esheet.
9093 Ensure that the BiffQuery is the first arg.
9094 * ms-excel-read.c (ms_excel_sheet_new) : Explicitly request a full
9095 respan for the update after we load. I had been relying on there
9096 being a col/row or default col/row sizing to force it.
9098 2001-08-02 Jody Goldberg <jgoldberg@home.com>
9100 * ms-escher.c (ms_escher_blip_new) : be consistent and use #ifdef
9102 2001-07-25 Jody Goldberg <jgoldberg@home.com>
9104 * ms-excel-read.c (ms_excel_read_window2) : Tidy up a bit.
9106 * ms-excel-write.c (write_window2) : support frozen panes.
9107 (write_pane) : Implement.
9109 2001-07-17 Jody Goldberg <jgoldberg@home.com>
9113 2001-07-16 Jody Goldberg <jgoldberg@home.com>
9115 * ms-excel-read.c (ms_excel_read_pane) : implement.
9116 (ms_excel_read_window2) : store initial top left.
9118 2001-07-12 Jody Goldberg <jgoldberg@home.com>
9120 * ms-excel-read.c (ms_excel_read_pane) : new function.
9121 (ms_excel_read_sheet) : called from here.
9122 (ms_excel_read_window2) : top left spec is _zero_ based.
9123 Add support for setting the frozen flag.
9124 (ms_excel_sheet_new) : init the freeze flag here.
9126 2001-07-13 Lutz Müller <urc8@rz.uni-karlsruhe.de>
9128 * ms-escher.c (ms_escher_read_ClientData): Syntax and name of
9129 sheet_object_bonobo_load(_persist)_stream changed.
9131 2001-06-28 Jody Goldberg <jgoldberg@home>
9135 2001-06-28 Jody Goldberg <jgoldberg@home.com>
9137 * ms-excel-util.c (lookup_font_base_char_width_new) : add more safety.
9139 * ms-excel-write.c (formats_put_magic) : const.
9140 (new_sheet) : ignore spans and merges for extent calcs.
9142 * ms-excel-read.c (ms_excel_read_init) : new function to init the
9143 locale specific date format.
9145 * boot.c (plugin_init) : new function.
9147 2001-06-27 Jody Goldberg <jgoldberg@home.com>
9151 2001-06-21 Morten Welinder <terra@diku.dk>
9153 * ms-excel-read.c (ms_excel_read_supporting_wb): Fix trigraph
9154 stuff and cut down on repeated question marks in general.
9156 2001-06-15 Jody Goldberg <jgoldberg@home.com>
9158 * ms-excel-read.c (ms_excel_sheet_new) : Use CellPos directly.
9160 * ms-formula-read.c (ms_excel_parse_formula) : some cleanup.
9162 2001-06-11 Jody Goldberg <jgoldberg@home.com>
9164 * ms-excel-write.c (write_setup) : new routine.
9165 (write_sheet_bools) : split out from here.
9167 * ms-excel-read.c (ms_excel_read_sheet) : split the setup parser out
9169 (ms_excel_read_setup) : here. and modernize it. Read the number of
9170 copies and the scaling if specified.
9172 2001-06-12 Zbigniew Chyla <cyba@gnome.pl>
9174 * boot.c (excel_save): Set up io_progress before calling ms_excel_check_write
9175 and ms_excel_write_workbook.
9178 (ms_excel_read_sheet): Added IOContext argument,
9179 call value_io_progress_update on every loop iteration.
9180 (ms_excel_read_workbook): Set up io progress message and helper.
9183 (pre_cell): Update io progress.
9184 (pre_blanks): Update io progress at every row.
9185 (gather_styles): Set up io progress helper.
9186 (write_block): Update io progress after every write_cell call.
9187 (ms_excel_write_workbook): Set up io progress helper.
9188 (ms_excel_check_write): Copy IOContext ptr into ExcelWorkbook struct.
9190 * ms-excel-write.h (struct _ExcelWorkbook): Added io_context.
9192 2001-06-03 Jody Goldberg <jgoldberg@home.com>
9193 For Vlad Harchev <hvv@hippo.ru>
9195 * ms-excel-util.h ms-excel-util.c (excel_wcstombs) :
9196 Some utilites to handle encoding changes that fail.
9198 * ms-excel-read.c : Use the utilities.
9200 2001-06-02 Almer S. Tigelaar <almer@gnome.org>
9202 * (ms_excel_read_row): Set outline using
9204 (ms_excel_read_colinfo): Idem.
9206 2001-05-31 Karl Eichwalder <ke@suse.de>
9208 * boot.c (excel_save): Add dot.
9210 2001-05-29 Zbigniew Chyla <cyba@gnome.pl>
9212 * boot.c (excel_file_probe): Added FileProbeLevel argument.
9214 2001-05-27 Jody Goldberg <jgoldberg@home.com>
9216 * ms-excel-write.c (write_window2) :
9217 Switch the BIFF_WINDOW2 0x23e -> 0x3e
9218 (write_names) : fix biff type.
9220 * ms-excel-read.c (ms_excel_read_formula) : cleanup some old
9221 inconsistentcies. keep as many of the BIFF_* using their major
9223 Switch the BIFF_STRING 0x207 -> 0x07
9224 Switch the BIFF_BOOLERR 0x205 -> 0x05
9225 (ms_excel_read_window2) : split this out into a neater bundle.
9227 2001-05-26 Jody Goldberg <jgoldberg@home.com>
9229 * ms-excel-write.c (write_sheet_bools) : Save the iteration
9230 preferences too. These are workbook level flags. I am unclear why
9231 XL saves them at the sheet level.
9233 * ms-excel-read.c (ms_excel_read_calccount) : new function.
9234 (ms_excel_read_delta) : ditto.
9235 (ms_excel_read_iteration) : ditto.
9236 (ms_excel_read_sheet) : use them here.
9238 2001-05-18 Jody Goldberg <jgoldberg@home.com>
9240 * ms-excel-read.c (ms_excel_read_formula) : Use cell_queue_recalc
9241 to get appropriate recursion.
9243 2001-05-17 Jody Goldberg <jgoldberg@home.com>
9245 * ms-excel-read.c (ms_excel_formula_shared) : Use a g_warning not a
9248 2001-05-21 Zbigniew Chyla <cyba@gnome.pl>
9250 * boot.c (excel_file_probe, excel_file_open, excel97_file_save,
9252 s/FileOpener/GnumFileOpener/
9253 s/FileSaver/GnumFileSaver/
9255 2001-05-20 Jody Goldberg <jgoldberg@home.com>
9259 2001-05-13 Michael Meeks <michael@ximian.com>
9261 * ms-excel-write.c (write_value): commit the VALUE_EMPTY.
9263 * ms-biff.c (ms_biff_put_len_next),
9264 (ms_biff_put_var_next): add conditional debug to help catch
9265 similar problems - none obvious just now.
9267 2001-05-11 Jody Goldberg <jgoldberg@home.com>
9269 * ms-excel-read.c (ms_excel_read_workbook) : clear the global handle
9272 2001-05-11 Almer S. Tigelaar <almer@gnome.org>
9274 * ms-excel-write.c (write_sheet_bools): Write dimensions as
9276 (biff_put_text): Signedness.
9277 (write_externsheets): Signedness.
9278 (excel_font_to_string): Signedness.
9279 (fonts_free): Signedness.
9280 (write_formats): Signedness.
9281 (xf_free): Signedness.
9282 (pre_cell): Signedness + Unused variabele.
9283 (gather_styles): Signedness.
9284 (map_pattern_index_to_excel): Signedness.
9285 (write_index): Signedness.
9286 (write_block): Signedness.
9287 (write_sheet): Signedness.
9288 (free_workbook): Signedness.
9289 (write_workbook): Signedness.
9290 (check_sheet): Signedness.
9292 * ms-excel-formula-write (write_node): Cast untyped pointer.
9294 2001-05-07 Jody Goldberg <jgoldberg@home.com>
9296 * ms-escher.c (ms_escher_get_data) : suppress warnings.
9297 (ms_escher_read_ClientTextbox) : no side effects in precondition.
9299 * ms-excel-read.c (ms_excel_formula_shared) : ditto.
9301 2001-05-06 Jody Goldberg <jgoldberg@home.com>
9303 * ms-excel-read.c (biff_boundsheet_data_new) : merge in the last of
9306 2001-05-05 Jody Goldberg <jgoldberg@home.com>
9308 * ms-excel-read.c (ms_excel_set_xf_segment) : support multiple rows.
9309 (ms_excel_read_row) : use here.
9310 (ms_excel_read_cell) : and here.
9311 (ms_excel_read_colinfo) : start using it here too.
9312 (ms_sheet_obj_create) : Add a place holder for a spinner.
9314 * ms-excel-write.c (pre_cell) : XL does not differentiate between
9315 parse and display formats. When exporting a cell with General that
9316 has a parse format create a new XF with the parse format as the
9319 2001-04-30 Morten Welinder <terra@diku.dk>
9321 * ms-summary.c (sum_name_to_excel): Fix index count. Constify.
9323 (excel_to_gnum_mapping): Make static.
9325 2001-04-29 Jody Goldberg <jgoldberg@home.com>
9327 * ms-excel-write.c (write_window2) : Headers are in default style.
9328 And grid colour is auto, not black.
9330 2001-04-27 Chema Celorio <chema@celorio.com>
9332 * boot.c (excel_save): add a message explaining that you could set
9333 an env variable to enable XL overwrite. This is not the optimal
9336 2001-04-26 Jody Goldberg <jgoldberg@home.com>
9338 * ms-excel-write.c (write_colinfos) : Rework to simplify and use
9340 (write_colinfo) : extract the info from the ColRowInfo directly and
9341 fill in the visibility, outline, and collapse states.
9342 (write_rowinfo) : export visibility, collapse and outline.
9343 (write_guts) : new function.
9344 (new_sheet) : Include blank cols/rows with outline properties in
9347 * ms-excel-write.h (Excel{Col,Row}) : Delete unnecessary structures.
9349 2001-04-26 Jody Goldberg <jgoldberg@home.com>
9351 * ms-excel-write.c (write_mergecells) : new routine to save merged
9353 (write_sheet_tail) : called from here.
9355 2001-04-23 Jon K Hellan <hellan@acm.org>
9357 * ms-biff.c (ms_biff_query_next, ms_biff_query_next,
9358 ms_biff_query_destroy, ms_biff_put_new, ms_biff_put_commit,
9359 ms_biff_put_len_next): Make sure that bp->data = 0 when
9360 bp->data_malloced = 0 & v.v. This helps heap debugging.
9361 (ms_biff_put_len_next): Assert that data pointer is null. If it
9362 weren't the old code would have been leaking.
9364 2001-04-23 Morten Welinder <terra@diku.dk>
9366 * ms-excel-write.c (ms_excel_check_write): Avoid double free of
9369 2001-04-20 Jody Goldberg <jgoldberg@home.com>
9371 * ms-excel-read.c (ms_excel_read_wsbool) : new function.
9372 (ms_excel_read_sheet) : called from here.
9374 * ms-excel-write.c (write_wsbool) : new function.
9375 (write_sheet_bools) : called from here.
9377 2001-04-19 Jody Goldberg <jgoldberg@home.com>
9379 * ms-excel-write.c (write_window2) : sigh, when fixing the sizes I did
9380 not change the offsets. I miss C++ in situations like this.
9381 (ms_excel_check_write) : Free the sheet list.
9383 2001-04-18 Jody Goldberg <jgoldberg@home.com>
9385 * ms-excel-util.c (excel_iconv_win_codepage) : cleanup and remove
9386 warnings in the C locale case.
9388 * ms-excel-write.c (write_sheet_tail) : split WINDOW2 code out of here
9389 (write_window2) : and move it here. Then comment it up and extend the
9392 2001-04-17 Jody Goldberg <jgoldberg@home.com>
9394 * plugin.xml : Disable the excel97 save method until it potentially
9395 does more than screw up.
9397 2001-04-15 Vlad Harchev <hvv@hippo.ru>
9399 * ms-excel-util.h ms-excel-util.c :
9400 added framework for doing portable recoding between charsets,
9401 and also functions for finding appropriate Windows codepage
9404 * ms-excel-read.c ms-excel-write.c :
9405 Properly perform charset conversion for all textual data when doing
9406 export or import of .xls files.
9408 2001-04-12 Chema Celorio <chema@celorio.com>
9410 * boot.c (excel_save): add an env variable so that we can
9411 enable XL overwrite. the variable is named GNUMERIC_ENABLE_XL_OVERWRITE
9413 2001-04-12 Jody Goldberg <jgoldberg@home.com>
9415 * ms-excel-write.c (pre_pass) : Don't unref here.
9417 2001-04-12 Morten Welinder <terra@diku.dk>
9419 * ms-summary.c (ms_summary_write): Plug leaks.
9421 2001-04-11 Jody Goldberg <jgoldberg@home.com>
9423 * ms-formula-write.c (write_string) : a null string is not a missing
9426 2001-04-04 Jody Goldberg <jgoldberg@home.com>
9428 * ms-excel-read.c (ms_excel_externsheet) : new function split from
9429 (ms_excel_read_workbook) : here.
9431 * ms-excel-read.c (biff_name_data_new) : begin cleanup. The
9432 sheet_index is stored in different places for different biff types.
9433 There also appears to be enough data about the sheet names that we
9434 may not need to do this magic delayed instantiation.
9436 2001-04-03 Jody Goldberg <jgoldberg@home.com>
9438 * ms-chart.c (ms_excel_chart) : provide stub handlers for container
9441 2001-04-02 Jody Goldberg <jgoldberg@home.com>
9443 * ms-excel-read.c (ms_excel_read_imdata) : new routine pulled from.
9444 (ms_excel_read_cell) : here.
9446 * ms-obj.c (ms_obj_read_biff8_obj) : used here.
9448 2001-04-04 Morten Welinder <terra@diku.dk>
9450 * ms-escher.c (ms_escher_blip_destroy): Plug leak.
9452 * ms-excel-util.c (lookup_font_base_char_width_new): Implement
9455 2001-04-01 Jody Goldberg <jgoldberg@home.com>
9457 * ms-escher.c (ms_escher_get_data) : improve diagnostic info.
9459 * ms-obj.c (ms_obj_read_biff8_obj) : when reading the mystery trailing
9460 IMDATA we need to handle CONTINUE. We really need to figure out
9463 2001-04-01 Morten Welinder <terra@diku.dk>
9465 * ms-chart.c (register_handlers) : Fix prototype.
9467 * gnumeric-chart.c (gnumeric_chart_new): Fix prototype.
9469 * ms-excel-write.c (get_default_mstyle): Fix prototype.
9471 2001-04-01 Morten Welinder <terra@diku.dk>
9473 * ms-excel-read.c (ms_excel_default_palette): Fix prototype.
9474 (ms_excel_read_cleanup): New function.
9476 * ms-excel-util.c (destroy_xl_font_widths): New function.
9478 * boot.c (plugin_cleanup): New function.
9480 2001-03-31 Zbigniew Chyla <cyba@gnome.pl>
9482 * .cvsignore: Added *.lo and *.la.
9484 2001-03-30 Jody Goldberg <jgoldberg@home.com>
9486 * ms-container.c (ms_container_init) : Take a parent container.
9487 (ms_container_finalize) : handle NULL blips smoothly.
9488 (ms_container_get_blip) : check the container if we are empty.
9490 * ms-escher.c (ms_escher_read_Blip) : always register a blip, even if
9491 it is NULL, otherwise the index gets confused. Move the
9493 (ms_escher_blip_new) : from here.
9494 (ms_escher_read_ClientData) : replace blips we can't understand with
9497 * ms-chart.c (ms_excel_chart) : Pass in the charts container.
9499 * ms-excel-read.c (ms_excel_workbook_new) : workbook have no parents.
9500 (ms_excel_sheet_new) : Sheets are contained by workbooks.
9502 2001-03-30 Jody Goldberg <jgoldberg@home.com>
9504 * ms-excel-read.c (ms_excel_get_style_from_xf) : Only newer versions
9507 2001-03-30 Morten Welinder <terra@diku.dk>
9509 * ms-escher.c (ms_escher_read_container): Plug leak.
9511 2001-03-30 Jody Goldberg <jgoldberg@home.com>
9513 * boot.c (excel_save) : clarify message.
9515 2001-03-29 Jody Goldberg <jgoldberg@home.com>
9517 * ms-escher.c (ms_escher_read_Blip) : Fix leak plug.
9519 2001-03-29 Jody Goldberg <jgoldberg@home.com>
9521 * ms-obj.c (ms_obj_read_biff8_obj) : It seems certain that the MS docs
9522 are wrong about list boxes. I hope they don't do the same thing for
9525 * ms-escher.c : s/ms_excel_read_debug/ms_excel_escher_debug/
9526 (ms_escher_read_OPT) : Add missing OPT records and cleanup docs.
9527 (ms_escher_read_BSE) : Document the record size and don't attempt to
9528 treat this as a container if its content is of size 0.
9530 2001-03-28 Jody Goldberg <jgoldberg@home.com>
9532 * ms-obj.c (ms_read_TXO) : Fix the minor memory overrun Morten found.
9534 2001-03-18 Jody Goldberg <jgoldberg@home.com>
9536 * ms-excel-util.c (init_xl_font_widths) : recalculate the size of Geneva
9537 for the default case of Geneva not being available.
9539 2001-03-27 Morten Welinder <terra@diku.dk>
9541 * ms-escher.c (ms_escher_read_Blip): Plug leak.
9543 2001-03-20 Zbigniew Chyla <cyba@gnome.pl>
9546 Building excel plugin as shared library, added plugin.xml.
9549 xxx_debug variables from src/main.c moved here.
9550 Converted to real plugin with file_opener and file_saver services.
9552 * plugin.xml: New file.
9554 * gnumeric/plugins/excel/excel.h, plugins/excel/ms-chart.c,
9555 plugins/excel/ms-escher.c, plugins/excel/ms-excel-read.c,
9556 plugins/excel/ms-excel-read.h, plugins/excel/ms-excel-util.c,
9557 plugins/excel/ms-excel-write.c, plugins/excel/ms-excel-write.h,
9558 plugins/excel/ms-formula-read.c, plugins/excel/ms-formula-write.c,
9559 plugins/excel/ms-obj.c:
9560 Adjusted function signatures, don't return TRUE/FALSE if using
9561 IOContext (we don't need boolean value as IOContext now sets
9562 "error_occurred" flag).
9564 2001-03-15 Jody Goldberg <jgoldberg@home.com>
9566 * ms-excel-read.c (ms_excel_read_row) : Handle outline mode.
9567 (ms_excel_read_colinfo) : ditto.
9568 (ms_excel_read_guts) : ditto.
9570 2001-03-17 Jody Goldberg <jgoldberg@home.com>
9574 2001-03-02 Jody Goldberg <jgoldberg@home.com>
9576 * ms-formula-read.c (getRefV8) : rewrite to handled sign extension
9577 correctly (I Hope) for the various shared/unshared states.
9580 2001-02-24 Jody Goldberg <jgoldberg@home.com>
9582 * ms-excel-read.c (ms_excel_read_colinfo) : work around some strange
9583 widths from a test sheet.
9585 2001-02-23 Jody Goldberg <jgoldberg@home.com>
9589 2001-02-19 Jon K Hellan <hellan@acm.org>
9591 * boot.c (excel_load, excel_init): Change file format level to
9592 FILE_FL_MANUAL_REMEMBER.
9594 2001-02-16 Jody Goldberg <jgoldberg@home.com>
9596 * ms-formula-write.c (write_node) : Use some code from expr.c
9597 to simplify binary/unary output and to add parens when necessary.
9599 * ms-excel-write.c (write_formula) : Start at paren level 0.
9600 (write_names) : ditto.
9602 2001-02-16 Jody Goldberg <jgoldberg@home.com>
9606 2001-02-15 Jody Goldberg <jgoldberg@home.com>
9608 * ms-excel-read.c (ms_sheet_obj_realize) : Add a missing call to
9609 sheet_object_set_sheet. Without this the objects are lost in limbo.
9611 2001-02-11 Jody Goldberg <jgoldberg@home.com>
9613 * ms-excel-read.c (ms_sheet_obj_create) : add option button.
9615 2001-02-10 Jon K Hellan <hellan@acm.org>
9617 * ms-excel-read.c (ms_excel_init_margins): New
9618 function. Initialize margins to Excel defaults.
9619 (ms_excel_sheet_new): Call ms_excel_init_margins.
9621 * ms-excel-write.c (write_sheet_bools): Write margins also for
9622 biff 7 (which is what we actually use).
9624 2001-02-09 Jody Goldberg <jgoldberg@home.com>
9626 * ms-excel-read.c (ms_sheet_obj_create) : don't free the object on
9629 * ms-obj.c (ms_read_OBJ) : free it here on failure.
9631 * ms-container.c (ms_container_finalize) : fix leak.
9633 2001-02-06 Jody Goldberg <jgoldberg@home.com>
9635 * ms-excel-read.c (ms_excel_read_default_col_width) : typo.
9637 2001-02-06 Jody Goldberg <jgoldberg@home.com>
9639 * ms-excel-read.c (ms_excel_read_default_col_width) : Init and cache
9640 the default column width here directly.
9641 (ms_excel_read_colinfo) : Use the font associated with the specified
9642 xf record to calculate the width.
9643 (get_base_char_width) : delete.
9644 (init_base_char_width_for_read) : rename base_char_width_for_read.
9645 (base_char_width_for_read) : take the xf index as an argument and
9646 return rather than caching the results.
9648 2001-01-30 Jody Goldberg <jgoldberg@home.com>
9650 * ms-excel-write.c (new_sheet) : adjust semantics of get extent.
9652 2001-01-30 Almer S. Tigelaar <almer1@dds.nl>
9654 * ms-excel-read.c (ms_excel_read_selection):
9655 Rename sheet_selection_reset_only to sheet_selection_reset.
9657 2001-01-17 Michael Meeks <michael@helixcode.com>
9659 * ms-escher.c (ms_escher_read_Blip): fix eog oafiid.
9661 2001-01-08 Jody Goldberg <jgoldberg@home.com>
9663 * ms-excel-read.c (ms_sheet_obj_create) : remove stale debugging.
9665 2001-01-08 Jody Goldberg <jgoldberg@home.com>
9667 * ms-excel-write.c (put_mstyle) : add a ref when the style is put in
9669 (xf_free) : release the default style.
9671 2000-12-31 Jody Goldberg <jgoldberg@home.com>
9673 * ms-excel-read.c (ms_excel_set_xf) : remove cruft with triple styles.
9674 (biff_xf_data_new) : Ditto.
9675 (ms_excel_set_xf_segment) : Ditto.
9676 (biff_xf_data_destroy) : Ditto.
9678 * ms-excel-write.c (build_xf_data) : remove cruft with triple styles.
9680 2001-01-01 Jon K Hellan <hellan@acm.org>
9682 * ms-excel-write.c (write_window1): Take WorkbookView
9683 parameter. Save width, height and flags for
9684 show_horizontal_scrollbar, show_vertical_scrollbar and
9686 (write_bits, write_sheet_tail): Call write_window1 with
9687 WorkbookView parameter.
9689 * ms-excel-read.c (ms_excel_read_window1): New function -
9690 separated out of ms_excel_read_workbook. Read BIFF WINDOW1 record.
9691 Fix some typos: Some fields were 32bit, should be 16 bit.
9692 (ms_excel_read_workbook): Separated out ms_excel_read_window1.
9694 2000-12-20 Jody Goldberg <jgoldberg@home.com>
9696 * ms-chart.c (BC_R(ai)) : Use ms_container_parse_expr.
9698 * ms-container.c (ms_container_parse_expr) : new function.
9700 * ms-excel-read.c (ms_sheet_parse_expr_internal) : implement parse_expr.
9702 2000-12-17 Jody Goldberg <jgoldberg@home.com>
9706 2000-12-09 Jody Goldberg <jgoldberg@home.com>
9708 * ms-excel-read.c (ms_sheet_obj_create) : changes to sheet object
9709 constructor arguments.
9711 2000-12-07 Jody Goldberg <jgoldberg@home.com>
9713 * ms-excel-read.c (ms_excel_get_style_from_xf) : enable indent.
9715 2000-12-7 Jody Goldberg <jgoldberg@home.com>
9719 2000-12-05 Jody Goldberg <jgoldberg@home.com>
9721 * ms-excel-read.c (ms_excel_read_mergecells) : enable merged cells.
9723 2000-12-05 Jody Goldberg <jgoldberg@home.com>
9725 * ms-escher.c (ms_escher_read_Blip) : revert to using the old
9726 non-installed image viewer. The one in eog/viewer does not work.
9727 the one in eog/bonobo does.
9729 2000-12-04 Jody Goldberg <jgoldberg@home.com>
9731 * ms-excel-read.c (ms_sheet_obj_create) : fix warnings.
9733 2000-12-02 Jody Goldberg <jgoldberg@home.com>
9735 * ms-escher.c (ms_escher_read_Blip) : Change image viewers. The
9736 eog/bonobo viewer is no longer built or installed.
9738 * ms-excel-read.c (ms_excel_read_sheet) : XL docs do not mention that
9739 the PROTECT record can sometimes be of size 0.
9740 (ms_excel_read_workbook) : Ditto.
9741 (ms_excel_read_PROTECT) : new function.
9742 (ms_excel_read_mergecells) : Correct.
9743 (biff_xf_data_new) : remove the warnings about merged cells.
9745 2000-12-01 Jody Goldberg <jgoldberg@home.com>
9747 * ms-obj.c (ms_read_OBJ) : simplify.
9749 * ms-excel-write.c (write_biff7_comments) : slight reorg to handle to
9750 style cell comments.
9752 * ms-excel-read.c (ms_excel_read_comment) : revamp for new cell
9755 * ms-excel-read.c (ms_sheet_obj_anchor_to_pos) : Update to the new
9756 sheetObject anchor scheme. The sheet does NOT yet support this form
9757 of anchor. We'll need to add it in the next couple of days.
9758 (ms_sheet_obj_create) : create the sheet objects directly.
9760 * ms-escher.c (ms_escher_read_ClientData) : set the picture here
9763 2000-12-01 Jody Goldberg <jgoldberg@home.com>
9765 * ms-container.c (ms_container_get_blip) : new function.
9766 (ms_container_init) : Add ability to share blip lists between
9767 containers. We need to figure out the semantics of this.
9768 (ms_container_finalize) : Ditto.
9769 (ms_container_set_blips) : Ditto.
9771 2000-11-19 Jon K Hellan <hellan@acm.org>
9773 * ms-excel-write.c (write_externsheets): Make EXTERNCOUNT be the
9774 number of EXTERNSHEETS we actually store. This stops Excel from
9775 crashing. See bug #32096. We still have to figure out what to
9776 store as EXTERNSHEETS and when. What we're doing isn't right.
9778 2000-11-18 Jody Goldberg <jgoldberg@home.com>
9782 2000-11-13 Jody Goldberg <jgoldberg@home.com>
9786 2000-11-13 Morten Welinder <terra@diku.dk>
9788 * ms-excel-read.c (ms_excel_get_style_from_xf): Fix some
9789 style_color reference count problems.
9790 (ms_excel_set_xf_segment): Plug leak.
9792 2000-11-10 Jody Goldberg <jgoldberg@home.com>
9794 * excel_builtin_formats : Correct long standing typos.
9796 2000-11-10 Jody Goldberg <jgoldberg@home.com>
9797 Patch from Juan Pablo Mendoza <pablo_juan@yahoo.com>
9799 * ms-excel-write.c (write_biff7_comments): New function.
9800 (write_sheet): Use it.
9802 2000-11-07 Jody Goldberg <jgoldberg@home.com>
9804 * ms-excel-read.c (biff_name_data_get_name) : Cleanup a bit.
9806 2000-11-02 Jody Goldberg <jgoldberg@home.com>
9808 * ms-chart.c (ms_excel_chart) : remove check for BOF type == chart.
9809 in BIFF5 it is possible to.
9811 * ms-excel-read.c (ms_excel_read_sheet) : If we find a CHART_unit
9812 record parse the following records as if they were a chart.
9814 2000-11-01 Jody Goldberg <jgoldberg@home.com>
9816 * ms-excel-read.c (ms_excel_sheet_set_comment) : we do not need to set
9817 the cell's value to empty. It is created that way.
9818 (ms_excel_read_comment) : Ditto.
9819 (ms_excel_sheet_insert_val) : We have direct access to the display
9820 format. Use it rather than doing an expensive lookup.
9822 2000-10-29 Jody Goldberg <jgoldberg@home.com>
9824 * ms-excel-read.c : Adjust to the signature changes for reading views
9825 rather than workbooks.
9826 * ms-excel-write.c : ditto.
9829 2000-10-28 Jody Goldberg <jgoldberg@home.com>
9831 * ms-excel-util.c (init_xl_font_widths) : Add CG Times.
9833 2000-10-30 Morten Welinder <terra@diku.dk>
9835 * ms-biff.c (biff_getdouble, biff_setdouble): Delete. Replace all
9836 callers with gnumeric_get_le_double and gnumeric_set_le_double.
9838 2000-10-21 Jody Goldberg <jgoldberg@home.com>
9840 * ms-excel-read.c (ms_excel_read_row) : Fix bounds.
9841 (ms_excel_set_xf_segment) : Be more careful about bounds.
9843 2000-10-10 Jody Goldberg <jgoldberg@home.com>
9847 2000-10-04 Jody Goldberg <jgoldberg@home.com>
9849 * ms-excel-read.c (biff_get_rk) : Fix ancient thinko. Thanks to
9850 heiko@hexco.de for noticing this.
9852 2000-09-20 Jody Goldberg <jgoldberg@home.com>
9854 * ms-formula-read.c (ms_excel_parse_formula) : Make the warning
9857 2000-09-10 Jody Goldberg <jgoldberg@home.com>
9859 * ms-excel-read.c (ms_sheet_obj_realize) : Adjust to new object
9860 creation semantics. First you create the object. Then set its
9863 2000-09-06 Jody Goldberg <jgoldberg@home.com>
9865 * ms-excel-read.c (ms_excel_sheet_new) : No need to call set_zoom.
9866 sheet_new does that.
9868 2000-08-24 Jody Goldberg <jgoldberg@home.com>
9870 * ms-excel-write.c (put_format) : Ref formats as we add them.
9872 2000-08-23 Jody Goldberg <jgoldberg@home.com>
9874 * ms-excel-write.c (formats_put_magic) : Fixups after changes to
9875 format tables. We need to store a StyleFormat, not a string.
9876 (after_put_format) : unref rather than free.
9878 2000-08-21 Jody Goldberg <jgoldberg@home.com>
9880 * ms-excel-write.c (formats_init) : The format table nows stores
9881 pointers to StyleFormats rather than their strings.
9882 (formats_get_format) : Ditto.
9883 (formats_free) : Ditto.
9884 (formats_get_index) : Ditto.
9885 (put_format) : Ditto.
9886 (write_format) : Ditto.
9888 * ms-excel-read.c (biff_format_data_lookup) : Number formats are
9889 stored in XLS using the 'C' locale. eg a french user who sees
9890 '# ##0,00' will actually save '#,##0.00'.
9891 (ms_excel_get_style_from_xf) : Kludge. We need to actually set
9892 non-borders so that things get over ridden. The core model needs
9893 improving before this can happen correctly.
9894 (ms_excel_get_style_from_xf) : Ditto.
9896 * ms-escher.c (ms_escher_read_Blip) : Remove gnorba.
9898 * ms-chart.c (ai) : Changes to the interface for StyleFormats.
9900 (ms_excel_chart) : Init the sheet. Ignore BIFF_DIMENSION records for
9901 now. I have no idea what they represenent.
9903 2000-08-20 Jody Goldberg <jgoldberg@home.com>
9905 * ms-excel-read.c (ms_excel_get_style_from_xf) : No need to use
9906 set_text. Set the StyleFormat directly.
9908 2000-08-16 Jody Goldberg <jgoldberg@home.com>
9910 * ms-excel-util.c (init_xl_font_widths) : Tweak Times New Roman
9911 to match observations. It seems as if the size is non-linear :-(
9912 We'll need another round of measurements to account for this.
9914 2000-08-15 Jody Goldberg <jgoldberg@home.com>
9916 * ms-chart.c (ms_excel_chart) : conditionalize debug info.
9918 2000-08-14 Jody Goldberg <jgoldberg@home.com>
9920 * ms-excel-read.c (ms_excel_set_xf) : Improve debug info.
9921 (ms_excel_set_xf_segment) : Ditto.
9922 (biff_xf_data_new) : Ditto.
9923 (ms_excel_get_style_from_xf) : Always apply the
9924 borders. We need to apply even in the case of no border in order to
9925 over ride previously applied defaults.
9926 (ms_excel_read_row) : Apply default style to the entire row.
9928 2000-08-09 Jody Goldberg <jgoldberg@home.com>
9930 * ms-excel-read.c (ms_excel_biff_dimensions) : Move back from
9931 ms-chart.c. It is specific to sheets.
9933 2000-07-26 Michael Meeks <michael@helixcode.com>
9935 * README: Add some explanation of why I hate being mailed by people
9938 2000-07-24 Jody Goldberg <jgoldberg@home.com>
9940 * ms-excel-read.c (ms_excel_read_sheet) : Adjust to changes in sheet_set_zoom_factor.
9941 (ms_excel_sheet_new) : Ditto.
9943 2000-07-13 Jody Goldberg <jgoldberg@home.com>
9945 * ms-container.c : Beginings of a some support for workbooks, and charts holding objects.
9946 Blips should become objects.
9948 * *.c : adjust to using the container abstraction.
9950 2000-07-08 Jody Goldberg <jgoldberg@home.com>
9952 * ms-formula-read.c (make_function) : Move the place holder handling
9955 2000-07-12 Michael Meeks <michael@helixcode.com>
9957 * ms-escher.c (ms_escher_blip_destroy): unref not destroy bonobo object.
9959 2000-07-06 Jody Goldberg <jgoldberg@home.com>
9961 * ms-obj.c (ms_read_OBJ) : Take an ExcelSheet.
9963 * ms-escher.c (ms_escher_read_ClientData) : ms_read_OBJ takes a sheet.
9964 * ms-excel-read.c (ms_excel_read_sheet) : Ditto.
9965 (ms_excel_read_workbook) : Ditto.
9967 * ms-chart.c (3dbarshape) : A bit of research into probable values of
9969 (ai) : After some thought this makes more sense. We should only see
9970 an expression if we are linked to the workbook. Similarly we should
9971 only see a format if one is specified. We really need to avoid this
9972 kludge of needing a dummy sheet.
9973 (areaformat) : Ignore colour index, use the stored colour. Add some
9975 (lineformat) : Ditto.
9976 (markerformat) : Ditto.
9977 (ms_excel_chart) : Take an optional ExcelSheet.
9978 Parse BIFF_NUMBER records when they appear.
9979 (ms_excel_read_chart) : Take an optional ExcelSheet.
9981 2000-07-05 Michael Meeks <michael@helixcode.com>
9983 * ms-obj.c (ms_obj_realize): rename sheet_object_container constructor.
9985 * s/reproid/repo_id/
9987 2000-06-27 Jody Goldberg <jgoldberg@home.com>
9989 * ms-formula-write.c (write_node) : Handle new ExprFunction.
9991 * ms-formula-read.c (excel_formula_build_dummy_handle) : Use
9992 function_lookup_by_name.
9994 * ms-excel-read.c (ms_excel_set_xf) : Right borders dominate left
9997 2000-06-23 Jody Goldberg <jgoldberg@home.com>
9999 * ms-excel-read.c (ms_excel_sheet_append_comment) : Add a lag variable
10000 to support proper merging of comments.
10001 (BIFF_NOTE) : Init the lag variable.
10003 2000-06-21 Jon K Hellan <hellan@acm.org>
10005 * ms-excel-write.c (palette_put_defaults): Ensure that black with
10006 index 8 can't be swapped out.
10007 (fixup_fill_colors): Use index 8 instead of 0 for black in
10008 foreground. Excel is unable to open the cell format dialog for
10009 cells where foreground pattern color or border color is index 0.
10010 (build_xf_data): Borders: Use index 8 instead of 0 for black.
10012 * ms-excel-read.c (ms_excel_read_cell): Add more references to BIFF
10014 (ms_excel_read_workbook): Ditto
10016 2000-06-20 Jody Goldberg <jgoldberg@home.com>
10018 * ms-excel-read.c (ms_excel_externname) : Catch external names that
10019 are OLE or DDE links.
10021 2000-06-18 Jody Goldberg <jgoldberg@home.com>
10025 2000-06-19 Jody Goldberg <jgoldberg@home.com>
10027 * ms-excel-write.c (excel_cell_get) : Add some invariants as
10029 (pre_cell) : Be more careful about handling cells that are potentially
10032 2000-06-18 Jody Goldberg <jgoldberg@home.com>
10036 2000-06-18 Jody Goldberg <jgoldberg@home.com>
10038 * ms-excel-read.c (biff_boundsheet_data_new) : Guess at some
10039 undocumented behavior. It appears that when a sheet has a NULL
10040 name it is actually 'Sheet#'.
10042 2000-06-15 Jon K Hellan <hellan@acm.org>
10044 * ms-excel-write.c (write_db_cell): No longer use uninitialized
10045 rc_start [i]. Purify complained, although we immediately threw
10048 2000-06-15 Jody Goldberg <jgoldberg@home.com>
10050 * ms-excel-write.c (write_formula) : Incorrect offsets for formula
10051 values with booleans and errors.
10053 2000-06-14 Morten Welinder <terra@diku.dk>
10055 * ms-formula-write.c (ms_excel_write_formula): Plug leak.
10057 * ms-excel-write.c (ms_excel_check_write): In case of error, clear
10059 (ms_excel_write_free_state): "New" function.
10060 (write_workbook): Don't free workbook here.
10061 (ms_excel_write_workbook): Do it here and plug a leak.
10063 * boot.c (excel_save): Free the state.
10065 2000-06-07 Jody Goldberg <jgoldberg@home.com>
10067 * ms-excel-read.c (biff_format_data_lookup) : FORMAT records supercede
10068 the internal table.
10070 2000-06-05 Michael Meeks <michael@helixcode.com>
10072 s/eBiff_version/MsBiffVersion/g;
10073 s/eBiffV([0-9]*)/MS_BIFF_V\1/g;
10074 s/eBiffVUnknown/MS_BIFF_V_UNKNOWN/g;
10076 s/eBiff_filetype/MsBiffFileType/g;
10077 s/eBiffT/MS_BIFF_TYPE_/g;
10078 s/eBiff_hidden/MsBiffHidden/g;
10079 s/eBiffHVisible/MS_BIFF_H_VISIBLE/g;
10080 s/eBiffHHidden/MS_BIFF_H_HIDDEN/g;
10081 s/eBiffHVeryHidden/MS_BIFF_H_VERY_HIDDEN/g;
10082 s/eBiff_locked/MsBiffLocked/g;
10083 s/eBiffLLocked/MS_BIFF_L_LOCKED/g;
10084 s/eBiffLUnlocked/MS_BIFF_L_UNLOCKED/g;
10085 s/eBiff_xftype/MsBiffXfType/g;
10086 s/eBiffXStyle/MS_BIFF_X_STYLE/g;
10087 s/eBiffXCell/MS_BIFF_X_CELL/g;
10088 s/eBiff_format/MsBiffFormat/g;
10089 s/eBiffFMS/MS_BIFF_F_MS/g;
10090 s/eBiffFLotus/MS_BIFF_F_LOTUS/g;
10091 s/eBiff_eastern/MsBiffEastern/g;
10092 s/eBiffEContext/MS_BIFF_E_CONTEXT/g;
10093 s/eBiffEleftToRight/MS_BIFF_E_LEFT_TO_RIGHT/g;
10094 s/eBiffErightToLeft/MS_BIFF_E_RIGHT_TO_LEFT/g;
10095 s/eBiffFontUnderline/MsBiffFontUnderline/g;
10096 s/eBiffFUNone/MS_BIFF_F_U_NONE/g;
10097 s/eBiffFUSingleAcc/MS_BIFF_F_U_SINGLE_ACC/g;
10098 s/eBiffFUDoubleAcc/MS_BIFF_F_U_DOUBLE_ACC/g;
10099 s/eBiffFUSingle/MS_BIFF_F_U_SINGLE/g;
10100 s/eBiffFUDouble/MS_BIFF_F_U_DOUBLE/g;
10101 s/eBiffFontScript/MsBiffFontScript/g;
10102 s/eBiffFSNone/MS_BIFF_F_S_NONE/g;
10103 s/eBiffFSSub/MS_BIFF_F_S_SUB/g;
10104 s/eBiffFSSuper/MS_BIFF_F_S_SUPER/g;
10105 s/eBiffHAlign/MsBiffHAlign/g;
10106 s/eBiffHAGeneral/MS_BIFF_H_A_GENERAL/g;
10107 s/eBiffHALeft/MS_BIFF_H_A_LEFT/g;
10108 s/eBiffHACenter/MS_BIFF_H_A_CENTER/g;
10109 s/eBiffHARight/MS_BIFF_H_A_RIGHT/g;
10110 s/eBiffHAFill/MS_BIFF_H_A_FILL/g;
10111 s/eBiffHAJustify/MS_BIFF_H_A_JUSTIFTY/g;
10112 s/eBuffHACenterAcrossSelection/MS_BIFF_H_A_CENTER_ACROSS_SELECTION/g;
10113 s/eBiffVAlign/MsBiffVAlign/g;
10114 s/eBiffVATop/MS_BIFF_V_A_TOP/g;
10115 s/eBiffVACenter/MS_BIFF_V_A_CENTER/g;
10116 s/eBiffVABottom/MS_BIFF_V_A_BOTTOM/g;
10117 s/eBiffVAJustify/MS_BIFF_V_A_JUSTIFY/g;
10118 s/eBiffOrient/MsBiffOrient/g;
10119 s/eBiffOHoriz/MS_BIFF_O_HORIZ/g;
10120 s/eBiffOVertHorizText/MS_BIFF_O_VERT_HORIZ/g;
10121 s/eBiffOVertVertText/MS_BIFF_O_VERT_VERT/g;
10122 s/eBiffOVertVertText2/MS_BIFF_O_VERT_VERT2/g;
10123 s/eBiffDifferences/MsBiffDifferences/g;
10124 s/eBiffDFormatbit/MS_BIFF_D_FORMAT_BIT/g;
10125 s/eBiffDFontbit/MS_BIFF_D_FONT_BIT/g;
10126 s/eBiffDAlignbit/MS_BIFF_D_ALIGN_BIT/g;
10127 s/eBiffDBorderbit/MS_BIFF_D_BORDER_BIT/g;
10128 s/eBiffDFillbit/MS_BIFF_D_FILL_BIT/g;
10129 s/eBiffDLockbit/MS_BIFF_D_LOCK_BIT/g;
10130 s/BIFF_BOF_DATA/MsBiffBofData/g;
10131 s/eBiffMaxRows/MsBiffMaxRows/g;
10132 s/eBiffMaxRowsV7/MS_BIFF_MAX_ROWS_V7/g;
10133 s/eBiffMaxRowsV8/MS_BIFF_MAX_ROWS_V8/g;
10135 2000-06-05 Michael Meeks <michael@helixcode.com>
10137 * ms-excel-read.c (sst_bound_check): Update so we can't miss
10138 adjacent records and we check for continues.
10140 2000-06-03 Michael Meeks <michael@helixcode.com>
10142 * ms-obj.c (ms_read_TXO): fix memory corruption bug with continue.
10144 * ms-escher.c (ms_escher_read_Blip): update for Oaf.
10146 * ms-biff.c (ms_biff_query_new): kill merging.
10147 (ms_biff_merge_continues): kill forever.
10148 (ms_biff_query_next_merge): rename to (ms_biff_query_next): and
10149 clean. (ms_biff_query_unmerge): kill.
10151 2000-06-02 Michael Meeks <michael@helixcode.com>
10153 * ms-excel-read.c (biff_get_text): hack nasty auto-header
10154 detection. (read_sst): split from (ms_excel_read_workbook).
10155 (get_xtn_lens): split from (biff_get_text).
10156 (get_utf8_chars, get_string, sst_boundcheck): implement.
10158 2000-01-31 Michael Meeks <mmeeks@gnu.org>
10160 * ms-obj.c (ms_read_TXO): re-implement to swallow CONTINUEs &
10163 * ms-biff.c (ms_biff_query_next_merge): hack do_merge = FALSE
10164 for now; big clean possible later.
10166 * ms-escher.c (ms_escher_read_Blip): always use image-generic;
10167 it works, disable writing image files unless debugging.
10168 (write_file): conditional compile out.
10169 (ms_escher_get_data): add BIFF_CONTINUE.
10171 2000-01-30 Michael Meeks <michael@mejm2.dow.cam.ac.uk>
10173 * ms-excel-read.c (ms_excel_read_sheet): kill blank_sheet_pos.
10175 2000-05-30 Michael Meeks <michael@helixcode.com>
10177 * Makefile.am (INCLUDES): kill explicit libole2 include.
10179 2000-05-20 Jody Goldberg <jgoldberg@home.com>
10183 2000-05-18 Jody Goldberg <jgoldberg@home.com>
10185 * ms-excel-read.c (ms_excel_read_mergecells) : Produce a warning.
10187 2000-05-11 Michael Meeks <michael@helixcode.com>
10189 * boot.c (excel_load): add basic hooks.
10193 2000-05-16 Michael Meeks <michael@helixcode.com>
10195 * Makefile.am (INCLUDES): add libole2 include.
10197 2000-05-11 Michael Meeks <michael@helixcode.com>
10199 * *.[ch]: update libole2 includes.
10201 * Makefile.am (INCLUDES): kill libole2 kludge.
10203 2000-05-09 Jody Goldberg <jgoldberg@home.com>
10207 2000-05-05 Jody Goldberg <jgoldberg@home.com>
10209 * ms-formula-read.c (ms_excel_parse_formula) : Improve warning when we
10210 encounter unknown ptgAttr flags.
10212 2000-05-03 Jody Goldberg <jgoldberg@home.com>
10214 * ms-excel-read.c : Include eval.h to suppress warning.
10216 2000-05-03 Jody Goldberg <jgoldberg@home.com>
10218 * ms-excel-write.c (write_cell) : Use parse_pos_init_cell.
10220 * ms-excel-read.c (ms_excel_read_formula) : No need to manually
10221 cleanout the old value. The various assignment routines take care
10223 Honour the recalc flags for expressions. Array expressions are
10224 still unconditionally recalced, but the common case is handled
10227 2000-04-24 Jody Goldberg <jgoldberg@home.com>
10229 * ms-excel-read.c : format police.
10231 2000-04-21 Jody Goldberg <jgoldberg@home.com>
10233 * ms-excel-read.c (ms_excel_sheet_insert) : Use cell_set_value
10234 rather than cell_set_text to avoid attempting to parse the string.
10236 2000-04-20 Jody Goldberg <jgoldberg@home.com>
10238 * ms-excel-read.c (ms_excel_sheet_insert) : formats are no longer
10239 associated with individual cells. Only create a cell if it has
10241 (ms_excel_formula_shared) : Rework to return the expression. Only set
10242 it if it is an array.
10243 (ms_excel_read_formula) : Use error values for problems not strings.
10244 Use cell_set_expr_and_value when possible.
10245 (ms_excel_read_workbook) : Disable optimization that was culling blank
10246 sheets. It was causing a complete recalc of all loaded books for
10247 eavy deleted sheet.
10249 2000-04-20 Dan Winship <danw@helixcode.com>
10251 * ms-escher.c (ms_escher_blip_new): update for changes to bonobo
10253 2000-04-09 Morten Welinder <terra@diku.dk>
10255 * ms-excel-read.c (ms_excel_sheet_append_comment): Constify.
10256 (ms_excel_sheet_set_comment): Ditto.
10257 (ms_excel_read_sheet): Plug leak.
10259 2000-04-08 Jon K Hellan <hellan@acm.org>
10261 * ms-excel-read.c (ms_excel_set_xf, ms_excel_read_formula,
10262 ms_excel_read_sheet): Use
10263 gnum_sheet->name_unquoted instead of gnum_sheet->name in debug
10265 (ms_excel_read_workbook): Remove unused variable to silence
10268 * ms-excel-write.c (write_externsheets): Output
10269 gnum_sheet->name_quoted instead of gnum_sheet->name. FIXME: Is
10271 (write_sheet): Use gnum_sheet->name_unquoted instead of
10272 gnum_sheet->name in debug output.
10273 (write_workbook): Output gnum_sheet->name_unquoted instead of
10276 * ms-formula-read.c (ms_excel_parse_formula): Use
10277 gnum_sheet->name_unquoted instead of gnum_sheet->name in debug
10280 * ms-obj.c (object_anchor_to_position): Ditto.
10282 2000-04-06 Jody Goldberg <jgoldberg@home.com>
10284 * ms-excel-read.c (ms_excel_read_workbook) : Move deep freeze/thaw to
10287 2000-04-06 Jody Goldberg <jgoldberg@home.com>
10289 * ms-formula-read.c (ms_excel_parse_formula) : Adjust to change in
10292 2000-04-04 Jody Goldberg <jgoldberg@home.com>
10294 * ms-obj.c (ms_obj_read_biff8_obj) : Be more careful about when to
10295 dump debug info when the stated record size disagrees with the
10298 2000-03-24 Jody Goldberg <jgoldberg@home.com>
10300 * *.[ch] : Update copywrite years.
10302 * ms-obj.c (ms_read_OBJ) : improve debug output.
10303 (ms_obj_read_biff8_obj) : Try a new heuristic for dealing with trailing IMDATA.
10305 2000-03-23 Jody Goldberg <jgoldberg@home.com>
10307 * ms-excel-read.c (biff_xf_data_new) : Support horizontal alignment
10308 center_across_selection.
10310 * ms-excel-write.c (halign_to_excel) : Ditto.
10312 * ms-obj.c (object_anchor_to_position) : remove some debug code.
10314 2000-03-23 Jon K Hellan <hellan@acm.org>
10316 * boot.c (excel_load): No longer add ".gnumeric" to filename. Set
10317 save info. Tag filename as MANUAL. We could make it AUTO soon.
10318 (excel_init): Tag saver as MANUAL.
10320 2000-03-22 Jody Goldberg <jgoldberg@home.com>
10322 * ms-excel-read.c (biff_xf_data_new) : Add some warnings for
10323 unsupported rotated text.
10325 2000-03-21 Jody Goldberg <jgoldberg@home.com>
10327 * ms-excel-util.c (init_xl_font_widths) : Add Geneva.
10329 * ms-excel-read.c (biff_xf_data_new) : Have the horizontal alignment
10330 type center_across_selection default to 'center' instead.
10331 (ms_excel_read_workbook) : Be more explicit about NOT supporting 1904
10334 2000-03-14 Jody Goldberg <jgoldberg@home.com>
10336 * ms-excel-read.c (biff_xf_data_new) : Remove warning about parent
10337 styles not == 0. I finally understand what the semantics of this
10338 are. Style 0 is 'Normal' this test was doing nothing accept
10339 discriminating agains 'Comma' and its friends. We need to extend
10340 the gnumeric notion of styles to include the limited form of
10341 inheritance embodied by XL.
10343 * ms-obj.c (object_anchor_to_position) : Be VERY careful.
10345 2000-03-13 Jody Goldberg <jgoldberg@home.com>
10347 * ms-obj.c (object_anchor_to_position) : Be more careful handling out
10348 of bounds conditions. Part of bug 7312.
10350 2000-03-09 Jody Goldberg <jgoldberg@home.com>
10352 * ms-excel-read.c (ms_excel_get_style_from_xf) : Tweak colour
10353 selection for contrasting colours. FIXME : We really need to find
10354 something more definative than this guess work.
10356 * ms-excel-read.c (ms_excel_read_selection) : Do not reset the
10357 edit cursor. It needs more work to be correct.
10359 2000-03-09 Jody Goldberg <jgoldberg@home.com>
10361 * ms-excel-util.[ch] (lookup_font_base_char_width) : Delete.
10363 * ms-excel-read.c (ms_excel_get_style_from_xf) : Adjust bottom and
10364 right borders to be top & left of neighbouring cells.
10365 (ms_excel_set_xf) : Ditto.
10366 (ms_excel_set_xf_segment) : Ditto.
10368 2000-03-05 Jon K Hellan <hellan@acm.org>
10370 * ms-excel-write.c (lookup_base_char_width_for_write): Rename to
10371 init_base_char_width_for_write. Init width and default width.
10372 (get_base_char_width): Add is_default parameter.
10373 (write_colinfo, write_default_col_width): Use it.
10375 * ms-excel-write.h (struct _ExcelSheet): Add base_char_width_default.
10377 * ms-excel-write.c (excel_font_to_string, excel_font_new,
10378 excel_font_hash, excel_font_equal, write_font): Handle underline,
10381 * ms-excel-write.h (struct _ExcelFont): Ditto
10383 2000-03-05 Jody Goldberg <jgoldberg@home.com>
10385 * ms-excel-read.c (ms_excel_get_style_from_xf) : enable strikethrough.
10387 2000-03-01 Jody Goldberg <jgoldberg@home.com>
10389 * ms-excel-read.c (biff_font_data_new) : Fix old typo.
10391 2000-02-29 Jody Goldberg <jgoldberg@home.com>
10393 * ms-excel-read.c (ms_excel_get_style_from_xf) : Add support for
10394 importing underlines.
10396 2000-02-18 Jody Goldberg <jgoldberg@home.com>
10398 * ms-excel-read.c (ms_excel_get_style_from_xf) : Hard code 'auto'
10399 border colours to black for now. We are not guessing well.
10401 2000-02-15 Jody Goldberg <jgoldberg@home.com>
10403 * ms-obj.c (object_anchor_to_position) : Improve debug output.
10405 * ms-excel-read.c (ms_excel_sheet_new) : Add new member base_char_width_default.
10406 (print_font_mapping_debug_info) : Delete.
10407 (lookup_base_char_width_for_read) : Rename init_base_char_width_for_read,
10408 and use lookup_font_base_char_width_new to init the width and the
10410 (get_base_char_width) : Adjust.
10411 (ms_excel_read_colinfo) : Width is different from default_width... Idiots!
10412 (ms_excel_read_default_col_width) : Ditto.
10414 * ms-excel-util.c : Add lookup tables for various standard widths of
10415 MS fonts. Use a quick and dirty linear scaling to calculate the
10416 widths of arbitrary font sizes.
10418 2000-02-14 Jody Goldberg <jgoldberg@home.com>
10420 * ms-excel-read.c (ms_excel_read_row) : heights are specified
10421 including margins and 1 grid line. Do not use get_units_net_of_margins.
10422 (get_units_net_of_margins) : Delete.
10424 2000-02-13 Jody Goldberg <jgoldberg@home.com>
10426 * ms-excel-read.c (ms_excel_read_workbook) : Adjust WINDOW size
10427 measurements from points to pixels.
10429 2000-02-12 Jody Goldberg <jgoldberg@home.com>
10431 * ms-excel-read.c (ms_excel_read_default_col_width) : Margins are
10433 (ms_excel_read_default_row_height) : Ditto.
10434 (ms_excel_read_colinfo) : Ditto.
10435 (ms_excel_read_row) : Adjust to changes in margins and step closer to
10436 handling think margins.
10438 * ms-excel-write.c (write_rowinfo) : Use the size_pts member directly.
10439 (write_colinfos) : ditto.
10441 * ms-obj.c (object_anchor_to_position) : Adjust to name and semantic
10442 changes of size_pixels. Denominate things in pixels.
10444 2000-02-06 Michael Meeks <michael@helixcode.com>
10446 * ms-excel-read.c (ms_excel_read_workbook): Move failed sheet removal
10447 here + add pristine culling instead of 0 byte in sheet header, may
10448 introduce bugs but will help fix sheet_is_pristine. Fix potential
10449 sheet object leak. (ms_excel_read_sheet): do not detach in error case.
10451 2000-01-30 Jon K Hellan <hellan@acm.org>
10453 * ms-excel-write.c (write_sheet): Correct the max no. of rows check.
10455 2000-01-29 Jody Goldberg <jgoldberg@home.com>
10457 * ms-excel-read.c (ms_excel_read_workbook) : Correct the error
10460 2000-01-29 Jon K Hellan <hellan@acm.org>
10464 The purpose of the changeset is twofold:
10466 1. Use CommandContexts for error reporting for file read/save.
10467 2. This allows us to let FileFormatOpen return 0 on success, -1 on
10468 failure, same as FileFormatSave. The convention to return NULL
10469 on success was highly ideosyncratic.
10471 * excel.h (ms_excel_read_workbook, ms_excel_write_workbook) Add
10472 CommandContext. Return int.
10474 * ms-excel-read.c (ms_excel_read_workbook): Add
10475 CommandContext. Return 0 on success, -1 on failure. Use
10476 gnumeric_error_read to display messages.
10478 * ms-excel-write.c (write_sheet): Check max no. of rows for the
10480 (new_sheet): Return the ExcelSheet. Let caller add it to
10482 (pre_pass): Add CommandContext.
10483 (free_workbook): New function, previously in write_workbook.
10484 (write_workbook): Change parameter from Workbook to ExcelWorkbook.
10485 Move deallocation to free_workbook.
10486 (check_sheet): New function. Check if we are able to save the
10488 (ms_excel_check_write): New function. Check if we are able to save
10489 to the file. Do initialization previously in
10490 ms_excel_write_workbook.
10491 (ms_excel_write_workbook): Add CommandContext. Add state. Change
10492 wb from Workbook to ExcelWorkbook. Use gnumeric_error_save to
10493 report problems. Return 0 on success, -1 on failure.
10495 * ms-excel-biff.h: Define enum for max no. of rows. Fix typo.
10497 * boot.c (excel_load, excel_save, excel_save_98, excel_save_95):
10498 Add CommandContext.
10499 (excel_load): Return 0 on success, -1 on failure.
10500 Use gnumeric_error_read to display messages. Remove "Opening .. "
10502 (excel_probe_write): New function. Check if we are able to save to
10504 (excel_save): Use gnumeric_error_save to display messages.
10505 Return 0 on success, -1 on failure.
10507 2000-01-18 Jody Goldberg <jgoldberg@home.com>
10509 * ms-formula-read.c (ms_excel_parse_formula) : Add OPER_UNARY_PLUS.
10511 * ms-formula-write.c (write_node) : Ditto.
10513 * ms-excel-read.c (get_units_net_of_margins) : Return 1 when faced
10514 with < 0 sized things.
10515 (ms_excel_read_row) : Support hidden rows.
10516 (ms_excel_read_colinfo) : Support hidden columns.
10518 2000-01-17 Frank Chiulli <fc-linux@home.com>
10520 * ms-summary.c (ms_summary_write): Turn on writing out the
10521 DocumentSummaryInformation stream.
10523 2000-01-17 Jody Goldberg <jgoldberg@home.com>
10525 * ms-excel-write.c : Remove unused xml includes.
10527 2000-01-17 Jody Goldberg <jgoldberg@home.com>
10529 * ms-chart.c (ms_excel_chart) : Apparently BIFF_NUMBER records show up
10532 * ms-excel-read.c (ms_excel_read_workbook) : Improve sizing of
10533 window, Use the support for some of the new preferences
10534 hiding scrollbars, and notebooktabs.
10536 * ms-excel-read.c (ms_excel_read_sheet) : Use support for
10537 hidden grid lines, hidden formulas, hidden zeros, hidden
10538 row/col headers. Use the information on where the upper left
10541 2000-01-14 Jon K Hellan <hellan@acm.org>
10543 * ms-excel-write.h: (ExcelWorkbook): Make
10544 sheet->cells an array of arrays.
10546 * ms-excel-write.c (excel_cell_get): Make inline.
10547 (excel_cell_get, new_sheet, new_sheet, free_sheet): Make
10548 sheet->cells an array of arrays.
10550 2000-01-13 Jody Goldberg <jgoldberg@home.com>
10552 * ms-excel-read.c (ms_excel_read_workbook) : Move magic scale hack
10553 into a single #define. Use workbook_view_set_size.
10555 2000-01-10 Jody Goldberg <jgoldberg@home.com>
10557 * ms-obj.c (ms_read_TXO) : Return the string generated rather than
10559 (ms_read_OBJ) : Don't warn about comments, they are not sheet objects
10560 which breaks the whole function of this routine but they are not
10561 unexpected. If we can figur eout how to store the string associated
10562 with the TXO nearby with this object and get that cleaned up on
10563 time and referencable by obj-ID then we can fix comment import.
10565 * ms-excel-read.c (ms_excel_read_sheet) : Improve handling for
10566 WINDOW1 and warn about more unsupported cases. Tweak zoom factor
10567 by 1.4 to be less ugly. (ICK ! HACK!)
10568 (ms_excel_read_workbook) : WINDOW2 is a sheet level
10569 descriptor. Add handle for WINDOW1.
10570 (ms_excel_sheet_new) : ICK! hard code a scale
10571 factor of 1.4 to get things to be less ugly.
10573 2000-01-05 Jon K Hellan <hellan@acm.org>
10575 * ms-excel-write.c (write_colinfos): Fix off by one error.
10576 (write_sheet_bools): Ditto.
10578 2000-01-03 Jody Goldberg <jgoldberg@home.com>
10580 * ms-excel-read.c (ms_excel_read_sheet) : extend support for WINDOW2.
10581 (ms_excel_read_selection) : Remove hack to set visible location.
10583 1999-12-30 Jody Goldberg <jgoldberg@home.com>
10585 * ms-excel-read.c (ms_excel_workbook_new) : Return error messages.
10586 (ms_excel_read_workbook) : If a file is password protected do NOT
10587 attempt to read it.
10589 * boot.c (excel_load) : return error messages.
10591 1999-12-23 Jon K Hellan <hellan@acm.org>
10593 * ms-excel-write.c (write_bits): Use "The Free Software
10594 Foundation" as name.
10596 * excel.h (WRITEACCESS_LEN): Define it.
10598 1999-12-21 Jon K Hellan <hellan@acm.org>
10600 * ms-excel-write.c (write_index, write_db_cell, write_block,
10601 write_sheet): Write row info records in blocks of 32. Excel was
10602 unable to read files we made if they were over 517 rows. Limit is
10603 now pushed to 16544.
10604 (write_index): Assertion no longer true - removed it. Refer to
10606 (write_db_cell): Write offsets for all rows in block in single
10607 record. Add number of rows parameter.
10608 (write_block): New function. Write a block of rows. Previously
10609 part of write_sheet, but changed for blocked row info.
10610 (write_sheet): Move inner loop to write_block.
10611 (new_sheet): Initialize sheet->cells to 0.
10613 * excel.h (ROW_BLOCK_MAX_LEN): Define.
10615 1999-12-21 Jon K Hellan <hellan@acm.org>
10617 * ms-excel-write.c (fixup_fill_colors): Fix minor bug.
10619 1999-12-17 Jon K Hellan <hellan@acm.org>
10621 * ms-excel-write.h (struct _ExcelCol ): define it
10622 (struct _ExcelSheet): Add base_char_width
10624 * ms-excel-write.c (log_put_color, palette_get_index,
10625 gather_palette, write_palette, excel_font_new, excel_font_hash,
10626 excel_font_equal, after_put_format, map_pattern_index_to_excel,
10627 halign_to_excel, valign_to_excel, fixup_fill_colors,
10628 get_xf_differences, log_xf_data, build_xf_data,
10629 write_xf_magic_record, write_value, write_formula, write_cell,
10630 write_mulblank, pre_pass): Cosmetics
10631 (write_font, write_fonts, write_format, write_formats,
10632 write_xf_record, write_xf, write_workbook): Conform to
10633 conventional parameter order
10634 (orientation_to_excel, border_type_to_excel): Make inline
10635 (write_default_row_height): New function. Write default row
10637 (lookup_base_char_width_for_write): New function. Locate font for
10638 measuring base char width, and call measuring function.
10639 (get_base_char_width): New function: Return base char width for
10641 (write_default_col_width): New function. Write default col width.
10642 (write_colinfo): New function. Write column info for a run of
10644 (write_colinfos): New function. Write column info for all columns.
10645 (write_sheet_bools): Use write_default_row_height,
10646 write_default_col_width, write_colinfos.
10647 (write_sheet_bools):
10648 (write_rowinfo): Write true row height. Add sheet to signature.
10649 (write_sheet): Add sheet to write_rowinfo call.
10650 (new_sheet): Initialize base_char_width.
10652 * ms-excel-util.h: #include <sheet.h>
10653 (EXCEL_DEFAULT_CHAR_WIDTH): Move here from ms-excel-read.h
10654 (lookup_font_base_char_width): Declare it.
10656 * ms-excel-util.c (lookup_font_base_char_width): New
10657 function. Measure "base character width" of font. Previously in
10658 lookup_base_char_width in ms-excel-read.c
10660 * ms-excel-read.c: #include ms-excel-util.h
10661 (lookup_base_char_width_for_read): Renamed from
10662 lookup_base_char_width because of similar, but different function
10663 in ms-excel-write.c. Split in two. Font locating stays here. Font
10664 measuring moved to new function lookup_font_base_char_width in
10666 (get_base_char_width): Use lookup_base_char_width_for_read.
10667 (ms_excel_read_default_row_height): Refer to Excel doc page.
10668 (ms_excel_read_default_col_width): Ditto
10670 1999-12-14 Jon K Hellan <hellan@acm.org>
10672 * ms-excel-write.h (XF_MAGIC, PALETTE_ALSO_BLACK, FILL_MAGIC,
10673 BORDER_MAGIC): define
10674 (PALETTE_WHITE, PALETTE_BLACK): Fix typo, they were switched around.
10676 * ms-excel-write.c (put_colors): Include border colors.
10677 (excel_font_new): Newline to conform to coding style.
10678 (fonts_get_font): New function. Get font, given index.
10679 (fonts_free, write_fonts): Use it.
10680 (write_font): Fix boldstyle typo.
10681 (formats_get_format): New function. Get format, given index.
10682 (formats_free, write_format): Use it.
10683 (xf_get_mstyle): New function. Get mstyle, given index.
10686 New function. Map horizontal alignment to Excel bitfield
10688 New function. Map vertical alignment to Excel bitfield.
10689 (orientation_to_excel):
10690 New function. Map text orientation to Excel bitfield.
10691 (border_type_to_excel):
10692 New function. Map border type to Excel bitfield.
10693 (fixup_fill_colors):
10694 New function. Kluge fill foreground and background colors.
10695 (get_xf_differences): Fill out map of differences to parent style.
10697 New function. Log XF data for a record about to be written. Pulled
10698 out of write_xf_record.
10699 (build_xf_data): New function. Build XF data for a style. Pulled
10700 out of write_xf_record, but uses BiffXFData struct. Add support
10701 for borders, alignments, wrap, rotation. Change some
10702 local variable names for consistency with import code.
10703 (write_xf_magic_record): Comment magic color value.
10704 (write_xf_record): Change signature, take BiffXFData instead of
10705 mstyle. Simplify by moving out logging and marshaling. Make more
10706 complex by writing borders, alignment, wrap, rotation.
10707 (write_xf): Use xf_get_mstyle, build_xf_data, log_xf_data.
10709 * ms-excel-util.h: Fix typo.
10711 * ms-excel-xf.h: New file for BiffXFData struct def.
10713 * ms-excel-read.c: Move BiffXFData struct def to
10714 ms-excel-xf.h. Include ms-excel-xf.h. Remove include "border.h" -
10715 ms-excel-xf.h includes it.
10716 (ms_excel_get_style_from_xf): Express some bewilderment.
10718 * ms-excel-biff.h: Define enums for horizontal alignment, vertical
10719 alignment, text orientation, difference bits
10721 1999-12-11 Frank Chiulli <fchiulli@home.com>
10723 * ms-summary.c (ms_summary_write): comment out DocumentSummary.
10725 * boot.c (excel_save): re-enable summary write.
10727 1999-12-14 Valerie A Henson <val@nmt.edu>
10729 * ms-obj.c: s/dump/ms_ole_dump/
10731 * ms-biff.c: s/dump/ms_ole_dump/
10733 * ms-formula-read.c: s/dump/ms_ole_dump/
10735 * ms-excel-read.c: s/dump/ms_ole_dump/
10737 1999-12-09 Jon K Hellan <hellan@acm.org>
10739 * ms-excel-write.c (excel_font_hash, excel_font_equal, excel_font_free):
10740 fixup pointer bits.
10742 1999-12-08 Jon K Hellan <hellan@acm.org>
10744 * ms-excel-write.c: (palette_color_to_int): New function. Convert
10745 EXCEL_PALETTE_ENTRY to guint.
10746 (style_color_to_int): New function. Convert StyleColor to guint.
10747 (log_put_color): New function. Debug log when color added to
10749 (palette_put_defaults): New function. Put Excel default colors to
10751 (palette_init): New function. Initialize palette table.
10752 (palette_free): New function. Free palette table.
10753 (palette_get_index): New function. Get color index.
10754 (put_color): New function. Add color to palette.
10755 (put_colors): New function. Add colors in MStyle to palette
10756 (gather_palette): New function. Add all colors in workbook to
10758 (write_palette): Use color info from styles. Make void.
10759 (excel_font_to_string): New function. Return string desc. of font
10760 (excel_font_new): New function. Make an ExcelFont (font + color).
10761 (excel_font_free): New function. Free an ExcelFont.
10762 (excel_font_hash): New function. Hash function for ExcelFonts.
10763 (excel_font_equal): New function. Compare ExcelFonts.
10764 (fonts_init): New function. Initialize font table
10765 (fonts_free): New function. Free font table.
10766 (fonts_get_index): New function. Get index of ExcelFont
10767 (after_put_font): New function. Debug log when font is added to
10769 (put_font): New function. Add font to table.
10770 (gather_fonts): New function. Add all fonts in workbook to table.
10771 (write_font): New function. Write a font to file. Essentially,
10772 inner loop of the old version of write_fonts.
10773 (write_fonts): Rewritten. Make void
10774 (after_put_format): New function. Debug log when format is added
10776 (formats_put_magic): New function. Add builit-in formats to table.
10777 (formats_init): New function. Initialize format table
10778 (formats_free): New function. Free format table
10779 (formats_get_index): New function. Get index of format
10780 (put_format): New function. Add a format to table
10781 (gather_formats): New function. Add all formats in workbook to
10783 (write_format): New function. Write a format to file. Essentially,
10784 inner loop of the old version of write_formats.
10785 (write_formats): Rewritten. Make void.
10786 (cell_used_map_new): New function. Make bitmap for cells in use.
10787 (cell_mark_used): New function. Mark cell in use in bitmap.
10788 (cell_is_used): New function. Return true if cell marked in use in
10790 (get_default_mstyle): New function. Get default mstyle of
10791 sheet. Placeholder function until this info is exported from
10793 (xf_init): New function. Initialize xf/mstyle table.
10794 (xf_free): Rewritten. New signature. Release allocated style data.
10795 (after_put_mstyle): New function. Debug log when MStyle added to
10797 (put_mstyle): New function. Add MStyle to table.
10798 (excel_cell_get): New function. Get ExcelCell record for cell
10800 (pre_cell): Constify key. Add cell MStyle to table. Cache some
10802 (pre_blank): New function. Add MStyle of blank cell to table.
10803 (pre_blanks): New function. Add MStyles of all blank cells in
10805 (gather_styles): New function. Add all MStyles in workbook to
10807 (map_pattern_index_to_excel): New function. Map Gnumeric pattern
10808 index to Excel ditto.
10809 (write_xf_magic_record): New function. Essentially, the old
10810 version of write_xf_record.
10811 (write_xf_record): Rewritten. Use style info from worksheet.
10812 (write_xf): Use style info from worksheet. Changed signature.
10813 (write_value): Let ms_excel_write_debug govern debug logging.
10814 (write_formula): Add xf parameter. Write true xf index
10815 (write_cell): ExcelCell parameter instead of Cell, bringing in xf.
10816 Write true xf index. Let ms_excel_write_debug govern debug
10818 (write_mulblank): Add xf_list parameter. Write true xf
10819 index. Remove #define XF_MAGIC. Add debug logging. Add
10820 ms_biff_put_commit.
10821 (write_index): Let ms_excel_write_debug govern debug logging.
10822 (write_sheet): Let ms_excel_write_debug govern debug logging.
10823 (write_sheet): Use ExcelCell instead of Cell. Pass xf or xf_list
10824 to called functions.
10825 (new_sheet): Initialize sheet->cells, sheet->cell_used_map
10826 (free_sheet): Free sheet->cells, sheet->cell_used_map
10827 (pre_pass): Rewrite. Change signature
10828 (write_workbook): Initialize font, format, palette and xf tables.
10830 (ms_excel_write_workbook): Flush debug log at end.
10832 * ms-excel-write.h: Define TwoWayIndex, ExcelFont, ExcelCell,
10833 ExcelRow. Redefined Palette, Fonts, Formats, XF. Add cells and
10834 cell_used_map to ExcelSheet. Add xf to ExcelWorkbook. Define
10835 AfterPutFunc. Declare ms_excel_write_debug. Move #defines from
10836 ms-excel-write.c. Move function declarations last.
10838 * ms-excel-util.c New file.
10839 (two_way_index_new): New function. Make TwoWayTable.
10840 (two_way_index_free): New function. Destroy TwoWayTable
10841 (two_way_index_put): New function. Put a key to TwoWayTable
10842 (two_way_index_replace): New function. Replace key for index in
10844 (two_way_index_key_to_idx): New function. Find index given key
10845 (two_way_index_idx_to_key): New function. Find key given index
10847 * ms-excel-util.h New file.
10849 * ms-excel-read.c (ms_excel_read_cell): Add \n to debug print.
10851 1999-12-06 Michael Meeks <mmeeks@gnu.org>
10853 * ms-excel-write.c (new_sheet): Update to sheet_get_extent.
10855 1999-12-01 Morten Welinder <terra@diku.dk>
10857 * ms-excel-read.c (lookup_base_char_width): Plug leaks.
10858 (biff_xf_data_destroy): Ditto.
10860 1999-11-30 Michael Meeks <mmeeks@gnu.org>
10862 * boot.c (excel_save): Disable summary info export.
10864 1999-11-30 Michael Meeks <mmeeks@gnu.org>
10866 * ms-excel-read.c: Add ms_excel_write_debug.
10868 1999-11-30 Jon K Hellan <hellan@acm.org>
10870 * ms-excel-read.c (biff_format_data_lookup): Add debug.
10871 (lookup_base_char_width): add commenting.
10872 (ms_excel_read_workbook): Add fflush.
10874 1999-11-28 Michael Meeks <mmeeks@gnu.org>
10876 * gnumeric-chart.c (gnumeric_chart_destroy): check the series
10877 is valid before freeing.
10879 1999-11-28 Michael Meeks <mmeeks@gnu.org>
10881 * ms-excel-read.c (biff_name_data_destroy): add comment.
10883 * ms-chart.c (ms_excel_chart): destroy state.chart.
10885 1999-11-26 Jody Goldberg <jgoldberg@home.com>
10887 * ms-formula-read.c (ms_excel_parse_formula) : DOH!
10888 why wait to implement the implicit intersetion in the core.
10889 We know that this will require such an intersection. So do
10890 the work here. This results in the same sheet that XL produces
10891 if you turn off the 'use labels as names' feature.
10893 1999-11-26 Jody Goldberg <jgoldberg@home.com>
10895 * ms-formula-read.c (ms_excel_parse_formula) : Add support for
10896 extended-ptg ElfColV and ElfRowV. They seem to refer to the
10897 use of an implicit vector defined by a column header.
10898 ie A1 = 'bob' A2 = 2 B2 = '=bob^2'
10899 The eptg would indicate that 'bob' in B2 refered to the column below
10900 A1. Presumably implicit intersection (not implemented yet) would
10903 1999-11-25 Jody Goldberg <jgoldberg@home.com>
10905 * ms-obj.c (object_anchor_to_position) : Use 1/1024 for pre-XL97
10906 objects. Do not scale the margins.
10908 1999-11-23 Jody Goldberg <jgoldberg@home.com>
10910 * ms-excel-read.c (biff_font_data_new) : Improve debug info.
10911 (ms_excel_get_style_from_xf) : Ditto.
10912 (ms_excel_set_xf) : Ditto.
10914 1999-11-22 Jody Goldberg <jgoldberg@home.com>
10916 * ms-excel-read.c (get_units_net_of_margins) : Don't crash when the
10917 col/row info is NULL.
10919 * ms-excel-read.c (ms_excel_get_xf) : Improve error
10920 message when faced with invalid xf index.
10922 1999-11-21 Jody Goldberg <jgoldberg@home.com>
10924 * ms-excel-read.c (ms_excel_read_selection) : Bug 3609.
10925 Make sure the current cell is visible.
10927 1999-11-19 Jon K Hellan <hellan@acm.org>
10929 * ms-excel-read.c (ms_excel_read_row): New funtion: Process a BIFF
10930 row info record. Previously in ms_excel_read_cell.
10931 (ms_excel_read_colinfo): New function: Process a BIFF column
10932 info record. Previously in ms_excel_read_cell.
10933 (ms_excel_read_cell): Move some code to ms_excel_read_row and
10934 ms_excel_read_colinfo
10935 (ms_excel_read_default_row_height): New function: Process a BIFF
10936 default row height record. Previously in ms_excel_read_sheet.
10937 (ms_excel_read_default_col_width): New function: Process a BIFF
10938 default column width record. Previously in ms_excel_read_sheet.
10939 (ms_excel_read_sheet): Move some code to
10940 ms_excel_read_default_row_height and ms_excel_read_default_col_width.
10942 1999-11-19 Michael Meeks <mmeeks@gnu.org>
10944 * boot.c (excel_probe): Check for the right streams, not just an
10947 1999-11-18 Michael Meeks <mmeeks@gnu.org>
10949 * ms-excel-read.c (lookup_base_char_width): kill double init of
10950 sample & add check.
10952 1999-11-18 Jon K Hellan <hellan@acm.org>
10954 * ms-obj.c (ms_parse_object_anchor): Just extract anchor data,
10955 don't try to convert to pixels. Extracted anchor data has type
10956 anchor_point[4], i.e. 4 pairs of col/row number and fractions of
10958 (ms_obj_realize): Now receives uninterpreted anchor data. Thus,
10959 conversion to position is delayed until the entire sheet has been
10960 read. Use object_anchor_to_position to interpret. 'anchor'
10961 variable renamed to 'position'.
10962 (object_anchor_to_position): New function: Convert an anchor to
10963 position in points. Based on data interpretation in previous
10964 version of ms_parse_object_anchor. Interpret as 256th's rather
10965 than 1024th's vertically. Base computation on actual cell
10968 * ms-obj.h (type anchor_point): define it.
10969 (type MSObj): Change type of anchor from int[4] to
10971 Update signature of ms_parse_object_anchor.
10973 * ms-excel-read.h (_ExcelSheet): Add base_char_width member.
10974 (EXCEL_DEFAULT_CHAR_WIDTH): Define it.
10975 * ms-excel-read.c (get_substitute_font):
10976 New function: Try to find a gnome font which matches the Excel font.
10977 (ms_excel_get_style_from_xf): Use get_substitute_font.
10978 (ms_excel_sheet_new): Initialize base_char_width to 0, i.e. unknown.
10979 (print_font_mapping_debug_info): Debug print in separate routine.
10980 (get_base_char_width): New function: Return base char width for
10981 column sizing. If not yet known, call lookup_base_char_width to
10983 (lookup_base_char_width): New function. See get_base_char_width.
10984 (get_row_height_units): New function. We could adjust excel
10985 heights here, but there seems to be no need.
10986 (get_units_net_of_margins): New function. Subtract margins from a
10988 (ms_excel_read_cell):
10989 case BIFF_ROW: Specify height in points, not pixels. Use
10990 get_row_height_units and get_units_net_of_margins. Call
10991 sheet_row_set_height_units rather than sheet_row_set_height.
10992 case BIFF_COLINFO: Specify width in points, not pixels. Scale
10993 column based on actual font. Use get_base_char_width and
10994 get_units_net_of_margins. Call sheet_col_set_width_units rather
10995 than sheet_col_set_width.
10996 (ms_excel_read_sheet):
10997 case BIFF_DEFAULTROWHEIGHT: Handle it. Like BIFF_ROW, but use
10998 sheet_row_set_internal_height on default style.
10999 case BIFF_DEFCOLWIDTH: Handle it. Like BIFF_COLINFO, but use
11000 sheet_col_set_internal_height on default style.
11002 * ms-escher.c (_MSEscherHeader):
11003 Change type of anchor to anchor_point[4]
11005 1999-11-18 Michael Meeks <mmeeks@gnu.org>
11007 * ms-excel-read.c (ms_excel_read_guts): rename.
11009 1999-11-17 Jody Goldberg <jgoldberg@home.com>
11011 * ms-excel-read.c (ms_excel_read_mergecells) : New function.
11012 Test parser for merged cells.
11013 (ms_excel_read_sheet) : Use it.
11014 (biff_xf_data_new) : Fix typo.
11016 * ms-excel-read.c (black_or_white_contrast) : Use new
11017 style_color{black,white} functions.
11018 (ms_excel_palette_get) : Ditto.
11019 (ms_excel_get_style_from_xf) : Ditto.
11021 1999-11-17 Michael Meeks <mmeeks@gnu.org>
11023 * ms-excel-read.c (biff_xf_data_new): Quieten.
11024 (ms_excel_palette_get): Return black on failure.
11025 (biff_get_text): quieten various warnings.
11027 1999-11-16 Jody Goldberg <jgoldberg@home.com>
11029 * ms-excel-read.c (ms_excel_read_GUTS) : New function.
11030 (ms_excel_read_sheet) : used here.
11032 1999-11-15 Jody Goldberg <jgoldberg@home.com>
11034 * ms-excel-read.c (biff_xf_data_new) : Add warnings about
11035 unsupported alignment and format features. This explains
11036 why travel.xls looks odd.
11038 1999-11-14 Frank Chiulli <fchiulli@home.com>
11040 * ms-summary.c (set_summary_item) : Process all the sections in a
11041 stream. Pass the section's PropertySetID to sum_name_to_excel
11042 rather than the stream's.
11044 1999-11-13 Jody Goldberg <jgoldberg@home.com>
11046 * ms-excel-write.c (write_sheet) : Make static.
11047 * gnumeric-chart.h (typedef) : Fix prototype.
11049 1999-11-09 Michael Meeks <mmeeks@gnu.org>
11051 * ms-excel-read.c (ms_excel_get_style_from_xf, biff_xf_map_border):
11052 Update to new STYLE_BORDER enums.
11054 1999-11-08 Jody Goldberg <jgoldberg@home.com>
11056 * ms-excel-read.c (biff_xf_data_new) : Reverse sense on diagonals.
11058 1999-11-08 Michael Meeks <mmeeks@gnu.org>
11060 * ms-summary.c (ms_summary_read): quieten.
11062 1999-11-08 Frank Chiulli <fchiulli@home.com>
11064 * ms-summary.c : Added support for DocumentSummaryInformation stream.
11065 Added new field, ps_id (Property Set ID), to mapping_t structure and
11066 initialized excel_to_gnum_mapping[] appropriately.
11068 * ms-summary.c (sum_name_to_excel) : New function to convert a summary
11069 name to a MsOleSummaryPID.
11071 * ms-summary.c (read_summary_items) : Added new argument - psid (Property
11072 Set ID). It also checks to see that the summary item is in current
11073 Summary stream as identified by psid. Added support for additional
11074 summary types (boolean, short, time).
11076 * ms-summary.c (ms_summary_read) : Reads DocumentSummaryInformation
11077 stream and summary items therein.
11079 * ms-summary.c (set_summary_item) : Processes additional summary types
11080 (boolean, int, short, time).
11082 * ms-summary.c (ms_summary_write) : Now also writes out the
11083 DocumentSummaryInformation stream.
11085 1999-11-07 Michael Meeks <mmeeks@gnu.org>
11087 * boot.c (excel_save): Invert sense of return value to reflect success.
11089 * ms-excel-read.c (biff_name_data_get_name): Move name parsing
11090 back here; we have read all the sheets this time so inter-sheet
11091 references in names work. Add 'inserted' flag (biff_name_data_new):
11092 Kill returning the name + add comment. Add stuff to TODO.
11094 1999-11-07 Jody Goldberg <jgoldberg@home.com>
11096 * ms-excel-read.c (ms_excel_set_xf) : Remove debug
11097 statement accidentally left in.
11099 1999-11-06 Jody Goldberg <jgoldberg@home.com>
11101 * ms-excel-read.c (black_or_white_contrast) : Revert to 50% as a
11102 contrast boundary (3*0x10000/2) ~= 0x1800
11104 * ms-excel-read.c (ms_excel_get_style_from_xf) : Add more debug
11105 output, and support 0 as a contrast colour.
11107 1999-11-05 Jody Goldberg <jgoldberg@home.com>
11109 * ms-excel-read.c (ms_excel_palette_get) : Split the contrast logic
11110 into a new function
11111 (black_or_white_contrast) : The new function.
11112 (ms_excel_get_style_from_xf) : Add a hand coded table to decide what
11113 colours to contrast with which while importing.
11114 (biff_xf_data_new) : Fix diagonal border import.
11115 (ms_excel_workbook_detach) : Do not multiply delete a sheet.
11117 * ms-chart.c : Adjust to changes in ms_excel_palette_get.
11119 1999-11-05 Michael Meeks <mmeeks@gnu.org>
11121 * ms-excel-read.c (ms_excel_get_style_from_xf): update.
11123 * ms-excel-write.c (write_xf_record): pass MStyle *.
11124 (xf_lookup): ditto.
11126 1999-11-03 Jody Goldberg <jgoldberg@home.com>
11128 * ms-excel-read.c (excel_map_pattern_index_from_excel) : Adjust map
11129 from XL pattern index to gnumeric pattern index to swap diag and
11132 * ms-excel-read.c (ms_excel_get_style_from_xf) : Set the pattern on
11135 1999-10-31 Michael Meeks <mmeeks@gnu.org>
11137 * ms-excel-write.c (new_sheet): Fix silly bug, rows not cols
11138 for maxy. (write_names): add version precondition.
11140 1999-10-30 Daniel Risacher <magnus@alum.mit.edu>
11142 * ms-excel-read.c (biff_get_text): tiny fix to debugging code
11143 (biff_name_data_new): actually return the new data
11144 (biff_name_data_get_name): Moved code that adds names to the
11145 workbook to ms_excel_read_name()
11146 (ms_excel_read_name): Add name definitions to workbook when
11147 definition is read, rather than when used.
11150 * ms-formula-write.c (write_ref): minor change to comply with
11151 spec for references.
11152 (write_node): Handle OPER_NAME.
11155 * ms-excel-write.c (write_names): New function. Writes name
11156 definitions. Called from write_workbook().
11159 * ms-excel-write.h: Added names to struct _ExcelWorkbook
11161 1999-10-30 Michael Meeks <mmeeks@gnu.org>
11163 * ms-excel-read.c (ms_excel_get_xf): kill const.
11164 (ms_excel_read_cell): initialize range_end.
11166 1999-10-26 Jody Goldberg <jgoldberg@home.com>
11168 * ms-formula-read.c (FormulaFuncData) : Fix typo for
11169 SERIESNUM -> SERIESSUM.
11171 1999-10-26 Jukka-Pekka Iivonen <iivonen@iki.fi>
11173 * ms-formula-read.c (formula_func_data): Fixed the number of
11174 arguments in GETPIVOTDATA to two.
11176 1999-10-24 Michael Meeks <mmeeks@gnu.org>
11178 * ms-excel-read.c (ms_excel_get_style_from_xf): add another ref.
11180 1999-10-24 Jody Goldberg <jgoldberg@home.com>
11182 * ms-excel-read.c (ms_excel_read_cell:MULBLANK) : pre-merge the XF
11183 records in a mulblank sequence. Improves load time.
11185 * ms-excel-read.c (ms_excel_get_style_from_xf) : New function
11186 split from ms_excel_set_xf. It calculates and caches the MStyle
11187 associated with an XF record.
11189 1999-10-22 Michael Meeks <mmeeks@gnu.org>
11191 * ms-excel-read.c (ms_excel_palette_get): fix leak.
11193 1999-10-18 Morten Welinder <terra@diku.dk>
11195 * ms-formula-read.c (ms_excel_parse_formula): Fix for non-shared
11196 references to cells below row 256.
11198 * ms-excel-read.c (ms_excel_sheet_insert): Set XF before sheet_cell_fetch
11199 for big speedup. (ms_excel_read_formula): ditto.
11201 1999-10-19 Michael Meeks <mmeeks@gnu.org>
11203 * ms-excel-read.c (ms_excel_get_stylefont ms_excel_set_xf): use new
11204 'helper' functions.
11206 1999-10-08 Jody Goldberg <jgoldberg@home.com>
11208 * ms-excel-read.c : More minor tweaking of adjustment ratios.
11209 We need some real documentation on this stuff.
11211 * ms-escher.c (ms_escher_get_data) : Use printf instead of
11212 g_return_if_fail. It makes it easier to debug when the messages ar
11215 * ms-obj.c (ms_read_OBJ) : Print the object type name whenever
11217 (ms_obj_read_biff8_obj) : Looks like a PictOpt record in an object
11218 signifies that the next BIFF record after the OBJ must be an IMDATA.
11219 (ms_obj_parse_anchor) : Move the zoom application back here until we
11220 split the anchors into distance and cell pairs. The old code was
11221 zooming the col/row distances twice.
11223 1999-10-08 Morten Welinder <terra@diku.dk>
11225 * ms-formula-read.c (ms_excel_parse_formula): Plug leaks.
11227 1999-10-03 Jody Goldberg <jgoldberg@home.com>
11229 * boot.c (excel_probe) : Only free the MsOle object if it
11230 was created successfully.
11232 1999-10-02 Jody Goldberg <jgoldberg@home.com>
11234 * *.c : Ensure that we include config.h first.
11236 * *.[ch] : Update and add Copyright notices.
11238 1999-09-29 Jody Goldberg <jgoldberg@home.com>
11240 * ms-excel-read.c (ms_excel_read_cell:MULBLANK) : Insert blanks in
11241 reverse order, to decrease the load on the insert routines.
11243 1999-09-26 Jody Goldberg <jgoldberg@home.com>
11245 * ms-excel-read.c (ms_excel_read_cell:COLINFO) : Seems like
11246 XL periodically sends column widths for phantom columns.
11248 1999-10-19 Morten Welinder <terra@diku.dk>
11250 * ms-formula-read.c (ms_excel_parse_formula): Get row as 16 bit value,
11251 for both AREA_3D and AREA[N].
11253 1999-10-18 Michael Meeks <mmeeks@gnu.org>
11255 * ms-excel-read.c (ms_excel_set_xf): Ref count colors correctly.
11257 1999-10-16 Michael Meeks <mmeeks@gnu.org>
11259 * ms-excel-read.c (ms_excel_set_cell_font): renamed + kill Cell.
11260 (style_optimize): kill Cell argument.
11261 (ms_excel_set_cell_xf): use style_attach + kill Cell arg. + renamed.
11262 (ms_excel_sheet_insert, ms_excel_read_formula),
11263 (ms_excel_sheet_insert_val): update removing Cell argument.
11264 (ms_excel_sheet_insert_blank): Create.
11265 (ms_excel_read_cell): use insert_blank.
11267 1999-10-15 Michael Meeks <mmeeks@gnu.org>
11269 * ms-excel-read.c (ms_excel_set_cell_xf): Update style creation +
11270 only setup border if it non NULL, fixup optimization regions.
11271 (ms_excel_set_cell_font): update + add array argument.
11272 (style_optimize): split out. (ms_excel_read_sheet): Add post-optimize.
11274 1999-10-13 Michael Meeks <mmeeks@gnu.org>
11276 * ms-excel-read.c (ms_excel_set_cell_font): New String in style.
11278 1999-10-11 Michael Meeks <mmeeks@gnu.org>
11280 * ms-excel-read.c (ms_excel_set_cell_xf): better optimize region
11283 1999-10-10 Michael Meeks <mmeeks@gnu.org>
11285 * ms-excel-read.c (ms_excel_sheet_new): Initialize range.
11286 (ms_excel_set_cell_xf): Add range optimization.
11287 (ms_bug_get_padding): Kill.
11289 * ms-excel-read.h (ExcelSheet): Add style_optimize field.
11291 1999-10-09 Jody Goldberg <jgoldberg@home.com>
11293 * ms-excel-read.c (ms_excel_set_cell_xf): Adapt to new Border support.
11295 1999-10-07 Michael Meeks <mmeeks@gnu.org>
11297 * ms-excel-read.c (ms_excel_set_cell_xf): Large hack to new style
11298 code. (biff_font_data_get_style_font): kill it.
11299 (biff_font_data_new): remove setting up fd->style_font.
11300 (biff_font_data_destroy): kill style_font bits.
11302 1999-10-03 Jody Goldberg <jgoldberg@home.com>
11304 * boot.c (excel_probe) : Only free the MsOle object if it
11305 was created successfully.
11307 1999-09-29 Jody Goldberg <jgoldberg@home.com>
11309 * ms-excel-read.c (ms_excel_read_cell:MULBLANK) : Insert blanks in
11310 reverse order, to decrease the load on the insert routines.
11312 1999-09-26 Jody Goldberg <jgoldberg@home.com>
11314 * ms-excel-read.c (ms_excel_read_cell:COLINFO) : Seems like
11315 XL periodically sends column widths for phantom columns.
11317 1999-10-19 Morten Welinder <terra@diku.dk>
11319 * ms-formula-read.c (ms_excel_parse_formula): Get row as 16 bit value,
11320 for both AREA_3D and AREA[N].
11322 1999-10-18 Michael Meeks <mmeeks@gnu.org>
11324 * ms-excel-read.c (ms_excel_set_xf): Ref count colors correctly.
11326 1999-10-16 Michael Meeks <mmeeks@gnu.org>
11328 * ms-excel-read.c (ms_excel_set_cell_font): renamed + kill Cell.
11329 (style_optimize): kill Cell argument.
11330 (ms_excel_set_cell_xf): use style_attach + kill Cell arg. + renamed.
11331 (ms_excel_sheet_insert, ms_excel_read_formula),
11332 (ms_excel_sheet_insert_val): update removing Cell argument.
11333 (ms_excel_sheet_insert_blank): Create.
11334 (ms_excel_read_cell): use insert_blank.
11336 1999-10-15 Michael Meeks <mmeeks@gnu.org>
11338 * ms-excel-read.c (ms_excel_set_cell_xf): Update style creation +
11339 only setup border if it non NULL, fixup optimization regions.
11340 (ms_excel_set_cell_font): update + add array argument.
11341 (style_optimize): split out. (ms_excel_read_sheet): Add post-optimize.
11343 1999-10-13 Michael Meeks <mmeeks@gnu.org>
11345 * ms-excel-read.c (ms_excel_set_cell_font): New String in style.
11347 1999-10-11 Michael Meeks <mmeeks@gnu.org>
11349 * ms-excel-read.c (ms_excel_set_cell_xf): better optimize region
11352 1999-10-10 Michael Meeks <mmeeks@gnu.org>
11354 * ms-excel-read.c (ms_excel_sheet_new): Initialize range.
11355 (ms_excel_set_cell_xf): Add range optimization.
11356 (ms_bug_get_padding): Kill.
11358 * ms-excel-read.h (ExcelSheet): Add style_optimize field.
11360 1999-10-09 Jody Goldberg <jgoldberg@home.com>
11362 * ms-excel-read.c (ms_excel_set_cell_xf): Adapt to new Border support.
11364 1999-10-07 Michael Meeks <mmeeks@gnu.org>
11366 * ms-excel-read.c (ms_excel_set_cell_xf): Large hack to new style
11367 code. (biff_font_data_get_style_font): kill it.
11368 (biff_font_data_new): remove setting up fd->style_font.
11369 (biff_font_data_destroy): kill style_font bits.
11371 1999-10-02 Jody Goldberg <jgoldberg@home.com>
11373 * *.c : Ensure that we include config.h first.
11375 * *.[ch] : Update and add Copyright notices.
11377 1999-09-29 Jody Goldberg <jgoldberg@home.com>
11379 * ms-excel-read.c (ms_excel_read_cell:MULBLANK) : Insert blanks in
11380 reverse order, to decrease the load on the insert routines.
11382 1999-09-26 Jody Goldberg <jgoldberg@home.com>
11384 * ms-excel-read.c (ms_excel_read_cell:COLINFO) : Seems like
11385 XL periodically sends column widths for phantom columns.
11387 1999-09-26 Michael Meeks <michael@nuclecu.unam.mx>
11389 * ms-excel-read.c (biff_name_data_new): add sheet scope.
11390 (ms_excel_read_name): Use the 2nd 'copy' of idx since its the
11391 only valid one. (biff_name_data_get_name): Create using scope.
11393 1999-09-26 Michael Meeks <michael@nuclecu.unam.mx>
11395 * Makefile.am: remove the 'ole' test program
11397 * ole.c: Removed, see module libole2 in test/test-ole.
11399 * ms-escher.c (ms_escher_read_ClientData): Remove realize & queue
11400 objects instead. Add precondition on state->sheet.
11402 1999-09-26 Michael Meeks <michael@nuclecu.unam.mx>
11404 * ole.c (ms_biff_query_next_merge, ms_biff_query_new): inline.
11406 1999-09-26 Michael Meeks <michael@nuclecu.unam.mx>
11408 * ms-excel-read.c (ms_excel_read_sheet): return FALSE for
11409 blank sheets: duh. (ms_excel_sheet_destroy): add destroy_objs.
11410 (ms_excel_read_cell): remove const on lastcol.
11412 1999-09-25 Michael Meeks <michael@nuclecu.unam.mx>
11414 * Makefile.am (ole_LDADD): use libole2.la
11416 * ms-obj.c (ms_obj_realize): remove object destruction.
11417 (ms_obj_destroy): add. (ms_excel_sheet_destroy_objs): Create.
11418 (ms_excel_sheet_realize_objs): remove list free.
11420 * ms-excel-read.c (ms_excel_read_sheet): add return type
11421 to save possible cock-up. (ms_excel_read_workbook): only
11422 realize objects if loaded OK.
11424 1999-09-25 Michael Meeks <michael@nuclecu.unam.mx>
11426 * ole.c (decompress_vba): an idea.
11427 (dump_vba_module): + hooks.
11429 1999-09-25 Michael Meeks <michael@nuclecu.unam.mx>
11431 * ole.c (decompress_vba): remove unused + clean headers.
11433 1999-09-25 Jody Goldberg <jgoldberg@home.com>
11435 * ms-excel-read.c (ms_excel_read_formula) : Improve debug
11436 printouts, to facilitate match problems cells to inputs
11438 (ms_excel_read_cell:MULBLANK) : Rework to include last_col
11439 and simplify logic on iteration. Plus more debug.
11440 (ms_excel_read_cell:RSTING) : More debug.
11441 (ms_excel_read_cell:BIFF_ROW) : Add explicit comment on
11442 unit -> pixel scaling factor.
11443 (ms_excel_read_cell:BIFF_COLINFO) : Ditto.
11445 * ms-escher.c : Continue work on OPT records.
11447 1999-09-24 Jody Goldberg <jgoldberg@home.com>
11449 * ms-excel-read.c (ms_excel_read_cell) : Add and document
11450 point -> pixel scaling for rows and columns.
11452 * ms-excel-read.c (ms_excel_palette_get) : Change my guess
11453 at what the therhold pseudo-luminosity is.
11455 1999-09-23 Michael Meeks <michael@nuclecu.unam.mx>
11457 * ole.c (enter_dir): Change logic.
11459 1999-09-22 Michael Meeks <michael@nuclecu.unam.mx>
11461 * ms-excel-write.c (write_bits): Fix TABID.
11462 (write_sheet_tail): Add current selected sheet save & V8 WINDOW2
11463 (write_bits): only save PANEs if we need to.
11464 (write_fonts): always write 5 fonts instead of 4.
11465 (write_xf): Add USESELFS.
11466 (write_sheet): 0x200|INDEX.
11467 (write_sheet_bools): remove -1 from sheet->maxy for V8.
11469 * ole.c (do_biff_raw): Remove stream position to help 'diff'.
11471 * ms-obj.c (ms_obj_realize): Turn off auto-sizing of images to
11472 tango with improved sizing capable image components.
11474 1999-09-23 Jody Goldberg <jgoldberg@home.com>
11476 * ole.c (dump_vba) : Remove the escher code. The new version needs to
11477 much context to be useable at this level.
11478 (enter_dir) : Improve error message, and fix thinko.
11480 * ms-excel-read.c (ms_excel_read_cell) : Fix importing of column
11483 * ms-obj.c (ms_obj_realize) : Create a visual placeholder for charts.
11484 Check for NULL sheet.
11486 * ms-escher.c : Lots more OPT record types.
11487 (ms_escher_read_ClientData) : Only set the blip type
11488 if we are a picture.
11490 1999-09-21 Michael Meeks <michael@nuclecu.unam.mx>
11492 * ms-obj.c (ms_parse_object_anchor): remove zoom.
11493 (ms_obj_realize): Add zoom here.
11495 * ms-excel-read.c (ms_excel_read_sheet): queue objects for later.
11496 (ms_excel_read_workbook): Realise sheet objects after read.
11497 (ms_excel_sheet_new): NULL obj queue ptr.
11499 * ms-obj.c: Add lots of missing cross references.
11500 (ms_excel_sheet_realize_objs): Implement.
11502 1999-09-21 Jody Goldberg <jgoldberg@home.com>
11504 * ms-excel-read.c (ms_excel_read_workbook) : Prefer 'workbook' to
11505 'book' so that we use Biff8 for dual stream files.
11507 * ms-obj.c : Add some #ifndef NO_DEBUG_EXCEL
11509 1999-09-20 Michael Meeks <michael@nuclecu.unam.mx>
11511 * ms-formula-write.c (formula_cache_new_std): Split.
11512 (get_formula_index): cleaned. (write_funcall): Split from
11513 (write_node): in preparation for more lovely complexity.
11514 (formula_cache_new_ename): create. (write_string): constify
11515 (write_node): Improve integer writing efficiency.
11517 * ms-excel-write.c (write_sheet_bools): Added write.
11518 (biff_put_text): constify. (new_sheet): clean debug.
11520 * ms-formula-write.c (ms_formula_build_pre_data, ms_formula_write_pre_data):
11523 * ms-excel-write.c (write_workbook): Fix _loads_ of leaks.
11524 (free_sheet): create. (pre_pass): pre-pass of the workbook's sheets.
11525 (pre_cell): Scan cells for interesting things.
11527 * excel.h: remove cache stuff.
11529 * ms-formula-write.h: move it here.
11531 * ms-formula-write.c (get_formula_index, cache_init/shutdown): work
11532 on a per sheet basis.
11534 * boot.c (excel_shutdown, excel_init): remove formula cache.
11536 * ms-excel-write.h: Add formula cache.
11538 * ms-escher.c (ms_escher_read_Blip): Add support for image-generic
11539 for jpeg, move DIB to a safe place.
11541 1999-09-20 Michael Meeks <michael@nuclecu.unam.mx>
11543 * ole.c: massive, huge, big clean to new API; ahh that feels good,
11544 add 'help' command. Break escher debug for now.
11546 * Makefile.am: re-enabled 'ole'
11548 * ms-biff.h: removed all mention of quirks.
11550 * ms-biff.c (ms_biff_query_copy): dangerous: removed, clean quirk stuff.
11552 1999-09-20 Jody Goldberg <jgoldberg@home.com>
11554 * ms-obj.[ch]: Remove a few #if ENABLE_BONOBO checks
11555 and add an include for sheet-object.h. Improve debug
11558 1999-09-20 Jukka-Pekka Iivonen <iivonen@iki.fi>
11560 * ms-obj.[ch]: Added a few #if ENABLE_BONOBO checks to make it
11563 1999-09-20 Jody Goldberg <jgoldberg@home.com>
11565 * ms-escher.c (ms_escher_read_ClientData) : Handle unknown object
11568 * ms-summary.c (set_summary_item) : Made static.
11570 * ms-obj.c (ms_obj_realize) : New function.
11571 (ms_parse_object_anchor) : Ditto.
11573 * ms-excel-read.c (ms_excel_read_workbook) : Use
11575 (ms_excel_read_sheet) : Ditto.
11576 (ms_excel_read_formula) : Make reading a string more
11577 robust, and support length = 0 as a valid string.
11579 1999-09-19 Michael Meeks <michael@nuclecu.unam.mx>
11581 * Makefile.am: comment out ole.
11583 * ms-summary.c (sum_name_to_excel): made static.
11585 * ms-excel-write.c (ms_excel_write_workbook): updated.
11587 * ms-excel-read.c (ms_excel_read_workbook): use better API.
11588 (find_workbook): removed.
11590 * ms-biff.c (ms_biff_query_copy): Updated duplicate.
11592 * boot.c (excel_probe, excel_save, excel_load): new ole api.
11594 * ms-excel-write.c (ms_excel_write_workbook): fix leak.
11596 1999-09-18 Morten Welinder <terra@diku.dk>
11598 * ole.c (cur_dir, delim): static.
11600 1999-09-18 Jody Goldberg <jgoldberg@home.com>
11602 * gnumeric-chart.c (gnumeric_chart_destroy) : implement.
11603 (gnumeric_chart_new) : Create.
11605 * ms-chart.c (ms_excel_chart) : Init the chart.
11606 (BC_R(ifmt), BC_R(ai)) : Handle invalid/missing formats.
11608 * ms-escher.c : More radical changes to support just in time
11609 merging. This seems to solve the last of the problems of which
11610 records to merge and which not. Everything seems to add up.
11611 (ms_escher_parse) : Enable by default.
11613 * ms-excel-read.c (ms_excel_workbook_destroy) : Release blips on
11616 1999-09-17 Jody Goldberg <jgoldberg@home.com>
11618 * ms-excel-read.c (ms_excel_workbook_get_sheet) : Make extern.
11620 1999-09-15 Frank Chiulli <fchiulli@home.com>
11622 * plugins/excel/boot.c (excel_save): Add a call to ms_summary_write
11623 (ms-summary.c) to write out the SummaryInformation stream.
11625 * plugins/excel/ms-summary.h: Make ms_summary_write public.
11627 * plugins/excel/ms-summary.c (ms_summary_write, sum_name_to_excel,
11628 set_summary_item): New routines to support writing the
11629 SummaryInformation stream.
11631 1999-09-17 Michael Meeks <michael@nuclecu.unam.mx>
11633 * ole.c (main, do_draw, dump_escher): dump raw data.
11635 1999-09-17 Jody Goldberg <jgoldberg@home.com>
11637 * ms-escher.c : Adjust const.
11638 (ms_escher_read_ClientAnchor) : Yahoo! figured out object placement !!
11639 (ms_escher_read_OPT) : Some cleanup of the property names.
11641 1999-09-16 Michael Meeks <michael@nuclecu.unam.mx>
11643 * ms-excel-read.c (ms_excel_read_sheet): add sheet param to _get_drawing
11644 (ms_excel_read_workbook): ditto & init 'eschers' to NULL.
11646 * ms-obj.c (ms_obj_read_text): add sheet param to _get_drawing
11648 * ms-chart.c (BC_W): ditto.
11650 * ms-escher.c (ms_escher_hack_get_drawing): Add Sheet param.
11651 (escher_record_new_blip, escher_record_destroy, ms_escher_read_Blip),
11652 (ms_escher_read_ClientAnchor): Hack up image loading.
11655 * ms-excel-read.h (_ExcelWorkbook): Add eschers list.
11657 1999-09-16 Jody Goldberg <jgoldberg@home.com>
11659 * ms-escher.c (ms_escher_read_CLSID, ms_escher_read_ColorMRU,
11660 ms_escher_read_SplitMenuColors) : Initial implementation.
11661 (ms_escher_read_Spgr) : Add names of Shapes.
11662 (ms_escher_read_ClientAnchor) : Wild guess at what the format is.
11663 (ms_escher_read_OPT) : Start naming some of the properties.
11664 (ms_escher_read_SpgrContainer) : be very careful.
11666 1999-09-15 Jody Goldberg <jgoldberg@home.com>
11668 * ms-escher.c : Massive re-org.
11669 * ms-obj.c (ms_obj_read_text_impl) : Export, and improve warning
11671 (ms_obj_read_text_impl) : The drawing will read the TXO.
11673 1999-09-12 Michael Meeks <michael@nuclecu.unam.mx>
11675 * ms-excel-write.c (write_sheet_bools): write grid-lines & margins &
11676 scads of other bits.
11678 * ms-excel-read.c (ms_excel_read_sheet): Add preconditions & load
11679 print info for grid-lines, & scads of other stuff. (margin_read): Create.
11681 1999-09-11 Michael Meeks <michael@nuclecu.unam.mx>
11683 * ms-excel-write.c (write_value): Clean unused 'head'
11684 (write_sheet_tail): Add zoom factor write.
11686 * ms-excel-read.c (ms_excel_read_sheet): Add BIFF_SETUP decode.
11687 Add Zoom factor reading, add lots of printing records & debug dumps.
11689 1999-09-08 Jody Goldberg <jgoldberg@home.com>
11691 * ms-excel-read.c : Add selection.h
11693 1999-09-08 Michael Meeks <michael@ximian.com>
11695 * README: More random thoughts to pass the time of day.
11697 1999-09-05 Jody Goldberg <jgoldberg@home.com>
11699 * ms-excel-write.c (write_value) : Always use mode 2 for ints.
11700 Add a comment to the write float code suggesting an extension to use
11701 mode 3 for doubles with only 2 digits after the decimal.
11703 1999-08-26 Michael Meeks <michael@ximian.com>
11705 * ms-escher.c (biff_to_flat_data): Added back the full conditions
11706 on merging drawing groups.
11708 * ole.c (dump_escher): Realised it is a vanillaish container.
11710 * ms-escher.c (BSE_new): Fix silly buglets.
11711 (esh_header_new, esh_header_next): prettyify;
11712 (ms_escher_read): Update length type.
11714 1999-08-25 Michael Meeks <michael@ximian.com>
11716 * ms-escher.c (esh_header_next): re-order for clarity.
11717 (BSE_new): Fiddling with bits: thanks to Caolan.
11719 1999-08-25 Jukka-Pekka Iivonen <iivonen@iki.fi>
11721 * ms-formula-read.c (formula_func_data): Fixed the number of
11722 arguments in ISPMT to four.
11724 1999-08-20 Michael Meeks <michael@ximian.com>
11726 * ms-formula-write.c (get_formula_index): Added a comment about
11727 Excel's add-in formula names.
11729 1999-08-17 Michael Meeks <michael@ximian.com>
11731 * ms-excel-read.[ch]: Remove sheet blank bit.
11733 * ms-chart.c (BC_R): Remove sheet->blank reference.
11735 1999-08-16 Jody Goldberg <jgoldberg@home.com>
11737 * ms-formula-write.c (write_node) : Add OPER_PERCENT
11738 * ms-formula-read.c (ms_excel_parse_formula) : Ditto.
11740 * ms-obj.c : Make less verbose.
11742 * ms-excel-read.c : Add several new biff-types and do more
11743 checking for 'odd-balls' with most significant byte == 1.
11744 Disable the 'blank sheet' optimization for now to avoid memory
11745 errors when a 'blank' sheet gets put into the externsheet hash.
11747 1999-08-16 Jody Goldberg <jgoldberg@home.com>
11749 * ms-formula-write.c (write_node) : correct typo.
11750 We can now write & read samples/logfuns.xls without
11751 loosing formulas or values.
11753 1999-08-15 Jody Goldberg <jgoldberg@home.com>
11755 * ms-excel-write.c (write_value) : Add support for VALUE_BOOLEAN,
11756 VALUE_ERROR, VALUE_EMPTY.
11757 (write_formula) : Ditto.
11758 * ms-formula-write.c (write_node) : Ditto.
11760 1999-08-15 Morten Welinder <terra@diku.dk>
11762 * ms-excel-read.c (ms_excel_read_workbook): First use, then
11765 1999-08-13 Michael Meeks <michael@ximian.com>
11767 * ole.c (enter_dir): Major re-work, to use paths.
11769 1999-08-12 Jody Goldberg <jgoldberg@home.com>
11771 * ms-formula-read.c (ms_excel_parse_formula) :
11772 FORMULA_PTG_PERCENT is expr/100 not expr*100.
11773 (excel_builtin_formats) : Correct typo.
11775 1999-08-09 Miguel de Icaza <miguel@gnu.org>
11777 * boot.c (excel_load): Changed calling conventions.
11779 * ms-excel-read.c (ms_excel_read_workbook): Adjusted to use the
11780 new file-open convention
11782 1999-08-08 Michael Meeks <michael@ximian.com>
11784 * ole.c (dump_vba_module): Kill leak & fix logic.
11785 (dump_vba): destroy correct directory.
11787 1999-08-06 Michael Meeks <michael@ximian.com>
11789 * ole.c (list_files): Fix so it shows directories...
11790 (get_file_handle, list_files, really_put, main): Use current_directory.
11791 (enter_dir): Implemented 'cd' command
11792 (do_copyout: Implemented splitting (really_get): from (do_get).
11793 (dump_vba): Started.
11795 1999-08-05 Michael Meeks <michael@ximian.com>
11797 * ms-summary.c (ms_summary_read): Trivial fix to kill warning.
11799 1999-08-02 Jody Goldberg <jgoldberg@home.com>
11801 * ms-obj.c (ms_obj_read_pre_biff8_obj) : New function to catch
11803 (ms_obj_read_obj) : Use ms_obj_read_pre_biff8_obj.
11805 * ms-excel-read.c (ms_excel_read_cell) : Catch use of chart
11806 records when we expect a cell.
11807 (ms_excel_read_formula) : Clarify error message.
11808 (biff_name_data_new) : Partial support for local vs global names.
11809 (biff_name_data_get_name) : Reformat to improve readability.
11810 (ms_excel_read_formula) : Ditto.
11812 * ms-chart.c (ms_excel_biff_dimensions) : Don't print unless
11815 * ms-obj.c (ms_obj_read_biff8_obj) : Don't print checkbox link
11816 unless we're debugging.
11818 1999-07-30 Jody Goldberg <jgoldberg@home.com>
11820 * ms-excel-read.c (ms_excel_read_error) : Delete
11821 (ms_excel_read_cell) : Use VALUE_ERROR, and VALUE_EMPTY.
11822 (ms_excel_read_selection) : Split out into separate function.
11824 * ms-formula-read.c (ms_excel_parse_formula,
11825 make_function) : VALUE_ERROR.
11827 1999-07-31 Morten Welinder <terra@diku.dk>
11829 * ms-excel-read.c (ms_excel_read_formula): Kill warning that is no
11831 (ms_excel_read_error): Fix leak that I introduced.
11833 1999-07-31 Michael Meeks <michael@edenproject.org>
11835 * ms-excel-read.c (biff_get_text): Hacked to deal with continues
11837 (ms_excel_read_workbook): Fixed up nasty version stuff.
11838 Commented out ms_bug_padd stuff.
11840 * ms-biff.[ch]: Commented out all padding and quirks stuff.
11842 1999-07-30 Michael Meeks <michael@edenproject.org>
11844 * ms-excel-read.c (ms_excel_read_formula): quiet wierd
11845 warning... why is this suddenly prevalent.
11847 1999-07-28 Michael Meeks <michael@edenproject.org>
11849 * ms-excel-write.c (biff_put_text): kill warnings.
11851 * ms-escher.c (read_DgContainer, SpgrContainer_new): ditto.
11853 * ms-biff.c (ms_biff_put_var_next): Remove padding, daft,
11854 (ms_biff_put_set_quirk): ditto.
11855 (ms_biff_query_peek_next): Implemented.
11858 1999-07-28 Michael Meeks <michael@edenproject.org>
11860 * ms-biff.c (no_quirks, ms_biff_query_new):
11861 New quirk support :-)
11862 (ms_bug_get_padding): Moved into ms-excel-read.c
11863 (ms_biff_put_var_next, ms_biff_merge_continues): Cleaner quirk stuff.
11864 (ms_biff_put_set_quirk): I pray this is never used =)
11865 (ms_biff_put_new, ms_biff_put_var_next): Quirky.
11867 1999-07-28 Jody Goldberg <jgoldberg@home.com>
11869 * ms-excel-read.c (ms_excel_read_cell) : Correct the error message
11872 1999-07-27 Jody Goldberg <jgoldberg@home.com>
11874 * ms-excel-read.c (ms_excel_read_supporting_wb) : Make this
11875 quieter, and add some comments explaining that we have no idea
11876 what this does or how it works.
11878 1999-07-26 Jody Goldberg <jgoldberg@home.com>
11880 * ms-chart.c (BC_R(chartline)) : More state checking.
11881 (BC_R(legend)) : Implement.
11882 (BC_R(series)) : Store series in chart objects.
11883 (ms_excel_biff_dimensions) :
11885 * ms-obj.c : Closer ties with ms-escher.c.
11887 * ms-formula-read.c : Changes for VALUE_ERROR. COUNTBLANK
11890 1999-07-26 Michael Meeks <michael@edenproject.org>
11892 * ms-summary.c (ms_summary_read): Update to ms_ole_summary_close.
11894 * ole.c (do_summary): ditto.
11896 * ms-excel-read.c (ms_excel_read_workbook): Comment out
11897 dependencies freeze/thaw.
11899 * ms-excel-write.c (write_cell): Update to new PP code.
11901 * ms-excel-read.c (find_workbook): Remove ms_ole_directory_new.
11902 (biff_name_data_get_name): Update to new PP code.
11904 * ole.c (get_file_handle, list_files): ditto.
11906 1999-07-25 Michael Meeks <michael@edenproject.org>
11908 * ms-excel-read.c (ms_excel_read_workbook): Add freeze / thaw
11911 1999-07-22 Michael Meeks <michael@edenproject.org>
11913 * ole.c: Major summary hack, cleaned old cruft & made beautiful.
11915 * ms-summary.c: Re-write to use new summary stuff in libole2.
11917 1999-07-19 Michael Meeks <michael@edenproject.org>
11919 * *.[ch]: Big macro prettify. Moved biff type handling macros into
11920 libole2/ms-ole.h, and renamed:
11921 s/BIFF_GET_GUINT/MS_OLE_GET_GUINT/g
11922 s/BIFF_SET_GUINT/MS_OLE_SET_GUINT/g
11924 1999-07-14 Michael Meeks <michael@edenproject.org>
11926 * ms-summary.c: Big clean, quiet and sensible handling of
11929 * boot.c (excel_load): Put summary call back in.
11930 Add excel_read_debug, dump summary info if > 0
11932 1999-07-13 Michael Meeks <michael@edenproject.org>
11934 * Makefile.am: Added ms-summary.[ch]
11936 * ms-summary.[ch]: Created.
11938 * boot.c (excel_load): Add summary hook.
11941 1999-07-13 Jody Goldberg <jgoldberg@home.com>
11943 * ms-excel-read.c (ms_excel_read_formula): Improve handling of failure
11944 cases to ensure that we set the values and formats even if formulas
11946 (ms_excel_formula_shared): Back out change to set value on error.
11947 (ms_excel_get_xf) : 0 and 15 may be defaults but we now have their
11948 records so no need to treat them specially. Seems to be no need
11949 to check for StyleXF vs CellXF...
11950 (ms_excel_set_cell_xf) : It may be the default but we have the XF data
11951 for it now so USE IT.
11952 (biff_name_data_new, biff_name_data_destroy) : Const add flag to
11953 log NAME vs EXTERNNAME.
11954 (biff_name_data_get_name) : Remove vile hack for 1 vs 0 based names.
11955 (ms_excel_read_name) : More version madness.
11956 (BIFF_BOF) : More detailed version info.
11958 ms-formula-read.c : ARRRGGGGHHHHH! both NAME and NAME_X are 1 based.
11959 (PTG_NAME) : Different versions, very different sizes.
11961 1999-07-13 Michael Meeks <michael@edenproject.org>
11963 * ms-excel-read.c (ms_excel_formula_shared): Fixup previous patch.
11964 (ms_excel_read_formula): Re-arrange logic.
11965 (ms_excel_set_cell_xf): Add check on 'xf' back in ...
11967 1999-07-11 Michael Meeks <michael@edenproject.org>
11969 * ms-excel-read.c (ms_excel_read_formula): Catch NULL cell->text
11970 (ms_excel_formula_shared): Check on cell... & add position to debug.
11971 (ms_excel_sheet_append_comment): Add paranoid blank text setting.
11973 1999-07-13 Jody Goldberg <jgoldberg@home.com>
11975 * ms-excel-read.c (ms_excel_read_workbook SST) : Zero sized strings use
11976 3 bytes (length + header) not 2.
11977 (ms_excel_read_cell LABELSST) : Blank strings should have value
11979 (ms_excel_parse_formula) : Support missing trailing args for
11982 * ms-formula-read.c : Keep stack by prepending and popping, rather
11984 (INDEX) : correct missing number of args.
11986 1999-07-12 Jody Goldberg <jgoldberg@home.com>
11988 * ms-excel-read.[ch] : Remove XF_style_records. All XF records are
11989 kept in one list. The fixes the indexing problems we've been
11990 having with XF records. No more XF_MAGIC_OFFSET !!
11991 (biff_name_data_get_name) : Pre-Biff5 seems to use 0 based names, post
11992 seems to be 1 base ?? Check this.
11994 * ms-formula-read.c (excel_formula_build_dummy_handler) : New function.
11995 (make_function) : split out from here and used for external and builtin
11997 (MATCH) : correct the number of arguments.
11998 (ms_excel_parse_formula) : The size of the array is stored at the end
11999 too. This fixes formulas with multiple arrays.
12001 * *.[ch] make the data streams const while reading.
12003 1999-07-12 Jody Goldberg <jgoldberg@home.com>
12005 * ms-excel-read.c (biff_name_data_get_name) : Off by one error in the
12006 range check. Improve debug notification when something bad happens.
12007 (ms_excel_get_xf) : Improve debug messages to help find the problem
12008 with xf indicies in old files.
12010 1999-07-12 Jody Goldberg <jgoldberg@home.com>
12012 * ms-chart.c : More record types.
12014 * ms-escher.c : More record types.
12016 * ms-excel-read.c (ms_excel_formula_shared) : For some reason XL
12018 - creates a shared formula
12019 - declares its use in a range
12020 - then doesn't use it in the upper left corner of the range
12021 - and refers to the formula by a different cell in the range ??
12022 (BIFF_PRECISION) : remove dump, and #if 0, for now until gnumeric
12025 1999-07-11 Jody Goldberg <jgoldberg@home.com>
12027 * ms-excel-read.c (biff_font_data_new) : don't delay creation of
12029 (ms_excel_get_font) : new function split from.
12030 (ms_excel_set_cell_font) : here.
12031 (ms_excel_get_xf) : new function split from.
12032 (ms_excel_set_cell_xf) : here.
12033 (biff_xf_data_new) : dont delay setting the style_format.
12034 (BIFF_COLINFO) : Attempt to use the XF->font->height as a proxy for
12035 charwidth ?? Anyone have a better idea ?
12037 1999-07-10 Jody Goldberg <jgoldberg@home.com>
12039 * ms-excel-read.c : BIFF_COLINFO adjust in charwidth magic number to
12040 produce column widths that match my screenshot.
12044 1999-07-10 Michael Meeks <michael@edenproject.org>
12046 * ms-formula-read.c (formula_func_data): Fix REPT = 2 args,
12049 * ms-excel-read.c (biff_get_externsheet_name): Silly but fatal bug
12050 a child could spot: written by yours truly :-)
12052 1999-07-09 Jody Goldberg <jgoldberg@home.com>
12054 * ms-obj.c : Conditionalize the debug info for text objects.
12056 1999-07-09 Miguel de Icaza <miguel@gnu.org>
12058 * ms-excel-write.c (biff_put_text): Intiialize variable.
12060 1999-07-09 Jody Goldberg <jgoldberg@home.com>
12062 * ms-chart.c (BC_R(chart)) : Correctly handle the fixed point
12064 (BC_R(ai)) : Figure the missing link association is bubbles.
12066 1999-07-09 Jody Goldberg <jgoldberg@home.com>
12068 * ms-chart.c : Actually make a series object ! After finding another
12069 Excel documentation error.
12071 * ms-obj.c : Conditionalize a debug printout.
12073 * ms-excel-read.c (biff_name_data_get_name) : Indicies are ONE based.
12075 1999-07-09 Michael Meeks <michael@edenproject.org>
12077 * ms-excel-read.c (ms_excel_read_workbook): Update this with
12078 Jody's changes, hope I didn't loose anything.
12080 * ms-biff.c (ms_biff_query_next_merge): Add test for valid
12081 length before reading.
12083 1999-07-08 Jody Goldberg <jgoldberg@home.com>
12085 * libole2/ms-ole.[ch] (dump) : constify.
12087 * ms-chart.[ch] : Prepare to handle Charts not associated with a sheet.
12088 Add more record types, improve debug messages. Begin connection
12089 to 'escher' stuff for gelframes. Stubs for real chart SERIES objects.
12090 Support for Text Objects.
12092 * ms-excel-read.c : Ditto. Include cleanups.
12093 Some debug level rationalization.
12094 (ms_excel_externname) : Combine Biff7&8 use biff_get_text.
12096 * ms-escher.[ch] : Start looking at this to parse the CHART_GELFRAME
12097 record. Clear out the massive accumulation of includes.
12099 * ms-excel-biff.h : Include cleanups.
12101 * ms-obj.[ch] : Include cleanups.
12102 Versioned the object record parsing (Currently only Biff8).
12103 (ms_obj_read_biff8_obj) : New function with more error checking.
12104 (ms_obj_read_text_object) : New function to read text objects.
12106 * ole.c : Print biff types in hex to match documentation.
12108 1999-07-09 Michael Meeks <michael@edenproject.org>
12110 * ms-excel-read.c: Major warning cleaning offensive.
12111 (ms_excel_read_workbook): Hush CodePage, DSF, EOF & clean style.
12112 (ms_excel_read_sheet): Hush WINDOW2
12113 (ms_excel_read_name): Hush spurious newlines.
12114 (ms_excel_read_supporting_wb): Hush now, be a good little function.
12116 * boot.c (excel_load): ditto.
12120 * ms-formula-read.c: s/PARSE_LIST/ParseList/
12121 Update a few stylistic bits...
12123 1999-07-08 Michael Meeks <michael@edenproject.org>
12125 * ms-excel-read.c (ms_excel_read_formula): Turn error into
12128 * ms-excel-write.c (biff_put_text): Fiddled, this needs serious
12131 * ms-excel-read.c (biff_name_data_get_name): Removed daft
12132 debug churning out.
12134 1999-07-08 Michael Meeks <michael@edenproject.org>
12136 * ms-excel-read.h (_ExcelWorkbook): Removed internal_names and
12139 * ms-excel-write.c (write_bits): Merged write_constants
12140 into this + add 'wb' parameter.
12141 (write_bits): Add TABID, DSF records.
12142 Add PROT4REV, PROT4REVPASS.
12143 (write_fonts): Changed put_text from eBiffV7, AS_PER_VER.
12145 * ms-excel-read.c (ms_excel_read_workbook): Update DFS -> DSF
12147 * biff-types.h (BIFF_DSF): Mod. from DFS.
12149 1999-07-08 Michael Meeks <michael@edenproject.org>
12151 * ms-formula-read.c (ms_excel_parse_formula): Add magic 0x17
12152 for special undocumented 'Addin Name' support.
12154 1999-07-07 Michael Meeks <michael@edenproject.org>
12156 * ms-excel-read.c (ms_excel_read_name): Fix crucial bug
12157 in name_def_data calc.
12158 (ms_excel_read_name): Removed all 'internal_names' stuff.
12160 1999-07-06 Michael Meeks <michael@edenproject.org>
12162 * ms-formula-read.c (ms_excel_parse_formula): PTG_NAME:
12163 use biff_name_data_get_name; fixups: Jody don't do this, this
12164 was all on the Names branch !
12166 * ms-excel-read.c (biff_name_data_new): Changed to take Workbook
12167 not sheet, updated to use GPtrArray.
12168 (biff_name_data_get_name): Changed to return ExprTree.
12169 (biff_name_data_destroy): Updated.
12170 (ms_excel_workbook_destroy): Remove old name hash table stuff.
12171 (ms_excel_read_name): Fix memory leak before Morten gets there :)
12172 use biff_name_data_new.
12173 (ms_excel_read_name): Allocate name.
12174 (ms_excel_get_name): Culled.
12176 * ms-excel-read.h (_ExcelWorkbook): Changed name_data to GPtrArray
12177 Changed _name_get_data to return ExprTree.
12179 * ms-formula-read.c (getRefV7): Removed ExcelSheet * parameter.
12180 cleaned function indenting.
12181 (getRefV8): Ditto. + update all references.
12182 s/cell_name(/cell_name (
12185 * ms-chart.c (BC_R): Updated parse_formula.
12187 * ms-formula-read.c (ms_excel_parse_formula): s/sheet->ver/wb->ver/
12188 updated all calls to itself to add 'wb'.
12190 * ms-excel-read.c (ms_excel_workbook_new): Setup 'ver'
12191 (ms_excel_read_workbook): Update call.
12193 * ms-excel-read.h (_ExcelWorkbook): Add 'ver' field.
12195 * ms-excel-read.c: Updated all ms_excel_parse_formulae: this
12196 isn't as balmy as it seems... we should only be using the sheet
12197 data where we need to as Names have no associated sheet.
12199 * ms-formula-read.c (ms_excel_parse_formula): Add workbook.
12201 * ms-formula-read.h (ms_excel_parse_formula): ditto.
12203 1999-07-06 Jody Goldberg <jgoldberg@home.com>
12205 * ms-excel-biff.h : remove _eBiff_wrap.
12207 * ms-excel-read.c : replace _eBiff_wrap with a boolean.
12208 (ms_excel_set_cell_xf) : Send xf->wrap.
12209 (excel_map_pattern_index_from_excel) : New function.
12210 (biff_xf_data_new) : Used here.
12212 1999-07-06 Michael Meeks <michael@edenproject.org>
12214 * ms-excel-read.c (ms_excel_read_name): Fix up Names definition
12215 offset, start to manualy merge name stuff.
12217 * ole.c: Fix summary reading code: works now, try it on a
12218 SummaryInformation stream.
12220 1999-07-05 Jody Goldberg <jgoldberg@home.com>
12222 * ms-formula-read.c : Improve debug messages a bit.
12223 (FORMULA_PTG_NAME) : initial stub implemetation.
12224 (make_function) : The dodgy special case seems to apply to functions
12225 with no arguments too.
12227 * ms-excel-read.c : Rework handling of Shared/Array formulas.
12228 They must follow a FORMULA record and come before a STRING
12229 record if the cell contains a string. The upper left corner
12230 of shared formulas, and all of arrays now format correctly.
12231 (EXTERNNAME) : Rework the handling to apply to biff7 and biff8.
12232 Still only reading the names, not conecting them for real.
12234 1999-07-05 Morten Welinder <terra@diku.dk>
12236 * ms-excel-read.c (biff_shared_formula_new): Constify. Copy data
12237 because it seems it can be freed underneath us.
12238 (biff_shared_formula_destroy): Consequently free data.
12239 (ms_excel_workbook_destroy): Free global strings.
12240 (ms_excel_palette_destroy): Fix leak.
12242 * ms-excel-read.c (ms_excel_read_supporting_wb): Warning killer.
12243 (ms_excel_read_workbook): Ditto. Fill in some code page info.
12244 (ms_excel_read_cell): Ditto.
12246 * ms-biff.c (biff_getdouble): Re-instate the "BYTE" in
12248 (biff_getdouble): Constify.
12250 1999-07-04 Michael Meeks <michael@edenproject.org>
12252 * ms-formula-read.c (formula_func_data): Fixed ISREF, ISPMT.
12254 * ms-excel-write.c (write_mulblank): Add 0x200 to BLANK
12256 * biff-types.h (BIFF_PASSWORD): convert back from
12259 * ms-formula-write.c (write_arrays): Fix memory leak.
12261 * ms-excel-read.c (ms_excel_read_formula): Add S59DE9 reference.
12263 * ms-excel-write.c (write_cell): Updated constant so formulae get
12264 evaluated correctly.
12265 (write_formula): Split out complexity, Added STRING result storage.
12267 * ms-formula-write.c (write_string): Un-dofus the string writing
12268 fix Excel crash on any formula string.
12270 * ms-excel-write.c (write_cell): Fixup always calc. & on load,
12271 don't seem to be needed.
12272 Implement class specifiers throughout where needed.
12274 * ms-formula-write.c (OP_*): Helper macros for getting the class
12277 * formula-types.h: Added class defines.
12279 * ms-excel-write.c (write_sheet_bools): Removed magic 0x44 from
12280 last byte of BIFF_COLINFO. Commented out GCW: unnecessary and
12282 (write_window1): Fiddled with the magic numbers.
12283 (write_sheet_bools): Add 0x200 to DEFAULTROWHEIGHT.
12284 (write_sheet): ditto to INDEX.
12286 1999-07-03 Michael Meeks <michael@edenproject.org>
12288 * ms-formula-write.c (ms_excel_write_formula): Added critical
12289 magic 3 padding bytes s Array's are saved properly.
12291 * ms-excel-write.c (write_sheet): Size optimisation for blank
12294 1999-07-02 Michael Meeks <michael@edenproject.org>
12296 * ole.c (syntax_error): Update help.
12297 (read_records, dump_summary, do_summary): Start of summary info
12299 (do_biff_raw): Cleaned unused var.
12300 (esh_header_contained): commented out.
12302 1999-07-02 Michael Meeks <michael@edenproject.org>
12304 * ms-formula-read.c: more stylistic fiddling on great
12305 new debug stuff from Jody...
12308 s/MsOle_SEEK_SET/MsOleSeekSet/g
12309 s/MsOle_SEEK_CUR/MsOleSeekCur/g
12310 s/ms_ole_seek_t/MsOleSeek/g
12311 s/MsOle_PPS_STORAGE/MsOlePPSStorage/g
12312 s/MsOle_PPS_STREAM/MsOlePPSStream/g
12313 s/MsOle_PPS_ROOT/MsOlePPSRoot/g
12314 s/PPS_TYPE/PPSType/g
12315 s/ms_ole_pos_t/MsOlePos/g
12317 1999-07-02 Jody Goldberg <jgoldberg@home.com>
12319 * ms-chart.c : Stylistic consistancy.
12320 s/BIFF_CHART_WRITER/ExcelChartWriter/g
12321 s/BIFF_CHART_READER/ExcelChartReader/g
12322 s/BIFF_CHART_HANDLER/ExcelChartHandler/g
12323 s/GUPPI_CHART_STATE/GuppiChartState/g
12324 s/BIFF_CHART_STATE/ExcelChartState/g
12325 s:\([^/]\)\* :\1*:g
12327 1999-07-02 Michael Meeks <michael@edenproject.org>
12329 * *.[ch]: Much stylistic fiddling:
12330 s/MS_EXCEL_SHEET/ExcelSheet/g
12331 s/MS_EXCEL_WORKBOOK/ExcelWorkbook/g
12332 s/BIFF_BOUNDSHEET_DATA/BiffBoundsheetData/g
12333 s/BIFF_SHARED_FORMULA_KEY/BiffSharedFormulaKey/g
12334 s/BIFF_SHARED_FORMULA/BiffSharedFormula/g
12335 s/MS_EXCEL_PALETTE/ExcelPalette/g
12336 s/BIFF_FONT_DATA/BiffFontData/g
12337 s/BIFF_EXTERNSHEET_DATA/BiffExternSheetData/g
12338 s/BIFF_FORMAT_DATA/BiffFormatData/g
12339 s/BIFF_QUERY/BiffQuery/g
12340 s/BIFF_PUT/BiffPut/g
12341 s/GETBYTE/GET_GUINT8/g
12342 s/GETWORD/GET_GUINT16/g
12343 s/GETDLONG/GET_GUINT64/g
12344 s/GETLONG/GET_GUINT32/g
12348 s/MS_OLE_STREAM/MsOleStream/g
12349 s/MS_OLE_DIRECTORY/MsOleDirectory/g
12352 * ms-excel-read.c: Large bout of indenting / formatting
12353 updates, sorry if you have patches ...
12355 1999-07-02 Michael Meeks <michael@edenproject.org>
12357 * boot.c: Added 'main.h' to include debug symbol.
12359 1999-07-02 Michael Meeks <michael@edenproject.org>
12361 * ms-excel-read.c (ms_excel_read_workbook): Actually
12362 insert the workbook_destroy at the end ( Huge leak ).
12364 1999-07-01 Michael Meeks <michael@edenproject.org>
12366 * ms-excel-write.c (ms_excel_write_get_externsheet_idx):
12368 (write_cell): More, verbose debug.
12369 (write_index): shut it up.
12370 (write_sheet): Fix a rather serious logic error that was
12372 (write_sheet): Added error message for huge sheets... needs
12373 more cunning indexing code.
12375 * ms-formula-write.c (write_cellref_v[78]): Fixed
12376 order of relative col/row bits. Implemented latter.
12377 (write_ref): Implemented BiffV8 support.
12378 (write_string): Added MISSARG support.
12379 (write_area): Implemented BiffV8 support, and
12382 * ms-formula-write.c (write_node): Split out
12383 (write_ref): attempted to implement inter-sheet
12386 * ms-excel-write.c (ms_excel_write_get_sheet_idx):
12389 1999-07-01 Morten Welinder <terra@diku.dk>
12391 * boot.c: Clean out an incredible accumulation of #includes.
12393 1999-07-01 Jody Goldberg <jgoldberg@home.com>
12395 * formula-types.h : Add some missing ptg types.
12397 * ms-excel-read.c : ms_excel_read_debug, ms_excel_formula_debug,
12398 ms_excel_color_debug, ms_excel_chart_debug. Declare and use these
12399 to allow command line control so that we can ask remote users for
12401 (excel_builtin_formats) : Correct some typos.
12402 (ms_excel_read_formula) : Document errors in Excel SDK.
12403 (ms_excel_get_name) : Handle workbook local names. (stub)
12404 (ms_excel_read_name) : re-enable with name lookup. not connected yet.
12406 * ms-excel-read.h : Add internal_names to workbook.
12407 (ms_excel_get_name) : declare.
12409 * ms-formula-read.c : switch to new debug scheme.
12410 More verbose warnings for errors so we dont ignore them.
12411 (FORMULA_PTG_NAME) : Partial implementation until I have time to look
12413 (FORMULA_PTG_PERCENT) : Guess at this one.
12414 Begin to handle 'extended' ptgs. Very minimal docs.
12416 1999-07-01 Michael Meeks <michael@edenproject.org>
12418 * ms-formula-write.c (ms_formula_cache_init),
12419 (ms_formula_cache_shutdown, cache_remove):
12422 * excel.h: Added formula_cache functions.
12424 * boot.h (excel_init): Added excel_shutdown
12426 * boot.c (excel_shutdown): Created.
12428 1999-07-01 Michael Meeks <michael@edenproject.org>
12430 * ms-formula-write.c (write_string): Created
12431 Implemented throughout for simplicity.
12433 * ms-excel-write.c (biff_put_text): Expanded to allow
12434 more flexible string writing.
12436 * ms-excel-write.h: Added type to specify string write.
12438 * ms-formula-write.c: All biff_put_text's write length
12440 Implemented Area PTGs
12442 * ms-excel-read.c (ms_excel_read_formula): Fix silly
12443 bug with broken formuale.
12445 * ms-biff.c (ms_biff_put_var_seekto): Added seekto
12446 API for fiddly biff types.
12448 * ms-excel-write.c (biff_put_text): Made external
12450 * ms-formeula-write.c: Created.
12452 1999-06-30 Michael Meeks <michael@edenproject.org>
12454 * ms-formula-read.c (ms_excel_parse_formula): Updated
12455 Operation handling for new structure ( array ).
12457 * ms-excel-read.c (biff_get_global_string): Removed.
12459 * ms-formula-read.c: Updated func_data, and
12460 formula_op_data for Miguel and correctness.
12461 Cleaned FORMULA_NO_PRECEDENCE.
12463 * excel.h: Move and rename FormulaFuncData.
12465 * ms-excel-write.c: Moved structures to header.
12466 Renamed all structures to make Miguel happy.
12468 * Makefile.am: Added ms-formula-write.[ch]
12470 1999-06-30 Michael Meeks <michael@edenproject.org>
12472 * ms-formula-read.h: Split out types.
12474 * formula-types.h: Imported from above.
12476 * ms-excel-write.c (write_value): Fix LABEL versioning.
12478 1999-06-30 Michael Meeks <michael@edenproject.org>
12480 * ms-excel-write.c:(write_value): Hard-coded
12481 version stuff onto NUMBER & RK.
12482 (write_xf_record): Added hack to produce
12483 identical XF table to test case.
12484 (write_rowinfo): Added 0x200
12485 (write_sheet_bools): ditto to DIMENSIONS.
12487 1999-06-30 Jody Goldberg <jgoldberg@home.com>
12489 * biff-types.h : Add some undocumented BIFF types, move INDEX,
12490 DEFAULTROWHEIGHT into lsb territory.
12492 * ms-excel-read.c (ms_excel_palette_new) : Correct debug messages.
12493 (ms_excel_palette_get) : Improve debug messages, and assume that
12494 0, 64, 127 are all contrast states.
12495 (ms_excel_set_cell_colors) : Tail merge with ms_excel_set_cell_xf,
12496 handle special case of fill-pattern=0. Now all the color sheets
12497 look OK !! Next step, patterns.
12498 (ms_excel_read_formula, ms_excel_read_boolerr) : Read current values so
12499 we can set styles. Empty strings are undocumented :-(
12500 (ms_excel_read_cell) : Handle array formulas.
12501 (ms_excel_read_sheet, ms_excel_read_workbook) : Add some unhandled
12502 record types so that we can start to enable state checking.
12503 (ms_excel_unexpected_biff) : New function for warning about state.
12504 (biff_xf_data_new) : Don't map pattern types as if they were borders.
12506 * ms-formula-read.c (make_function) : Generate a dummy handler for
12508 (unknownFunctionHandler) : A dummy handler returning NAME for unknown
12511 * ms-chart.c : Use ms_excel_unexpected_biff, handle some
12512 undocumented codes, and fill in more record types.
12514 1999-06-30 Michael Meeks <michael@edenproject.org>
12516 * ms-excel-write.c (write_sheet_bools): Updated
12518 (write_value): Fixed up write_value to handle
12519 numbers more correctly.
12520 (write_window1): fixed WINDOW1 magic numbers.
12521 (write_formats): Updated format's upper bits.
12522 (write_sheet_tail): Mended broken selection.
12524 1999-06-29 Michael Meeks <michael@edenproject.org>
12526 * ms-excel-write.c (write_sheet_tail): Updated
12527 magic selection. Added magic GCW.
12528 (write_constants): Update to help debugging; I'm
12529 not really an egotist.
12530 (write_formats): Added constants from air.
12531 (write_index): Correct to absolute index.
12532 Fix all mis-alignments of streamPos read ( lots ).
12533 (biff_bof_write): Return streamPos to help with
12536 * ole.c (do_biff_raw): Added position readout.
12538 1999-06-29 Michael Meeks <michael@edenproject.org>
12540 * ms-excel-write.c (biff_boundsheet_write_last): Use
12542 Added streamPos to Workbook for INDEX calcs.
12543 (write_index): Implemented.
12544 (write_sheet): Added write_index, and necessary bits.
12546 * ms-excel-read.c (biff_nasty_font_check_function):
12547 removed, wonderful !
12548 (biff_font_data_get_style_font): Updated & cleaned.
12550 1999-06-28 Michael Meeks <michael@edenproject.org>
12552 * ms-excel-write.c (write_formats): Write some magic
12553 standard number formats.
12555 1999-06-27 Michael Meeks <michael@edenproject.org>
12557 * ms-excel-read.c: excel_builtin_formats: Populated with
12558 NULL's in sensible places to clean maintainability.
12560 * ms-formula-read.c (ms_excel_parse_formula): Add fix for
12561 broken array formulae causing infinite loop.
12563 * ms-excel-read.c (ms_excel_read_cell): Fix Morten's fatal
12564 cock-up in value_new_string (NULL).
12566 * ms-excel-write.c (write_mulblank): Implemented.
12567 (write_sheet): Started to get DBCELL / Index type code in
12569 Cleaned nasty cell hash iterator, and closure. We now rely
12570 on the optimal handling of max_col/row_used in the sheet.
12572 * ms-excel-read.c (ms_excel_read_cell): Insert blank into
12573 the correct column, not just the same one all the time.
12575 * ms-excel-write.c (write_palette): Write default palette.
12577 * ms-excel-read.c: Externalised default palette, and format
12582 1999-06-25 Michael Meeks <michael@edenproject.org>
12584 * ms-excel-read.c: Minor fiddles setting blank flag in some new
12585 places, and types changed to gboolean.
12587 * ms-excel-read.h (_MS_EXCEL_SHEET): changed 'blank' to gboolean.
12589 1999-06-26 Miguel de Icaza <miguel@nuclecu.unam.mx>
12591 * ms-excel-read.c (biff_font_data_get_style_font): Use
12592 style_font_ref here instead of creating a new font.
12594 1999-06-22 Morten Welinder <terra@diku.dk>
12596 * ms-excel-read.c (biff_get_rk): Handle negative ints and ints/100
12597 right. Thanks to Jody for finding this.
12599 1999-06-21 Morten Welinder <terra@diku.dk>
12601 * ms-formula-read.c (make_function): Handle constant symbols.
12603 * ms-excel-read.c (ms_excel_read_cell): Insert bools as values,
12604 not constant expresssions.
12605 (biff_get_text): Make a little more quiet.
12606 (ms_excel_read_cell): Insert strings as values, not via text.
12608 * ms-excel-read.c (ms_excel_read_cell): Handle errors and boolean
12609 constants without going through text. (In particular, this gets
12610 errors right and prepares for a proper bool type.)
12612 * ms-formula-read.c (ms_excel_parse_formula): Fix error constants.
12614 1999-06-21 Michael Meeks <michael@edenproject.org>
12616 * ms-excel-read.c (ms_excel_read_cell): Remove Jody's
12617 check against NULL pointers, insert_form handles them.
12619 * ms-chart.c (BC_R): make call to dump_tree conditional
12621 * ms-excel-write.c (write_sheet_bools): Various fixes.
12622 (write_value): Change RSTRING -> LABEL
12624 * README (TODO): Updated.
12626 * ms-excel-write.c (write_externsheets): Fix for single sheet
12628 (write_formats): Write the format index code!
12629 (write_sheet_bools): Divide default col width by 16
12631 * ms-excel-write.h (ms_excel_write_workbook): Cleaned and fixed
12634 1999-06-21 Jody Goldberg <jgoldberg@home.com>
12636 * biff-types.h : Move NAME from 218 -> 18, rename Chart biff types to
12637 lower case to facilitate decls.
12638 * ms-biff.[ch] (dump_biff) : export.
12639 * ms-excel-read.[ch] : (ms_biff_bof_data_new, ms_biff_bof_data_destroy)
12641 * ms-formula-read.c : Improve handling of array formulas.
12642 * ms-obj.c : Adjust signatures, and split chart handling into its own
12644 * ole.c : Count BACKWARDS to allow BIFF types with high bytes to
12645 override those with only low bytes specified.
12646 * Makefile.am : Add ms-chart.
12647 * ms-chart.[ch] : New files. No real functionality. 60% complete.
12649 1999-06-17 Michael Meeks <michael@edenproject.org>
12651 * ms-formula-read.c (formula_func_data): Fixed up, should work
12654 1999-06-17 Morten Welinder <terra@diku.dk>
12656 * ms-formula-read.c (make_function): Yet another leak fix.
12658 * ms-formula-read.c (expr_tree_unary): Obsolete. Use
12659 expr_tree_new_unary instead.
12660 (expr_tree_cellref): Obsolete. Use expr_tree_new_var instead.
12661 (expr_tree_value): Obsolete. Use expr_tree_new_constant instead.
12662 (expr_tree_string): Simplify.
12663 (ms_excel_parse_formula): Use expr_tree_string. Use
12664 expr_tree_new_binary.
12665 (make_function): Use expr_tree_new_funcall. Fix leak.
12667 * ms-excel-read.c (ms_excel_read_name): Don't print null pointers.
12668 (ms_excel_read_workbook): Ditto.
12670 1999-06-17 Jukka-Pekka Iivonen <iivonen@iki.fi>
12672 * ms-formula-read.c (formula_func_data): LOG, ROMAN, TRUNC, and
12673 BETADIST made var args.
12675 1999-06-17 Michael Meeks <michael@edenproject.org>
12677 * ms-formula-read.c (make_function): Added debug.
12678 (formula_func_data): Expand comments.
12680 1999-06-17 Jody Goldberg <jgoldberg@home.com>
12682 * ms-formula-read.c (formula_func_data): Fixed some
12685 1999-06-16 Jukka-Pekka Iivonen <iivonen@iki.fi>
12687 * ms-formula-read.c (formula_func_data): SUMIF made var args.
12689 1999-06-15 Morten Welinder <terra@diku.dk>
12691 * ms-formula-read.c (ms_excel_parse_formula): Handle bools. Plug
12693 (make_function): Plug leak.
12695 * ms-excel-read.c (biff_font_data_get_style_font): Supply correct
12696 size when initialising.
12697 (biff_nasty_font_check_function): Revert last change. Extra
12700 1999-06-15 Jody Goldberg <jgoldberg@home.com>
12702 * ms-formula-read.c (formula_func_data): Repopulate using xlcall.h and
12703 reading the docs for each function to deduce the number of args.
12705 1999-06-14 Morten Welinder <terra@diku.dk>
12707 * ms-excel-read.c (biff_nasty_font_check_function): Load fontset,
12709 (biff_font_data_get_style_font): Make sure size constraints don't
12712 1999-06-15 Michael Meeks <michael@edenproject.org>
12714 * ms-excel-read.c (biff_font_data_get_style_font): Add check
12715 for NULL font name; return default font.
12717 1999-06-13 Jukka-Pekka Iivonen <iivonen@iki.fi>
12719 * ms-formula-read.c (formula_func_data): LOG, ROMAN, and TRUNC
12722 1999-06-13 Jukka-Pekka Iivonen <iivonen@iki.fi>
12724 * ms-formula-read.c (formula_func_data): PRODUCT, ROUNDDOWN,
12725 ROUNDUP, SUBTOTAL, SUMSQ, and SUMIF fixed. SUMX2MY2 and SUMX2PY2
12726 added but they don't work (I don't know why?).
12728 1999-06-13 Michael Meeks <michael@edenproject.org>
12730 * ms-excel-read.c (ms_excel_set_cell_colors): Remove identical color
12731 warning. This is a useful bug at the moment.
12733 1999-06-13 Jody Goldberg <jgoldberg@home.com>
12734 * ms-excel-read.c (biff_get_error_text) : Use new global error strings.
12735 (ms_excel_default_palette) : New function.
12736 (ms_excel_palette_new) : Colors are stored
12737 <DontCare><Blue><Green><Red>
12739 <DontCare><Red><Green><Blue>
12740 (ms_excel_palette_get) : Clone bytes to scale colors, begin to
12741 handle more of the 'special' color indices and guess that indices
12743 (ms_excel_palette_destroy) : Don't delete the default palette.
12744 (ms_excel_set_cell_colors) : Don't filter too many bits, support
12745 initial contrast methods.
12746 (ms_excel_set_cell_font) : Ditto.
12747 (ms_excel_set_cell_xf) : Ditto.
12748 (biff_xf_data_new) : Default palette to internal palette.
12750 1999-06-12 Michael Meeks <michael@edenproject.org>
12752 * ms-excel-read.c (ms_excel_read_supporting_wb):
12754 (ms_excel_read_name): Remove buggy names assert.
12756 1999-06-11 Jody Goldberg <jgoldberg@home.com>
12758 * biff-types.h: Add some missing types as defined in
12759 the Excel 97 Developers kit. Begin coverage of Chart specific records.
12760 Improve documentation of 'odd-ball' entries and collsions in the low
12761 order numbering scheme.
12763 * ms-obj.c (ms_obj_read_obj) : Remove unused sheet param
12764 to facilitate support for Workbook level objects. Extend known object
12766 * ms-obj.h (ms_obj_read_obj) : Ditto.
12768 * ms-obj.c (ms_chart_biff_read) : Initial experimental
12769 harness for excel charts.
12770 * ms-obj.h (ms_chart_biff_read) : Ditto.
12772 * ms-excel-read.c (biff_name_data_new) : Take Workbook instead of sheet.
12773 (ms_biff_unknown_code) : New function split out from.
12774 (ms_excel_read_workbook) : Here.
12775 (ms_excel_read_name) : New function split out from.
12776 (ms_excel_read_cell) : Here.
12777 (ms_excel_externname): New function split out from
12778 (ms_excel_read_cell) : Here.
12779 (ms_excel_read_supporting_WB) : New function. Will probably
12780 split up in the future when the filename encoding is clarified.
12781 (ms_excel_read_workbook) : Precheck for odd-balls and chart types.
12782 Add hooks for other fields.
12784 1999-06-09 Michael Meeks <michael@edenproject.org>
12786 * ms-excel-read.c (ms_excel_read_workbook): Added version
12788 (ms_excel_set_cell_colors): More debug.
12789 (biff_font_data_new): Added strange truncation of font
12791 (ms_excel_palette_get): >= 0.
12793 1999-06-08 Michael Meeks <michael@edenproject.org>
12795 * ms-formula-read.c (formula_func_data): correct DAYS360,
12798 1999-06-07 Michael Meeks <michael@edenproject.org>
12800 * ms-formula-read.c (formula_func_data): Fix ATAN2 -> PI
12802 1999-06-02 Michael Meeks <michael@edenproject.org>
12804 * ms-formula-read.c (ms_excel_parse_formula): Elucidate
12806 (ms_excel_parse_formula): clean debug.
12807 (formula_func_data): Fix COUNT and BETADIST.
12809 1999-06-01 Michael Meeks <michael@edenproject.org>
12811 * ms-excel-write.c (write_sheet_bools): Added yet more
12813 (write_sheet_tail): Implemented WINDOW2, SELECTION as
12815 (ms_excel_write_workbook): Fix silly big dimension block.
12817 * boot.c (excel_init): Put Excel 95 on by default.
12819 * ms-excel-write.c (write_bits): Added WINDOW1 bit.
12820 (write_fonts): Add slight difference in duplicate fonts.
12821 (write_xf_record): Added more fields.
12823 1999-05-31 Michael Meeks <michael@edenproject.org>
12825 * ms-excel-write.c (biff_bof_write): Fixed _major_
12826 bug in BOF writing.
12827 (write_xf_record): Version fix.
12828 (write_bits): Lots of silly little records.
12829 (write_workbook): Write bits.
12830 (write_sheet_bools): Added lots of flags.
12831 (write_sheet): Added sheet_bools.
12833 * boot.c (excel_init): Changed 98->97 in text.
12835 * ms-excel-write.c (write_workbook): Fix serious list
12836 bug freeing list then using it !
12838 1999-05-30 Michael Meeks <michael@edenproject.org>
12840 * ms-excel-write.c: Changed to biff_put_commit
12842 (write_fonts): Added more magic numbers.
12844 * ms-biff.c (ms_biff_put_commit): Added, and made
12845 other commits static.
12847 * ms-excel-write.c: Indenting fixes.
12848 (write_constants): CODEPAGE support.
12849 (write_workbook): Added missing write_xf call.
12851 1999-05-30 Nick Lamb <njl98r@ecs.soton.ac.uk>
12853 * ms-formula-read.c (getRefV8, getRefV7): Fix shared
12854 formulae absolute references.
12856 1999-05-28 Michael Meeks <michael@ximian.com>
12858 * ms-excel-write.c: Minimal Pallete / XF writing.
12859 Basic font writing.
12860 (biff_put_text): Horrendous bug fixed.
12861 (write_magic_interface): Magic...
12863 1999-05-26 Michael Meeks <michael@ximian.com>
12865 * biff-types.h: Fleshed out defines, now the 'compatible'
12866 staroffice file is dumped nicely.
12868 * ole.c (read_types): Added fudge in case files are nearby.
12870 * ms-excel-write.c (ms_excel_write_workbook): Force Big
12872 (write_value): Set vesion on biff_put_text for RSTRING to V7.
12874 1999-05-24 Michael Meeks <michael@ximian.com>
12876 * ole.c (main): Added 'debug' option to dump allocation.
12878 1999-05-21 Nick Lamb <njl98r@ecs.soton.ac.uk>
12880 * ms-formula-read.c: Lots of new formulae translations.
12882 1999-05-20 Michael Meeks <michael@ximian.com>
12884 * ole.c (main): Change ole_new to ole_open.
12885 (list_files): Added assertion.
12887 * boot.c (excel_load): Same.
12889 1999-05-19 Michael Meeks <michael@ximian.com>
12891 * ole.c (main): Add New OLE file creation support.
12893 * ms-excel-read.c (ms_excel_set_cell_xf): Cleaned silly
12896 1999-05-19 Jukka-Pekka Iivonen <iivonen@iki.fi>
12898 * ms-formula-read.c (formula_func_data): LOGNORMDIST and NORMSDIST
12901 1999-05-17 Michael Meeks <michael@ximian.com>
12903 * ms-formula-read.c (formula_func_data): Function data from
12906 * ms-biff.h: Add biff_setdouble prototype.
12908 * ms-excel-read.c: Updated commenting.
12910 * ms-biff.c (ms_bug_get_padding): Quietened.
12911 Implemented 'tell' throught
12912 (ms_biff_put_var_commit): Fixed seeking over end.
12914 1999-05-16 Michael Meeks <michael@ximian.com>
12916 * ms-excel-write.c (biff_put_text): Fix silly assertion.
12918 * ms-excel-read.c: Added debug to reading side,
12919 Cleaned conditional debug to use #defines
12921 * ms-excel-write.c (write_sheet): Save a number in each
12922 sheet to stop their destruction.
12924 * ms-excel-biff.h: Added helper set row,col,xf macros.
12926 * ms-biff.c (ms_biff_put_var_commit): Fixed.
12927 Added streamPos setting on commit.
12929 * ms-excel-write.c: Large updates.
12931 1999-05-16 Michael Meeks <michael@ximian.com>
12933 * ms-formula-read.c (make_function): Allow fn_idx == 0
12934 add translation for RANK.
12936 1999-05-15 Michael Meeks <michael@ximian.com>
12938 * ms-excel.[ch] -> ms-excel-read.[ch],
12940 * ms-formula.[ch] -> ms-formual-read.[ch]
12942 * All files incldes updated to obey above.
12944 * ms-biff.c (ms_biff_put_new): Implemented,
12945 (ms_biff_put_destroy): Implemented.
12946 Various other functions updated / fixed.
12948 * ms-excel-write.c (ms_excel_write_workbook): Change stream name
12949 depending on the version.
12950 Close streams / directory entries correctly.
12951 (write_workbook): Created.
12953 1999-05-15 Michael Meeks <michael@ximian.com>
12955 * Makefile.am: stop 'ole' being installed.
12957 1999-05-15 Michael Meeks <michael@ximian.com>
12959 * ms-formula.c (ms_excel_parse_formula): Cleaned debug.
12961 * boot.c (excel_init): Added write hooks.
12962 (excel_save_95, excel_save_98, excel_save): Created.
12964 1999-05-14 Michael Meeks <michael@ximian.com>
12966 * ms-formula.c (ms_excel_parse_formula): Finaly got the ARRAY
12967 docs sorted, deciphered inconsistancies etc.
12969 1999-05-14 Michael Meeks <michael@ximian.com>
12971 * ms-formula.c (ms_excel_parse_formula): Implemented V7. 3D refs
12972 and 3D Area references.
12973 (make_inter_sheet_ref_v7): Created to deal with V7 references.
12975 * ole.c (really_put): Changed to ms_ole_get_root.
12977 * ms-excel-biff.h: moved biff_version to 'excel.h'.
12979 * *.c: Re-ordered includes.
12981 * ms-excel-write.c (ms_excel_write_workbook): Fleshed out.
12983 * ms-biff.c (biff_put*): Fleshed out.
12985 * ms-biff.h (BIFF_SET_GUINT*): Added BIFF setting macros.
12987 1999-05-13 Michael Meeks <michael@ximian.com>
12989 * ms-formula.c (ms_excel_parse_formula): Updated Array support.
12991 * ms-excel.c (ms_excel_set_cell_colors): Kills colors where
12992 backgnd & foregnd are same, needs pattern stuff to work
12993 before it can be fixed.
12994 (ms_excel_palette_get): Sorted special idx=64 color & added
12997 1999-05-13 Michael Meeks <michael@ximian.com>
12999 * ms-biff.h (ms_biff_query_next): Macrofied.
13001 * ms-biff.c (ms_bug_get_padding): Routine to overcome
13002 nastiness in MS' flawed implementation of CONTINUE records.
13003 (ms_biff_query_next_merge, ms_biff_merge_continues),
13004 (ms_biff_query_unmerge): Add padding corrective.
13006 1999-05-12 Michael Meeks <michael@ximian.com>
13008 * ms-biff.h: Major overhaul, added some fields to be implemented.
13009 Added stubs for new BIFF write-side.
13011 * ms-biff.c (biff_setdouble): Implemented.
13013 * ms-excel.c (ms_excel_read_cell): BIFF_NUMBER: Removed last
13014 vestige of nasty number->text->number sillyness.
13016 * Makefile.am (libexcel_a_SOURCES): Added excel.h,
13017 ms-excel-write.[ch].
13019 * boot.c (excel_load): Updated name & headers.
13021 * ms-excel.c (ms_excel_write_workbook): Stubbed.
13023 * ms-excel.h: Split out excel specifics into smaller header.
13024 Renamed functions to remove nasty mixed case.
13026 1999-05-12 Michael Meeks <michael@ximian.com>
13028 * ole.c (main): Add check on ptr to fix NULL pointers getting
13030 (do_copyin): Added mass-copy in/out function.
13032 1999-05-10 Michael Meeks <michael@ximian.com>
13034 * ms-excel.c (ms_excel_read_sheet): Added new
13035 workbook_focus_sheet stuff.
13037 1999-05-10 Nuno Ferreira <nmrf@rnl.ist.utl.pt>
13039 * Makefile.am (INCLUDES): Use -I$(srcdir)/libole2 instead of
13040 -Ilibole2 to allow srcdir!=builddir.
13042 1999-05-09 Michael Meeks <michael@ximian.com>
13044 * ms-formula.c (make_function): More useful debug.
13045 Added Database function translation.
13047 1999-05-08 Michael Meeks <michael@ximian.com>
13049 * ole.c (do_get, do_put): Sill fread/write no brainer.
13050 (main): Less verbose.
13052 * README: Updated to list more useful options.
13054 1999-05-08 Michael Meeks <michael@ximian.com>
13056 * ms-biff.c (ms_biff_query_copy): Updated to use new
13057 global ms_ole_stream_copy.
13059 * Makefile.am: Split out 'ole' program, added libole2
13060 subdir. Added ms-biff.c.
13062 * libole2/ Created, moved ole.c, ms-ole.[ch] there.
13064 1999-05-08 Michael Meeks <michael@ximian.com>
13066 * ole.c (main): Large re-structure, split out into smaller
13069 * ms-formula.c (ms_excel_parse_formula): Hack at ARRAY
13072 * ms-excel.c (ms_excel_sheet_set_comment): Fix for setting
13073 comments on blank cells; was fatal.
13075 1999-05-07 Michael Meeks <michael@ximian.com>
13077 * ms-formula.c (ms_excel_parse_formula): Fixed horrible bug
13078 in PTG_ATTR, not stopping on duff attr.
13080 * ms-excel.c (ms_excel_read_cell): Cleans to ARRAY_FORMULA.
13082 1999-05-06 Michael Meeks <michael@ximian.com>
13084 * ms-ole.c (ms_biff_query_new, ms_biff_merge_continues)
13085 Better merge support.
13087 * ms-biff.h (_BIFF_QUERY): Added merge count
13089 1999-05-06 Michael Meeks <michael@ximian.com>
13091 * ms-excel.c (ms_excelReadWorkbook): Added freeze /
13092 thaw redraws for speed.
13094 * ms-escher.c (OPT_new): Expanded.
13095 (BStoreContainer_destroy): Added debug.
13097 * ole.c: Updated functions from ms-escher.c
13098 (main): Correctly skip over previously merged stuff.
13100 1999-05-05 Michael Meeks <michael@ximian.com>
13102 * ms-formula.c (parse_list_push_raw): Cleaned debug.
13103 (parse_list_push): Added (different) debug.
13104 (formula_func_data): Fixed comments.
13105 (duplicate_formula): Removed.
13107 1999-05-05 Michael Meeks <michael@ximian.com>
13109 * ms-excel.c (ms_excel_read_cell): Updated debug.
13110 (ms_excel_sheet_insert_val): Fixed prototype.
13112 * ms-formula.c (expr_tree_unary): Added helper fn.
13113 (ms_excel_parse_formula): Added +/- unary op. loading.
13114 Remove redundant guff from formula_op_data.
13116 * ms-formula.h: Removed FORMULA_ARRAY_DATA: redundant.
13117 Added PTG_U_PLUS, PTG_U_MINUS.
13119 1999-05-04 Morten Welinder <terra@diku.dk>
13121 * ms-excel.c (ms_excel_workbook_new): Fix argument list.
13123 1999-05-02 Michael Meeks <michael@ximian.com>
13125 * ms-excel.c (biff_get_externsheet_name): Converted to return
13127 (ms_excel_sheet_shared_formula): Returns ExprTree.
13128 (biff_boundsheet_data_new): Added EXCEL_SHEET * to BOUNDSHEET_DATA
13129 this really needs rationalising !
13130 Fixed all things that use ms_formula stuff...
13132 * ms-formula.c: The most comprehensive re-write of the entire
13133 formula parsing structure. 80% + of code changed. Now smaller,
13134 cleaner, meaner, leaner ... and featuring all your favorite bugs.
13136 1999-05-02 Michael Meeks <michael@ximian.com>
13138 * ms-excel.c (biff_xf_data_destroy): Changed prototype.
13139 (ms_excel_workbook_destroy, ms_excel_workbook_new),
13140 (ms_excel_set_cell_xf, biff_xf_data_new):
13141 Updated XF to GPtrArray, this saves a hash lookup per cell.
13142 (ms_excel_workbook_new): excel_sheets -> GPtrArray
13143 (ms_excel_workbook_attach): Drasticaly simplified
13144 (ms_excel_sheet_set_index): Removed.
13146 * ms-excel.h (_MS_EXCEL_WORKBOOK): Changed XF hashes
13147 to PtrArray's for speed & elegance.
13149 1999-05-02 Michael Meeks <michael@ximian.com>
13151 * ms-excel.c (ms_excel_read_sheet): Add check before
13152 ms_excel_sheet_destroy.
13153 (ms_excel_read_sheet): Cleaned debug, and made it nicer.
13154 (ms_excel_workbook_detach): Fixed semantics of workbook_detach
13155 and plug large memory leak.
13157 1999-05-02 Michael Meeks <michael@ximian.com>
13159 * ms-formula.c (ms_excel_parse_formula): Removed annoying
13160 debug killing performance.
13162 * ms-excel.c (ms_excel_sheet_insert_val): Created.
13163 (biff_get_rk): Removed impossible clause.
13164 Returns a Value now for speed; also increases accuracy.
13165 (ms_excel_read_cell): BIFF_RK, BIFF_MULRK: Removed nasty
13166 buffer and ugly printf.
13167 (ms_excel_sheet_insert): Made static, & removed from .h
13169 1999-04-29 Miguel de Icaza <miguel@nuclecu.unam.mx>
13171 * ms-ole.c (ms_ole_new): Applied patch from Michael Meeks to allow
13172 opening of excel files in read-only mode.
13174 1999-04-29 Michael Meeks <michael@edenproject.org>
13176 * ms-ole.c (ms_ole_new): Revert to read-only mapping on failure.
13177 (MW: there has got to be a reason why we don't start that way.)
13179 1999-04-29 Morten Welinder <terra@diku.dk>
13181 * ms-excel.c (ms_excel_workbook_detach): Add new extra parameter
13182 to workbook_detach_sheet.
13184 1999-04-26 Miguel de Icaza <miguel@nuclecu.unam.mx>
13186 * ms-excel.c (ms_excel_workbook_detach): Check the return value of
13187 workbook_detach_sheet.
13188 (ms_excel_read_sheet): If detaching fails, there is a dependency.
13190 Tue Apr 20 16:34:38 1999 Morten Welinder <terra@diku.dk>
13192 * ms-obj.c (ms_obj_read_obj): Initialise type.
13194 1999-04-19 Morten Welinder <terra@diku.dk>
13196 * ms-excel.c (biff_get_rk): Fixed up mask on eIEEE.
13198 1999-04-19 Michael Meeks <michael@edenproject.org>
13200 * ms-escher.c (read_DgContainer): Removed redundant
13203 * ms-ole.c (ms_biff_merge_continues): Silly ordering
13204 bug fix. And memory leak removed.
13206 * ms-excel.c (ms_excelReadWorkbook): Silly string table
13207 length bug. Wehn we truncate, cut the length as well.
13209 * ole.c (syntax_error): Updated help.
13210 (main): [old] added 'biffraw'
13212 1999-04-19 Morten Welinder <terra@diku.dk>
13214 * ms-formula.c (ms_excel_parse_formula): Fix for
13215 strings: use quotes.
13217 * ms-excel.c (ms_excel_sheet_append_comment): Fix.
13218 (biff_font_data_get_style_font): removed assert, and
13220 (ms_excelReadWorkbook): Removed duff
13221 comments, and some debug.
13223 1999-04-19 Michael Meeks <michael@edenproject.org>
13225 * ms-biff.h (_BIFF_QUERY): Set length to guint32
13226 (BIFF_GETLONG): Added various casts.
13228 * ms-ole.c (ms_ole_read_ptr_bb, ms_ole_read_ptr_sb):
13229 Re-enabled, and fixed silly bug.
13230 (dump): the 'int' type behaves very strangely.
13232 1999-04-18 Michael Meeks <michael@edenproject.org>
13234 * ms-ole.c: Rather important fixes. How did it ever
13237 1999-04-18 Michael Meeks <michael@edenproject.org>
13239 * ms-ole.c, ms-ole.h: MASSIVE hack. invalidates
13240 pretty much all the previous ole changelog entries.
13241 (dump): Updated type.
13243 * ms-excel.c (ms_biff_bof_data_new): Removed assert.
13244 (biff_get_externsheet_name): Removed assert.
13245 (ms_excel_parse_formula): Commented out array support.
13247 1999-04-18 Michael Meeks <michael@edenproject.org>
13249 * ms-excel.c (ms_excel_workbook_new): Added flag so
13250 only reads first group & merges rest.
13252 * ms-escher.c (biff_to_flat_data): Improved merge
13255 1999-04-18 Michael Meeks <michael@edenproject.org>
13257 * ms-escher.c (bse_type_to_name): Created.
13258 (bse_type_to_name): Created.
13259 (BSE_new): Updated.
13260 (esh_header_contained): Moved duplicated code
13261 into this and added check.
13262 (esh_header_next): Added debug.
13263 (write_file): Writes a pixmap to disk.
13265 1999-04-15 Michael Meeks <michael@edenproject.org>
13267 * ms-excel.c (ms_excelReadWorkbook): Put PRECISION
13268 output conditional on debug.
13269 Put escher_hack_get_drawing on condition of --debug
13271 * ms-formula.c (ms_excel_parse_formula): Added
13272 'Optimised Choose' functionality.
13273 (formula_func_data): Inserted CHOOSE.
13274 (ms_excel_parse_formula): Patch for broken MS files.
13275 Updated 'Name' records.
13277 1999-04-15 Michael Meeks <michael@edenproject.org>
13279 * boot.c: Fixed includes to remove annoying warning.
13280 (excel_load): Add workbook_set_filename for style.
13282 * ms-excel.c (ms_excel_workbook_detach): Added debug
13283 if can't remove sheet for some reason.
13285 * ms-ole.c (pps_get_text): Hacked in some better
13286 unicode support. Might work cross-platform now.
13287 (ms_ole_new): Added name printout to help debug.
13288 (ms_ole_directory_next): Conditional'd debug.
13289 (directory_setup): clean debug.
13291 * ms-excel.c (ms_excel_set_cell_colors): Removed debug.
13293 1999-04-15 Michael Meeks <michael@edenproject.org>
13295 * ms-formula.c (ms_excel_parse_formula): PTG_AREAN added,
13296 and PTG_AREA updated to include 'shared' flag.
13297 (ms_excel_parse_formula): Added PTG_ARRAY code.
13299 * ms-formula.h (FORMULA_PTG_ARRAY): Added PTG_ARRAY
13301 * ms-excel.c (ms_excel_read_cell): Added more sensible
13302 floating point printing throught.
13304 * ms-excel.h (MS_EXCEL_DOUBLE_FORMAT): Created to
13305 standardise number transfer.
13307 1999-04-14 Michael Meeks <michael@edenproject.org>
13309 * ms-formula.h: Updated ms_excel_parse_formula prototype.
13311 * ms-excel.c (ms_excel_read_cell): Added 'shared' flag
13312 to all ms_excel_parse_formula instances.
13313 (biff_get_error_text): Set arg to const.
13314 (ms_excel_sheet_shared_formula): Removed debug.
13315 (ms_excel_read_cell): Removed debug.
13316 (ms_excel_sheet_insert): const text arg.
13318 * ms-excel.h: Updated prototypes.
13320 * ms-formula.c (ms_excel_parse_formula): RefN replaced.
13321 updated prototype & args. Updated optimised if call.
13322 (getRefV8, getRefV7): Attempt at shared formulae.
13323 Fairly brutal hack: seems to work :-)
13325 1999-04-14 Michael Meeks <michael@edenproject.org>
13327 * ms-excel.c (biff_get_text): Remove platform dependance.
13328 (biff_get_error_text): Changed type.
13329 (biff_boundsheet_data_new): s/int strlen/int slen/
13330 (biff_font_data_destroy): Free after last use.
13331 (biff_get_rk): Changed IEEEx10 to IEEEx100
13332 (ms_excel_read_cell): COL_INFO: Fixed width cast.
13333 Thanks to great bug reports by Morten Welinder.
13335 * ms-excel.h: Add const to biff_error_get_text.
13337 * ms-ole.c (SET_GUINT8): Fix GET_<TYPE> macros.
13339 * ms-biff.h (BIFF_GETWORD): Patch from Morten Welinder to
13340 improve GET<TYPE> macros.
13342 1999-04-14 Michael Meeks <michael@edenproject.org>
13344 * ole.c (dump_escher): Fatal Escher cockup removed, makes
13345 the problem look more complex and realistic.
13348 * ms-escher.c (read_DgContainer): Created.
13349 (SpgrContainer_new): Created.
13350 (ms_escher_hack_get_drawing): Add debug.
13351 (SpContainer_new): Created.
13352 There must be a good way of doing this recursively.
13354 1999-04-13 Michael Meeks <michael@ximian.com>
13356 * ms-escher.c (esh_header_next): Fixedup to use correct lengths.
13357 Various major bits of work, started parsing the heirarchical
13358 bitstream. Escher looks better than BIFF, 32bit clean seemingly.
13360 * ole.c: Copied in updates.
13361 (dump_escher): Recursive dump of structures.
13363 1999-04-13 Michael Meeks <michael@ximian.com>
13365 * ms-ole.c(ms_biff_query_copy): Fix nasty bug: duplicate
13366 stream pos record too.
13368 * escher-types.h: Created to hold the drawing layer types.
13370 * ole.c (read_types): Expanded to cope with escher types.
13371 (get_opcode_name): Duplicated into:
13372 (get_biff_opcode_name, get_escher_opcode_name): Created.
13373 (main): Updated biff section.
13374 Added 'draw' = search for drawings and dump section.
13376 * README: Updated to doc. 'draw'
13378 1999-04-12 Michael Meeks <michael@ximian.com>
13380 * ms-objc.c/h renamed ms_obj_read_graphic to
13381 ms_obj_read_obj, the real graphic lurks elsewhere...
13383 * ms-escher.c/h: Created to handle the 'Office drawing layer'
13384 This is a hack and needs better OLE support code.
13386 * ms-ole.c (ms_ole_stream_duplicate): Created, not too bad a hack
13387 (ms_biff_query_data_to_stream): Nasty hack for ms-escher
13389 1999-04-12 Michael Meeks <michael@ximian.com>
13391 * ms-obj.c: Created to deal with the horrors of embedded graphic
13394 * ms-obj.h: Include for the same
13396 * ms-excel.c: Include ms-obj.h
13397 (ms_excel_read_sheet): Add call to ms_obj_read_graphic.
13399 * biff-types.h: Update comments.
13401 * Makefile.am: Add new files.
13403 * ole.c: Nice header.
13405 1999-04-12 Michael Meeks <michael@ximian.com>
13407 * biff-types.h: Fleshed out.
13409 * ms-excel.c (ms_excel_sheet_set_comment): Created
13410 (ms_excel_sheet_append_comment): Created
13411 (ms_excel_read_sheet): Added BIFF_NOTE support.
13412 (ms_excel_set_cell_xf): Fixed spurious debug, and made more
13415 1999-04-12 Michael Meeks <michael@ximian.com>
13417 * ms-excel.c: Various unneeded BIFF tags implemented for
13420 * biff-types.h: The tag definitions.
13422 * ole.c (read_types): Improved.
13423 (main): Flag duplicates sensibly.
13425 1999-04-12 Michael Meeks <michael@ximian.com>
13427 * ole.c: Added 'biff' command.
13428 Added type file loader/parser and helper function.
13430 * biff-types.h: Created
13432 * ms-excel-biff.h: Moved types out.
13434 1999-04-11 Michael Meeks <michael@ximian.com>
13436 * ole.c: Major update, interactive mode, help, dump command
13439 1999-04-09 Michael Meeks <michael@ximian.com>
13441 * ms-excel.c (ms_excel_workbook_detach): Paranoid NULLing
13443 Fixed _silly_ bug with g_list_remove !
13444 (ms_excel_workbook_attach): Paranoia checking.
13445 (biff_get_text): Converted int lp to guint32 lp.
13446 (ms_excelReadWorkBook): BIFF_SST: Added overrun check,
13447 some idiot splits the SST table for seemingly no good reason.
13449 (ms_excel_read_cell): Cleaned debug.
13450 (ms_excel_palette_get): Added magic multiplying factor to get
13452 (ms_excel_set_cell_font): Now returns font color
13453 (ms_excel_set_cell_xf): Updated to pass on foregnd col to:
13454 (ms_excel_set_cell_colors): Added priority foregnd col.
13455 BIFF_XF_DATA: Updated colours to pattern colours, and updated
13456 names throughout adding pal_ prefix.
13458 * ole.c: Added, basic OLE2/BIFF helper program
13460 * Makefile.am: Updated to include ole.c
13462 1999-04-06 Michael Meeks <michael@ximian.com>
13464 * ms-formula.h: Add PTG_AREAN, PTG_REFN.
13466 * ms-formula.c: Debug for these cases.
13467 (ms_excel_parse_formula): Added shared row/col.
13468 Updated ms_excel_sheet_shared_formula call.
13470 * ms-excel.c (ms_excel_sheet_shared_formula): Include
13472 (ms_excel_read_cells): Update all parse_formula calls.
13473 (ms_excel_set_cell_xf): Set auto_return argument to 0 for
13474 cell_set_alignment.
13475 move cell_set_colors to last thing.
13477 * ms-excel.h: Update prototype.
13479 1999-04-05 Miguel de Icaza <miguel@nuclecu.unam.mx>
13481 * ms-ole.c (biff_getdouble): Move biff_getdouble here, and apply
13482 fix from Tung Nguyen (tung.nguyen@pgs.com)
13484 1999-04-03 Michael Meeks <michael@ximian.com>
13486 * ms-excel.c (ms_excel_read_sheet): removed fixup_array_formulae.
13487 (ms_excel_read_cell): Large SHRFMLA / ARRAY fixups.
13488 (biff_share_formula_new,destroy,hash,equal): Implemented.
13489 (ms_excel_sheet_new): Removed GList array_formulae and insert
13490 shared formula hash table.
13491 (ms_excel_sheet_destroy): Deal with hash table.
13492 (ms_excel_sheet_shared_formula): Returns shared formula text
13493 (ms_excel_set_cell_xf): Cleaned unused variables.
13495 * ms-excel.h: Added ms_excel_sheet_shared_formula prototype
13497 * ms-formula.c (ms_excel_fixup_array_formula): Removed.
13498 (ms_excel_parse_formula): Sorted FORMULA_PTG_EXP.
13500 * ms-formula.h: Removed prototype.
13502 1999-04-02 Michael Meeks <michael@ximian.com>
13504 * ms-formula.c (ms_excel_parse_formula): PTG_ATTR: corrected
13505 debug output semantics.
13506 Set IF to var-arg ( fn: 0x1 ).
13507 Various Debug bits made conditional.
13508 Implemented 'optimised' = 'hopelessly obfuscated' IF function.
13509 Ignored 'Volatile' PTG_ATTR.
13510 Added INT to table.
13512 * ms-excel.c (ms_excel_set_cell_xf): Made static for safety.
13513 (ms_excelReadWorkbook): BIFF_SST: fixed up a few types.
13514 (biff_get_text): Fixed types.
13516 * ms-excel.h: removed prototype for same.
13517 fixed biff_get_text type.
13519 1999-04-01 Michael Meeks <michael@ximian.com>
13521 * ms-excel.c (ms_excelReadWorkbook): Major string table fix
13522 should now work internationally.
13523 (biff_get_text): Major arguments change, now returns the rather
13524 grim byte length field if needed through a guint32 *
13525 Changed all references to biff_get_text throughout.
13527 * ms-excel.h: Updated biff_get_text prototype.
13529 * ms-formula.c: Changed all references to biff_get_text throughout.
13531 1999-03-31 Michael Meeks <michael@ximian.com>
13533 * ms-excel.c (ms_excel_read_sheet): Added SELECTION support.
13534 Added basic WINDOW2 support.
13535 (ms_excel_read_cell): COLINFO, fixed fatal bug in hidden column code.
13537 * ms-formula.c (ms_excel_parse_formula): Removed debug.
13539 1999-03-30 Michael Meeks <michael@ximian.com>
13541 * ms-formula.c (ms_excel_parse_formula): Rehashed function
13542 and operator search function so it uses a flat array instead
13543 of a linear search.
13544 fully populated formula_func_data array, and removed unused /
13547 * ms-formula.h: Removed dead wood from OP_DATAa & FUNC_DATA
13550 1999-03-26 Michael Meeks <michael@ximian.com>
13552 * ms-formula.c: Removed duplicate for fn 0x65
13554 1999-03-24 Thomas Meeks <thomas@ximian.com>
13556 * ms-formula.c: Added mappings for Address, Area, Hyperlink,
13557 Offset, Column, Columns.
13559 1999-03-12 Michael Meeks <michael@ximian.com>
13561 * ms-excel.c (biff_name_data_new, biff_name_data_get_name),
13562 (biff_name_data_destroy, ms_excel_read_cell): Implemented
13563 the BIFF_EXTERNNAME case.
13564 (ms_excel_workbook_new, ms_excel_workbook_destroy):
13565 Name table hashing functions.
13566 (ms_excel_read_cell): Cleaned debug on BIFF_HEADER / FOOTER.
13568 * ms-formula.c (ms_excel_parse_formula): Large API change to
13569 simplify several cases, and clean dirty code.
13570 (make_function): Special 0xff case on functions. For use with
13571 external functions, the names of which come in via:
13572 (_excel_parse_formula): FORMULA_PTG_NAME_X, hacked into
13575 * ms-excel.c: All instances of ms_excel_parse_formula updated.
13577 1999-03-11 Michael Meeks <michael@ximian.com>
13579 * ms-ole.c (ms_ole_destroy, ms_ole_new): Killed debug
13580 output before we are sure its an OLE file.
13582 1999-03-11 Miguel de Icaza <miguel@nuclecu.unam.mx>
13584 * ms-excel.c (find_workbook): Use g_strncasecmp here.
13586 1999-03-10 Michael Meeks <michael@ximian.com>
13588 * ms-formula.c: Inserted all the statistics formulae from
13589 5.0a into the translation table.
13591 1999-03-09 Michael Meeks <michael@ximian.com>
13593 * ms-formula.c (ms_excel_parse_formula): Hacked out the
13594 bad array formula support. Moved most of it to ms-excel.c
13596 * ms-excel.c (ms_excel_read_cell): Updated BIFF_ARRAY and
13597 BIFF_FORMULA cases; splitting and adding array loop.
13598 BIFF_COLINFO, BIFF_ROW: Updated fudge factors in sizing
13599 and implemented column sizing.
13601 1999-03-07 Michael Meeks <michael@ximian.com>
13603 * ms-formula.c: Changed FORMULA_PTG_STR to cope with both
13604 versions of string properly.
13605 Inserted innumerable time and text functions into the
13608 1999-03-07 Michael Meeks <michael@ximian.com>
13610 * ms-excel.c: Changed to use cell_set_text_simple to save
13611 many redundant re-draws: big speedup.
13612 hacked up a set_row_height call
13614 1999-03-05 Michael Meeks <michael@ximian.com>
13616 * ms-ole.c: Variously made debug conditional on OLE_DEBUG
13617 * ms-excel.c: ditto for EXCEL_DEBUG
13619 1999-02-22 Miguel de Icaza <miguel@nuclecu.unam.mx>
13621 * ms-ole.c (ms_ole_write_sb): Do not use C++ comments.
13623 1999-02-06 Miguel de Icaza <miguel@nuclecu.unam.mx>
13625 * ms-ole.c (ms_ole_destroy): Free the correct pointer (we were
13626 releasing the same pointer twice).
13628 1999-01-13 Miguel de Icaza <miguel@nuclecu.unam.mx>
13630 * ms-ole.c (ms_ole_destroy): Free f->header_root_list if set.
13632 1999-01-03 Jeff Garzik <jgarzik@Pobox.com>
13634 * ms-excel.c, ms-formula.c:
13638 1998-12-28 Miguel de Icaza <miguel@nuclecu.unam.mx>
13640 * boot.c (excel_init): New file, adds the excel booting