Issue 19484 - WW8: Some anchored elements force writer's table rows to grow but not words. Workaround in filter export ?
Summary: WW8: Some anchored elements force writer's table rows to grow but not words. ...
Status: CLOSED FIXED
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: OOo 1.1 RC4
Hardware: PC Windows XP
: P4 Trivial with 2 votes (vote)
Target Milestone: ---
Assignee: michael.ruess
QA Contact: issues@sw
URL:
Keywords: ms_interoperability, oooqa
Depends on:
Blocks:
 
Reported: 2003-09-12 11:01 UTC by fergusmurray
Modified: 2013-08-07 14:41 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
PGM Description (884.08 KB, patch)
2003-09-12 11:10 UTC, fergusmurray
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description fergusmurray 2003-09-12 11:01:28 UTC
When I save a OpenOffice Writer file to Word the formatting is destroyed in 
Word 97, although it appears correctly formatted in Word XP.

The document constists of a number of cells. The problem are contains two 
pictures side by side in a cell.

When the doc file is open in word 97, the pictures have jumped outside the 
cell.

This problem is repreducable every time.
Comment 1 fergusmurray 2003-09-12 11:10:47 UTC
Created attachment 9241 [details]
PGM Description
Comment 2 utomo99 2003-09-12 11:57:51 UTC
I can reproduce it at 1.1 Rc4 on Win Xp
maybe it is table problem 
Comment 3 jack.warchold 2003-09-15 18:58:03 UTC
reassigned to mru

please take a look at this issue
Comment 4 utomo99 2003-09-16 07:35:13 UTC
change to new
Comment 5 michael.ruess 2003-09-17 12:28:15 UTC
No, that is not fixable by the filter. Word also lets a table flow
behind a graphic, which is inside of one of the cells of the same table.
In Writer, the table expands so that the graphic will fit into the cell. 

MRU->AMA: As far as I remember, a compatibility option for this is on
the way. I couldn't find a matching task, so please re-assign, if
there is already one.
Comment 6 andreas.martens 2003-09-17 12:42:22 UTC
.
Comment 7 michael.ruess 2003-09-17 13:25:41 UTC
prio now 4.
Comment 8 utomo99 2003-09-19 06:51:04 UTC
add oooqa, ms_interoperability
Comment 9 Oliver-Rainer Wittmann 2003-09-29 10:52:45 UTC
OD (29.09.2003):
The given layout is hard to export to MS Word, because MS Word doesn't
support it. In MS Word an object with wrapping mode 'in front of text'
will always leave the table cell its anchored in.
Using the layout information during export, the export filter could
adjust the height of the table cell. Thus, the behaviour of the
Writer, that a table cell grows considering its inside anchored
objects, can be simlulated. 
OD->CMC: Can please check, if my proposed solution is possible?
Comment 10 caolanm 2003-10-08 10:14:55 UTC
cmc: 
A the original user noted that there is a difference between opening
in 97 and XP. That is because there is a feature new in XP to allow
graphics to be laid out in table cells which does not exist in 97.
Creating such a document from scratch with such anchoring in XP will
also look the same when opened in 97. 97 simply cannot do it.

The remaining problem where the cell containg the graphic will not
grow to fit is due to the reasons that od describes. We maybe be able
to do somthing here, but it will be a bit hacky-> if row contains
anchored elements which are behind/before text with through wrapping
then increase desired row height to real height when exporting...

(cmc->Fergus:) Assuming you don't care about all this esoteric stuff,
the problem would go away if you anchor the graphics 'as character'
which is something that word 97 and XP can both handle equally well.)
Comment 11 fergusmurray 2003-10-08 10:50:04 UTC
Fergus: (08/10/03)
The workaround works fine for my users and they can now throw away 
there MS office's (just as long as they remember to use the "as 
Character" setting when putting graphics in tables)

Fergus->cmc:
Can the graphics be automatically re-anchored to "as Character" when 
saving to Word 97 ?  
Comment 12 caolanm 2003-10-08 10:53:10 UTC
cmc->fergus: That would only work for the circumstances exactly as
your own example where there is no other content in the cell. Other
content in your cell will be displayed under the graphic in writer,
but after the graphic in word if exported 'as character', so its not a
general solution for the filter to automate exporting anchored 'to
character/paragraph' with this type of troublesome wrapping to word.
Comment 13 caolanm 2003-10-21 16:43:53 UTC
Ok, have implemented for 2.0 a cunning mechanism to detect this type
of graphic in a row where word will not be able to stretch the row to
fit it, and in this case export out the fixed layout height that
writer is using. (in workspace portlaoisefilterteam16)
Comment 14 caolanm 2003-10-21 16:44:36 UTC
I'll make this an enhancement, as its not our bug really but words
that we are working around
Comment 15 caolanm 2003-11-07 15:48:43 UTC
reopen to reassign
Comment 16 caolanm 2003-11-07 15:49:17 UTC
cmc->mru: Done in Fri-Nov-07-16-00 portlaoisefilterteam16 installset. 

Insanely great export magic to detect the export of what would be
problematic for word to do and set the row height to a fixed value to
make it work.
Comment 17 michael.ruess 2003-11-24 10:27:33 UTC
Checked fix with CWS portlaoisefiltertteam16.
Comment 18 michael.ruess 2003-11-24 10:28:14 UTC
Verified. Fix will be implemented in OO 2.0.
Comment 19 michael.ruess 2004-04-30 16:46:05 UTC
checked fix with OO 2.0 snapshot build 680m35. Closed.