To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=47323





------- Additional comments from [EMAIL PROTECTED] Thu Jun  9 08:46:18 -0700 
2005 -------
hmm... what I'm seeing is that the binfilter
(com.sun.star.comp.sfx2.BinaryFormatDetector) typedetection gets called first on
an unsuffixed file and its ::detect gets the clipboard id of the file (correctly
as the msword type) and uses this to get a filter, and the writer typedetection
service doesn't get a look in. The thing is that there are three filters
writer_MS_WinWord_5/writer_MS_WinWord_60 and writer_MS_Word_97 which have this
clipboard id. So it looks like it grabs the first one which is 
writer_MS_WinWord_5.

It's worth saying that all these three filters are all implemented by the same
code in sw/source/filter/ww8 so it's probably feasible in writer to work around
the problem by re-detecting what the format really is when given a MSWordDoc
type. But it looks sort of fragile if the binfilter detect is going to operate
on ClipBoard id's when a single ClipBoard id could map to multiple filters. So I
don't know if the real fix is to 
a) not have the binfilter detect get called first, or 
b) remove the MSWordDoc clipboard id for the non word97 formats in
./registry/modules/org/openoffice/TypeDetection/Types/fcfg_writer_types.xcu, or
c) make them different for different filters to have a single filter to
clipboard id mapping
d) have writer re-detect when given one of the three word filternames which one
to really use. In which case it's worth mentioning that writer_MS_WinWord_5 is
not a storage format, only a stream format.

A nasty quick fix patch for binfilter attached.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to