incubator-odf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "DaLi Liu (JIRA)" <>
Subject [jira] [Updated] (ODFTOOLKIT-169) Same styles are not copied when we append a presentation document to an other
Date Fri, 21 Sep 2012 05:39:07 GMT


DaLi Liu updated ODFTOOLKIT-169:

    Attachment: table_ok_169.odp

The result,  using latest Simple ODF API
> Same styles are not copied when we append a presentation document to an other
> -----------------------------------------------------------------------------
>                 Key: ODFTOOLKIT-169
>                 URL:
>             Project: ODF Toolkit
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 0.8.6
>         Environment: Operating System: Windows
> Platform: PC
>            Reporter: matthieu
>            Assignee: Ying Chun Guo
>             Fix For: 0.9
>         Attachments:, 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:

View raw message