Issue 1532 - wrong layouted file
Summary: wrong layouted file
Status: CLOSED FIXED
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: 638
Hardware: PC Windows 98
: P3 Trivial (vote)
Target Milestone: ---
Assignee: michael.ruess
QA Contact: issues@sw
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-08-26 19:58 UTC by ezh
Modified: 2013-08-07 14:41 UTC (History)
1 user (show)

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


Attachments
The file (58.00 KB, text/plain)
2001-08-26 19:59 UTC, ezh
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description ezh 2001-08-26 19:58:27 UTC
1. Load the doc 
2. The logo, the horizontal line are not in the right place.
3. First table is broken.
4. The table with Exel table are not present
5. The tables border with the "Summa" is too black.
Comment 1 ezh 2001-08-26 19:59:35 UTC
Created attachment 469 [details]
The file
Comment 2 ezh 2001-08-26 20:11:06 UTC
Also look at the window title - it does not shows the file name in it.
Comment 3 stefan.baltzer 2001-08-28 17:07:51 UTC
Reassigned to Michael.
Comment 4 michael.ruess 2001-08-29 13:59:08 UTC
MRU->CMC:
The graphic at the top is page-anchored, though it has the "move with
text" attribute
First table is not broken; the line break is due to the different
evaluation of font metrics between word and OpenOffice
There is an excel object anchored in the third table; I think it is a
problem of the Writer-Layout, that we cannot display it in original
size below the table, isn't it?
I do not think, that the table borders are too black... in Word they
are also black (automatic color on white page background).
Comment 5 caolanm 2001-08-29 14:50:44 UTC
2. Yeah, the graphic is anchored incorrectly, that's fixed now.

3. The first table and the linebreak is the kind of problem I've been
looking at for a while, it turns out that when word has a table
(similiar things happen to graphics etc) it records the width of the
object (e.g. a table cell) as 'X', but the width of any border for the
cell is not counted in. But writer considers the width of the border
as part of the width of a cell. So think of a table in word that has
two cells, each cell set to 1cm wide and then a 1 cm side border is
placed around every cell. Word will tell me that there is a 2cm side
table and every cell is 1 cm wide, so we create such tables in writer
and then afterwards set the border properties, but the border
properties eat into the size of the cell in writer, making them
smaller than they were in word, and so we end up with 2 cells with a
total width each of 1cm, but a printable region inside the cell far
smaller than the word original, and wrapping occurs.

In theory we need to find the width of the border and add it to the
width of the table cells to get an exact match, but this is really
hard as the word border and shading dialog can do *so* many different
things of different (and some undefined) widths that to know how large
the cell/graphic really is, is very tricky. 

4. Very difficult.
4.1 For a start the table grows to swallow the object because its
height is not fixed, because we need it to grow to contain text that
is line wrapped because of 3. So we'd need a fixed height row, so
perfectly correct borders and widths would need to be done.
4.2 Secondly in word I cannot recreate such an example, if you start
from scratch and try and duplicate the example word will clip the
object along a line drawn down from the right side of the table that
it is anchored to. We scale the object in a similar situation so we'd
need the stuff mentioned in issue 1560 implemented to do that instead
so as to handle the common "anchored in cell" case.
4.3 Finally I believe that the reason that this example is not clipped
at the right side of the cell is because it makes use of an
undocumented compatabiity feature in word for importing older
versions. It seems to describe some layout options for each table
cell. So we'd need to implement that in the filter, and then add
another compatability option to the layout to neither clip or scale at
the edge of the cell.

5. At least this is straightforward, the border in word is 0,75pt, the
nearest available in writer is 1pt

Comment 6 caolanm 2001-10-17 16:30:33 UTC
Whats fixable by the filter is fixed. i.e. Logo placement is fixed.
Nothing can be done about the two lines instead of one in the second
cell by the filter, hopefully that will get fixed in the future when
general starwriter font handling is revisited. The excel table issue
is issue 1560. Nothing can be done with the too thick border by the
filter until that particular border width is implemented in the core.
Comment 7 michael.ruess 2001-10-18 09:58:28 UTC
The fixalble things all look good in our internal 641.
Comment 8 michael.ruess 2001-12-04 12:55:08 UTC
Great fix. OO641 shows the result.
Comment 9 ezh 2001-12-04 13:10:30 UTC
Do you think? Look at issue 2393.