Re: [dev] Re: Import of relative links from .doc files.

2010-09-14 Thread Caolán McNamara
On Tue, 2010-09-14 at 16:58 +0200, Michael Stahl wrote: > maybe it would make sense to move the property hyperlink blob decoding to > sfx2 as well (if the format for xls/ppt/doc is the same, about which i > have no idea). Yeah, poking at it, they parsing/decoding should unified in there seeing as

[dev] Re: Import of relative links from .doc files.

2010-09-14 Thread Michael Stahl
On 14/09/2010 15:17, Caolán McNamara wrote: > On Tue, 2010-09-14 at 15:03 +0200, Knut Olav Bøhmer wrote: >> Are sfx2 reading it's parts before the .doc importer is read, and could OOo >> be set to read the relevant parts when sfx2 does it's work, and then save it >> for later? > > sfx2 reads diffe

Re: [dev] Re: Import of relative links from .doc files.

2010-09-14 Thread Caolán McNamara
On Tue, 2010-09-14 at 15:03 +0200, Knut Olav Bøhmer wrote: > Are sfx2 reading it's parts before the .doc importer is read, and could OOo > be set to read the relevant parts when sfx2 does it's work, and then save it > for later? sfx2 reads different, more standardized parts. Directly pulling out

Re: [dev] Re: Import of relative links from .doc files.

2010-09-14 Thread Knut Olav Bøhmer
On 14 September 2010 14:58, Caolán McNamara wrote: > On Tue, 2010-09-14 at 14:40 +0200, Knut Olav Břhmer wrote: > > Thank you for the analysis :) this really helps. > > What parts of the word document is available at the time of importing the > > hyperlink. Is all of the parts read in, so that th

Re: [dev] Re: Import of relative links from .doc files.

2010-09-14 Thread Caolán McNamara
On Tue, 2010-09-14 at 14:40 +0200, Knut Olav Bøhmer wrote: > Thank you for the analysis :) this really helps. > What parts of the word document is available at the time of importing the > hyperlink. Is all of the parts read in, so that the DocumentSummaryStream > could be accessed at that time? It

Re: [dev] Re: Import of relative links from .doc files.

2010-09-14 Thread Knut Olav Bøhmer
On 14 September 2010 14:26, Caolán McNamara wrote: > On Tue, 2010-09-14 at 12:54 +0200, Knut Olav Břhmer wrote: > > Hi, > > > > > > Attatched to this email is a document with a hyperlink that opens > > differently in MS Office and OpenOffi > > In word if you open the .doc and toggle field codes o

Re: [dev] Re: Import of relative links from .doc files.

2010-09-14 Thread Caolán McNamara
On Tue, 2010-09-14 at 12:54 +0200, Knut Olav Bøhmer wrote: > Hi, > > > Attatched to this email is a document with a hyperlink that opens > differently in MS Office and OpenOffi In word if you open the .doc and toggle field codes on you can see that the relative url is recorded as "..\\..\\FELLES

Re: [dev] Re: Import of relative links from .doc files.

2010-09-14 Thread Knut Olav Bøhmer
Hi, Attatched to this email is a document with a hyperlink that opens differently in MS Office and OpenOffice.org. Are anyone able to take a look at it? 2010/9/13 Knut Olav Bøhmer > > I will upload a test document tomorrow. I don't have any documents here > without sensitive data in it, and I

Re: [dev] Re: Import of relative links from .doc files.

2010-09-13 Thread Knut Olav Bøhmer
I will upload a test document tomorrow. I don't have any documents here without sensitive data in it, and I don't have word, so I need the owner to produce a document without data (only the buggy data) in it. I will post the update here tomorrow. http://qa.openoffice.org/issues/show_bug.cgi?id=11

Re: [dev] Re: Import of relative links from .doc files.

2010-09-13 Thread Caolán McNamara
And as an aside, the hyperlink importer for the .doc format is in sw/source/filter/ww8 as SwWW8ImplReader::Read_F_Hyperlink and its a fairly trivial thing C. - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additiona

Re: [dev] Re: Import of relative links from .doc files.

2010-09-13 Thread Knut Olav Bøhmer
Thanks to freenode I got gsf dump wordfile.doc WordDocument and a push in direction of google ;) 2010/9/13 Knut Olav Bøhmer > Hi, > > I would like to see the specification of the .doc format. > The bug is not in the conversion from relative to absolute. The bug is > somewhere in the reading pro

Re: [dev] Re: Import of relative links from .doc files.

2010-09-13 Thread Caolán McNamara
On Mon, 2010-09-13 at 21:35 +0200, Knut Olav Bøhmer wrote: > Is it possible to look at the strings in the word doc some how with hex/asci > reader? If you have libgsf (e.g. on Linux) you can look at the WordDocument stream (which has the text in it and the fields are in the text with e.g. gsf dum

Re: [dev] Re: Import of relative links from .doc files.

2010-09-13 Thread Knut Olav Bøhmer
Hi, I would like to see the specification of the .doc format. The bug is not in the conversion from relative to absolute. The bug is somewhere in the reading process. Already in th SwWW8'implReader:::Read_Field, the relative url shows up with part of it missing. It shows up as ..\..\foo.doc when

[dev] Re: Import of relative links from .doc files.

2010-09-13 Thread Michael Stahl
On 12/09/2010 19:24, Knut Olav Bøhmer wrote: > Thank you. Do you know if there is somewhere else in the code that the bug > could be? > As I understand there is some issues about the way openoffice.org keeps the > url represented in memory. > Do you know anything about that? hi Knut, OOo will con