incubator-odf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Florian Hopf (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (ODFTOOLKIT-169) Same styles are not copied when we append a presentation document to an other
Date Wed, 19 Dec 2012 05:55:20 GMT

     [ https://issues.apache.org/jira/browse/ODFTOOLKIT-169?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Florian Hopf updated ODFTOOLKIT-169:
------------------------------------

    Fix Version/s:     (was: odfdom-0.9)
    
> Same styles are not copied when we append a presentation document to an other
> -----------------------------------------------------------------------------
>
>                 Key: ODFTOOLKIT-169
>                 URL: https://issues.apache.org/jira/browse/ODFTOOLKIT-169
>             Project: ODF Toolkit
>          Issue Type: Bug
>          Components: java
>    Affects Versions: odfdom-0.8.6
>         Environment: Operating System: Windows
> Platform: PC
>            Reporter: matthieu
>            Assignee: Ying Chun Guo
>         Attachments: ASF.LICENSE.NOT.GRANTED--style_break.zip, table_ok_169.odp
>
>
> Created an attachment (id=424)
> Examples documents to illustrate the bug
> When I add a new document to an other, there is some "content styles tags" with same
content but differents id (corresponding to a tag element in the document) which are not copied.
> OdfPrensentationDocument.appendPrensentation
>   > copyForeignStyleRef(...);
>     > getCopyStyleList(...);
>       > HashMap<OdfElement, List<OdfElement>> copyStyleEleList
> This Map keep styles which have same content but after, elements having those styles
are not rewrited. 
> So in the final document, there is elements which have lost their styles.
> To fix this bug, I think you can rewrite elements style-name in the map with the referent
style-name kept.
> For better understanding, please see document attached.
> table_ok.odp > document before appendPresentation
> table_ko.odp > document after appendPresentation
> Thank you.
> Matthieu

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message