After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 316234 - Support to OpenDocument v1.0 format
Support to OpenDocument v1.0 format
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: import/export OOo / OASIS
git master
Other All
: Normal enhancement
: ---
Assigned To: Jody Goldberg
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2005-09-13 19:57 UTC by Luciano Miguel Wolf
Modified: 2008-03-02 19:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
libgsf proposed patch (16.19 KB, patch)
2005-09-13 19:59 UTC, Luciano Miguel Wolf
needs-work Details | Review
gnumeric proposed patch (7.17 KB, patch)
2005-09-13 19:59 UTC, Luciano Miguel Wolf
none Details | Review
new patch including proposed modifications (16.25 KB, patch)
2005-09-28 19:13 UTC, Luciano Miguel Wolf
none Details | Review
gnumeric reworked patch (4.52 KB, patch)
2005-09-28 19:15 UTC, Luciano Miguel Wolf
needs-work Details | Review
patch to import content.xml (depends on other two patches) (12.20 KB, patch)
2005-09-30 19:02 UTC, Luciano Miguel Wolf
needs-work Details | Review
small correction to metadata parser function (486 bytes, patch)
2005-10-31 14:06 UTC, Luciano Miguel Wolf
committed Details | Review
OpenDocument importer, using new libgsf (17.60 KB, patch)
2005-10-31 14:09 UTC, Luciano Miguel Wolf
committed Details | Review
support to images, graphics and improved border/styles support (29.08 KB, patch)
2005-12-06 22:04 UTC, Luciano Miguel Wolf
none Details | Review
libgsf suport for OASIS metadata export. (2.76 KB, patch)
2005-12-22 20:24 UTC, Luciano Miguel Wolf
needs-work Details | Review
Functions to save metadata information and contents (17.63 KB, patch)
2005-12-22 20:26 UTC, Luciano Miguel Wolf
none Details | Review
Its a new and more complete version of anterior importer patch. This one is based on the last cvs code and offers a better render of columns and rows styles. (31.14 KB, patch)
2006-01-26 14:37 UTC, Luciano Miguel Wolf
needs-work Details | Review
Revised patch, including modifications sugested by Morten Welinder. (31.66 KB, patch)
2006-02-15 13:23 UTC, Luciano Miguel Wolf
committed Details | Review
A test file, based on cellstyle_import_biff8.xls from Jody, with 2 graphics. (22.83 KB, application/vnd.oasis.opendocument.spreadsheet)
2006-02-15 20:18 UTC, Luciano Miguel Wolf
  Details

Description Luciano Miguel Wolf 2005-09-13 19:57:47 UTC
Implement a filter to import/export OpenDocument files.
Comment 1 Luciano Miguel Wolf 2005-09-13 19:59:17 UTC
Created attachment 52184 [details] [review]
libgsf proposed patch
Comment 2 Luciano Miguel Wolf 2005-09-13 19:59:41 UTC
Created attachment 52185 [details] [review]
gnumeric proposed patch
Comment 3 Luciano Miguel Wolf 2005-09-13 20:03:02 UTC
These proposed patches imports meta.xml file inside a Gsf-meta struct and handle
copy/paste to call the correct filter OOo1 or OOo2.
Comment 4 Luciano Miguel Wolf 2005-09-28 19:13:19 UTC
Created attachment 52787 [details] [review]
new patch including proposed modifications

Rework to rename some files and to move some functions to the correct ".h"
files.
Comment 5 Luciano Miguel Wolf 2005-09-28 19:15:38 UTC
Created attachment 52788 [details] [review]
gnumeric reworked patch

Added g_object_set_data function, to keep meta information.
Comment 6 Luciano Miguel Wolf 2005-09-30 19:02:49 UTC
Created attachment 52878 [details] [review]
patch to import content.xml (depends on other two patches)

This patch imports data from OpenDocument documents (data from cells: numbers, 
formulas, dates, text)
Comment 7 Jody Goldberg 2005-10-03 00:00:13 UTC
I've got an updated version of the meta parser in libgsf cvs.  It's untested but
is logical progression from your proposal.  Your gnumeric patches will need some
updating to cope with libgsf changes.
Comment 8 Luciano Miguel Wolf 2005-10-31 14:06:48 UTC
Created attachment 54131 [details] [review]
small correction to metadata parser function

small correction to metadata parser function
Comment 9 Luciano Miguel Wolf 2005-10-31 14:09:03 UTC
Created attachment 54132 [details] [review]
OpenDocument importer, using new libgsf

OpenDocument importer, using new libgsf. This patch imports meta.xml and data
from content.xml (numbers, text, colors, borders and formulas).
Comment 10 Jody Goldberg 2005-11-06 02:38:15 UTC
gsf patch has been applied.
Comment 11 Jody Goldberg 2005-11-07 04:46:08 UTC
There are a few logic errors in the opendoc patch, but nothing that can not be
fixed.
Comment 12 Luciano Miguel Wolf 2005-12-06 22:04:04 UTC
Created attachment 55703 [details] [review]
support to images, graphics and improved border/styles support

