Issue 56808 - Under certain condition automatic styles are overwhelmed by their template style
Summary: Under certain condition automatic styles are overwhelmed by their template style
Alias: None
Product: Calc
Classification: Application
Component: open-import (show other issues)
Version: OOo 2.0
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
Depends on:
Reported: 2005-10-27 18:15 UTC by svante.schubert
Modified: 2013-08-07 15:12 UTC (History)
1 user (show)

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

Adding a flat ODS stream (20.79 KB, text/xml)
2005-10-27 18:30 UTC, svante.schubert
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description svante.schubert 2005-10-27 18:15:43 UTC

Created a document via XSLT filter, where border attribute does not remain
during the import into Calc.

Therefore created a simple test document, where two different cells using the
same style properties, but one using a template, the other an automatic style,
inherit from the same parent style.

Theoretially both cells should look the same, as they use the same properties
and inherit from the same parent.

But they don't. Only the cell using the template style inherits correctly from
the parent, the styles from the automatic style cell are overwritten from it's
(Happens here for Border style attributes).

The reason is the use of the attribute style:text-align-source with the value
"fix" in the automatic style.
<define name="style-table-cell-properties-attlist" combine="interleave">
        <attribute name="style:text-align-source">

'fix' means that the horizontal align is not dependent on the cell content type
but of the 'fo:text-align' value.

<define name="style-paragraph-properties-attlist" combine="interleave">
    <ref name="common-text-align"/>
<define name="common-text-align">
        <attribute name="fo:text-align">

The problem appears, when style:text-align-source is being used, without
providing a value for fo:text-align="center".
Comment 1 svante.schubert 2005-10-27 18:30:31 UTC
Created attachment 30929 [details]
Adding a flat ODS stream
Comment 2 daniel.rentz 2005-10-28 08:52:07 UTC