Now the filter can import images and graphics. Also included better support to
borders and styles (merged cells, for example). Sorry for this patch's size ;)
Comment 13 Morten Welinder 2005-12-07 00:58:06 UTC
Reopening for the new patch.
Comment 14 Luciano Miguel Wolf 2005-12-22 20:24:52 UTC
Created attachment 56314 [details] [review]
libgsf suport for OASIS metadata export.
Comment 15 Luciano Miguel Wolf 2005-12-22 20:26:47 UTC
Created attachment 56315 [details] [review]
Functions to save metadata information and contents

Implements functions to save metadata information and contents like numbers and text. Don't support formulas by now.
Comment 16 Jody Goldberg 2005-12-28 18:51:26 UTC
Comment on attachment 56314 [details] [review]
libgsf suport for OASIS metadata export.

It's a start, but needs quite a bit of work.

1) It leaks.
2) There is no need to dup the value or the name
3) We should compare the name to a fixed set of names using the GSF_ #defines rather than hard coding.
4) It needs to handle more value types.
5) it needs to handle arrays
Comment 17 Luciano Miguel Wolf 2006-01-26 14:37:04 UTC
Created attachment 58152 [details] [review]
Its a new and more complete version of anterior importer patch. This one is based on the last cvs code and offers a better render of columns and rows styles.
Comment 18 Morten Welinder 2006-01-27 22:30:11 UTC
Comment on attachment 58152 [details] [review]
Its a new and more complete version of anterior importer patch. This one is based on the last cvs code and offers a better render of columns and rows styles.

1. No // comments.
2. Please make all utility functions static.
3. Avoid casts when you can; make od_draw_image's "file" const.
Comment 19 Luciano Miguel Wolf 2006-02-15 13:23:17 UTC
Created attachment 59408 [details] [review]
Revised patch, including modifications sugested by Morten Welinder.
Comment 20 Morten Welinder 2006-02-15 16:49:36 UTC
Can you attach a suitable test file, please?
Comment 21 Luciano Miguel Wolf 2006-02-15 20:18:14 UTC
Created attachment 59426 [details]
A test file, based on cellstyle_import_biff8.xls from Jody, with 2 graphics.
Comment 22 Morten Welinder 2006-02-16 03:25:21 UTC
Comment on attachment 59408 [details] [review]
Revised patch, including modifications sugested by Morten Welinder.

Committed with fixes.
(Leak fixes in this code
and in libgsf, for example.)

Note, that you were assuming a "Pictures/" prefix that wasn't always
present in your test file.
Comment 23 Morten Welinder 2006-02-16 03:26:49 UTC
There's still work to be done, though.  The walking over lists should not
involve calculating the list's length and repeatedly called _nth_.
Comment 24 Mantas Kriaučiūnas 2006-05-04 09:18:32 UTC
I know, that this isn't the best place to ask, but it would be nice if you tell me from which version Gnumeric has OpenDocument format (which now is ISO standard) support.
Comment 25 Jody Goldberg 2006-05-08 04:04:24 UTC
reverted the col style portion of the patch which was a performance problem and wrong.  There is a simpler way.   ODF uses a different model.  Rather than specifying a default style for an entire col/row it specifies a default style for all cells in a col/row.  The difference is that if there is no content the style is not applied.  There are documents that have col styles, but expect the style to apply only for the first few rows.  A cleaner solution is to keep track of the extent of data and clear the styles afterwards.  That way we do not need to keep track of which default style to use for spans.
Comment 26 Andreas J. Guelzow 2006-07-12 17:29:29 UTC
I have committed some of the content export. We still need to handle functions and array's.
Comment 27 Andreas J. Guelzow 2006-07-13 20:21:34 UTC
Functions can apparently be read by OOo although we don't export them correctly yet.

Arrays ought to be next.

See also bug 347447
Comment 28 Andreas J. Guelzow 2006-07-15 03:02:04 UTC
Function export, including array/matrix functions, work.
Comment 29 Jean-François Fortin Tam 2007-04-23 03:49:28 UTC
Sorry if I'm intruding to ask these questions but I could not find the answers anywhere else:
- is this the right place to track gnumeric's ODF support? or is there some chart that lists the features that are currently supported and those that are under work?
- is gnumeric planning on using ODF as its default file format sometime in the future?
Comment 30 Morten Welinder 2007-04-23 13:14:33 UTC
> is this the right place to track gnumeric's ODF support?

Here, or in the ChangeLog for the openoffice plugin.

> is gnumeric planning on using ODF as its default file format sometime in the
> future?

Not if I can help it.  ODF is not suitable for spreadsheets.
Comment 31 Jean-François Fortin Tam 2007-04-24 14:42:19 UTC
Morten, I am hesitant to ask, but why isn't ODF suitable for spreadsheets? (could not find archives of a discussion on that, but maybe my googlefu is lacking)

again, I don't want to turn this into some big debate as I presume you have your reasons, I'm just curious to know what they are.
Comment 32 Morten Welinder 2007-04-24 15:57:20 UTC
I have an old rant here: http://blogs.gnome.org/view/mortenw/2005/06/16/0

Add to that...

* There is no ODF, or rather "ODF is whatever OpenOffice outputs and
  accepts".  There are piles of documents that fit the ODF description
  but won't load with OpenOffice.  Like with Excel, I don't think we
  realistically have a lot of chances of getting OO fixed.

* Shared expressions are not covered.
Comment 33 Jody Goldberg 2008-03-02 19:09:22 UTC
This bug is rather nebulous.  We've got reasonable import and basic export.  Let's close this and split into distinct enhancements (eg export styles).